ChangeLog 379 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564
  1. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2. Clarified usage of -j option.
  3. * src/usage_text.h
  4. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5. Disabled getting size from the response of RETR.
  6. If SIZE command failed, then disable resuming and segmented downloading.
  7. * src/FtpConnection.cc
  8. * src/FtpConnection.h
  9. * src/FtpNegotiationCommand.cc
  10. * src/FtpNegotiationCommand.h
  11. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12. Use digits to find first byte of file size, which makes the intention
  13. of the code clearer.
  14. * src/FtpConnection.cc
  15. Don't call validateTotalLength() when size is 0.
  16. * src/FtpNegotiationCommand.cc
  17. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  18. Updated po files.
  19. * po/aria2c.pot
  20. * po/*.gmo
  21. * po/*.po
  22. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  23. Clarified usage text for --split option.
  24. * src/usage_text.h
  25. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  26. Bump up version number to 0.15.0dev. "dev" means "development"
  27. version, which means I started the development of the next release!
  28. * src/configure.ac
  29. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  30. If FTP server returns negative response with REST raw command and
  31. requested range is not 0, throw exception. If requested range is 0,
  32. continue download a file from 0 byte.
  33. * src/FtpNegotiationCommand.cc
  34. * src/FtpNegotiationCommand.h
  35. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  36. Supported FTP server which don't recognize SIZE raw command.
  37. If SIZE raw command is failed, aria2 will try to get file size
  38. from the response of RETR raw command. If both attempts are failed,
  39. then resuming and segmented downloading are disabled.
  40. * src/FtpConnection.cc
  41. * src/FtpConnection.h
  42. * src/FtpNegotiationCommand.cc
  43. * src/FtpNegotiationCommand.h
  44. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  45. * Release 0.14.0+1
  46. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  47. Bump up version number to 0.14.0+1
  48. * src/configure.ac
  49. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  50. Fixed the code that refers static member variable from non-static
  51. context.
  52. * src/DefaultPeerStorage.cc
  53. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  54. * Release 0.14.0
  55. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  56. Added build test script
  57. * build_test.sh
  58. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  59. Updated ja.po
  60. * src/ja.po
  61. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  62. Bump up version number to 0.14.0
  63. * src/configure.ac
  64. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  65. Updated ja.po and fr.po. Great thanks for french translators and
  66. Sebastien WILLEMIJNS.
  67. * po/fr.po
  68. * po/ja.po
  69. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  70. Added configure option to enable/disable epoll support.
  71. * configure.ac
  72. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  73. Updated man page.
  74. * doc/aria2c.1.txt
  75. * doc/aria2c.1
  76. * doc/aria2c.1.html
  77. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  78. Added missing default value '5' to the usage of --split option.
  79. * src/HelpItemFactory.cc
  80. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  81. Filled up pieces based on the number of missing blocks, rather than
  82. simplay the number of piece * block length.
  83. * src/BtRequestFactory.h
  84. * src/DefaultBtInteractive.cc
  85. * src/DefaultBtInteractive.h
  86. * src/DefaultBtRequestFactory.cc
  87. * src/DefaultBtRequestFactory.h
  88. * src/Piece.cc
  89. * src/Piece.h
  90. * test/BitfieldManTest.cc
  91. * test/DefaultBtRequestFactoryTest.cc
  92. * test/MockBtRequestFactory.h
  93. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  94. Made _epEvents a member variable.
  95. * src/DownloadEngine.cc
  96. * src/DownloadEngine.h
  97. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  98. Cancel download if http redirect is bounded more than 20 times.
  99. * src/AbstractCommand.cc
  100. * src/HttpSkipResponseCommand.cc
  101. * src/Request.cc
  102. * src/Request.h
  103. * test/RequestTest.cc
  104. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  105. Fixed unhandled exception(removed keyword `new').
  106. * src/SocketCore.cc (initEPOLL)
  107. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  108. Removed visit(const MetaEntry*)
  109. * src/MetaEntryVisitor.h:
  110. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  111. and made them virtual.
  112. * src/BencodeVisitor.h
  113. * src/BencodeVisitor.cc
  114. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  115. Updated po files.
  116. * po/aria2c.pot
  117. * po/*.po
  118. * po/*.gmo
  119. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  120. Moved the call setWriteCheckSocket inside the previous clause to reduce
  121. the number of socket to watch out.
  122. * src/PeerInteractionCommand.cc
  123. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  124. When there is not enough space in disk when writing a chunk of data,
  125. aria2 now prints the message to the console to warn user and aborts
  126. its download. Not all downloads are canceled because some downloads
  127. may use another disk or partition. BUG#1640332
  128. * src/AbstractDiskWriter.cc
  129. * src/PeerAbstractCommand.cc
  130. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  131. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  132. setHaltRequested(true) to cancel download.
  133. * src/PeerInteractionCommand.h
  134. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  135. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  136. socket from int to sock_t as sockets are unsigned in Windows.
  137. For AsyncNameResolver, DownloadEngine, I did additional modification
  138. for the portion of the code changed according to epoll support.
  139. I defined sock_t in a2netcompat.h to use sock_t without including
  140. SocketCore.h.
  141. * src/AsyncNameResolver.cc
  142. * src/AsyncNameResolver.h
  143. * src/DownloadEngine.cc
  144. * src/DownloadEngine.h
  145. * src/SocketCore.cc
  146. * src/SocketCore.h
  147. * src/a2netcompat.h
  148. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  149. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  150. changes in the patch were applied.
  151. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  152. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  153. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  154. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  155. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  156. a2io.h and common.h were modified.
  157. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  158. MinGW.
  159. * src/common.h: Changed off_t to 64 bit in MinGW.
  160. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  161. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  162. only a2netcompat.h is modified.
  163. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  164. directives.
  165. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  166. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  167. only gai_strerror.h is modified.
  168. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  169. winsock errors in MinGW.
  170. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  171. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  172. follow sources are applied.
  173. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  174. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  175. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  176. I included locale.h from Platform.cc.
  177. * src/main.cc: Moved common setup/teardown code to Platform class.
  178. * test/AllTest.cc: Use Platform class.
  179. Set locale to C in AllTest.cc to prevent the messages to be localized.
  180. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  181. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  182. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  183. * test/HttpRequestTest.cc: Casted to off_t where it should.
  184. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  185. Applied Ross's aria2-0.13.2+1-mingw.patch and
  186. aria2-0.13.2+1-mingw-2.patch.
  187. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  188. systems which don't have termious.h. I moved the directive inside of
  189. if(isTTY) { ... clause so that line is wiped out without termious.h.
  190. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  191. anyway.
  192. * src/asctime_r.h
  193. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  194. I added 2nd argument to the prototype declaration.
  195. * src/StringFormat.cc: Get rid of vasprintf.
  196. * src/getaddrinfo.h: Fixed constants.
  197. * configure.ac: Added the check for asctime_r function.
  198. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  199. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  200. Added writable test for Socket when the sending message is in progress.
  201. Usually the sending message is piece message. Without wriable check,
  202. upload latency is dropped to more than 1sec.
  203. * src/PeerInteractionCommand.cc
  204. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  205. Create only requested files and files which shares a piece with
  206. requested file in multi-torrent downloads. Directory structures are
  207. also created in the same rule.
  208. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  209. DiskWriterEntry as in the previous implementation.
  210. * src/MultiDiskWriter.cc
  211. * src/MultiFileAllocationIterator.cc
  212. * src/MultiFileAllocationIterator.h
  213. * test/MultiFileAllocationIteratorTest.cc
  214. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  215. Commented out -lprofiler
  216. * src/Makefile.am
  217. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  218. Bump up version number to 0.14.0b.
  219. * src/configure.ac
  220. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  221. Actively establish connection to peers in seeding, when peer cache
  222. is not full and max upload speed limit is not reached.
  223. * src/ActivePeerConnectionCommand.cc
  224. * src/ActivePeerConnectionCommand.h
  225. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  226. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  227. to make room more fleshy, recently found peers.
  228. Peer::_badConditionStartTime is not used anymore. Consider to remove
  229. it.
  230. * src/DefaultPeerStorage.cc
  231. * test/DefaultPeerStorageTest.cc
  232. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  233. Returns cached data only when the previous receiveHandshake() is called
  234. with peek = true.
  235. * src/PeerConnection.cc (receiveHandshake)
  236. * src/PeerConnection.h (receiveHandshake)
  237. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  238. Changed default value of -s option from 1 to 5.
  239. Also max value of -s option is changed from 5 to 16.
  240. * src/HelpItemFactory.cc
  241. * src/OptionHandlerFactory.cc
  242. * src/option_processing.cc
  243. * src/usage_text.h
  244. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  245. Changed -s options behavior. Now it means the number of connections
  246. made simultaneously in each http/ftp download.
  247. If 1 URL is specified, the behavior is the same with old implementation.
  248. If -s N is given and more than N URLs are specified, first N URLs are
  249. used and remaining URLs are used for backup. If less than N URLs are
  250. specified, some of URLs are used more than once so that totally N
  251. connections are made simultaneously.
  252. * src/main.cc
  253. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  254. Included missing iosfwd or ostream header.
  255. * src/RequestGroupMan.cc
  256. * src/TaggedItem.cc
  257. * src/TaggedItem.h
  258. * src/Util.cc
  259. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  260. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  261. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  262. * src/HttpConnection.cc: Included missing sstream.
  263. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  264. Added --bt-max-open-files option.
  265. * src/DefaultPieceStorage.cc
  266. * src/HelpItemFactory.cc
  267. * src/MultiDiskAdaptor.cc
  268. * src/MultiDiskAdaptor.h
  269. * src/OptionHandlerFactory.cc
  270. * src/option_processing.cc
  271. * src/prefs.cc
  272. * src/prefs.h
  273. * src/usage_text.h
  274. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  275. Fixed the bug that aria2 aborts when a path to a directory is given
  276. in command-line.
  277. * src/ProtocolDetector.cc
  278. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  279. Limited the number files opened in each BitTorrent download. The default
  280. value is 100. The option to change this value will be added.
  281. * src/MultiDiskAdaptor.cc
  282. * src/MultiDiskAdaptor.h
  283. * src/MultiFileAllocationIterator.cc
  284. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  285. Fixed the bug that HTTP downloads don't start with old libraries.
  286. * src/HttpHeaderProcessor.cc
  287. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  288. Use empty() instead of size() > 0.
  289. * src/HttpConnection.cc
  290. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  291. Drop connection if the incoming peer ID is the same with localhost's
  292. one. The previous implementation drops connection when incoming peer's
  293. IP address is the same with localhost's one.
  294. * src/PeerListenCommand.cc
  295. * src/DefaultBtInteractive.cc
  296. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  297. Returns cached data without checking whether socket is readable
  298. if the cache is available.
  299. * src/PeerConnection.cc (receiveHandshake)
  300. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  301. Included stdint.h
  302. * src/common.h
  303. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  304. Removed duplicate HAVE_GETTIMEOFDAY
  305. * src/Makefile.am
  306. * src/Makefile.in
  307. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  308. Use interval as a minInterval when minInterval is not supplied.
  309. * src/DefaultBtAnnounce.cc
  310. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  311. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  312. attempt is failed, then 2nd attempt get kicked out more quickly.
  313. And it is now static const member of DefaultBtAnnounce.
  314. * src/DefaultBtAnnounce.h
  315. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  316. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  317. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  318. * src/ActivePeerConnectionCommand.cc
  319. * src/BtConstants.h
  320. * src/BtRuntime.h
  321. * src/DHTGetPeersCommand.cc
  322. * src/DefaultBtAnnounce.cc
  323. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  324. BtRuntime::MAX_PEERS.
  325. * src/DefaultPeerStorage.h
  326. * src/InitiatorMSEHandshakeCommand.cc
  327. * src/PeerInitiateConnectionCommand.cc
  328. * src/PeerInteractionCommand.cc
  329. * src/PeerReceiveHandshakeCommand.cc
  330. * src/TrackerWatcherCommand.cc
  331. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  332. Always Connect to _numNewConnection
  333. * src/ActivePeerConnectionCommand.cc
  334. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  335. Made `begin' unsigned int.
  336. * src/GrowSegment.h
  337. * src/Piece.cc
  338. * src/Piece.h
  339. * src/PiecedSegment.cc
  340. * src/PiecedSegment.h
  341. * src/Segment.h
  342. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  343. Calculate piece hash when data is arrived if the data is arrived in
  344. order. This removes additional read operation for hash calculation.
  345. If the data is arrived in out of order, the hash is calucated when the
  346. piece is completed. This is the same behavior as the old implementation.
  347. * src/BtPieceMessage.cc
  348. * src/DefaultBtProgressInfoFile.cc
  349. * src/DefaultPieceStorage.cc
  350. * src/DownloadCommand.cc
  351. * src/DownloadCommand.h
  352. * src/DownloadEngine.cc
  353. * src/GrowSegment.cc
  354. * src/GrowSegment.h
  355. * src/Piece.cc
  356. * src/Piece.h
  357. * src/PiecedSegment.cc
  358. * src/PiecedSegment.h
  359. * src/Segment.h
  360. * test/PieceTest.cc
  361. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  362. Try to keep the ordering of outgoing piece message.
  363. * src/DefaultBtMessageDispatcher.cc
  364. (DefaultBtMessageDispatcher::sendMessages)
  365. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  366. Fixed busy loop when error/hup epoll events occur.
  367. * src/AbstractCommand.cc
  368. * src/PeerAbstractCommand.cc
  369. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  370. Added --bt-request-peer-speed-limit option, which was a constant
  371. SLOW_SPEED_THRESHOLD.
  372. * src/ActivePeerConnectionCommand.cc
  373. * src/ActivePeerConnectionCommand.h
  374. * src/BtConstants.h
  375. * src/HelpItemFactory.cc
  376. * src/OptionHandlerFactory.cc
  377. * src/PeerReceiveHandshakeCommand.cc
  378. * src/option_processing.cc
  379. * src/prefs.cc
  380. * src/prefs.h
  381. * src/usage_text.h
  382. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  383. Removed repeated call of getTopDirPath(). Instead, call it once and
  384. cache the result.
  385. * src/MultiDiskAdaptor.cc
  386. * src/MultiDiskAdaptor.h
  387. (mkdir, openFile, initAndOpenFile, openExistingFile)
  388. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  389. Fixed compile error on debian etch.
  390. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  391. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  392. it is undefined.
  393. * src/Util.cc (ULLONG_MAX)
  394. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  395. Added epoll support. Use epoll if it is available. If not, use select.
  396. When async dns is enabled in compile time, epoll support is enabled
  397. only when aria2 is built with c-ares. This condition statement is
  398. defined in a2io.h.
  399. Currently aria2 supports both c-ares and ares, but ares is maintained
  400. for quite a while and debian already has c-ares package, ares support
  401. will be dropped in the future version.
  402. * configure.ac
  403. * src/AbstractCommand.cc
  404. * src/AsyncNameResolver.cc
  405. * src/AsyncNameResolver.h
  406. * src/Command.cc
  407. * src/Command.h
  408. * src/DownloadEngine.cc
  409. * src/DownloadEngine.h
  410. * src/PeerAbstractCommand.cc
  411. * src/SocketCore.cc
  412. * src/SocketCore.h
  413. * src/a2io.h
  414. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  415. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  416. directive.
  417. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  418. Do not do write operation to /dev/null file.
  419. * src/LogFactory.cc
  420. * src/SimpleLogger.cc
  421. Replaced vasprintf with vsnprintf
  422. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  423. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  424. * src/BtRequestMessage.cc
  425. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  426. for segmentation fault caused by previous commit.
  427. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  428. Reduced the usage of gettimeofday().
  429. * src/DefaultBtMessageDispatcher.cc
  430. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  431. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  432. * src/RequestSlot.cc
  433. * src/RequestSlot.h
  434. (RequestSlot::isTimeout)
  435. Made RequestSlot have a reference to Piece object to avoid find
  436. Piece repeatedly.
  437. * src/DefaultBtMessageDispatcher.cc
  438. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  439. * src/RequestSlot.cc
  440. * src/RequestSlot.h
  441. (RequestSlot::getPiece)
  442. * test/DefaultBtMessageDispatcherTest.cc
  443. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  444. * src/TimeA2.cc
  445. * src/TimeA2.h
  446. (Time::difference): New function.
  447. (Time::elapsed): Done optimization.
  448. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  449. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  450. directive.
  451. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  452. * src/option_processing.cc: Added missing `defined' keyword to #if
  453. directive.
  454. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  455. Bump up version number to 0.13.2+1
  456. * src/configure.ac
  457. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  458. Refactored broken outstanding piece handling.
  459. * src/DefaultPieceStorage.cc
  460. * src/DefaultPieceStorage.h
  461. * src/Piece.cc
  462. * src/Piece.h
  463. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  464. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  465. name collision of static variable and predefined macro.
  466. * src/BtContext.cc
  467. * src/BtContext.h
  468. * src/CookieBoxFactory.cc
  469. * src/CookieBoxFactory.h
  470. * src/CookieParser.cc
  471. * src/CookieParser.h
  472. * src/DefaultBtContext.cc
  473. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  474. * src/RequestGroup.cc
  475. (RequestGroup::createInitialCommand): Use empty() instead of size().
  476. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  477. * Release 0.13.2
  478. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  479. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  480. * po/fr.po
  481. * po/ja.po
  482. * po/aria2c.pot
  483. * po/*.po
  484. * po/*.gmo
  485. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  486. Bump up version number to 0.13.2
  487. * src/configure.ac
  488. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  489. Refactord.
  490. * src/RequestGroupMan.cc
  491. (removeStoppedGroup)
  492. (fillRequestGroupFromReserver)
  493. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  494. Fixed compile error on Ubuntu.
  495. * src/BtPieceMessage.cc
  496. * src/MessageDigestHelper.cc
  497. * src/Util.cc
  498. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  499. Fixed compile error when configured with --disable-bittorrent
  500. * test/DownloadHandlerFactoryTest.cc
  501. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  502. Done make update-po
  503. * po/aria2c.pot
  504. * po/*.po
  505. * po/*.gmo
  506. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  507. Bump up version number to 0.13.2rc.
  508. * src/configure.ac
  509. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  510. Made option name bold. Updated SYNOPSIS to make it more readable.
  511. * doc/aria2c.1.txt
  512. * doc/aria2c.1
  513. * doc/aria2c.1.html
  514. * src/version_usage.cc
  515. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  516. Refactored. Use std::string instead of size and char*.
  517. * Data.cc
  518. * Data.h
  519. * test/Data.cc
  520. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  521. Added trimSelf(). Rewritten trim() to use trimSelf().
  522. * Util.cc
  523. * Util.h
  524. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  525. * src/ChunkChecksum.h (getChecksum): Return const reference.
  526. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  527. Fixed compile error when configured with --disable-metalink.
  528. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  529. * test/FeatureConfigTest.cc
  530. * test/DownloadHandlerFactoryTest.cc
  531. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  532. Fixed compile error when configured with --without-gnutls
  533. --without-openssl
  534. * src/main.cc
  535. * test/DefaultBtProgressInfoFileTest.cc
  536. * test/SegmentManTest.cc
  537. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  538. Fixed compile error with OpenSSL.
  539. * src/IteratableChunkChecksumValidator.cc
  540. * src/LibsslDHKeyExchange.h
  541. * src/MessageDigestHelper.cc
  542. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  543. Revert the default value of --max-concurrent-downloads to 5.
  544. Revert the default value of --metalink-servers to 5.
  545. Man pages was also updated.
  546. * src/option_processing.cc
  547. * doc/aria2c.1.txt
  548. * doc/aria2c.1.html
  549. * doc/aria2c.1
  550. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  551. Returns const reference:
  552. DownloadContext::getPieceHash, DownloadContext::getName,
  553. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  554. BtContext::getInfoHashAsString,
  555. * src/BtContext.h
  556. * src/DefaultBtContext.cc
  557. * src/DefaultBtContext.h
  558. * src/DownloadContext.h
  559. * src/SingleFileDownloadContext.h
  560. * test/MockBtContext.h
  561. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  562. * src/RequestGroup.h (getDir): Removed.
  563. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  564. Returns const reference. The internal urlencode function was optimized
  565. a little bit.
  566. * src/Request.cc
  567. * src/Request.h
  568. * src/HttpRequest.cc
  569. * src/HttpRequest.h
  570. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  571. Defined option name and possible values as std::string to reduce
  572. temporary string object creation in runtime.
  573. * src/HelpItemFactory.cc
  574. * src/LogFactory.cc
  575. * src/Option.cc
  576. * src/OptionHandlerFactory.cc
  577. * src/option_processing.cc
  578. * src/prefs.cc
  579. * src/prefs.h
  580. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  581. Return const reference.
  582. * src/DownloadHandlerConstants.cc
  583. * src/DownloadHandlerConstants.h
  584. (getMetalinkExtensions)
  585. (getMetalinkContentTypes)
  586. (getBtExtensions)
  587. (getBtContentTypes)
  588. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  589. * src/HttpHeader.cc (get): Rewritten.
  590. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  591. Make HttpHeader::getFirst(...) return const reference.
  592. * src/HttpHeader.cc
  593. * src/HttpHeader.h
  594. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  595. Use Option::getAsBool(...) instead of Option::get(...) and compare
  596. it with V_TRUE.
  597. * src/DefaultPieceStorage.cc
  598. * src/DownloadCommand.cc
  599. * src/FtpNegotiationCommand.cc
  600. * src/HttpRequest.cc
  601. * src/InitiateConnectionCommand.cc
  602. * src/RequestGroup.cc
  603. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  604. Made Option::get(...) return const reference of std::string.
  605. * src/Option.cc
  606. * src/Option.h
  607. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  608. Replaced std:copy with insert.
  609. * src/DefaultBtMessageDispatcher.cc
  610. * src/DefaultPieceStorage.cc
  611. * src/DownloadEngineFactory.cc
  612. * src/RequestGroup.cc
  613. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  614. Included SocketCore.h to fix compiler warning.
  615. * src/InitiateConnectionCommand.cc
  616. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  617. Put piece selection strategy algorithm to RarestPieceSelector class,
  618. Added a switch to choose whether randomized selection so that unit
  619. tests emit same results in, possibly, win32.
  620. * src/DefaultPieceStorage.cc
  621. * src/DefaultPieceStorage.h
  622. * src/RarestPieceSelector.cc
  623. * src/RarestPieceSelector.h
  624. * test/DefaultPieceStorageTest.cc
  625. * test/RarestPieceSelectorTest.cc
  626. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  627. Don't pool connection if HTTP proxy is enabled.
  628. * src/FtpFinishDownloadCommand.cc
  629. * src/FtpNegotiationCommand.cc
  630. * src/HttpSkipResponseCommand.cc
  631. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  632. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  633. * src/AbstractCommand.cc
  634. * src/AbstractCommand.h
  635. * src/ActivePeerConnectionCommand.cc
  636. * src/FtpInitiateConnectionCommand.cc
  637. * src/HttpInitiateConnectionCommand.cc
  638. * src/InitiateConnectionCommandFactory.cc
  639. * src/PeerAbstractCommand.cc
  640. * src/PeerAbstractCommand.h
  641. * src/PeerInitiateConnectionCommand.cc
  642. * src/TrackerWatcherCommand.cc
  643. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  644. Sort RequestSlot in ascending order and manipulate them using
  645. lower_bound.
  646. * src/DefaultBtMessageDispatcher.cc
  647. * src/DefaultBtMessageDispatcher.h
  648. (getMessageQueue): Added const qualifier.
  649. (getRequestSlots): Added const qualifier.
  650. (sendMessages): Use empty() instead of size().
  651. (doCancelSendingPieceAction): Use HandleEvent object.
  652. (doAbortOutstandingRequestAction): Rewritten.
  653. (doChokedAction): Rewritten.
  654. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  655. (isOutstandingRequest): Rewritten.
  656. (getOutstandingRequest): Rewritten.
  657. (removeOutstandingRequest): Rewritten.
  658. (addOutstandingRequest): Rewritten.
  659. * src/RequestSlot.cc
  660. * src/RequestSlot.h
  661. (operator=): Rewritten.
  662. (operator!=): New function.
  663. (operator<): New function.
  664. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  665. * src/DefaultBtRequestFactory.cc
  666. (doChokedAction): Rewritten.
  667. (removeCompletedPiece): Rewritten.
  668. (removeTargetPiece): Rewritten.
  669. (createRequestMessages): Added the debug log.
  670. (createRequestMessagesOnEndGame: Added the debug log.
  671. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  672. Added the debug log message.
  673. * src/BtPieceMessage.cc (doReceivedAction)
  674. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  675. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  676. used lower_bound to process them rather than linear search.
  677. * src/DHTPeerAnnounceStorage.cc
  678. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  679. Call subtractPieceStats from ~PeerInteractionCommand only when the
  680. peer has at least one completed piece.
  681. * src/Peer.cc
  682. * src/Peer.h
  683. * src/PeerInteractionCommand.cc
  684. * src/PeerSessionResource.cc
  685. * src/PeerSessionResource.h
  686. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  687. Removed unnecessary sorting
  688. * src/DefaultPieceStorage (DefaultPieceStorage)
  689. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  690. Rewritten the portion of the code that mangaes allowed fast indexes.
  691. * src/PeerSessionResource.cc
  692. * src/PeerSessionResource.h
  693. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  694. Removed the invalid string including '\r' from ru.po and
  695. did make update-po.
  696. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  697. Added --log-level and --summary-interval to man page.
  698. * doc/aria2c.1.txt
  699. * doc/aria2c.1.html
  700. * doc/aria2c.1
  701. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  702. Added --log-level option to specify log level. Log messages under
  703. the specified level are not output. Default value is `debug'.
  704. * src/HelpItemFactory.cc
  705. * src/LogFactory.cc
  706. * src/LogFactory.h
  707. * src/Logger.h
  708. * src/OptionHandlerFactory.cc
  709. * src/SimpleLogger.cc
  710. * src/SimpleLogger.h
  711. * src/main.cc
  712. * src/option_processing.cc
  713. * src/prefs.h
  714. * src/usage_text.h
  715. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  716. Print download progress summary of all parallel downloads in specified
  717. interval, default 60 secs. While aria2 could download several files
  718. in parallel (see -j option), it displayed just first download progress,
  719. and the other downloads are hidden from the users. This new feature
  720. prints all downloads currently in-progress to the console so that you
  721. can check the status of all downloads. The interval can be adjusted
  722. by --summary-interval option.
  723. The progress readout is now cut so that all fits in the one line of
  724. console.
  725. * src/ConsoleStatCalc.cc
  726. * src/ConsoleStatCalc.h
  727. * src/HelpItemFactory.cc
  728. * src/OptionHandlerFactory.cc
  729. * src/RequestGroupMan.cc
  730. * src/RequestGroupMan.h
  731. * src/main.cc
  732. * src/option_processing.cc
  733. * src/prefs.h
  734. * src/usage_text.h
  735. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  736. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  737. * src/DownloadEngine.cc (DownloadEngine)
  738. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  739. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  740. defined.
  741. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  742. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  743. Use erase+lower_bound+insert instead of sort.
  744. * src/DefaultPieceStorage.cc (addPieceStats)
  745. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  746. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  747. * src/A2STR.cc
  748. * src/A2STR.h
  749. * src/OptionParser.cc (parse)
  750. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  751. Defined fake filename `[tracker.announce]' as static const std::string.
  752. * src/TrackerWatcherCommand.cc (createRequestGroup)
  753. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  754. Defined default filename `index.html' as static const std::string
  755. * src/SingleFileDownloadContext.cc
  756. * src/SingleFileDownloadContext.h
  757. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  758. Defined "[MEMORY]" as static const std::string.
  759. * src/MemoryBufferPreDownloadHandler.cc (execute)
  760. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  761. Defined control file's version number as static const std::string.
  762. * src/DefaultBtProgressInfoFile.cc
  763. * src/DefaultBtProgressInfoFile.h
  764. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  765. Use Request::METHOD_GET
  766. * src/RequestGroup.cc (createNextCommandWithAdj)
  767. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  768. Defined "OK", "ERR", "INPR" as static const std::string
  769. * src/RequestGroupMan.cc (showDownloadResults)
  770. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  771. Defined default client used in extended handshake as static const
  772. std::string
  773. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  774. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  775. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  776. * src/HttpConnection.cc (eraseConfidentialInfo)
  777. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  778. Defined default ftp user and password as static const std::string
  779. * src/AuthConfigFactory.cc
  780. * src/AuthConfigFactory.h
  781. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  782. Defined strings used in netrc as static const std::string
  783. * src/Netrc.cc
  784. * src/Netrc.h
  785. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  786. Defined HTTP status as static const std::string
  787. * src/AbstractProxyResponseCommand.cc
  788. * src/HttpHeader.cc
  789. * src/HttpHeader.h
  790. * src/HttpResponse.cc
  791. * src/HttpResponseCommand.cc
  792. * src/HttpSkipResponseCommand.cc
  793. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  794. Defined "\r\n", "A", "I" as static const std::string
  795. * src/A2STR.cc
  796. * src/A2STR.h
  797. * src/FtpConnection.cc
  798. * src/FtpConnection.h
  799. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  800. Added COLON_C(".") and used it in Request::parseUrl()
  801. * src/A2STR.cc
  802. * src/A2STR.h
  803. * src/Request.cc (parseUrl)
  804. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  805. Changed the type of padName from `const std::string&' to `const char*'.
  806. * src/MSEHandshake.cc (verifyPadLength)
  807. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  808. Defined "sha1" as static const std::string.
  809. * src/MetalinkParserController.cc
  810. * src/MetalinkParserController.h
  811. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  812. Defined message digest algorithm name as static const std::string
  813. * src/DHTTokenTracker.cc
  814. * src/DHTUtil.cc
  815. * src/DefaultBtContext.cc
  816. * src/MSEHandshake.cc
  817. * src/MessageDigestHelper.cc
  818. * src/Peer.cc
  819. * src/messageDigest.cc
  820. * src/messageDigest.h
  821. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  822. Made string literals used in SAX parser static const std::string.
  823. * src/FileMetalinkParserState.cc
  824. * src/FileMetalinkParserState.h
  825. * src/FilesMetalinkParserState.cc
  826. * src/FilesMetalinkParserState.h
  827. * src/InitialMetalinkParserState.cc
  828. * src/InitialMetalinkParserState.h
  829. * src/MetalinkMetalinkParserState.cc
  830. * src/MetalinkMetalinkParserState.h
  831. * src/PiecesMetalinkParserState.cc
  832. * src/PiecesMetalinkParserState.h
  833. * src/ResourcesMetalinkParserState.cc
  834. * src/ResourcesMetalinkParserState.h
  835. * src/VerificationMetalinkParserState.cc
  836. * src/VerificationMetalinkParserState.h
  837. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  838. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  839. * src/A2STR.cc
  840. * src/A2STR.h
  841. * src/File.cc
  842. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  843. Defined static const std::string IP("ip"), PORT("port") and use them
  844. instead of string literals.
  845. * src/DefaultPeerListProcessor.cc
  846. * src/DefaultPeerListProcessor.h
  847. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  848. Made string literals for torrent file processing static const
  849. std::string.
  850. * src/BtContext.cc
  851. * src/BtContext.h
  852. * src/DefaultBtContext.cc
  853. * src/DefaultBtContext.h
  854. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  855. Made string literal for tracker response static const std::string
  856. * src/BtAnnounce.cc
  857. * src/BtAnnounce.h
  858. * src/DefaultBtAnnounce.cc
  859. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  860. Use DHTMessage::T instead of "t".
  861. * src/DHTMessageTracker.cc (messageArrived)
  862. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  863. Made keyName static const. Made trimmed charset static const
  864. std::string.
  865. * src/Util.cc (getContentDispositionFilename)
  866. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  867. Made USER_AGENT const. Made "/" static const std::string.
  868. * src/A2STR.cc
  869. * src/A2STR.h
  870. * src/HttpRequest.cc
  871. * src/HttpRequest.h
  872. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  873. Made string listeral to static const std::string:
  874. "Content-Range", "Content-Length"
  875. * src/HttpHeader.cc
  876. * src/HttpHeader.h
  877. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  878. Made string listeral to static const std::string.
  879. * src/HttpConnection.cc
  880. * src/HttpHeader.cc
  881. * src/HttpHeader.h
  882. * src/HttpResponse.cc
  883. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  884. Made string listeral to static const std::string.
  885. * src/A2STR.cc
  886. * src/A2STR.h
  887. * src/SimpleLogger.cc
  888. * src/SimpleLogger.h
  889. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  890. Made string literal to static const std::string.
  891. Rewritten CookieParser::setField.
  892. * src/A2STR.cc
  893. * src/A2STR.h
  894. * src/CookieBoxFactory.cc
  895. * src/CookieBoxFactory.h
  896. * src/CookieParser.cc
  897. * src/CookieParser.h
  898. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  899. Made string literal to static const std::string
  900. * src/DHTAbstractMessage.cc
  901. * src/DHTAnnouncePeerMessage.cc
  902. * src/DHTAnnouncePeerMessage.h
  903. * src/DHTAnnouncePeerReplyMessage.cc
  904. * src/DHTAnnouncePeerReplyMessage.h
  905. * src/DHTFindNodeMessage.cc
  906. * src/DHTFindNodeMessage.h
  907. * src/DHTFindNodeReplyMessage.cc
  908. * src/DHTFindNodeReplyMessage.h
  909. * src/DHTGetPeersMessage.cc
  910. * src/DHTGetPeersMessage.h
  911. * src/DHTGetPeersReplyMessage.cc
  912. * src/DHTGetPeersReplyMessage.h
  913. * src/DHTMessage.cc
  914. * src/DHTMessage.h
  915. * src/DHTMessageFactoryImpl.cc
  916. * src/DHTMessageReceiver.cc
  917. * src/DHTPingMessage.cc
  918. * src/DHTPingMessage.h
  919. * src/DHTPingReplyMessage.cc
  920. * src/DHTPingReplyMessage.h
  921. * src/DHTQueryMessage.cc
  922. * src/DHTQueryMessage.h
  923. * src/DHTResponseMessage.cc
  924. * src/DHTResponseMessage.h
  925. * src/DHTUnknownMessage.cc
  926. * src/DHTUnknownMessage.h
  927. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  928. Made string literal to static const std::string
  929. * src/BtChokeMessage.cc (toString)
  930. * src/BtHaveAllMessage.cc (toString)
  931. * src/BtHaveNoneMessage.cc (toString)
  932. * src/BtInterestedMessage.cc (toString)
  933. * src/BtNotInterestedMessage.cc (toString)
  934. * src/BtUnchokeMessage.cc (toString)
  935. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  936. Replaced "" with static const variable A2STR::NIL.
  937. Replaced string comparison against "" with std::string::empty().
  938. Added PROTO_* to Request class and use them as a protocol string
  939. constant.
  940. Made "started", "stopped", "completed" static const variable in
  941. AnnounceList class.
  942. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  943. Updated translations. Great thanks to translators.
  944. * po/ca.po
  945. * po/de.po
  946. * po/fr.po
  947. * po/it.po
  948. * po/ja.po
  949. * po/ru.po
  950. * po/zh_CN.po
  951. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  952. Updated man page; categorized options and fixed typo.
  953. * doc/aria2c.1.txt
  954. * doc/aria2c.1.html
  955. * doc/aria2c.1
  956. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  957. Removed const ref
  958. * src/MetalinkEntry.cc (AddProtocolPreference)
  959. * src/RequestGroup.cc (FindServerHostByHostname)
  960. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  961. Rewritten Accept-Features handling.
  962. * src/HttpRequestCommand.cc (createHttpRequest)
  963. * src/a2functional.h
  964. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  965. Changed method signature:
  966. DHTAbstractNodeLookupTask::toEntries
  967. * src/DHTAbstractNodeLookupTask.cc
  968. * src/DHTAbstractNodeLookupTask.h
  969. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  970. Changed method signature:
  971. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  972. * src/BtContext.h
  973. * src/DefaultBtContext.cc
  974. * src/DefaultBtContext.h
  975. * src/DefaultBtInteractive.cc
  976. * test/DefaultBtContextTest.cc
  977. * test/MockBtContext.h
  978. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  979. Changed method signature:
  980. MultiFileAllocationIterator::makeDiskWriterEntries
  981. * src/MultiFileAllocationIterator.cc
  982. * src/MultiFileAllocationIterator.h
  983. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  984. Changed method sinature:
  985. MetalinkEntry::toFileEntry,
  986. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  987. Metalinker::queryEntry
  988. * src/Metalink2RequestGroup.cc
  989. * src/MetalinkEntry.cc
  990. * src/MetalinkEntry.h
  991. * src/MetalinkHelper.cc
  992. * src/MetalinkHelper.h
  993. * src/Metalinker.cc
  994. * src/Metalinker.h
  995. * src/main.cc
  996. * test/MetalinkHelperTest.cc
  997. * test/MetalinkerTest.cc
  998. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  999. Changed method sinature:
  1000. RequestGroup::getURIs
  1001. * src/RequestGroup.cc
  1002. * src/RequestGroup.h
  1003. * test/Metalink2RequestGroupTest.cc
  1004. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1005. Changed method signature:
  1006. PeerListProcessor::extractPeer
  1007. * src/CompactPeerListProcessor.cc
  1008. * src/CompactPeerListProcessor.h
  1009. * src/DefaultBtAnnounce.cc
  1010. * src/DefaultPeerListProcessor.cc
  1011. * src/DefaultPeerListProcessor.h
  1012. * src/DelegatingPeerListProcessor.cc
  1013. * src/DelegatingPeerListProcessor.h
  1014. * src/PeerListProcessor.h
  1015. * src/UTPexExtensionMessage.cc
  1016. * test/DefaultPeerListProcessorTest.cc
  1017. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1018. Changed method signature:
  1019. BtRequestFactory::createRequestMessages,
  1020. BtRequestFactory::createRequestMessagesOnEndGame
  1021. * src/BtRequestFactory.h
  1022. * src/DefaultBtInteractive.cc
  1023. * src/DefaultBtRequestFactory.cc
  1024. * src/DefaultBtRequestFactory.h
  1025. * test/DefaultBtRequestFactoryTest.cc
  1026. * test/MockBtRequestFactory.h
  1027. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1028. Changed method signature:
  1029. PieceStorage::getInFlightPieces
  1030. * src/DefaultBtProgressInfoFile.cc
  1031. * src/DefaultPieceStorage.cc
  1032. * src/DefaultPieceStorage.h
  1033. * src/PieceStorage.h
  1034. * src/UnknownLengthPieceStorage.cc
  1035. * src/UnknownLengthPieceStorage.h
  1036. * test/DefaultBtProgressInfoFileTest.cc
  1037. * test/MockPieceStorage.h
  1038. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1039. Changed method signature:
  1040. PostDownloadHandler::getNextRequestGroups
  1041. Metalink2RequestGroup::generate
  1042. RequestGroup::postDownloadProcessing
  1043. * src/BtPostDownloadHandler.cc
  1044. * src/BtPostDownloadHandler.h
  1045. * src/Metalink2RequestGroup.cc
  1046. * src/Metalink2RequestGroup.h
  1047. * src/MetalinkPostDownloadHandler.cc
  1048. * src/MetalinkPostDownloadHandler.h
  1049. * src/PostDownloadHandler.h
  1050. * src/RequestGroup.cc
  1051. * src/RequestGroup.h
  1052. * src/RequestGroupMan.cc
  1053. * src/main.cc
  1054. * test/BtPostDownloadHandlerTest.cc
  1055. * test/Metalink2RequestGroupTest.cc
  1056. * test/MetalinkPostDownloadHandlerTest.cc
  1057. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1058. Rewritten AccRequestGroup
  1059. * src/main.cc
  1060. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1061. Rewritten.
  1062. * src/TaggedItem.cc (toTagString)
  1063. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1064. Rewritten Accept-Features handling.
  1065. * src/HttpRequestCommand.cc (createHttpRequest)
  1066. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1067. Rewritten accept types handling.
  1068. * HttpRequest.cc (createRequest)
  1069. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1070. Rewritten
  1071. * src/FeatureConfig.cc (featureSummary)
  1072. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1073. Changed method signature:
  1074. PeerStorage::getActivePeers
  1075. * src/DHTPeerAnnounceEntry.cc
  1076. * src/DefaultPeerStorage.cc
  1077. * src/DefaultPeerStorage.h
  1078. * src/PeerStorage.h
  1079. * test/DefaultPeerStorageTest.cc
  1080. * test/MockPeerStorage.h
  1081. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1082. Changed method signature:
  1083. DHTPeerAnnounceStorage::getPeers,
  1084. DHTPeerAnnounceEntry::getPeers
  1085. * src/DHTGetPeersMessage.cc
  1086. * src/DHTPeerAnnounceEntry.cc
  1087. * src/DHTPeerAnnounceEntry.h
  1088. * src/DHTPeerAnnounceStorage.cc
  1089. * src/DHTPeerAnnounceStorage.h
  1090. * test/DHTAnnouncePeerMessageTest.cc
  1091. * test/DHTPeerAnnounceEntryTest.cc
  1092. * test/DHTPeerAnnounceStorageTest.cc
  1093. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1094. Changed method signature:
  1095. NameResolver::resolve
  1096. * src/DHTEntryPointNameResolveCommand.cc
  1097. * src/InitiateConnectionCommand.cc
  1098. * src/NameResolver.cc
  1099. * src/NameResolver.h
  1100. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1101. Changed method signature:
  1102. PieceStorage::getAdvertisedPieceIndexes
  1103. * src/DefaultBtInteractive.cc
  1104. * src/DefaultPieceStorage.cc
  1105. * src/DefaultPieceStorage.h
  1106. * src/PieceStorage.h
  1107. * src/UnknownLengthPieceStorage.h
  1108. * test/MockPieceStorage.h
  1109. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1110. Changed method signature:
  1111. SegmentMan::getInFlightSegment
  1112. * src/AbstractCommand.cc
  1113. * src/SegmentMan.cc
  1114. * src/SegmentMan.h
  1115. * test/SegmentManTest.cc
  1116. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1117. Changed method signature:
  1118. DHTAbstractNodeLookupTask::getNodesFromMessage
  1119. * src/DHTAbstractNodeLookupTask.cc
  1120. * src/DHTAbstractNodeLookupTask.h
  1121. * src/DHTNodeLookupTask.cc
  1122. * src/DHTNodeLookupTask.h
  1123. * src/DHTPeerLookupTask.cc
  1124. * src/DHTPeerLookupTask.h
  1125. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1126. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  1127. * src/AbstractCommand.cc
  1128. * src/BtCheckIntegrityEntry.cc
  1129. * src/BtCheckIntegrityEntry.h
  1130. * src/BtFileAllocationEntry.cc
  1131. * src/BtFileAllocationEntry.h
  1132. * src/BtSetup.cc
  1133. * src/BtSetup.h
  1134. * src/CheckIntegrityCommand.cc
  1135. * src/CheckIntegrityEntry.h
  1136. * src/ChecksumCheckIntegrityEntry.cc
  1137. * src/ChecksumCheckIntegrityEntry.h
  1138. * src/DHTSetup.cc
  1139. * src/DHTSetup.h
  1140. * src/DownloadEngine.cc
  1141. * src/FileAllocationCommand.cc
  1142. * src/FileAllocationEntry.h
  1143. * src/RequestGroup.cc
  1144. * src/RequestGroup.h
  1145. * src/RequestGroupMan.cc
  1146. * src/RequestGroupMan.h
  1147. * src/StreamCheckIntegrityEntry.cc
  1148. * src/StreamCheckIntegrityEntry.h
  1149. * src/StreamFileAllocationEntry.cc
  1150. * src/StreamFileAllocationEntry.h
  1151. * src/TrackerWatcherCommand.cc
  1152. * src/a2functional.h
  1153. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1154. Changed method signature:
  1155. BNode::findClosestKNodes, BNode:: enumerateBucket,
  1156. DHTBucket::getGoodNodes,
  1157. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  1158. * src/BNode.cc
  1159. * src/BNode.h
  1160. * src/DHTAbstractNodeLookupTask.cc
  1161. * src/DHTAutoSaveCommand.cc
  1162. * src/DHTBucket.cc
  1163. * src/DHTBucket.h
  1164. * src/DHTBucketRefreshTask.cc
  1165. * src/DHTFindNodeMessage.cc
  1166. * src/DHTGetPeersMessage.cc
  1167. * src/DHTRoutingTable.cc
  1168. * src/DHTRoutingTable.h
  1169. * test/BNodeTest.cc
  1170. * test/DHTBucketTest.cc
  1171. * test/DHTRoutingTableTest.cc
  1172. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1173. In piece selection functions, Pass std::deque<...> by reference rather
  1174. than returning it.
  1175. * src/BitfieldMan.cc
  1176. * src/BitfieldMan.h
  1177. * src/DefaultBtRequestFactory.cc
  1178. * src/DefaultPieceStorage.cc
  1179. * src/Piece.cc
  1180. * src/Piece.h
  1181. * test/BitfieldManTest.cc
  1182. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1183. Implemented rarest piece first piece selection strategy.
  1184. * src/AbstractBtMessage.cc
  1185. * src/AbstractBtMessage.h
  1186. * src/BitfieldMan.cc
  1187. * src/BitfieldMan.h
  1188. * src/BtBitfieldMessage.cc
  1189. * src/BtHaveAllMessage.cc
  1190. * src/BtHaveMessage.cc
  1191. * src/DefaultPieceStorage.cc
  1192. * src/DefaultPieceStorage.h
  1193. * src/PeerInteractionCommand.cc
  1194. * src/PieceStorage.h
  1195. * src/UnknownLengthPieceStorage.h
  1196. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1197. Rewritten readData and writeData.
  1198. * src/MultiDiskAdaptor.cc
  1199. * src/MultiDiskAdaptor.h
  1200. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1201. Move \n out of the message "Usage: ...".
  1202. * src/version_usage.cc
  1203. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1204. Bump up version number to 0.13.2b.
  1205. * configure.ac
  1206. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1207. Added const qualifier to argument Exception& e.
  1208. * src/Logger.h
  1209. * src/SimpleLogger.cc
  1210. * src/SimpleLogger.h
  1211. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1212. Pool connection when CWD, SIZE command fails.
  1213. * src/FtpNegotiationCommand.cc
  1214. * src/FtpNegotiationCommand.h
  1215. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1216. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  1217. * src/HttpResponseCommand.cc
  1218. * src/HttpSkipResponseCommand.cc
  1219. * src/HttpSkipResponseCommand.h
  1220. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1221. Pool connection when a server returns 4xx, 5xx responses.
  1222. * src/HttpNullDownloadCommand.cc
  1223. * src/HttpNullDownloadCommand.h
  1224. * src/HttpResponse.cc
  1225. * src/HttpResponse.h
  1226. * src/HttpResponseCommand.cc
  1227. * src/HttpResponseCommand.h
  1228. * test/HttpResponseTest.cc
  1229. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1230. Print usage when no URL is specifed or bad command-line option is
  1231. specified.
  1232. * src/HelpItemFactory.cc
  1233. * src/help_tags.h
  1234. * src/option_processing.cc
  1235. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1236. Removed duplicate log message.
  1237. * src/AbstractCommand.cc (asyncResolveHostname)
  1238. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1239. Updated man page: --async-dns and --ftp-reuse-connection were added.
  1240. Changed -j option's default value from 5 to 1.
  1241. Added new examples using protocol auto detection feature.
  1242. Removed -T, -M usage where it can be omitted.
  1243. * doc/aria2c.1.txt
  1244. * doc/aria2c.1.html
  1245. * doc/aria2c.1.txt
  1246. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1247. Updated command-line usage text, so that it tells users that they
  1248. can specify any number of torrent files and metalink files in
  1249. command-line.
  1250. * src/version_usage.cc
  1251. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1252. Changed the default value of -j option to 1.
  1253. * src/HelpItemFactory.cc
  1254. * src/option_processing.cc
  1255. * src/usage_text.h
  1256. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1257. Added the ability to reuse connection in FTP and it is enabled by
  1258. default. It can be disabled by --ftp-reuse-connection=false option.
  1259. * src/Command.cc
  1260. * src/DownloadCommand.cc
  1261. * src/FtpDownloadCommand.cc
  1262. * src/FtpDownloadCommand.h
  1263. * src/FtpFinishDownloadCommand.cc
  1264. * src/FtpFinishDownloadCommand.h
  1265. * src/FtpInitiateConnectionCommand.cc
  1266. * src/FtpNegotiationCommand.cc
  1267. * src/FtpNegotiationCommand.h
  1268. * src/HelpItemFactory.cc
  1269. * src/Makefile.am
  1270. * src/Makefile.in
  1271. * src/OptionHandlerFactory.cc
  1272. * src/option_processing.cc
  1273. * src/prefs.h
  1274. * src/usage_text.h
  1275. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1276. Call Command::transitStatus() before calling Command::execute(),
  1277. so that the status change made in execute() is not cleared.
  1278. * src/DownloadEngine.cc
  1279. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1280. Removed forward declaration of SocketCore class.
  1281. * src/HttpDownloadCommand.h
  1282. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1283. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  1284. in InitiateConnectionCommandFactory. They should be set only when
  1285. the protocol is HTTP or HTTPS.
  1286. * src/InitiateConnectionCommandFactory.cc
  1287. * src/RequestGroup.cc
  1288. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1289. Fixed infinite loop in checksum checking.
  1290. * src/IteratableChecksumValidator.cc
  1291. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1292. Set _supportsPersistentConnection to true by default.
  1293. * src/Request.cc
  1294. * src/RequestGroup.cc
  1295. * test/HttpRequestTest.cc
  1296. * test/RequestTest.cc
  1297. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1298. Added timeout to socket pool. The default timeout is 15 seconds,
  1299. which is the same value Apache uses.
  1300. * src/DownloadEngine.cc
  1301. * src/DownloadEngine.h
  1302. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1303. Fixed misuse of multimap::find()
  1304. * src/HttpHeader.cc
  1305. * test/HttpHeaderTest.cc
  1306. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1307. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  1308. option.
  1309. The asynchronous DNS is not capable of IPv6 yet.
  1310. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  1311. least for HTTP download.
  1312. * src/AbstractCommand.cc
  1313. * src/AbstractCommand.h
  1314. * src/AsyncNameResolver.cc
  1315. * src/AsyncNameResolver.h
  1316. * src/DHTEntryPointNameResolveCommand.cc
  1317. * src/DHTEntryPointNameResolveCommand.h
  1318. * src/DownloadEngine.cc
  1319. * src/DownloadEngine.h
  1320. * src/FtpInitiateConnectionCommand.cc
  1321. * src/FtpInitiateConnectionCommand.h
  1322. * src/HelpItemFactory.cc
  1323. * src/HttpInitiateConnectionCommand.cc
  1324. * src/HttpInitiateConnectionCommand.h
  1325. * src/InitiateConnectionCommand.cc
  1326. * src/InitiateConnectionCommand.h
  1327. * src/Makefile.am
  1328. * src/Makefile.in
  1329. * src/NameResolver.cc
  1330. * src/NameResolver.h
  1331. * src/OptionHandlerFactory.cc
  1332. * src/SocketCore.cc
  1333. * src/SocketCore.h
  1334. * src/Util.cc
  1335. * src/Util.h
  1336. * src/option_processing.cc
  1337. * src/prefs.h
  1338. * src/usage_text.h
  1339. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1340. Updated man page: --quiet, --header were added.
  1341. --metalink-servers and --enable-http-keep-alive option were updated.
  1342. * doc/aria2c.1
  1343. * doc/aria2c.1.html
  1344. * doc/aria2c.1.txt
  1345. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1346. Enable HTTP keep-alive by default.
  1347. * src/HelpItemFactory.cc
  1348. * src/option_processing.cc
  1349. * src/usage_text.h
  1350. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1351. Disable http keep-alive if the remote server is not HTTP/1.1.
  1352. * src/HttpConnection.cc
  1353. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1354. Receive content body of 302 response so that the connection can be
  1355. reused later when http keep-alive is enabled.
  1356. * src/HttpNullDownloadCommand.cc
  1357. * src/HttpNullDownloadCommand.h
  1358. * src/HttpResponseCommand.cc
  1359. * src/HttpResponseCommand.h
  1360. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1361. const SharedHandle<Request> -> const SharedHandle<Request>&
  1362. * src/FtpDowndloadCommand.cc
  1363. * src/FtpDowndloadCommand.h
  1364. * src/HttpDownloadCommand.cc
  1365. * src/HttpDownloadCommand.h
  1366. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1367. Fixed the bug that the control file(.aria2 file) is not renamed
  1368. according to tryAutoFileRenaming().
  1369. tryAutoFileRenaming() was rewritten so that if both renamed file and
  1370. its control file exist, use them and continue download.
  1371. The old implementation didn't take into account of control file's
  1372. existence, so basically you couldn't continue download of renamed file.
  1373. * src/BtProgressInfoFile.h
  1374. * src/DefaultBtProgressInfoFile.cc
  1375. * src/DefaultBtProgressInfoFile.h
  1376. * src/NullProgressInfoFile.h
  1377. * src/RequestGroup.cc
  1378. * test/DefaultBtProgressInfoFileTest.cc
  1379. * test/MockBtProgressInfoFile.h
  1380. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1381. Change the default value of --metalink-servers option from `5' to `1'.
  1382. * src/HelpItemFactory.cc
  1383. * src/option_processing.cc
  1384. * src/usage_text.h
  1385. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1386. Reimplemented transparent metalink using Accept request header.
  1387. * src/HttpRequest.cc
  1388. * src/HttpRequest.h
  1389. * src/HttpRequestCommand.cc
  1390. * src/Metalink2RequestGroup.cc
  1391. * src/RequestGroup.cc
  1392. * src/RequestGroup.h
  1393. * test/HttpRequestTest.cc
  1394. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1395. Bump up version number to 0.13.2a
  1396. * configure.ac
  1397. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1398. Updated configure.ac using the result of autoscan.
  1399. * configure.ac
  1400. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1401. Fixed compilation error without gcrypt/openssl.
  1402. * src/DownloadCommand.cc
  1403. * src/DownloadCommand.h
  1404. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1405. Reorganized version information so that it can be displayed in a
  1406. standard terminal screen without scrolling.
  1407. Removed http, ftp from Configuration section, because they are always
  1408. enabled.
  1409. * src/FeatureConfig.cc
  1410. * src/FeatureConfig.h
  1411. * src/main.cc
  1412. * src/messageDigest.cc
  1413. * src/messageDigest.h
  1414. * src/version_usage.cc
  1415. * test/FeatureConfigTest.cc
  1416. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1417. Masked user ID in log.
  1418. * src/FtpConnection.cc (sendUser)
  1419. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1420. Removed query part from filename in HTTP download. The query part means
  1421. the substring after "?" in URL. Firefox seems do the same thing.
  1422. A query part is sometimes very long and not suitable to filename,
  1423. so I think it is better to remove it from filename.
  1424. * src/HttpRequest.cc
  1425. * src/HttpRequest.h
  1426. * src/Request.cc
  1427. * src/Request.h
  1428. * test/HttpRequestTest.cc
  1429. * test/RequestTest.cc
  1430. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1431. Rewritten Exception class. Throw exception object, not its pointer and
  1432. catch by reference, so that remove problematic delete operator for
  1433. catched exception.
  1434. * src/Exception.cc
  1435. * src/Exception.h
  1436. * test/ExceptionTest.cc
  1437. * src/*: All files throwing/catching exception.
  1438. * test/*: All files throwing/catching exception.
  1439. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1440. Now auto protocol detection is enabled without -Z option.
  1441. But there is a important difference between with/without -Z optoin.
  1442. For example, if you type:
  1443. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  1444. then, aria2 interprets there are 3 request groups:
  1445. (1) http://host/file, http://mirror/file <-- multi-source download
  1446. (2) file1.torrent
  1447. (3) file2.metalink
  1448. On the other hand, if you invoke above command with -Z option, it is
  1449. interpreted as 4 request groups:
  1450. (1) http://host/file
  1451. (2) file1.torrent
  1452. (3) file2.metalink
  1453. (4) http://mirror/file
  1454. I think usually user don't mix multi-source URLs and torrent files, so
  1455. there is no big problem here.
  1456. * src/main.cc
  1457. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1458. Fixed the bug that causes segmentaion fault when reading XML containing
  1459. unescapsed character like '&'.
  1460. Also a modification was made which avoids adding unnecessary
  1461. characters stack and appending unused string.
  1462. * src/ExpatMetalinkProcessor.cc
  1463. * src/FileMetalinkParserState.h
  1464. * src/FilesMetalinkParserState.h
  1465. * src/FinMetalinkParserState.h
  1466. * src/HashMetalinkParserState.h
  1467. * src/InitialMetalinkParserState.h
  1468. * src/LanguageMetalinkParserState.h
  1469. * src/MetalinkMetalinkParserState.h
  1470. * src/MetalinkParserState.h
  1471. * src/MetalinkParserStateMachine.cc
  1472. * src/MetalinkParserStateMachine.h
  1473. * src/OSMetalinkParserState.h
  1474. * src/PieceHashMetalinkParserState.h
  1475. * src/PiecesMetalinkParserState.h
  1476. * src/ResourcesMetalinkParserState.h
  1477. * src/SizeMetalinkParserState.h
  1478. * src/SkipTagMetalinkParserState.h
  1479. * src/URLMetalinkParserState.h
  1480. * src/VerificationMetalinkParserState.h
  1481. * src/VersionMetalinkParserState.h
  1482. * src/XML2SAXMetalinkProcessor.cc
  1483. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1484. Added StringFormat class, which internally calls vasprintf.
  1485. operator<< is defined for this class, so it can be used with iostream
  1486. classes nicely. SimpleLogger and following functions are rewritten
  1487. using StringFormat class.
  1488. Besides, now Logger class's methods are non-const, many classes
  1489. that has a const Logger* as a member variable are modified to remove
  1490. const qualifier from the variable declaration.
  1491. * src/HelpItemFactory.cc
  1492. * src/Request.cc
  1493. * src/SimpleLogger.cc
  1494. * src/StringFormat.cc
  1495. * src/StringFormat.h
  1496. * src/Util.cc
  1497. * src/option_processing.cc
  1498. * src/version_usage.cc
  1499. * test/StringFormatTest.cc
  1500. * src/*.h: The classes that has const Logger* as a member variable.
  1501. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1502. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  1503. failed. Also fixed memory link when exception is thrown there.
  1504. * src/main.cc (AccRequestGroup)
  1505. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1506. Added build-in "Accept-Features" support. For now only "metalink" is
  1507. used in this header field.
  1508. This "metalink" value is removed from the list when connecting URLs
  1509. fed by metalink file to avoid loop in "transparent" metlaink.
  1510. * src/HttpRequest.cc
  1511. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  1512. header is also held in this variable. Also renamed setUserHeaders as
  1513. addHeader and it was rewritten to add header not just to clear the old
  1514. value.
  1515. * src/HttpRequestCommand.cc
  1516. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  1517. from "Accept-Features" list.
  1518. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  1519. default.
  1520. * src/RequestGroup.h
  1521. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  1522. * src/a2functional.h: Included <string> because Concat class depends on
  1523. it.
  1524. * test/HttpRequestTest.cc
  1525. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1526. Added comment
  1527. * src/RequestGroup.cc (createNextCommand)
  1528. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1529. Capitalized METHOD_GET and METHOD_HEAD
  1530. * src/Request.cc
  1531. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1532. Added getDownloadResults() method
  1533. * src/RequestGroupMan.cc
  1534. * src/RequestGroupMan.h
  1535. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1536. Fixed the bug that aria2 exits when commands is empty() but
  1537. _routineCommands are not.
  1538. * src/DownloadEngine.cc
  1539. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1540. Use the default value pulled from Option object in HelpItemFactory.
  1541. except options whose defualt value is embedded in a usage text.
  1542. * src/HelpItemFactory.cc
  1543. * src/HelpItemFactory.h
  1544. * src/option_processing.cc
  1545. * src/version_usage.cc
  1546. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1547. Added --quiet option to make aria2 quiet (no console output).
  1548. --quiet option is tagged with ADVANCED.
  1549. * src/HelpItemFactory.cc
  1550. * src/LogFactory.cc
  1551. * src/LogFactory.h
  1552. * src/MultiUrlRequestInfo.cc
  1553. * src/MultiUrlRequestInfo.h
  1554. * src/NullStatCalc.h: New class. This class prints nothing.
  1555. * src/OptionHandlerFactory.cc
  1556. * src/main.cc
  1557. * src/option_processing.cc
  1558. * src/prefs.h
  1559. * src/usage_text.h
  1560. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1561. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  1562. * src/HelpItemFactory.cc (createHelpItems):
  1563. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1564. Fixed compilation error in ExpatMetalinkProcessor.cc
  1565. * src/ExpatMetalinkProcessor.cc
  1566. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1567. Reuse socket if the origin server supports HTTP keep-alive and
  1568. --enable-http-keep-alive or --enable-http-pipelining is given.
  1569. The current implementation doesn't reuse the connections established
  1570. against proxy server.
  1571. * src/AbstractCommand.cc
  1572. * src/DownloadEngine.cc
  1573. * src/DownloadEngine.h
  1574. * src/HttpDownloadCommand.cc
  1575. * src/HttpInitiateConnectionCommand.cc
  1576. * src/HttpResponseCommand.cc
  1577. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1578. Rewritten HTTP keep-alive and pipelining routine.
  1579. * src/AbstractCommand.cc
  1580. * src/HttpConnection.cc
  1581. * src/HttpDownloadCommand.cc
  1582. * src/HttpRequest.cc
  1583. * src/HttpRequestCommand.cc
  1584. * src/HttpResponseCommand.cc
  1585. * src/Request.cc
  1586. * src/Request.h
  1587. * src/RequestGroup.cc
  1588. * test/HttpRequestTest.cc
  1589. * test/HttpResponseTest.cc
  1590. * test/RequestTest.cc
  1591. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1592. Added missing setUserHeaders call
  1593. * src/HttpRequestCommand.cc
  1594. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1595. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  1596. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  1597. waste of time because it is more likey false.
  1598. * src/FileAllocationDispatcherCommand.cc (execute)
  1599. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1600. Now HTTP status and version are a member variable of HttpHeader.
  1601. HTTP status is processed as a string, not integer.
  1602. * src/AbstractProxyResponseCommand.cc
  1603. * src/HttpConnection.cc
  1604. * src/HttpHeader.cc
  1605. * src/HttpHeader.h
  1606. * src/HttpHeaderProcessor.cc
  1607. * src/HttpHeaderProcessor.h
  1608. * src/HttpResponse.cc
  1609. * src/HttpResponse.h
  1610. * test/HttpHeaderProcessorTest.cc
  1611. * test/HttpResponseTest.cc
  1612. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1613. Added --header option. You can specify any number of additional HTTP headers
  1614. like:
  1615. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  1616. Unlike other commad-line option, you can use --header option multiple times.
  1617. * src/HelpItemFactory.cc
  1618. * src/HttpRequest.{cc, h}
  1619. * src/HttpRequestCommand.cc
  1620. * src/OptionHandlerFactory.cc
  1621. * src/OptionHandlerImpl.h
  1622. * src/option_processing.cc
  1623. * src/prefs.h
  1624. * src/usage_text.h
  1625. * test/HttpRequestTest.cc (testUserHeaders)
  1626. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1627. Eliminates the time lag between sequential downloads and commands in
  1628. the same RequestGroup.
  1629. In old implementation, aria2 occasionally waits 1 seconds before
  1630. executing next command or RequestGroup.
  1631. This is really a waste of time, and new implementation eliminates
  1632. this unnecessary time lag.
  1633. * src/AbstractCommand.cc
  1634. * src/AutoSaveCommand.cc
  1635. * src/CheckIntegrityCommand.cc
  1636. * src/Command.{cc, h}
  1637. * src/DownloadEngine.{cc, h}
  1638. * src/DownloadEngineFactory.cc
  1639. * src/FileAllocationCommand.cc
  1640. * src/FileAllocationDispatcherCommand.cc
  1641. * src/FillRequestGroupCommand.cc
  1642. * src/FtpInitiateConnectionCommand.cc
  1643. * src/HaveEraseCommand.cc
  1644. * src/HttpInitiateConnectionCommand.cc
  1645. * src/HttpResponseCommand.cc
  1646. * src/RealtimeCommand.cc
  1647. * src/RequestGroup.cc
  1648. * src/RequestGroupMan.cc
  1649. * src/StreamFileAllocationEntry.cc
  1650. * src/TimeBasedCommand.{cc, h}
  1651. * src/TimedHaltCommand.cc
  1652. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1653. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  1654. keyword explicit and SharedHandle's default constructor initializes
  1655. its internal obj to null, old implementation initializes it using
  1656. obj's default constructor.
  1657. To assign null, write SharedHandle<T> x(...); x.reset();
  1658. TODO: test/SharedHandleTest.cc needs more tests.
  1659. * src/SharedHandle.h
  1660. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1661. Fixed type in man page.
  1662. * doc/aria2c.1.txt
  1663. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1664. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  1665. * src/SimpleLogger.{cc, h}
  1666. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1667. Implemented auto protocol detection.
  1668. Now you can do:
  1669. aria2c -Z http://host/file file1.torrent file2.metalink
  1670. (Note: -Z option is required for auto protcol detection.)
  1671. Then aria2c downloads 3 files simultaneously:
  1672. 1. http://host/file
  1673. 2. file1.torrent <-- read local torrent file
  1674. 3. file2.metalink <-- read local Metalink file.
  1675. Same thing goes with -i option. Assume your uris.txt contans:
  1676. http://host/file
  1677. file1.torrent
  1678. file2.metalink
  1679. Then you can do: aria2c -i uris.txt
  1680. (Note: -Z option is not needed if -i option is given.)
  1681. * src/main.cc
  1682. * src/ProtocolDetector.{cc, h}
  1683. * test/ProtocolDetectorTest.cc
  1684. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1685. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  1686. installed
  1687. * src/ARC4Encryptor.h
  1688. * src/ARC4Decryptor.h
  1689. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1690. Renamed argument from 'errno' to 'err', since errno is confused with
  1691. errno defined in errno.h.
  1692. * src/LibgcryptARC4Decryptor.h
  1693. * src/LibgcryptARC4Context.h
  1694. * src/LibgcryptDHKeyExchange.h
  1695. * src/LibgcryptARC4Encryptor.h
  1696. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1697. Rewritten choking algorithm.
  1698. * src/PeerChokeCommand.{cc, h}
  1699. * src/BtInterestedMessage.cc
  1700. * src/PeerSessionResource.{cc, h}
  1701. * src/DefaultPeerStorage.{cc, h}
  1702. * src/BtNotInterestedMessage.cc
  1703. * src/DefaultBtMessageDispatcher.{cc, h}
  1704. * src/BtMessageDispatcher.h
  1705. * src/Peer.{cc, h}
  1706. * src/BtLeecherStateChoke.{cc, h}
  1707. * src/BtSetup.cc
  1708. * src/BtSeederStateChoke.{cc, h}
  1709. * src/PeerStorage.h
  1710. * test/MockPeerStorage.h
  1711. * test/MockBtMessageDispatcher.h
  1712. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1713. Fixed compilation error on x84-64 platform.
  1714. * src/AuthConfig.cc: Included ostream.
  1715. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1716. Rewritten getBasename() and getDirname(), without standard library
  1717. basename(), dirname().
  1718. * src/File.cc
  1719. * test/FileTest.cc
  1720. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1721. Added Simplified Chinese translation. Also updated the following
  1722. translations: Polish, Dutch, German. Great thanks to all translators.
  1723. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1724. Suppress content-range error when 'Content-Range' response header
  1725. doesn't contains bytes-unit specifier 'bytes'
  1726. * src/HttpHeader.cc (getRange)
  1727. * test/HttpHeaderTest.cc
  1728. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1729. Fixed compilation error with g++-4.3
  1730. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1731. Added missing include files for MinGW
  1732. * test/HttpHeaderProcessorTest.cc
  1733. * test/DHTRoutingTableSerializerTest.cc
  1734. * test/DHTRoutingTableDeserializerTest.cc
  1735. * test/UriListParserTest.cc
  1736. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1737. Now download line is printed nicely with no garbage at the end of
  1738. line. I use ioctl to get the columns of terminal.
  1739. If stdout is redirected to another device, instead of carriage return,
  1740. end of line '\n' character is used. This is feature request#1909659
  1741. * src/ConsoleStatCalc.cc (calculateStat)
  1742. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1743. Included a2time.h
  1744. * src/DHTMessageDispatcher.h
  1745. * src/DHTMessageEntry.h
  1746. * src/DHTReplaceNodeTask.h
  1747. * src/DHTMessageTracker.h
  1748. * src/Util.h
  1749. * src/CookieBox.h
  1750. * src/SocketCore.h
  1751. * src/DefaultBtMessageDispatcher.h
  1752. * src/SocketCore.cc
  1753. * src/Util.cc
  1754. * src/DHTPingTask.h
  1755. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1756. Fixed high memory footprint when DHT is enabled.
  1757. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  1758. queued than it is processed and the queue is getting longer. As a
  1759. consequence, momory usage is increased.
  1760. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  1761. replacement cache in DHTBucket which is described in Kademlia paper.
  1762. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  1763. DHTReplaceNodeTask.
  1764. * src/DHTBucket.{h, cc}
  1765. (cacheNode): New function.
  1766. (getCachedNodes): New function.
  1767. (dropNode): Push back cached node to _nodes.
  1768. * test/DHTBucketTest.cc
  1769. (testCacheNode): New test
  1770. (testDropNode): New test
  1771. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1772. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  1773. the unused 4KB memory when ssl is not used.
  1774. * src/SocketCore.cc
  1775. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1776. Added summary log for peer announce storage.
  1777. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  1778. Removed cast
  1779. * src/DefaultPeerStorage.cc (addPeer)
  1780. Log exception message
  1781. * src/DHTMessageTracker.cc (handleTimeout)
  1782. Fixed casting
  1783. * test/HttpRequestTest.cc
  1784. * test/MetalinkProcessorTest.cc
  1785. * test/PieceTest.cc
  1786. * test/MetalinkEntryTest.cc
  1787. * test/SequenceTest.cc
  1788. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1789. * src/ParameterizedStringParser.cc (createLoop):
  1790. Removed unused variable sstep.
  1791. * src/AlphaNumberDecorator.h (decode): Rewritten.
  1792. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1793. * src/Util.{h, cc}
  1794. (parseUInt): New function.
  1795. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  1796. The actual range is uint32_t.
  1797. * test/UtilTest.cc
  1798. * src/ParameterizedStringParser.cc:
  1799. Use Util::parseUInt() for loop variables.
  1800. * test/ParameterizedStringParserTest.cc
  1801. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  1802. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1803. Rewritten the functions for binding port.
  1804. * src/DHTConnectionImpl.{h, cc}
  1805. * src/PeerListenCommand.{h, cc}
  1806. * src/DHTSetup.cc
  1807. * src/BtSetup.cc
  1808. * test/DHTConnectionImplTest.cc
  1809. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1810. type cleanup for allmost all remaining files.
  1811. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1812. Type clarification
  1813. * src/PeerSessionResource.{h, cc}
  1814. * src/DefaultPieceStorage.{h, cc}
  1815. * src/Peer.{h, cc}
  1816. * test/PeerSessionResourceTest.cc
  1817. Use div function
  1818. * src/BtPieceMessage.cc (erasePieceOnDisk)
  1819. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1820. Type clarification
  1821. * src/DefaultPeerStorage.{h, cc}
  1822. * test/DefaultPeerStorageTest.cc
  1823. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1824. Type clarification: size_t for length or size, uint64_t for file
  1825. length, off_t for file offset.
  1826. * src/DefaultBtProgressInfoFile.cc
  1827. * src/DefaultBtContext.{h, cc}
  1828. * src/DefaultBtInteractive.cc
  1829. * src/DownloadCommand.{h, cc}
  1830. * src/IteratableChunkChecksumValidator.{h, cc}
  1831. * src/SegmentMan.{h, cc}
  1832. * src/SingleFileDownloadContext.{h, cc}
  1833. * src/IteratableChecksumValidator.{h, cc}
  1834. * src/BtContext.h
  1835. * src/IteratableValidator.h
  1836. * src/DownloadContext.h
  1837. * test/SingleFileDownloadContextTest.cc
  1838. * test/DefaultBtContextTest.cc
  1839. * test/MockBtContext.h
  1840. * test/Metalink2RequestGroupTest.cc
  1841. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1842. Type clarification: size_t for length or size, uint64_t for file
  1843. length, off_t for file offset.
  1844. * src/PiecedSegment.cc
  1845. * src/GrowSegment.h
  1846. * src/DefaultBtRequestFactory.h
  1847. * src/DefaultBtProgressInfoFile.cc
  1848. * src/UnknownLengthPieceStorage.h
  1849. * src/DefaultPieceStorage.cc
  1850. * src/UnknownLengthPieceStorage.cc
  1851. * src/DefaultBtInteractive.cc
  1852. * src/GrowSegment.cc
  1853. * src/BitfieldMan.h
  1854. * src/DownloadCommand.cc
  1855. * src/BtRequestFactory.h
  1856. * src/PiecedSegment.h
  1857. * src/DefaultPieceStorage.h
  1858. * src/Piece.cc
  1859. * src/DefaultBtRequestFactory.cc
  1860. * src/PieceStorage.h
  1861. * src/Segment.h
  1862. * src/Piece.h
  1863. * src/BitfieldMan.cc
  1864. * src/Util.cc
  1865. * test/DefaultBtProgressInfoFileTest.cc
  1866. * test/DefaultPieceStorageTest.cc
  1867. * test/MockPieceStorage.h
  1868. * test/BtRequestMessageTest.cc
  1869. * test/DefaultBtMessageDispatcherTest.cc
  1870. * test/BitfieldManTest.cc
  1871. * test/GrowSegmentTest.cc
  1872. * test/PieceTest.cc
  1873. * test/SegmentTest.cc
  1874. * test/SegmentManTest.cc
  1875. * test/DefaultBtRequestFactoryTest.cc
  1876. * test/MockBtRequestFactory.h
  1877. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1878. Fixed compilation error with --disable-nls
  1879. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  1880. in gettext.h causes the problem.
  1881. * src/common.h
  1882. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1883. Removed subPiece related functions.
  1884. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  1885. * src/DefaultPieceStorage.{h, cc}
  1886. * test/PieceTest.cc
  1887. * test/DefaultPieceStorageTest.cc
  1888. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1889. Use unsigned char for data store.
  1890. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1891. Bump up version number to 0.13.0+1
  1892. * configure.ac
  1893. * Release 0.13.0+1
  1894. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1895. Changed inactive connection timeout to 120.
  1896. To accept more mulually interested peers, disconnect peer when there
  1897. is no interest between us after certain time passed.
  1898. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  1899. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1900. Fixed the bug that aria2 only uses first dns server in resolv.conf
  1901. when compiled with async DNS support.
  1902. * src/DownloadEngine.cc
  1903. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  1904. value '10' will be a little bit short when some DNS servers are
  1905. offline and several DNS servers are tried. It should be configured
  1906. by command-line option.
  1907. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1908. Merged Ross's mingw patch.
  1909. * src/DHTRoutingTableDeserializer.cc
  1910. * src/DHTRoutingTableSerializer.cc
  1911. * src/Platform.{h, cc}
  1912. * src/timegm.h
  1913. * src/gettimeofday.h
  1914. * src/getaddrinfo.h
  1915. * src/SocketCore.h
  1916. * src/common.h
  1917. * src/inet_aton.h
  1918. * src/DownloadEngine.h
  1919. * src/gai_strerror.h
  1920. * src/a2netcompat.h
  1921. * configure.ac
  1922. * configure
  1923. * aclocal.m4
  1924. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1925. Included missing iostream.
  1926. * test/AllTest.cc
  1927. * test/BtDependencyTest.cc
  1928. * test/BtExtendedMessageTest.cc
  1929. * test/DHTConnectionImplTest.cc
  1930. * test/DHTMessageFactoryImplTest.cc
  1931. * test/DHTMessageTrackerEntryTest.cc
  1932. * test/DHTNodeTest.cc
  1933. * test/DHTRoutingTableSerializerTest.cc
  1934. * test/DefaultBtAnnounceTest.cc
  1935. * test/DefaultBtContextTest.cc
  1936. * test/DefaultBtMessageFactoryTest.cc
  1937. * test/DefaultExtensionMessageFactoryTest.cc
  1938. * test/HandshakeExtensionMessageTest.cc
  1939. * test/HttpResponseTest.cc
  1940. * test/MetalinkProcessorTest.cc
  1941. * test/MultiFileAllocationIteratorTest.cc
  1942. * test/SocketCoreTest.cc
  1943. * test/UTPexExtensionMessageTest.cc
  1944. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1945. Reorganized includes.
  1946. * src/NameResolver.cc
  1947. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1948. Fixed compilation error without ares/c-ares
  1949. * src/NameResolver.h:
  1950. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1951. Added a test for large file.
  1952. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  1953. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1954. Fixed the bug that file size is ignored if size > INT32_MAX
  1955. * src/SizeMetalinkParserState.cc (endElement):
  1956. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1957. Bump up version number to 0.13.0
  1958. * configure.ac
  1959. * Release 0.13.0
  1960. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1961. Updated Makfefile.am to make 'make dist' work.
  1962. Now packaged filename is aria2c-VERSION.tar.bz2.
  1963. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  1964. Added LICENSE.OpenSSL to dist_noinst_DATA.
  1965. Large file support is now configured by configure script.
  1966. * configure.ac
  1967. Removed unsused source files
  1968. * src/
  1969. * test/
  1970. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  1971. Peer.h and BtContext.h respectively.
  1972. * src/Peer.h
  1973. * src/BtContext.h
  1974. Updated translations.
  1975. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  1976. translations. Great thanks to all translators!;)
  1977. * po/*.{po, gmo}
  1978. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1979. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  1980. statically declared sha1 MessageDigestContext.
  1981. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  1982. initialization of short-lived MessageDigestContext.
  1983. * src/MessageDigestHelper.{h, cc}
  1984. * src/main.cc
  1985. Now DownloadCommand has a reference to MessageDigestContext to avoid
  1986. the initialization of MessageDigestContext every time in validating
  1987. chunk checksum.
  1988. * src/DownloadCommand.{h, cc}
  1989. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1990. Add a file descriptor which connected to fast peer(latency<1500) to
  1991. select(). This change reduced CPU load.
  1992. * src/PeerInteractionCommand.cc
  1993. * src/DefaultBtInteractive.{h, cc}
  1994. * src/BtInteractive.h
  1995. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1996. Fixed the previous insufficient fix for possible busy loop.
  1997. * src/MSEHandshake.cc (identifyHandshakeType)
  1998. Removed unused functions.
  1999. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  2000. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2001. Fixed possible busy loop if first 20 bytes are not received for a few
  2002. minutes.
  2003. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  2004. * src/ReceiverMSEHandshakeCommand.cc
  2005. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2006. Fixed compilation error
  2007. * src/ExpatMetalinkProcessor.cc
  2008. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2009. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  2010. * src/DHTBucket.cc
  2011. Removed unnecessary cast.
  2012. * src/HandshakeExtensionMessage.cc
  2013. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2014. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  2015. is missing.
  2016. * src/OptionHandlerFactory.cc
  2017. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2018. Fixed the bug that HAVE message is not sent for a piece they are
  2019. downloaded fom http/ftp server before any BitTorrent handshake is done
  2020. with peers.
  2021. * src/DefaultBtInteractive.cc
  2022. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2023. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  2024. * src/Makefile.am
  2025. * src/Makefile.in
  2026. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2027. Updated README. Added html version of README and man page.
  2028. * README
  2029. * README.html
  2030. * readme2html: Shell script to generate README.html from README using
  2031. asciidoc.
  2032. * doc/aria2c.1.html
  2033. * doc/makeman: Added the line to generate aria2c.1.html
  2034. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2035. Fixed offset calculation.
  2036. * src/LibgcryptDHKeyExchange.h (computeSecret)
  2037. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2038. Rewritten itos and uitos using template. llitos and ullitos are
  2039. replaced with itos and uitos respectively.
  2040. * src/Util.{h, cc}
  2041. * test/UtilTest.cc
  2042. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2043. Fixed the bug that DH key exchange sometimes fails due to bad handling
  2044. of the number of bytes required for storing public key and shared
  2045. secret.
  2046. * src/LibgcryptDHKeyExchange.h
  2047. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  2048. * src/MSEHandshake.cc
  2049. * test/DHKeyExchangeTest.cc
  2050. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2051. Removed since they are not used.
  2052. * src/Xml2MetalinkProcessor.{h, cc}
  2053. * src/Socket.cc
  2054. * src/SegmentSplitter.{h, cc}
  2055. * test/Xml2MetalinkProcessorTest.cc
  2056. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2057. Fixed the bug that prevents aria2 from stopping other than by pressing
  2058. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  2059. option. aria2 doesn't stop even after --seed-time is satisfied and
  2060. continues to output blank lines in the console.
  2061. * src/ReceiverMSEHandshakeCommand.cc
  2062. * src/PeerReceiveHandshakeCommand.cc
  2063. * src/PeerListenCommand.cc
  2064. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2065. Bump up version number to 0.13.0rc
  2066. * configure.ac
  2067. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2068. Updated man page and some usage text.
  2069. * doc/aria2c.1.txt
  2070. * src/usage_text.h
  2071. * po/*.{po, gmo}
  2072. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2073. Updated translations. Added Finnish and Hebrew translations.
  2074. Great thanks to all translators!
  2075. * po/*.{po, gmo}
  2076. * po/LINGUAS
  2077. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2078. Log more detailed information about each message.
  2079. * src/DHTQueryMessage.{h, cc}
  2080. * src/DHTGetPeersMessage.{h, cc}
  2081. * src/DHTFindNodeReplyMessage.{h, cc}
  2082. * src/DHTGetPeersReplyMessage.{h, cc}
  2083. * src/DHTAnnouncePeerMessage.{h, cc}
  2084. * src/DHTResponseMessage.{h, cc}
  2085. * src/DHTFindNodeMessage.{h, cc}
  2086. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2087. Use constants defined in prefs.h
  2088. * src/option_processing.cc
  2089. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2090. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  2091. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2092. Make room for future enchancements for IPv6 addresses.
  2093. Bump up version number of dht.dat file format to 2.
  2094. Not compatible with previous version.
  2095. * src/DHTRoutingTableSerializer.cc
  2096. * src/DHTRoutingTableDeserializer.cc
  2097. * test/DHTRoutingTableSerializerTest.cc
  2098. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2099. Added handling for the return values from
  2100. PeerMessageUtil::createcompact().
  2101. * src/DefaultBtContext.cc (computeFastSet):
  2102. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2103. Fixed abort when peer's ip address is IPv4-mapped address.
  2104. * src/DefaultBtContext.cc (computeFastSet)
  2105. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  2106. cannot handle IPv4-mapped addresses.
  2107. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  2108. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2109. Proper return value handling for OpenSSL functions.
  2110. * src/LibsslDHKeyExchange.h
  2111. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2112. Random bytes generation using libgcrypt and OpenSSL.
  2113. * src/DHTUtil.{h, cc}
  2114. * test/DHTUtilTest.cc
  2115. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2116. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  2117. received.
  2118. * src/DHTMessageReceiver.cc (receiveMessage)
  2119. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2120. Fixed the bug that a return code is always 0. BUG#1897704
  2121. If error occurred during the download or there exist unfinished
  2122. downloads, aria2 returns with code 1.
  2123. * src/RequestGroupMan.{h, cc}
  2124. * src/MultiUrlRequestInfo.{h, cc}
  2125. * src/main.cc
  2126. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2127. IPv6 support for SocketCore class.
  2128. TODO: In SocketCore::establishConnection(), this is insufficient to
  2129. determin the failure of connect() here because the socket is
  2130. non-blocking state. The next addresses should be tried after select().
  2131. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  2132. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  2133. instead which address family independent.
  2134. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  2135. information in a compact peer format which is for IPv4 only.
  2136. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  2137. this is a spec of BitTorrent protocol.
  2138. * src/SocketCore.{h, cc}
  2139. * src/PeerMessageUtil.cc
  2140. * test/SocketCoreTest.cc
  2141. * test/PeerMessageUtilTest.cc
  2142. * test/DHTConnectionImplTest.cc
  2143. Handle IPv4-mapped addresses.
  2144. * src/DHTNode.cc: Now identity is determined by node id.
  2145. * src/DHTMessageTrackerEntry.cc
  2146. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  2147. should handle it.
  2148. * src/DHTRoutingTableDeserializer.cc
  2149. * src/DHTMessageFactoryImpl.cc
  2150. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2151. Change the unit of --stop option from a minute to a second.
  2152. * src/usage_text.h
  2153. * src/DownloadEngineFactory.cc
  2154. * src/OptionHandlerFactory.cc
  2155. * src/message.h
  2156. * src/TimedHaltCommand.cc
  2157. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2158. Make listening socket non-block mode.
  2159. * src/FtpConnection.cc
  2160. * src/FtpNegotiationCommand.{h, cc}
  2161. * src/PeerListenCommand.cc
  2162. Fixed the bug that cause slow ftp negotiation.
  2163. * src/FtpNegotiationCommand.{h, cc}
  2164. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2165. Added basic tag to --enable-dht, --dht-listen-port option.
  2166. * src/HelpItemFactory.cc (createHelpItems)
  2167. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2168. Updated text.
  2169. * src/usage_text.h
  2170. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2171. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  2172. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2173. Determin _threadtholdSpeed in each constructor for
  2174. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  2175. * src/ActivePeerConnectionCommand.{h, cc}
  2176. * src/PeerReceiveHandshakeCommand.{h, cc}
  2177. * src/BtSetup.cc
  2178. * src/BtConstants.h
  2179. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2180. Added --bt-min-crypto-level and --bt-require-crypto options.
  2181. * src/OptionHandlerFactory.cc
  2182. * src/MSEHandshake.cc
  2183. * src/HelpItemFactory.cc
  2184. * src/option_processing.cc
  2185. * src/ReceiverMSEHandshakeCommand.cc
  2186. * src/prefs.h
  2187. * src/DefaultBtAnnounce.cc
  2188. * src/InitiatorMSEHandshakeCommand.cc
  2189. * src/usage_text.h
  2190. * test/MSEHandshakeTest.cc
  2191. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2192. Bump version number to 0.13.0b
  2193. * configure.ac
  2194. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2195. Updated doc.
  2196. * src/MessageDigestHelper.h:
  2197. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2198. Use raw message digest as a token instead of its hexadecimal
  2199. representation.
  2200. * src/DHTTokenTracker.cc (generateToken)
  2201. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2202. Added Message Stream Encryption(MSE) support.
  2203. Currently, aria2 accepts incoming connections with Obfuscation Header
  2204. and legacy BitTorrent Header and establishes connections with
  2205. Obfuscation Header first and if failed then retry with legacy
  2206. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  2207. choose ARC4. The new option to change the default behavior is planned.
  2208. For tracker extension, "supportcrypto=1" is added statically.
  2209. * src/PeerInitiateConnectionCommand.{h, cc}
  2210. * src/PeerConnection.{h, cc}
  2211. * src/HandleRegistry.h
  2212. * src/SocketCore.h
  2213. * src/PeerReceiveHandshakeCommand.{h, cc}
  2214. * src/BtRegistry.{h, cc}
  2215. * src/PeerListenCommand.cc
  2216. * src/InitiatorMSEHandshakeCommand.{h, cc}
  2217. * src/ReceiverMSEHandshakeCommand.{h, cc}
  2218. * src/MSEHandshake.{h, cc}
  2219. * src/ARC4Encryptor.h
  2220. * src/ARC4Decryptor.h
  2221. * src/LibgcryptARC4Encryptor.h
  2222. * src/LibgcryptARC4Decryptor.h
  2223. * src/LibgcryptARC4Context.h
  2224. * src/LibsslARC4Encryptor.h
  2225. * src/LibsslARC4Decryptor.h
  2226. * src/LibsslARC4Context.h
  2227. * src/DHKeyExchange.h
  2228. * src/LibgcryptDHKeyExchange.h
  2229. * src/LibsslDHKeyExchange.h
  2230. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  2231. * test/DefaultBtAnnounceTest.cc
  2232. * test/ARC4Test.cc
  2233. * test/DHKeyExchangeTest.cc
  2234. Removed prepareForRetry() because it is not used.
  2235. * src/PeerAbstractCommand.{h, cc}
  2236. * src/PeerInteractionCommand.{h, cc}
  2237. * src/PeerInitiateConnectionCommand.{h, cc}
  2238. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2239. Added the ability to load nodes from torrent file. These nodes are
  2240. added to the routing table when downloading that torrent.
  2241. * src/BtContext.h
  2242. * src/DefaultBtContext.{h, cc}
  2243. * src/DHTSetup.cc
  2244. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  2245. hostname and port pair, and resolves all of them.
  2246. * src/NameResolver.{h, cc}: Added reset().
  2247. * src/RequestGroup.cc
  2248. * test/DefaultBtContextTest.cc
  2249. * test/MockBtContext.h
  2250. Removed assert() from DefaultBtContext and throw exception instead.
  2251. * src/DefaultBtContext.cc
  2252. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2253. Fixed segmentation fault bug when exiting if dht is disabled.
  2254. * src/RequestGroup.cc
  2255. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2256. Fixed typo in log message and define the message in message.h
  2257. * src/TimedHaltCommand.cc
  2258. * src/message.h
  2259. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2260. Included RecoverableException.h to fix compilation error.
  2261. * test/DHTMessageFactoryImplTest.cc
  2262. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2263. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  2264. * test/DHTPingMessageTest.cc
  2265. * test/DHTGetPeersMessageTest.cc
  2266. * test/DHTFindNodeMessageTest.cc
  2267. * test/DHTAnnouncePeerMessageTest.cc
  2268. * test/MockDHTMessage.h
  2269. * test/MockDHTMessageFactory.h
  2270. * test/MockDHTMessageDispatcher.h: New class.
  2271. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2272. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  2273. virtual.
  2274. * src/DHTMessageDispatcher.h
  2275. * src/DHTMessageDispatcherImpl.{h, cc}
  2276. * src/DHTSetup.cc
  2277. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2278. Adding handling of DHT error message. Just log error message and
  2279. throw exception.
  2280. * src/DHTMessageFactoryImpl.cc
  2281. * test/DHTMessageFactoryImplTest.cc
  2282. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2283. Added handling of dynamic cast failure.
  2284. * src/DHTNodeLookupTask.cc
  2285. * src/DHTPeerLookupTask.cc
  2286. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2287. Added the ability to stop aria2 itself when given time has passed
  2288. from start. Use --stop option to specify time in minutes.
  2289. When 0 is given, this feature is disabled.
  2290. * src/OptionHandlerFactory.cc
  2291. * src/TimeBasedCommand.h: Make _interval protected scope.
  2292. * src/HelpItemFactory.cc
  2293. * src/option_processing.cc
  2294. * src/prefs.h
  2295. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  2296. before calling RequestGroupMan::fillRequestGroupFromReserver().
  2297. Without this modification, the result list shows "ERR" when aria2 is
  2298. stopped by --stop option. It should be "INPR".
  2299. * src/DownloadEngine.{h, cc}
  2300. * src/DownloadEngineFactory.cc
  2301. * src/usage_text.h
  2302. * src/TimedHaltCommand.{h, cc}: New class.
  2303. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2304. Bootstrap through node added by port message.
  2305. Currently bootstrap is executed if the number of buckets in routing
  2306. table is 1.
  2307. * src/BtPortMessage.{h, cc}
  2308. * src/DefaultBtMessageFactory.{h, cc}
  2309. * src/PeerInteractionCommand.cc
  2310. * test/BtPortMessageTest.cc
  2311. * test/MockDHTTask.h
  2312. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2313. Extract the Peer class's member variables, which are only needed after
  2314. PeerInteractionCommand, into PeerSessionResource class.
  2315. This class is instantiated in PeerInteractionCommand class's ctor and
  2316. released in its dtor.
  2317. This will make Peer class lightweight and uses less memory for peers
  2318. which are not connected and wait in the queue.
  2319. * src/PeerChokeCommand.cc
  2320. * src/PeerSessionResource.{h, cc}
  2321. * src/PeerInteractionCommand.cc
  2322. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  2323. * src/DefaultBtInteractive.cc
  2324. * src/BtPieceMessage.cc
  2325. * src/BtInterestedMessage.cc
  2326. * src/BtUnchokeMessage.cc
  2327. * src/DefaultPeerStorage.{h, cc}
  2328. * src/PeerInitiateConnectionCommand.cc
  2329. * src/ActivePeerConnectionCommand.cc
  2330. * src/BtNotInterestedMessage.cc
  2331. * src/DefaultBtMessageDispatcher.cc
  2332. * src/BtChokeMessage.cc
  2333. * src/BtRequestMessage.cc
  2334. * src/Peer.{h, cc}
  2335. * src/BtRegistry.h
  2336. * src/TrackerWatcherCommand.cc
  2337. * src/PeerReceiveHandshakeCommand.cc
  2338. * test/BtExtendedMessageTest.cc
  2339. * test/BtAllowedFastMessageTest.cc
  2340. * test/BtCancelMessageTest.cc
  2341. * test/DefaultPieceStorageTest.cc
  2342. * test/BtBitfieldMessageTest.cc
  2343. * test/BtHaveMessageTest.cc
  2344. * test/BtNotInterestedMessageTest.cc
  2345. * test/BtRequestMessageTest.cc
  2346. * test/PeerSessionResourceTest.cc
  2347. * test/DefaultBtMessageDispatcherTest.cc
  2348. * test/PeerTest.cc
  2349. * test/BtInterestedMessageTest.cc
  2350. * test/BtRejectMessageTest.cc
  2351. * test/BtChokeMessageTest.cc
  2352. * test/DefaultPeerStorageTest.cc
  2353. * test/BtHaveNoneMessageTest.cc
  2354. * test/BtHaveAllMessageTest.cc
  2355. * test/DefaultExtensionMessageFactoryTest.cc
  2356. * test/BtUnchokeMessageTest.cc
  2357. * test/DefaultBtMessageFactoryTest.cc
  2358. * test/HandshakeExtensionMessageTest.cc
  2359. * test/UTPexExtensionMessageTest.cc
  2360. * test/DefaultBtRequestFactoryTest.cc
  2361. * test/BtPieceMessageTest.cc
  2362. Removed typedef PeerStats.
  2363. * src/PeerStat.h
  2364. * src/SegmentMan.cc
  2365. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2366. Added std namespace to copy, remove_copy, back_inserter,
  2367. front_inserter.
  2368. * src/RequestGroupMan.cc
  2369. * src/DefaultPieceStorage.cc
  2370. * src/StreamFileAllocationEntry.cc
  2371. * src/BtFileAllocationEntry.cc
  2372. * src/RequestGroup.cc
  2373. * src/MetalinkEntry.cc
  2374. * src/DelegatingPeerListProcessor.cc
  2375. * src/DefaultBtRequestFactory.cc
  2376. * src/DefaultBtMessageDispatcher.cc
  2377. * src/version_usage.cc: Included <algorithm>
  2378. * src/main.cc
  2379. * src/MetalinkParserController.cc
  2380. * src/DefaultBtContext.cc
  2381. * src/DownloadEngineFactory.cc
  2382. * src/a2algo.h
  2383. Removed.
  2384. * test/StreamUriListParserTest.cc
  2385. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2386. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  2387. ActivePeerConnectionCommand when it is given and
  2388. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  2389. * src/ActivePeerConnectionCommand.{h, cc}
  2390. * src/BtSetup.cc
  2391. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2392. Only add socket to DownloadEngine's select routine when peer or
  2393. localhost is unchoked and interested. This lowers CPU usage a
  2394. little bit.
  2395. * src/PeerInteractionCommand.cc
  2396. * src/PeerAbstractCommand.{h, cc}
  2397. * src/BtInteractive.h
  2398. * src/DefaultBtInteractive.{h, cc}
  2399. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2400. Revert previous change because get_peers message is needed for
  2401. announce_peer anyway.
  2402. * src/DHTGetPeersCommand.cc
  2403. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2404. Request peers thought DHT only when download hasn't finished.
  2405. * src/DHTGetPeersCommand.cc
  2406. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2407. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  2408. * src/DHTBucketRefreshTask.{h, cc}
  2409. * src/DHTSetup.cc
  2410. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2411. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  2412. standard classes.
  2413. Included string.h where mem* function are used.
  2414. Added namespace aria2.
  2415. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2416. Create directory before saving DHT routing table.
  2417. Now ios::failure is now handled properly.
  2418. * src/DHTAutoSaveCommand.cc
  2419. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2420. Removed unnecessary cerr.
  2421. * src/DownloadEngine.cc
  2422. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2423. Catch exception inside DHTMessageReceiver::receiveMessage().
  2424. Log unknown message.
  2425. * src/DHTMessageReceiver.{h, cc}
  2426. * src/DHTMessageFactory.h
  2427. * src/DHTMessageFactoryImpl.{h, cc}
  2428. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  2429. * src/DHTInteractionCommand.cc
  2430. * src/DHTUnknownMessage.{h, cc}
  2431. * test/DHTUnknownMessageTest.cc
  2432. * test/MockDHTMessageFactory.h
  2433. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2434. Commented out ip address comparison because a host can have multiple
  2435. ip addresses and it is hard to predict the hostname is resolved into
  2436. which one.
  2437. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  2438. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2439. * po/Makefile.in: Removed since this is generated by configure.
  2440. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2441. Fixed compiler warning about redefinition of SIZE_MAX.
  2442. Use common.h instead of config.h directly here.
  2443. * src/Platform.{h, cc}
  2444. The check of ENABLE_NLS is made in gettext.h, so it is not required
  2445. here.
  2446. * common.h
  2447. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  2448. Updated gettext related files.
  2449. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  2450. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  2451. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2452. Added DHT functionality, compatible with mainline.
  2453. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  2454. You may need to specify entry point to DHT network using
  2455. --dht-entry-point. DHT uses UDP port to listen incoming message.
  2456. Use --dht-listen-port to specify port number. Make sure that your
  2457. firewall configuration can pass through UDP traffic to the port.
  2458. The routing table is saved in $HOME/.aria2/dht.dat.
  2459. * src/DHT*
  2460. * src/BNode.{h, cc}
  2461. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  2462. particular torrent.
  2463. * src/Data.cc: Rewritten ctor.
  2464. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  2465. --dht-entry-point.
  2466. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  2467. * src/RequestGroup.cc: Initialize DHT functionality. When download
  2468. ends, remove BtContext from DHTPeerAnnounceStorage.
  2469. * src/BtPortMessage.{h, cc}: Rewritten.
  2470. * src/message.h
  2471. * src/OptionHandlerImpl.cc
  2472. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  2473. --dht-entry-point.
  2474. * src/Dictionary.{h, cc} (remove): New function.
  2475. * src/prefs.h
  2476. * src/DefaultBtMessageFactory.h
  2477. * src/BtHandshakeMessage.cc
  2478. * src/ActivePeerConnectionCommand.cc
  2479. * src/SocketCore.{h, cc}: Added datagram socket support.
  2480. * src/DefaultBtMessageFactory.cc
  2481. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  2482. Create DHT commands.
  2483. * src/BtMessageFactory.h
  2484. * src/PeerMessageUtil.{h, cc}
  2485. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2486. Fixed the bug that log file is not written when configuration file doesn't exist.
  2487. This is caused by using Logger class before LogFactory is not configured.
  2488. BUG #1875079
  2489. * src/option_processing.cc
  2490. Warning message "configuration doesn't exist" is only printed when --conf is
  2491. given.
  2492. * src/option_processing.cc
  2493. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2494. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  2495. ShaVisitor is now deprecated and slated to be removed.
  2496. * src/DefaultBtContext.cc
  2497. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2498. Externalize message to message.h
  2499. * src/Platform.cc
  2500. * src/message.h
  2501. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2502. Set default domain and default path to cookie.
  2503. * src/HttpResponse.cc
  2504. * src/CookieBox.{h, cc}
  2505. * src/CookieParser.{h, cc}
  2506. * test/CookieParserTest.cc
  2507. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2508. Added --no-conf and --conf-path command-line option.
  2509. --no-conf option disables loading aria2.conf file.
  2510. --conf-path option changes the configuration file path. The default
  2511. file path is $HOME/.aria2/aria2.conf
  2512. Added a warning message when the configuration file is not found.
  2513. * src/HelpItemFactory.cc
  2514. * src/option_processing.cc
  2515. * src/prefs.h
  2516. * src/usage_text.h
  2517. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2518. Added the message to inform users that other help categories are
  2519. available in -h option.
  2520. * src/version_usage.cc
  2521. * src/TagContainer.{h, cc}
  2522. * test/TagContainerTest.cc
  2523. * src/TaggedItem.{h, cc}
  2524. * test/TaggedItemTest.cc
  2525. * src/HelpItem.h
  2526. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2527. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  2528. from PiecedSegment's ctor.
  2529. Previously Piece::getAllMissingBlockIndexes() is called from
  2530. PiecedSegment() but it is rather expensive since only first element is
  2531. used.
  2532. * src/PiecedSegment.cc
  2533. * src/Piece.{h, cc}
  2534. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2535. Rewritten get*Missing*Index functions. Now no need to allocate memory
  2536. each time these functions are called.
  2537. * src/BitfieldMan.{h, cc}
  2538. * test/BitfieldManTest.cc
  2539. * src/array_fun.h
  2540. * test/array_funTest.cc
  2541. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  2542. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  2543. filtered. Removed unnecessary cast to int32_t.
  2544. * src/BitfieldMan.{h, cc}
  2545. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2546. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  2547. payload length(4bytes) are received. This happens because lenbufLength
  2548. is not updated in this particular case and successive call of
  2549. receiveMessage() overwrites payload length with bytes recieved which
  2550. are payload body.
  2551. * src/PeerConnection.{h, cc}
  2552. * src/message.h
  2553. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2554. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  2555. peer if there are peers that have same ipaddr and port.
  2556. I've experiened segmentation fault and "pure virtual function was
  2557. called" error.
  2558. * src/Peer.h
  2559. * test/PeerTest.cc
  2560. * src/DefaultPeerStorage.cc
  2561. * test/DefaultPeerStorageTest.cc
  2562. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2563. Removed a call to isPowerOf() because it is no longer necessary here
  2564. and a request block is not always power of 2.
  2565. BUG#1866924
  2566. * src/PeerMessageUtil.cc (checkLength)
  2567. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2568. Fixed the bug that always first found Segment is removed from
  2569. usedSegmentEntries. Removed unused functions.
  2570. * src/SegmentMan.{h, cc}
  2571. * test/SegmentManTest.cc
  2572. Fixed the bug that ServerHost is not removed.
  2573. * src/RequestGroup.cc
  2574. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2575. Fixed the bug that SegmentMan::completeSegment() is not called
  2576. even if Segment is complete when --lowest-speed-limit is enabled.
  2577. BUG#1864525
  2578. * src/DownloadCommand.{h, cc}
  2579. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2580. Fixed: hash algorithm 'sha1' is always used.
  2581. * src/DownloadCommand.cc (validatePieceHash)
  2582. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2583. Added --enable-peer-exchange command-line option.
  2584. * src/OptionHandlerFactory.cc
  2585. * src/HelpItemFactory.cc
  2586. * src/option_processing.cc
  2587. * src/usage_text.h
  2588. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2589. Move extension from BtRuntime to ExtensionMessageFactory, because
  2590. extension can be specified per peer, not per torrent.
  2591. * src/DefaultBtInteractive.cc
  2592. * src/BtRuntime.h
  2593. * src/ExtendedMessagingAware.h
  2594. * src/ExtensionMessageFactory.h
  2595. * src/DefaultExtensionMessageFactory.cc
  2596. * test/DefaultExtensionMessageFactoryTest.cc
  2597. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2598. Added categorized option help. Specify category using --help option.
  2599. Also added the ability to search options in forward match.
  2600. * src/HelpItem.{h, cc}
  2601. * test/HelpItemTest.cc
  2602. * src/HelpItemFactory.{h, cc}
  2603. * src/TagContainer.{h, cc}
  2604. * test/TagContainerTest.cc
  2605. * src/option_processing.cc
  2606. * src/prefs.h
  2607. * src/TaggedItem.{h, cc}
  2608. * test/TaggedItemTest.cc
  2609. * src/version_usage.cc
  2610. * src/help_tags.h
  2611. * src/usage_text.h
  2612. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2613. Fixed segmentation fault when bad torrent metainfo is parsed.
  2614. Added dynamic_cast properly to detect the misconfiguration of metainfo
  2615. and then throw exception or skip it.
  2616. * src/DefaultBtContext.{h, cc}
  2617. * test/DefaultBtContextTest.cc
  2618. * src/AnnounceList.cc
  2619. * src/CompactPeerListProcessor.cc
  2620. * src/message.h
  2621. * src/DefaultBtAnnounce.{h, cc}
  2622. * test/DefaultBtAnnounceTest.cc
  2623. * src/BencodeVisitor.cc
  2624. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2625. Added missing "B"(=Byte). So now the message looks like this:
  2626. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  2627. * src/message.h (MSG_SHARE_RATIO_REPORT)
  2628. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2629. Show the seed ratio after torrent downloads.
  2630. For example, after torrent download completed and --seed-time and
  2631. --seed-ratio conditions are fulfilled, following message is printed
  2632. right after "Download complete: .....":
  2633. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  2634. * src/RequestGroupMan.cc
  2635. * src/RequestGroup.{h, cc}
  2636. * src/message.h
  2637. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2638. Remove a defunct control file. A defunct control file means that while
  2639. it exists, but the corresponding download file is missing.
  2640. After its removal, a download restarts from the beginning.
  2641. * src/RequestGroup.cc
  2642. * src/message.h
  2643. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2644. Allocate bitfield in Peer when it is really used. More specifically,
  2645. bitfield in Peer is allocated after the connection is established and
  2646. deallocated when the connection is dropped.
  2647. Since 2 parameters(piece length and total length) was removed from the
  2648. constructor of Peer class, many test classes were modified accordingly.
  2649. See svn log for more detailed information.
  2650. * src/PeerInteractionCommand.cc
  2651. * src/CompactPeerListProcessor.cc
  2652. * src/Peer.cc
  2653. * src/DefaultPeerListProcessor.cc
  2654. * src/PeerListenCommand.cc
  2655. * src/PeerReceiveHandshakeCommand.cc
  2656. Fixed memory leak
  2657. * src/Piece.cc
  2658. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2659. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  2660. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  2661. command-line options.
  2662. * src/option_processing.cc
  2663. * src/ActivePeerConnectionCommand.cc
  2664. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2665. Send have message to peer if it already has the piece.
  2666. * src/BtHaveMessage.{h, cc}
  2667. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2668. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  2669. port.
  2670. * src/DefaultPeerStorage.{h, cc}
  2671. * test/DefaultPeerStorageTest.cc
  2672. * src/HandshakeExtensionMessage.cc
  2673. * test/HandshakeExtensionMessageTest.cc
  2674. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  2675. * src/PeerStorage.h
  2676. * test/MockPeerStorage.h
  2677. * src/PeerListenCommand.cc
  2678. * src/PeerReceiveHandshakeCommand.cc
  2679. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2680. Added --metalink-enable-unique-protocol option.
  2681. * src/Metalink2RequestGroup.cc
  2682. * src/option_processing.cc
  2683. * src/prefs.h
  2684. * src/version_usage.cc
  2685. * doc/aria2c.1.txt
  2686. * doc/aria2c.1
  2687. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2688. Allow a peer in incomingPeer to be added peers.
  2689. * src/DefaultPeerStorage.cc
  2690. * test/DefaultPeerStorageTest.cc
  2691. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2692. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  2693. I could reproduce this bug in following procedure:
  2694. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  2695. 2. Restart aria2.
  2696. 3. You see the download stopped around 99%.
  2697. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  2698. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  2699. If timeout is reached, then _nextCommand is unused and it may contains
  2700. segments and they won't be canceled. Actually, timeout is not needed
  2701. here because if the server dropped connection, then retry is made.
  2702. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2703. Added uTorrent compatible Peer Exchange.
  2704. * src/BencodeVisitor.{h, cc}
  2705. * test/BencodeVisitorTest.cc
  2706. * src/BtConstants.h
  2707. * src/BtContext.h: Added 'private' flag.
  2708. * src/BtExtendedMessage.{h, cc}
  2709. * test/BtExtendedMessageTest.cc
  2710. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  2711. reserved field.
  2712. * test/BtHandshakeMessageTest.cc
  2713. * src/BtMessageFactory.h
  2714. * src/BtRegistry.h
  2715. * src/BtRuntime.h: This class holds default extension message IDs for
  2716. aria2. By default, aria2 uses ID 8 for ut_pex.
  2717. * src/DefaultBtContext.cc
  2718. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  2719. When it is true, aria2 enables ut_pex. This value is set by
  2720. PeerInteractionCommand.
  2721. * src/DefaultBtMessageFactory.{h, cc}
  2722. * test/DefaultBtMessageFactoryTest.cc
  2723. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  2724. handling to DefaultBtInteractive class.
  2725. * src/DefaultExtensionMessageFactory.{h, cc}
  2726. * test/DefaultExtensionMessageFactoryTest.cc
  2727. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  2728. the container(peers and incomingPeers. The equality is determined by
  2729. Peer::id).
  2730. * test/DefaultPeerStorageTest.cc
  2731. * src/ExtensionMessage.h
  2732. * test/MockExtensionMessage.h
  2733. * src/ExtensionMessageFactory.h
  2734. * test/MockExtensionMessageFactory.h
  2735. * src/HandshakeExtensionMessage.{h, cc}
  2736. * test/HandshakeExtensionMessageTest.cc
  2737. * src/MetaEntry.h
  2738. * src/Peer.{h, cc}
  2739. * src/PeerInteractionCommand.cc
  2740. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  2741. addIncomingPeer.
  2742. * src/PeerMessageUtil.{h, cc}
  2743. * src/PeerObject.h
  2744. * src/UTPexExtensionMessage.{h, cc}
  2745. * test/UTPexExtensionMessageTest.cc
  2746. * src/message.h
  2747. * src/prefs.h
  2748. Fixed the bug that returns incomplete data when it contains null
  2749. character. A convenient constructor was also added.
  2750. * src/Data.{h, cc}
  2751. Rewritten.
  2752. * src/CompactPeerListProcessor.cc
  2753. Fixed typos.
  2754. * src/message.h
  2755. * src/MetaFileUtil.cc
  2756. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2757. Added "Status Legend" label to the explanation text of 'stat' in
  2758. download result and moved it to the last. BUG#1848214
  2759. * src/RequestGroupMan.cc
  2760. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2761. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  2762. * src/Makefie.am
  2763. * test/Makefile.am
  2764. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2765. Fixed the bug that prevents aria2 from loading cookie file when expire
  2766. value is greater than 2^31-1. BUG#1851066
  2767. * src/CookieBoxFactory.cc
  2768. * test/CookieBoxFactoryTest.cc
  2769. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2770. Fixed possible memory leak when an exception is thrown.
  2771. * src/XML2SAXMetalinkProcessor.cc
  2772. Added Expat support. If both libxml2 and Expat are installed, then
  2773. libxml2 is used by default.
  2774. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  2775. ExpatMetalinkProcessor according to the configuration.
  2776. * src/ExpatMetalinkProcessor.{h, cc}
  2777. * src/main.cc: Removed libxml2 specific header and init/free function.
  2778. * src/MetalinkProcessorFactory.{h, cc}
  2779. * src/MetalinkHelper.cc
  2780. * src/Metalinker.h: Removed unnecessary libxml2 header.
  2781. * src/MetalinkProcessor.h
  2782. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  2783. MetalinkProcessorTest is used instead.
  2784. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  2785. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  2786. MetalinkProcessorFactory::newInstance().
  2787. * m4/libexpat.m4
  2788. * configure.ac: Added configuration options for libexpat.
  2789. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2790. Disabled -s option in metalink download.
  2791. * src/Metalink2RequestGroup.cc
  2792. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2793. If several protocols are available for a mirror in metalink file,
  2794. aria2 now use one of them. --metalink-preferred-protocol option was
  2795. added to specify the preference of protocol.
  2796. * src/AbstractCommand.cc
  2797. * src/OptionHandlerFactory.cc
  2798. * src/ServerHost.{h, cc}
  2799. * src/Metalink2RequestGroup.cc
  2800. * src/RequestGroup.{h, cc}
  2801. * test/RequestGroupTest.cc
  2802. * src/option_processing.cc
  2803. * src/prefs.h
  2804. * src/HttpResponseCommand.cc
  2805. * src/MetalinkResource.{h, cc}
  2806. * src/FtpNegotiationCommand.cc
  2807. * src/MetalinkEntry.{h, cc}
  2808. * src/MetalinkEntryTest.cc
  2809. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2810. Code cleanup and added debug log.
  2811. * src/PeerConnection.cc
  2812. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2813. Compiler error fix: applied the patch by Tiziano Mueller
  2814. * src/RequestGroup.cc
  2815. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2816. Fixed the bug: only first announce URL is tried in AnnounceTier,
  2817. in stopped and completed event.
  2818. * src/AnnounceList.{h, cc}
  2819. * test/AnnounceListTest.cc
  2820. * src/DefaultBtAnnounce.cc
  2821. * test/DefaultBtAnnounceTest.cc
  2822. Sorted URLs.
  2823. * test/Metalink2RequestGroupTest.cc
  2824. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2825. Removed unnecessary string copy. Updated doc and corrected indentation.
  2826. * src/Base64.cc
  2827. Fixed compilation warnings
  2828. * test/DataTest.cc
  2829. * test/HttpRequestTest.cc
  2830. * test/MetaFileUtilTest.cc
  2831. * test/RequestTest.cc
  2832. * Release 0.12.0
  2833. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2834. Updated translations
  2835. * po/{de,fr,ja,nl,ru}.po
  2836. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  2837. translations. Many thanks to translators.
  2838. * po/{ca,es,it,pt_BR,sv}.po
  2839. * po/LINGUAS
  2840. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2841. Added a notice about URL
  2842. * src/version_usage.cc
  2843. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  2844. Fixed the bug#1845750; CTRL+C does not stop torrent.
  2845. aria2 repeatedly sends stopped request when tracker returns error code.
  2846. * src/AnnounceList.cc
  2847. * test/AnnounceListTest.cc
  2848. * src/AnnounceTier.h
  2849. Added a message when ctrl-c is hit.
  2850. Now second ctrl-c is also handled in signal handler.
  2851. * src/RequestGroupMan.{h, cc}
  2852. * src/RequestGroup.{h, cc}
  2853. * src/MultiUrlRequestInfo.cc
  2854. * src/DownloadEngine.cc
  2855. * src/TrackerWatcherCommand.cc
  2856. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2857. Code cleanup
  2858. * src/Base64.cc (encode)
  2859. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2860. Changed Direct/IO enable/disable procesure in file allocation routine.
  2861. * src/SingleFileAllocationIterator.cc
  2862. (SingleFileAllocationIterator):
  2863. Disable directIO if offset is not multiple of 512.
  2864. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  2865. * src/MultiFileAllocationIterator.cc (allocateChunk):
  2866. Enable created SingleFileAllocationIterator's directIO.
  2867. * src/FileAllocationEntry.cc
  2868. (FileAllocationEntry): Enable directIO here.
  2869. (~FileAllocationEntry): Disable directIO here.
  2870. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2871. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  2872. * src/Peer.{h, cc}
  2873. * src/DefaultPieceStorage.cc
  2874. * test/DefaultPieceStorageTest.cc
  2875. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2876. Rewritten direct I/O support routine
  2877. * src/SingleFileAllocationIterator.cc
  2878. * src/MultiDiskAdaptor.{h, cc}
  2879. * src/ByteArrayDiskWriter.h
  2880. * src/AbstractSingleDiskAdaptor.h
  2881. * src/AbstractDiskWriter.cc
  2882. * src/DefaultPieceStorage.cc
  2883. * src/DiskWriter.h
  2884. * src/BinaryStream.h
  2885. * src/IteratableChunkChecksumValidator.cc
  2886. * src/IteratableChecksumValidator.cc
  2887. * src/CheckIntegrityEntry.cc
  2888. * src/FileAllocationEntry.cc
  2889. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2890. Fixed typo
  2891. * src/version_usage.cc
  2892. Updated doc
  2893. * doc/aria2c.1.txt
  2894. * doc/aria2c.1
  2895. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2896. Fixed compile error without message digest support.
  2897. * src/FileMetalinkParserState.cc
  2898. * src/MetalinkParserController.{h, cc}
  2899. * test/XML2SAXMetalinkProcessorTest.cc
  2900. * test/MetalinkParserControllerTest.cc
  2901. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2902. Enable direct I/O support in checksum checking.
  2903. * src/IteratableChunkChecksumValidator.{h, cc}
  2904. * test/IteratableChunkChecksumValidatorTest.cc
  2905. * src/CheckIntegrityEntry.cc
  2906. * src/PieceHashCheckIntegrityEntry.cc
  2907. * src/IteratableChecksumValidator.{h, cc}
  2908. * src/BtCheckIntegrityEntry.cc: Added doc.
  2909. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2910. Added --allow-piece-length-change option.
  2911. * src/DefaultBtProgressInfoFile.cc
  2912. * test/DefaultBtProgressInfoFileTest.cc
  2913. * src/OptionHandlerFactory.cc
  2914. * src/option_processing.cc
  2915. * src/prefs.h
  2916. * src/version_usage.cc
  2917. * doc/aria2c.1.txt
  2918. * doc/aria2c.1
  2919. Fixed: duplicated result entry appears when exception is thrown in
  2920. RequestGroup::createInitiateConnectionCommand().
  2921. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  2922. Add RequestGroup to _requestGroup after RequetGroup::
  2923. createInitiateConnectionCommand() succeeds.
  2924. Externalized message
  2925. * src/XML2SAXMetalinkProcessor.cc
  2926. * src/message.h
  2927. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2928. Forced download abort when received negative response from http/ftp
  2929. server.
  2930. * src/HttpResponseCommand.cc
  2931. * src/FtpNegotiationCommand.cc
  2932. * src/HttpResponse.cc
  2933. * src/FtpConnection.cc
  2934. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2935. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  2936. the predecessor, Xml2MetalinkParser class.
  2937. I tested them against 94KB metalink file with 1234 chunk checksums.
  2938. The new one parsed it in 22msec, while it took 6000msec with old one.
  2939. * src/XML2SAXMetalinkProcessor.{h, cc}
  2940. * test/XML2SAXMetalinkProcessorTest.cc
  2941. * src/MetalinkParserController.{h, cc}
  2942. * test/MetalinkParserControllerTest.cc
  2943. * src/MetalinkParserState.h: Also added 16 subclasses.
  2944. * src/main.cc
  2945. * src/Metalink2RequestGroup.cc
  2946. * src/MetalinkHelper.cc
  2947. * src/MetalinkEntry.cc
  2948. * src/ChunkChecksum.h
  2949. Rewritten Base64 class for better performance.
  2950. * src/Base64.{h, cc}
  2951. * test/Base64Test.cc
  2952. * src/HttpRequest.cc
  2953. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2954. Fixed the bug#1841757: aria2 will connect to server to only get
  2955. file size.
  2956. * src/StreamFileAllocationEntry.cc
  2957. * src/option_processing.cc
  2958. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  2959. downloads.
  2960. * src/FtpNegotiationCommand.cc
  2961. Suppressed wrong message when finding PreDownloadHandler
  2962. * src/RequestGroup.cc
  2963. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2964. Updated usage
  2965. * src/version_usage.cc
  2966. Updated man page
  2967. * doc/aria2c.1.txt
  2968. * doc/aria2c.1
  2969. Updated po files
  2970. * po/aria2c.pot
  2971. * po/*.po
  2972. * po/*.gmo
  2973. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2974. Eliminated g++-4.2 warning
  2975. * src/DownloadHandlerConstants.{h, cc}
  2976. * src/Util.cc
  2977. * test/MetaFileUtilTest.cc
  2978. * test/PStringBuildVisitorTest.cc
  2979. Fixed bug: --check-integrity doesn't work for multi file torrent.
  2980. * src/RequestGroup.cc
  2981. * src/BtCheckIntegrityEntry.cc
  2982. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2983. Fixed a2io.h
  2984. * src/a2io.h
  2985. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2986. Added direct I/O support. The current implementation uses O_DIRECT,
  2987. which is not posix standard and is tested on linux 2.6.21.
  2988. Currently only file allocation uses direct I/O.
  2989. * src/SingleFileAllocationIterator.{h, cc}
  2990. * test/SingleFileAllocationIteratorTest.cc
  2991. * src/MultiFileAllocationIterator.{h, cc}
  2992. * test/MultiFileAllocationIteratorTest.cc
  2993. * src/BinaryStream.h
  2994. * src/DiskWriter.h
  2995. * src/AbstractDiskWriter.{h, cc}
  2996. * src/ByteArrayDiskWriter.h
  2997. * src/DiskAdaptor.h
  2998. * src/AbstractSingleDiskAdaptor.{h, cc}
  2999. * src/MultiDiskAdaptor.{h, cc}
  3000. * src/FileAllocationEntry.cc
  3001. * src/Util.{h, cc}
  3002. * src/OptionHandlerFactory.cc
  3003. * src/prefs.h
  3004. * src/version_usage.cc
  3005. * src/option_processing.cc
  3006. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  3007. handleException.
  3008. * src/MultiFileAllocationIterator.cc
  3009. Added EINTR handling
  3010. * src/SocketCore.cc
  3011. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3012. Updated usage
  3013. * src/version_usage.cc
  3014. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3015. Applied Ross's patch for MinGW port.
  3016. * src/DownloadEngine.h
  3017. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3018. Set Content-Type to SingleFileDownloadContext when http response is
  3019. received.
  3020. * src/HttpResponseCommand.cc
  3021. * src/HttpResponse.{h, cc}
  3022. * test/HttpResponseTest.cc
  3023. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3024. Rewritten to add content-type support.
  3025. * src/DownloadHandler.{h, cc}
  3026. * src/BtPostDownloadHandler.{h, cc}
  3027. * test/BtPostDownloadHandlerTest.cc
  3028. * src/MetalinkPostDownloadHandler.{h, cc}
  3029. * test/MetalinkPostDownloadHandlerTest.cc
  3030. * src/PostDownloadHandler.{h, cc}
  3031. * src/DownloadHandlerConstants.{h, cc}
  3032. * src/RequestGroup.cc
  3033. * src/HttpResponseCommand.cc
  3034. * src/FtpNegotiationCommand.cc
  3035. * src/SingleFileDownloadContext.{h, cc}
  3036. * src/RequestGroup.h
  3037. * src/RequestGroupCriteria.h
  3038. * src/ContentTypeRequestGroupCriteria.h
  3039. Added 'mem' option value for --follow-metalink, --follow-torrent.
  3040. If it is give, metalink/torrent file is not written to the disk, but
  3041. just is kept in memory. Parsing is occurred on memory.
  3042. * src/MetalinkHelper.{h, cc}
  3043. * src/MetalinkProcessor.h
  3044. * src/Xml2MetalinkProcessor.{h, cc}
  3045. * test/Xml2MetalinkProcessorTest.cc
  3046. * src/DownloadHandlerFactory.{h, cc}
  3047. * test/DownloadHandlerFactoryTest.cc
  3048. * src/PreDownloadHandler.{h, cc}
  3049. * src/OptionHandlerFactory.cc
  3050. * src/DefaultBtContext.{h, cc}
  3051. * test/DefaultBtContextTest.cc
  3052. * src/version_usage.cc
  3053. * src/Metalink2RequestGroup.{h, cc}
  3054. * src/RequestGroup.{h, cc}
  3055. * src/a2functional.h
  3056. * test/a2functionalTest.cc
  3057. * src/MemoryBufferPreDownloadHandler.{h, cc}
  3058. * src/OptionHandlerImpl.h
  3059. * src/prefs.h
  3060. * src/Util.{h, cc}
  3061. * test/UtilTest.cc
  3062. Keep DownloadResult rather than RequestGroup after downloads to reduce
  3063. memory usage.
  3064. * src/RequestGroupMan.{h, cc}
  3065. * src/DownloadEngine.cc
  3066. * src/BtDependency.{h, cc}: Changed the type of dependee from
  3067. WeakHandle to SharedHandle because WeakHandle could be null.
  3068. * src/RequestGroup.{h, cc}
  3069. * src/DownloadEngineFactory.cc
  3070. * src/DownloadResult.h
  3071. Set totalLength after download finished
  3072. * src/UnknownLengthPieceStorage.{h, cc}
  3073. Keep torrent file specified in metalink in memory.
  3074. * src/Metalink2RequestGroup.cc
  3075. * src/BtDependency.cc
  3076. * src/TrueRequestGroupCriteria.h
  3077. Fixed the bug: seekg is used where seekp should be used.
  3078. * src/ByteArrayDiskWriter.cc
  3079. * test/ByteArraydiskWriterTest.cc
  3080. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3081. Fixed syntax error
  3082. * test/SequenceTest.cc
  3083. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3084. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  3085. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  3086. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  3087. * src/RequestGroup.cc (downloadFinishedByFileLength)
  3088. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3089. Added the check to see whether ares_host_callback accepts timeouts
  3090. with c-ares; only c-ares 1.5.0 or newer accepts it.
  3091. * src/NameResolver.{h, cc}
  3092. * m4/libcares.m4
  3093. * configure.ac: Set C++ for language choice.
  3094. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3095. Fixed: compilation fails without c-ares/ares
  3096. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  3097. Generate http/ftp commands only when download is incomplete.
  3098. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  3099. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3100. Corrected typo. Examples are removed since they are available in man
  3101. page.
  3102. * src/version_usage.cc
  3103. Updated man page.
  3104. * doc/aria2c.1
  3105. * doc/aria2c.1.txt
  3106. * doc/makeman: Commented out sed command.
  3107. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3108. Throw DlAbortEx when a remote file is not found.
  3109. * src/HttpResponse.cc
  3110. * src/FtpNegotiationCommand.cc
  3111. * src/message.h
  3112. Overwrite an existing file if --allow-overwrite=true is given.
  3113. * src/RequestGroup.cc
  3114. Removed unused functions
  3115. * src/AbstractCommand.h
  3116. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3117. Removed 'extern' from 'extern typedef ...' in src/*.h
  3118. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3119. Updated usage
  3120. * src/version_usage.cc
  3121. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3122. Trim announce URL
  3123. * src/DefaultBtContext.cc
  3124. * test/ShaVisitorTest.cc
  3125. Trim argument s. Give trimed s to exception constructor.
  3126. * src/Util.cc (parseInt)(parseLLInt)
  3127. * test/UtilTest.cc
  3128. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3129. Set precision back to 1.
  3130. * src/ConsoleStatCalc.cc (calculateStat)
  3131. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3132. Replaced strtol with Util::parseInt
  3133. * src/ChunkedEncoding.cc
  3134. * src/HttpConnection.cc
  3135. * src/CookieBoxFactory.cc
  3136. * src/ParameterizedStringParser.cc
  3137. * src/Util.cc
  3138. * test/UtilTest.cc
  3139. * test/OptionHandlerTest.cc
  3140. * src/Request.cc
  3141. Throw exception when empty string is given. The message for exception
  3142. changed.
  3143. * src/Util.cc (parseInt)(parseLLInt)
  3144. * src/message.h
  3145. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3146. Set precision to 2 because share ratio is rounded into 1.0 if precision
  3147. set to 1.
  3148. * src/ConsoleStatCalc.cc (calculateStat)
  3149. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3150. Preallocate non-requested file which is adjacent forward to requested
  3151. file('requested' files means the files given in --select-file option)
  3152. if they share a same piece.
  3153. This fixes long pause in the file system which doesn't support sparse
  3154. files like FAT32 while downloading.
  3155. * src/MultiFileAllocationIterator.{h, cc}
  3156. * test/MultiFileAllocationIteratorTest.cc
  3157. * src/FileEntry.{h, cc}
  3158. Removed unused _option.
  3159. * src/MultiDiskAdaptor.h
  3160. * test/MultiDiskAdaptorTest.cc
  3161. * src/DefaultPieceStorage.cc
  3162. Set the default value of --seed-ratio to 1.0.
  3163. If 0.0 is given, then seeding continues regardless of share ratio.
  3164. * src/version_usage.cc
  3165. * src/option_processing.cc
  3166. * src/BtSetup.cc
  3167. * doc/aria2c.1.txt
  3168. * doc/aria2c.1
  3169. Fixed: Selective download is not working in BitTorrent
  3170. * src/RequestGroup.cc
  3171. Introduced Sequence class. Use this instead of Util::unfoldRange()
  3172. * src/PieceStorage.h
  3173. * test/MockPieceStorage.h
  3174. * src/UnknownLengthPieceStorage.h
  3175. * src/DefaultPieceStorage.{h, cc}
  3176. * src/Metalink2RequestGroup.cc
  3177. * src/RequestGroup.cc
  3178. * src/Sequence.h
  3179. * test/SequenceTest.cc
  3180. * src/IntSequence.h
  3181. * src/message.h
  3182. * src/Util.{h, cc}
  3183. * test/UtilTest.cc
  3184. Added new function 'parse' to catch exception thrown by subclass's
  3185. parseArg
  3186. * src/OptionHandler.h
  3187. * src/OptionParser.cc
  3188. * src/NameMatchOptionHandler.h
  3189. * src/OptionHandlerImpl.h
  3190. * test/OptionHandlerTest.cc
  3191. Added IntegerRangeOptionHandler. Used for --listen-port and
  3192. --select-file. Now --listen-port accepts range of port.
  3193. * src/OptionHandlerFactory.cc
  3194. * src/version_usage.cc
  3195. * src/OptionHandlerImpl.h
  3196. * src/option_processing.cc
  3197. * src/BtSetup.cc
  3198. * src/PeerListenCommand.{h, cc}
  3199. * doc/aria2c.1.txt
  3200. * doc/aria2c.1
  3201. Implemented operator< for Exception class to provide easy way to print
  3202. exception stack trace.
  3203. * src/Exception.{h, cc}
  3204. * src/main.cc
  3205. * src/option_processing.cc
  3206. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3207. * src/version_usage.cc
  3208. (showVersion): Reworked.
  3209. (showUsage): Added examples.
  3210. Removed Hint for total length and file name.
  3211. * src/Metalink2RequestGroup.cc
  3212. * src/RequestGroup.{h, cc}
  3213. * src/HttpResponseCommand.cc
  3214. * src/FtpNegotiationCommand.cc
  3215. Now --follow-torrent and --follow-metalink option work properly.
  3216. * src/RequestGroup.cc
  3217. Updated man page
  3218. * doc/aria2c.1.txt
  3219. * doc/aria2c.1
  3220. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3221. Removed.
  3222. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  3223. Use Segment::operator==()
  3224. * src/HttpConnection.cc
  3225. * src/Segment.h
  3226. Updated usage
  3227. * src/version_usage.cc
  3228. Added EINTR treatment.
  3229. * src/SocketCore.cc
  3230. * src/AbstractDiskWriter.cc
  3231. Rewritten.
  3232. * src/Util.cc (rangedFileCopy)
  3233. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3234. Fixed typo.
  3235. * src/version_usage.cc
  3236. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3237. Implemented. Now -c option works fine.
  3238. * src/DefaultPieceStorage.cc (markPiecesDone)
  3239. * test/DefaultPieceStorageTest.cc
  3240. Removed.
  3241. * src/SegmentMan.{h, cc}
  3242. (markAllPiecesDone)
  3243. (markPieceDone)
  3244. Synchronized po files with
  3245. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  3246. * src/fr.po
  3247. * src/ru.po
  3248. * src/de.po
  3249. * src/ja.po
  3250. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3251. Added ifdef and some modifications to compile without BitTorrent,
  3252. Metalink, MessageDigest
  3253. support.
  3254. * src/PieceHashCheckIntegrityEntry.cc
  3255. * src/MetalinkEntry.h
  3256. * src/version_usage.cc
  3257. * src/main.cc
  3258. * src/DownloadEngine.{h, cc}
  3259. * src/Metalink2RequestGroup.cc
  3260. * src/Peer.cc
  3261. * src/RequestGroup.cc
  3262. * src/MetalinkHelper.cc
  3263. * test/DefaultPieceStorageTest.cc
  3264. * test/MetalinkPostDownloadHandlerTest.cc
  3265. * test/Metalink2RequestGroupTest.cc
  3266. Hide TOTAL SPD when all downloads complete.
  3267. * src/ConsoleStatCalc.cc
  3268. Log target system information.
  3269. * src/main.cc
  3270. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Now --metalink-location accepts a comma-deliminated list of locations.
  3272. * src/MetalinkEntry.{h, cc}
  3273. * test/MetalinkEntryTest.cc
  3274. * src/version_usage.cc
  3275. * src/Metalink2RequestGroup.cc
  3276. * src/Xml2MetalinkProcessor.cc
  3277. * test/Xml2MetalinkProcessorTest.cc
  3278. * doc/aria2c.1.txt
  3279. * doc/aria2c.1
  3280. * src/Util.cc (toUpper)(toLower): Rewritten.
  3281. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3282. Added the ability to detect duplicate download entry which is about to
  3283. download the same file other RequestGroup is downloading.
  3284. * src/RequestGroup.cc
  3285. * src/HttpResponseCommand.cc
  3286. * src/FtpNegotiationCommand.cc
  3287. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3288. Recalculates download progress when loading a control file,
  3289. if the piece length of DownloadContext is different from the one saved
  3290. in the control file. Currently in-flight pieces are ignored.
  3291. * src/DefaultBtProgressInfoFile.cc
  3292. * test/DefaultBtProgressInfoFileTest.cc
  3293. * src/Util.{h, cc}
  3294. * test/UtilTest.cc
  3295. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3296. Do not rotate tiers in announce-list.
  3297. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  3298. AnnounceList::allTiersFailed() used instead to detect whether all
  3299. tiers are tried and failed.
  3300. * test/DefaultBtAnnounceTest.cc
  3301. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  3302. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  3303. * test/AnnounceListTest.cc
  3304. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  3305. clause. Catch RecoverableException instead of DlRetryEx instead.
  3306. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3307. Implemented checksum validation feature(1 checksum for each file)
  3308. The validation takes place after the download.
  3309. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  3310. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  3311. * src/CheckIntegrityCommand.cc: Changed log message.
  3312. * src/Metalink2RequestGroup.cc: Set checksum to
  3313. SingleFileDownloadContext.
  3314. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  3315. PieceHashCheckIntegrity class.
  3316. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  3317. PieceHashCheckIntegrity class.
  3318. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  3319. * src/IteratableValidator.h: New class.
  3320. * src/message.h
  3321. * src/CheckIntegrityEntry.{h, cc}
  3322. * src/IteratableChunkChecksumValidator.{h, cc}
  3323. * src/SingleFileDownloadContext.h
  3324. * src/DownloadCommand.cc
  3325. --allow-overwrite=true is no longer needed to check file integrity
  3326. before download in BitTorrent download.
  3327. * src/RequestGroup.cc (getInitialCommand)
  3328. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  3329. throws exception.
  3330. * src/RequestGroupMan.cc (getInitialCommands)
  3331. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3332. urlencode the given url inside Request::parseUrl(...)
  3333. * src/Request.{h, cc}
  3334. * src/Util.{h, cc}
  3335. * test/RequestTest.cc
  3336. Removed #!metalink3! notation support because it is deleted from
  3337. the metalink specification.
  3338. * src/Request.{h, cc}
  3339. * test/RequestTest.cc
  3340. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3341. Don't connect server before checking file integrity at startup, if
  3342. filesize and output file path are known.
  3343. * src/AbstractCommand.cc
  3344. * src/StreamFileAllocationEntry.cc
  3345. * src/Metalink2RequestGroup.cc
  3346. * src/RequestGroup.{h, cc}
  3347. * src/HttpResponseCommand.cc
  3348. * src/FtpNegotiationCommand.cc
  3349. Added DownloadFailureException. If it is thrown, RequestGroup should
  3350. halt.
  3351. * src/AbstractCommand.cc
  3352. * src/DownloadFailureException.h
  3353. * src/RequestGroup.cc
  3354. Catch RecoverableException, instead of DlAbortEx.
  3355. * src/RequestGroupMan.cc
  3356. * src/FillRequestGroupCommand.cc
  3357. * src/MetaFileUtil.cc
  3358. * src/IteratableChunkChecksumValidator.cc
  3359. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  3360. getGID())
  3361. * src/CheckIntegrityCommand.cc
  3362. * src/message.h
  3363. Print gid instead of idx.
  3364. * src/RequestGroupMan.cc
  3365. Removed exception throwers declaration.
  3366. * src/DirectDiskAdaptor.{h, cc}
  3367. * src/SocketCore.{h, cc}
  3368. * src/MultiDiskAdaptor.{h, cc}
  3369. * src/HttpConnection.{h, cc}
  3370. * src/HttpResponse.{h, cc}
  3371. * src/DiskAdaptor.{h, cc}
  3372. * src/CopyDiskAdaptor.{h, cc}
  3373. * src/MultiDiskAdaptor.{h, cc}
  3374. * src/HttpHeaderProcessor.{h, cc}
  3375. * src/AbstractSingleDiskAdaptor.{h, cc}
  3376. * src/Util.{h, cc}
  3377. * test/UtilTest.cc
  3378. * src/DefaultDiskWriter.{h, cc}
  3379. * src/FtpConnection.{h, cc}
  3380. * src/AbstractDiskWriter.{h, cc}
  3381. Removed duplicate code.
  3382. * src/StreamCheckIntegrityEntry.cc
  3383. Removed unnecessary include.
  3384. * src/DiskWriter.h
  3385. Included Exception.h
  3386. * src/option_processing.cc
  3387. Included 2 files and added doc
  3388. * src/TrackerWatcherCommand.cc
  3389. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  3390. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3391. Changed CheckIntegrityEntry interface so that it can define
  3392. the action when all the chunk checksums are valid.
  3393. * src/CheckIntegrityEntry.h
  3394. * src/StreamCheckIntegrityEntry.{h, cc}
  3395. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  3396. are valid, then aira2 goes to seeding mode. Sometimes it is better
  3397. to exit rather than doing seeding. So, it would be good to toggle this
  3398. behavior.
  3399. * src/CheckIntegrityCommand.cc
  3400. * src/AbstractCommand.cc
  3401. * src/RequestGroup.cc
  3402. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3403. Reflect the download length of in-flight pieces.
  3404. It makes the download length readout more precise.
  3405. * src/DefaultPieceStorage.{h, cc}
  3406. * test/DefaultPieceStorageTest.cc
  3407. * src/a2functional.h
  3408. * test/a2functionalTest.cc
  3409. Lower CPU load when --max-download-limit is used.
  3410. There is up and down in speed indicator when enabling
  3411. http-pipelining but a download goes well. I think the problem is that
  3412. because http-pipelining is enabled, DownloadCommand is created for
  3413. each segment and in its constructor, PeerStat::downloadStart() is
  3414. called. In PeerStat::downloadStart(), speed calculation object is
  3415. reseted, which makes download speed zero.
  3416. * src/DownloadCommand.cc
  3417. Rewritten using accumulate.
  3418. * src/RequestGroupMan.cc (calculateStat)
  3419. Code clearnup.
  3420. * src/FtpNegotiationCommand.cc
  3421. * src/HttpResponseCommand.cc
  3422. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3423. Fixed: Can not resume: aria2 reports download already finished.
  3424. * src/AbstractCommand.{h, cc}
  3425. * src/HttpResponseCommand.cc
  3426. * src/FtpNegotiateCommand.cc
  3427. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3428. Now a file is stored in the directory specified in .metalnk file
  3429. (file[@name]).
  3430. * src/Metalink2RequestGroup.cc
  3431. Create the directory structure when opening the file if it doesn't
  3432. exist.
  3433. * src/AbstractDiskWriter.cc
  3434. * src/Util.{h, cc}
  3435. * src/File.h
  3436. * test/UtilTest.cc
  3437. Removed file name comparison
  3438. * src/Metalink2RequestGroup.cc
  3439. * src/HttpResponseCommand.cc
  3440. Rewritten using Util::mkdirs()
  3441. * src/FileEntry.cc (setupDir)
  3442. * test/FileEntryTest.cc
  3443. Updated doc
  3444. * src/SingleFileDownloadContext.h
  3445. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3446. Now SleepCommand dispatches nextCommand when halt is requested.
  3447. It avoids a possible long wait after hitting CTRL-C.
  3448. * src/SleepCommand.{h, cc}
  3449. * src/RequestGroupAware.{h, cc}
  3450. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3451. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  3452. to open listen port, then remove the port number from the tracker
  3453. request.
  3454. * src/DefaultBtAnnounce.cc
  3455. * test/DefaultBtAnnounceTest.cc
  3456. * test/MockPieceStorage.h
  3457. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  3458. them more testable.
  3459. * src/DefaultBtAnnounce.{h, cc}
  3460. * src/DefaultBtContext.{h, cc}
  3461. * src/Util.{h, cc}
  3462. * test/DefaultBtAnnounceTest.cc
  3463. * test/DefaultBtContextTest.cc
  3464. * test/UtilTest.cc
  3465. Added 'B' to upload bytes readout.
  3466. * src/ConsoleStatCalc.cc
  3467. Now the listen port for BitTorrent download is opened when it is
  3468. needed.
  3469. * src/DownloadEngineFactory.cc
  3470. * src/BtSetup.{h, cc}
  3471. * src/PeerListenCommand.{h, cc}
  3472. Now an exception thrown while parsing tracker response is now logged.
  3473. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  3474. called, which means no retry is made in this case, assuming a tracker
  3475. has a problem.
  3476. * src/TrackerWatcherCommand.cc
  3477. Fixed: downloading a file whose length is unkown fails.
  3478. * src/DownloadCommand.cc
  3479. Simplified prepareForNextSegment()
  3480. * src/DownloadCommand.cc
  3481. Updated
  3482. * po/POTFILES.in
  3483. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3484. Re-implemented a file listing for Metalink, which was dropped while
  3485. http/ftp/torrent integration was being implemented.
  3486. * src/MetalinkHelper.{h, cc}: New class.
  3487. * test/MetalinkHelperTest.cc
  3488. * src/main.cc
  3489. * src/Metalink2RequestGroup.cc
  3490. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3491. Added the ability to display the detailed torrent file information.
  3492. Now -S option gives not only a file listing, but also total download
  3493. length, info hash, announce URI, piece length, the number of pieces,
  3494. and mode(single or multi-torrent).
  3495. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  3496. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  3497. KiB)
  3498. * test/UtilTest.cc
  3499. * src/main.cc
  3500. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3501. Added ftp://USER:PASSWD@Servername automatic parsing.
  3502. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  3503. _password. Recognize username and password in URI.
  3504. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  3505. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  3506. * src/RequestFactory.{h, cc}: Removed.
  3507. * src/AuthConfigFactory.{h, cc}: New class.
  3508. * src/FtpConnection.cc: Use AuthConfigFactory.
  3509. * src/HttpRequest.cc: Use AuthConfigFactory.
  3510. * test/HttpRequestTest.cc: Updated.
  3511. * test/RequestTest.cc: Updated.
  3512. * test/AuthConfigFactoryTest.cc: New class.
  3513. * test/RequestFactoryTest.cc: Removed.
  3514. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3515. Use RequestGroup::allDownloadFinished() to decide whether the control
  3516. file should be removed or saved.
  3517. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  3518. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  3519. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3520. Use File::renameTo()
  3521. * src/DefaultBtProgressInfoFile.cc
  3522. Added --no-file-allocation-limit command-line option.
  3523. * src/version_usage.cc
  3524. * src/option_processing.cc
  3525. * src/OptionHandlerFactory.cc
  3526. * src/RequestGroup.{h, cc}
  3527. * src/BtCheckIntegrityEntry.cc
  3528. * src/StreamCheckIntegrityEntry.cc
  3529. * src/prefs.h
  3530. * doc/aria2c.1.txt
  3531. * doc/aria2c.1
  3532. Now prealloc is the default value for --file-allocation option.
  3533. * src/version_usage.cc
  3534. * src/option_processing.cc
  3535. * doc/aria2c.1.txt
  3536. * doc/aria2c.1
  3537. Don't URL-encode user-agent.
  3538. * src/HttpRequest.cc
  3539. Updated translations
  3540. * po/LINGUAS: Added nl for Dutch translation.
  3541. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  3542. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  3543. * po/POTFILES.in: Updated.
  3544. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3545. Added the ability to recognize url-list in a torrent file.
  3546. The retrieved URLs are attached to the corresponding FileEntry.
  3547. * src/DefaultBtContext.{h, cc}
  3548. * src/FileEntry.{h, cc}
  3549. * test/DefaultBtContextTest.cc
  3550. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3551. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  3552. after the download finishes.
  3553. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3554. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  3555. the data smaller than block length.
  3556. A block length can be specified by constructor's argument.
  3557. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  3558. Get a missing piece in the range of given FileEntry. This function is
  3559. not used in the program yet.
  3560. * src/Util.h: Added some macros.
  3561. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3562. Added HTTP/1.1 keep alive and pipelining support.
  3563. See --enable-http-keep-alive and --enable-http-pipelining option.
  3564. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  3565. Segment.
  3566. * src/HttpDownloadCommand.{h, cc}
  3567. * src/OptionHandlerFactory.cc
  3568. * src/HttpConnection.{h, cc}
  3569. * src/version_usage.cc
  3570. * src/HttpInitiateConnectionCommand.cc
  3571. * src/FtpInitiateConnectionCommand.cc
  3572. * src/Segment.h
  3573. * src/HttpRequestCommand.{h, cc}
  3574. * src/option_processing.cc
  3575. * src/prefs.h
  3576. * src/HttpResponseCommand.cc
  3577. * src/SegmentMan.{h, cc}
  3578. * src/FtpNegotiateCommand.cc
  3579. * src/HttpProxyResponseCommand.cc
  3580. * src/Request.cc
  3581. * src/HttpRequest.cc
  3582. * src/DownloadCommand.cc
  3583. * test/HttpRequestTest.cc
  3584. * test/RequestTest.cc
  3585. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3586. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  3587. finished.
  3588. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3589. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  3590. catching it inside the method.
  3591. When no file entry is found in a metalink without querying user
  3592. preferences, throw the exception with the error message that suggests
  3593. metalink file is probably broken.
  3594. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  3595. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3596. Fixed the bug that prevents remote Metalink/Torrent file from begin
  3597. processed.
  3598. * src/RequestGroupMan.cc (removeStoppedGroup)
  3599. Added debug message.
  3600. * src/BtPostDownloadHandler.cc
  3601. * src/MetalinkPostDownloadHandler.cc
  3602. * src/PostDownloadHandler.{h, cc}
  3603. * src/RequestGroup.cc
  3604. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3605. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  3606. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3607. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  3608. stops and there are any unfinished or in-progress downloads.
  3609. Added the legend of "stat".
  3610. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3611. Throw exception when chunck checksum verification fails.
  3612. * src/DownloadCommand.cc (validatePieceHash): New function.
  3613. * src/PiecedSegment.{h, cc} (clear): New function.
  3614. * src/GrowSegment.{h, cc} (clear): New function.
  3615. * src/Segment.h (clear): New function.
  3616. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  3617. * test/SegmentTest.cc
  3618. * test/GrowSegmentTest.cc
  3619. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3620. Do not send referer when redirected.
  3621. * src/Request.cc (redirectUrl)
  3622. * test/RequestTest.cc
  3623. * test/HttpRequestTest.cc
  3624. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3625. Implemented BitTorrent/http/ftp integrated download.
  3626. I've rewritten lots of files and now some headers have forward
  3627. class declarations to reduce compile time.
  3628. The implementation is extremely alpha stage, I recommend to use this
  3629. for testing purpose only.
  3630. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3631. Fixed the compilation error on 64bit platform.
  3632. * test/HttpHeaderProcessorTest.cc
  3633. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3634. Merged Ross's patch that fixes compilation problem in MinGW
  3635. * test/DefaultBtProgressInfoFileTest.cc
  3636. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3637. Updated fr.po by sebone
  3638. * po/fr.po
  3639. Updated man page.
  3640. * doc/aria2c.1.txt
  3641. * Release 0.11.3
  3642. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3643. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  3644. failure in Metalink.
  3645. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3646. Automatically save *.aria2 control file of http/ftp download in every
  3647. 60 seconds.
  3648. * src/AutoSaveCommand.{h, cc}: New class.
  3649. * src/TimeBasedCommand.{h, cc}: New class.
  3650. * src/DownloadEngineFactory.cc (newConsoleEngine)
  3651. Disable parameterized URI support by default. Added -P option to
  3652. enable the feature.
  3653. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  3654. * src/OptionHandlerFactory.cc
  3655. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  3656. Updated Japanese translation.
  3657. * po/ja.po
  3658. Updated man page.
  3659. * doc/aria2c.1.txt
  3660. * Release 0.11.3-rc
  3661. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3662. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  3663. it is successful, then renamed to *.aria2.
  3664. This prevents *.aria2 file from being truncated or corrupted when
  3665. file system becomes out of space.
  3666. * src/DefaultBtProgressInfoFile.cc (save)
  3667. * src/SegmentMan.cc (save)
  3668. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  3669. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3670. Reduced the fragmentation of bitfield in http/ftp download.
  3671. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  3672. * test/BitfieldManTest.cc
  3673. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3674. Added the ability to disable segmented download in .metalink.
  3675. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  3676. 'url' tag.
  3677. * src/MetalinkEntry.{h, cc}
  3678. * src/RequestResource.{h, cc}
  3679. * src/MetalinkRequestInfo.cc
  3680. * src/Xml2MetalinkProcessor.cc
  3681. * test/Xml2MetalinkProcessorTest.cc
  3682. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3683. Added parameterized URI support.
  3684. * src/main.cc: -Z option added.
  3685. * src/OptionHandlerFactory.cc
  3686. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  3687. * src/PStringDatum.h: New class.
  3688. * src/PStringSegment.{h,cc}: New class.
  3689. * src/PStringNumLoop.h: New class.
  3690. * src/PStringSelect.h: New class.
  3691. * src/NumberDecorator.h: New class.
  3692. * src/FixedWidthNumberDecorator.h: New class.
  3693. * src/AlphaNumberDecorator.h: New class.
  3694. * src/PStringVisitor.h: New class.
  3695. * src/PStringBuildVisitor.{h,cc}: New class.
  3696. * src/ParameterizedStringParser.{h,cc}: New class.
  3697. * src/Util.{h,cc}
  3698. (isNumber): New function.
  3699. (isLowercase): New function.
  3700. (isUppercase): New function.
  3701. (alphaToNum): New function.
  3702. * test/ParameterizedStringParserTest.cc: New class.
  3703. * test/AlphaNumberDecoratorTest.cc: New class.
  3704. * test/PStringBuildVisitorTest.cc: New class.
  3705. * test/UtilTest.cc
  3706. (testIsNumber): New function.
  3707. (testIsLowercase): New function.
  3708. (testIsUppercase): New function.
  3709. (testAlphaToNum): New function.
  3710. Added '\n' after the error message
  3711. * src/RequestInfo.h (printDownloadAbortMessage)
  3712. Added auto file renaming feature in http(s)/ftp download.
  3713. * src/main.cc: Added --auto-file-renaming command-line option.
  3714. * src/OptionHandlerFactory.cc
  3715. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  3716. * src/RequestGroup.{h, cc}
  3717. (shouldCancelDownloadForSafety): Rewritten
  3718. (tryAutoFileRenaming): New function.
  3719. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  3720. * src/HttpResponseCommand.cc
  3721. (executeInternal): Removed the call to RequestGroupMan::
  3722. isSameFileBeingDownloaded()
  3723. * src/FtpNegotiateCommand.cc
  3724. (recvSize): Removed the call to RequestGroupMan::
  3725. isSameFileBeingDownloaded()
  3726. * test/RequestGroupTest.cc: New class.
  3727. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3728. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  3729. IO.
  3730. * src/DefaultBtProgressInfoFile.cc
  3731. * src/MetaFileUtil.cc
  3732. * src/SimpleLogger.cc
  3733. * src/SegmentMan.cc
  3734. * src/Util.cc
  3735. * src/Platform.cc
  3736. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3737. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  3738. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3739. Avoid sparse files if possible, because VFAT32 doesn't support it.
  3740. * src/DefaultDiskWriter.cc (initAndOpenFile)
  3741. Fixed the bug that prevents file allocation is not done when
  3742. dowloading multi-torrent file.
  3743. * src/AbstractDiskWriter.cc (openFile)
  3744. Increase the maximum number of -j option from 15 to 45.
  3745. * src/OptionHandlerFactory.cc (createOptionHandlers)
  3746. Added fr.po, thanks to Charles Landemaine.
  3747. * po/fr.po
  3748. * po/LINGUAS
  3749. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  3750. gcc 3.4.4 support:
  3751. * src/DefaultBtContext.cc: int32_t -> int
  3752. * src/main.cc: int -> int32_t, int32_t -> int
  3753. * src/messageDigest.h: uint32_t -> unsigned int
  3754. * src/NameResolver.h: int32_t -> int
  3755. * src/PeerConnection.cc: int -> int32_t
  3756. * src/SpeedCalc.cc: int32_t -> int
  3757. * src/TrackerUpdateCommand.h: int -> int32_t
  3758. * src/Util.cc: int32_t -> int
  3759. * src/Util.h: int32_t -> int
  3760. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  3761. * test/AnnounceListTest.cc: int -> int32_t
  3762. * test/ChunkedEncodingTest.cc: int -> int32_t
  3763. * test/DataTest.cc: int -> int32_t
  3764. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  3765. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  3766. * test/DefaultPieceStorageTest.cc: int -> int32_t
  3767. * test/FeatureConfigTest.cc: int -> int32_t
  3768. * test/MetalinkEntryTest.cc: int -> int32_t
  3769. * test/MockBtRequestFactory.h: int -> int32_t
  3770. * test/MockPieceStorage.h: int -> int32_t
  3771. * test/OptionTest.cc: int -> int32_t
  3772. * test/RequestTest.cc: int -> int32_t
  3773. * test/SegmentManTest.cc: int -> int32_t
  3774. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  3775. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  3776. Move sleep functions to Util class:
  3777. * src/Util.cc
  3778. (sleep): New function.
  3779. (usleep): New function.
  3780. * src/DownloadCommand.cc: sleep -> Util::sleep
  3781. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  3782. MinGW build enhancements. The following files are added:
  3783. * src/timegm.{c,h}
  3784. Changes to support the above new files:
  3785. * configure.ac
  3786. * src/Makefile.am
  3787. * src/a2time.h
  3788. * src/Util.cc:
  3789. * src/strptime.c: Added support for %Z option.
  3790. Fixed MinGW non-blocking bug.
  3791. * src/SocketCore.cc
  3792. * src/HttpRequestCommand.cc
  3793. Miscellenous build fixes/enhancements.
  3794. * configure.ac: Added summary report.
  3795. * src/Platform.h: Tweaked #include's.
  3796. * src/a2netcompat.h: Tweaked #include's.
  3797. * src/strptime.h: Tweaked #include's.
  3798. * src/gai_strerror.c: Tweaked #include's.
  3799. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  3800. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  3801. * src/gettimeofday.h: Added HAVE_CONFIG_H
  3802. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3803. Increased the initial connection size in BitTorrent download to 40.
  3804. * src/BtRuntime.h
  3805. Added the usage message of --peer-id-prefix option.
  3806. * src/main.cc
  3807. * Release 0.11.2
  3808. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3809. MessageDigestHelper is introduced in order to simplify the use
  3810. of message digest. Removed repeated code.
  3811. The message digest algorithm is now specified by string, like "sha1",
  3812. "md5".
  3813. * src/messageDigest.{h, cc}
  3814. * src/MessageDigestHelper.{h, cc}: New class.
  3815. * src/DefaultPieceStorage.cc
  3816. * src/DefaultBtContext.{h, cc}
  3817. (computeFastSet): New function.
  3818. (setInfoHash): Added for unit testing.
  3819. (setNumPieces): Added for unit testing.
  3820. * src/DefaultBtInteractive.cc
  3821. * src/BtPieceMessage.cc
  3822. * src/Peer.cc
  3823. * src/Checksum.h
  3824. * src/message.h
  3825. * src/IteratableChecksumValidator.h
  3826. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  3827. inside it.
  3828. * src/SegmentMan.{h, cc}
  3829. (checkIntegrity): Removed.
  3830. * src/IteratableChunkChecksumValidator.{h, cc}
  3831. * src/Util.h
  3832. (sha1Sum): Removed.
  3833. (simpleMessageDigest): Removed.
  3834. (fileChecksum): Removed.
  3835. (computeFastSet): Removed.
  3836. * src/ShaVisitor.cc
  3837. * src/ChunkChecksum.h
  3838. * src/DownloadCommand.cc
  3839. Removed messageDigest virtual functions.
  3840. * src/MultiDiskAdaptor.{h, cc}
  3841. * src/DiskAdaptor.h
  3842. * src/ByteArrayDiskWriter.h
  3843. * src/DiskWriter.h
  3844. * src/DiskAdaptorWriter.h
  3845. * src/AbstractSingleDiskAdaptor.{h, cc}
  3846. * src/AbstractDiskWriter.{h, cc}
  3847. Fixed comilation error when message digest is disabled.
  3848. * src/MetalinkEntry.{h, cc}
  3849. * src/MetalinkRequestInfo.cc
  3850. Removed srandom and random.
  3851. * src/SimpleRandomizer.h
  3852. Added size() virtual function to DiskAdaptor
  3853. * src/MultiDiskAdaptor.h
  3854. Fixed the bug that causes that files are not opened correctly in
  3855. multi-file torrent.
  3856. * src/TorrentRequestInfo.cc
  3857. * src/MultiDiskAdaptor.cc
  3858. Added SHA256 support
  3859. * src/messageDigest.cc
  3860. * src/Xml2MetalinkProcessor.cc
  3861. Show supported message digest algorithms
  3862. * src/main.cc
  3863. Updated contact info.
  3864. * src/main.cc
  3865. Applied Ross's patch
  3866. * src/a2netcompat.h
  3867. * src/main.cc
  3868. Fixed the bug that prevents a remote metalink from not being processed
  3869. even if '-o foo.metalink' is specified.
  3870. * src/MetalinkRequestInfo.cc
  3871. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3872. Merged Dan's patch:
  3873. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  3874. Use va_copy to avoid core dump on amd64:
  3875. * src/SimpleLogger.cc
  3876. Updated contact info.
  3877. * src/main.cc
  3878. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  3879. digest is not available.
  3880. * src/MetalinkEntry.h
  3881. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3882. Make a2netcompat.h include a2io.h to fix compilation error:
  3883. * src/a2netcompat.h
  3884. * src/SocketCore.cc: Removed include of a2io.h
  3885. * src/Util.cc: Removed include of a2io.h
  3886. Gather time related functions to a2time.h:
  3887. * src/a2time.h: New file.
  3888. * src/DefaultPeerStorage.cc
  3889. * src/SimpleLogger.cc
  3890. * src/Util.{h, cc}
  3891. * src/SimpleRandomizer.h
  3892. * src/TimeA2.{h,cc}
  3893. * src/DownloadCommand.cc
  3894. * src/main.cc
  3895. Removed #ifdef __MINGW32__ since gai_strerror is included in
  3896. a2netcompat.h:
  3897. * src/NameResolver.cc
  3898. Fixed compilation error without openssl:
  3899. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  3900. Added default block to suppress compiler warnings:
  3901. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  3902. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  3903. MinGW build enhancements. The following files are added:
  3904. * src/gai_strerror.{c,h}
  3905. * src/gettimeofday.{c,h}
  3906. Changes to support the above new files:
  3907. * configure.ac
  3908. * src/Makefile.am
  3909. * src/a2netcompat.h
  3910. * src/TimeA2.cc
  3911. * src/DefaultPeerStorage.cc
  3912. * src/NameResolver.cc: removed mingw_strerror() function.
  3913. * src/SocketCore.cc: removed mingw_strerror() function.
  3914. Miscellaneous MinGW build fixes.
  3915. * src/a2io.h: Use _lseeki64() instead of lseek()
  3916. * src/common.h
  3917. * src/DefaultFileAllocator.cc
  3918. * src/GlowFileAllocator.cc
  3919. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  3920. * src/NameResolver.cc
  3921. (callback): Changed int32_t to int.
  3922. (resolve): Changed int32_t to int.
  3923. * src/Platform.cc
  3924. * src/Platform.h
  3925. * test/MultiDiskWriterTest.cc
  3926. * test/PeerMessageUtilTest.cc
  3927. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  3928. Other enhancements and fixes.
  3929. * src/HttpRequestCommand.cc
  3930. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  3931. * src/SocketCore.cc:
  3932. (error): New function to abstract errno/WSAGetLastError().
  3933. (errorMsg): New function to abstract errno/WSAGetLastError().
  3934. (initiateSecureConnection): Added more detailed error reporting.
  3935. * src/SocketCore.h: Added private variable blocking, to allow
  3936. proper handling of OpenSSL psuedo-errors.
  3937. * src/message.h
  3938. (EX_SSL_INIT_FAILURE)
  3939. (EX_SSL_IO_ERROR)
  3940. (EX_SSL_PROTOCOL_ERROR)
  3941. (EX_SSL_UNKNOWN_ERROR)
  3942. (EX_SSL_CONNECT_ERROR)
  3943. (EX_SOCKET_BLOCKING)
  3944. (EX_SOCKET_NONBLOCKING)
  3945. (EX_SOCKET_UNKNOWN_ERROR)
  3946. * src/Util.cc
  3947. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  3948. reserved name.
  3949. (httpGMT): Fixed typo.
  3950. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3951. Merged Ross's win32 patch(manually)
  3952. In the course of merging, following files are added.
  3953. * src/strptime.{h,c}
  3954. * src/libgen.{h,c}
  3955. * src/inet_aton.{h,c}
  3956. * src/Platform.{h,cc}
  3957. * src/localtime_r.{h,c}
  3958. * src/getaddrinfo.{h,c}
  3959. I've gethered network related things, and put them to following file:
  3960. * src/a2netcompat.h
  3961. Also io related things are put to following file:
  3962. * src/a2io.h
  3963. Changed %lld to %s because mingw32 doesn't recognize %lld.
  3964. * src/message.h
  3965. (MSG_ALLOCATION_COMPLETED)
  3966. (EX_TOO_LARGE_FILE)
  3967. (EX_SIZE_MISMATCH)
  3968. (EX_FILE_OFFSET_OUT_OF_RANGE)
  3969. (EX_INVALID_CHUNK_CHECKSUM)
  3970. (EX_INVALID_RANGE_HEADER)
  3971. * src/FileAllocationCommand.cc
  3972. * src/HttpResponse.cc
  3973. * src/RequestGroup.cc
  3974. * src/MultiDiskAdaptor.cc
  3975. * src/OptionHandlerImpl.h
  3976. * src/HttpResponseCommand.cc
  3977. * src/FtpNegotiateCommand.cc
  3978. * src/IteratableChecksumValidator.cc
  3979. * src/SegmentMan.cc
  3980. * src/ChunkChecksumValidator.cc
  3981. Added Randomizer::getRandomNumber(long int)
  3982. * src/Randomizer.h (getRandomNumber)
  3983. * src/SimpleRandomizer.h (getRandomNumber)
  3984. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  3985. * src/Util.cc (randomAlpha): Use this new function.
  3986. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3987. Converted int's to in32_t. long long int's are also converted to
  3988. int64_t
  3989. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3990. Fixed the bug that prevents cookies from being sent to the server
  3991. if the domain of cookie is FQDN and starts with ".".
  3992. * src/Cookie.cc (match)
  3993. To add the ability to change peer id.
  3994. * src/DefaultBtContext.h
  3995. (_peerIdPrefix): New variable
  3996. (setPeerIdPrefix): New function.
  3997. * src/torrentRequestInfo.cc
  3998. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  3999. DefaultBtContext.
  4000. * src/main.cc (main): Added peer-id-prefix command-line option.
  4001. The usage message is not added yet.
  4002. * src/DefaultBtContext.cc
  4003. (generatePeerId): Use _peerIdPrefix.
  4004. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  4005. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4006. Fixed the bug that prevents filename in content-disposition from
  4007. being retrieved when filename is not quoted.
  4008. * src/Util.cc (getContentDispositionFilename)
  4009. Fixed the bug that causes infinate loop and memory leak when file open
  4010. operation failed.
  4011. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4012. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4013. Fixed the bug that causes segfault when all URIs specified are
  4014. unsupported.
  4015. * src/RequestGroupMan.cc (getInitialCommands)
  4016. Check if RequestGroup::createNextCommand() returns empty list of
  4017. commands.
  4018. * src/RequestGroup.cc (createNextCommand)
  4019. Change log level from info to error so that users can notice that
  4020. an error occurred.
  4021. Fixed the bug that causes segfault when a zero-sized file is
  4022. downloaded.
  4023. * src/BitfieldMan.cc (isAllBitSet)
  4024. Return true if bitfieldLength is 0.
  4025. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. * src/main.cc
  4027. (showUsage): Added 3 usage examples for metalink download.
  4028. Replace MetalinkChunkChecksum with ChunkChecksum.
  4029. * src/MetalinkChunkChecksum.h: Removed.
  4030. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  4031. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  4032. * src/Xml2MetalinkProcessor.cc
  4033. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  4034. * src/MetalinkRequestInfo.cc (execute)
  4035. * Release 0.11.1
  4036. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4037. Reads URIs from stdin when "-i -" is specified.
  4038. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  4039. * src/UriListParser.h, src/UriListParser.cc: New class.
  4040. * src/StreamUriListParser.h: New class.
  4041. * src/FileUriListParser.h: New class.
  4042. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  4043. instead of UriFileListParser.
  4044. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4045. Made console readout more readable.
  4046. * src/ConsoleDownloadEngine.cc (sendStatistics)
  4047. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4048. Fix the bug that causes -s option not to work.
  4049. * src/main.cc (main)
  4050. * src/a2algo.h: New file.
  4051. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4052. Create directory structure specified in metalink file.
  4053. * src/RequestGroup.h, src/RequestGroup.cc
  4054. (initAndOpenFile): Create a directory to store files if it does not
  4055. exist.
  4056. (getDir): New function.
  4057. Added ETA and download speed for an individual file to readout.
  4058. * src/ConsoleDownloadEngine.cc (sendStatistics)
  4059. * src/RequestGroup.h
  4060. (calculateDownloadSpeed): New function.
  4061. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4062. Made -S option work with metalink file and provided selective download
  4063. to metalink.
  4064. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  4065. (filename): Removed.
  4066. (file): New variable.
  4067. (size): Removed.
  4068. (operator=): Updated.
  4069. (getPath): New function.
  4070. (getLength): New function.
  4071. (toFileEntry): New function.
  4072. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  4073. (execute): Use toStream.
  4074. (showFileEntry): Removed.
  4075. * src/MetalinkRequestInfo.h
  4076. (targetFiles): New variable.
  4077. (setTargetFiles): New variable.
  4078. * src/MetalinkRequestInfo.cc
  4079. (execute): Added the ability to print file information included in
  4080. a metalink file.
  4081. Added selective download mode to metalink.
  4082. * src/main.cc
  4083. (showUsage): Updated to denote that -S and --select-file options are
  4084. applicable to metalink.
  4085. * src/FileEntry.h
  4086. (operator=): New function.
  4087. (getBasename): New function.
  4088. (getDirname): New function.
  4089. * src/Util.h, src/Util.cc
  4090. (toStream): New function.
  4091. * src/Xml2MetalinkProcessor.cc: Updated.
  4092. Made aria2 work with metalink with directory structure.
  4093. * src/File.h, src/File.cc
  4094. (getBasename): New function.
  4095. (getDirname): New function.
  4096. * src/RequestGroup.h, src/RequestGroup.cc
  4097. (_topDir): New variable.
  4098. (setTopDir): New function.
  4099. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  4100. Rewrote HTTP header parsing with stringstream.
  4101. * src/HttpConnection.h, src/HttpConnection.cc
  4102. (HttpRequestEntry): New class.
  4103. (headerBuf): Removed.
  4104. (headerBufLength): Removed.
  4105. (outstandingHttpRequests): Now its element type is
  4106. HttpRequestEntryHandle.
  4107. (findEndOfHeader): Removed.
  4108. (receiveResponse): Rewritten.
  4109. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  4110. Updated doc for -j option to notice that it should be used with -i
  4111. option.
  4112. * src/main.cc (showUsage)
  4113. Removed unused classes.
  4114. * src/RequestInfo.h
  4115. (FileInfo): Removed.
  4116. (checksum): Removed.
  4117. (fileInfo): Removed.
  4118. (setChecksum): Removed.
  4119. (getChecksum): Removed.
  4120. (getFileInfo): Removed.
  4121. Use ISO units.
  4122. * src/ConsoleDownloadEngine.cc
  4123. * src/TorrentConsoleDownloadEngine.cc
  4124. * src/Util.cc (abbrevSize)
  4125. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4126. Added the default listening ports to the help message.
  4127. * src/main.cc (showUsage)
  4128. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4129. Reduce the number of calls to gettimeofday to lower CPU load.
  4130. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  4131. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  4132. * src/Peer.h (calculateUploadSpeed): New function.
  4133. (calculateDownloadSpeed): New function.
  4134. * src/DefaultPeerStorage.cc
  4135. (CalculateStat): Added _now variable.
  4136. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  4137. and Peer::calculateUploadSpeed(const struct timeval&)
  4138. Drop connection if no request or piece message is exchanged in
  4139. a certain interval.
  4140. * src/DefaultBtInteractive.h
  4141. (btRuntime): New variable.
  4142. (inactiveCheckPoint): New variable.
  4143. (checkActiveInteraction): New function.
  4144. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  4145. request or piece message is received.
  4146. (checkActiveInteraction): New function.
  4147. (doInteractionProcessing): Call checkActiveInteraction.
  4148. Fixed the bug that causes remote Metalink and Torrent files are not
  4149. processed.
  4150. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  4151. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4152. Changed format of log file.
  4153. * src/SimpleLogger.cc
  4154. * Release 0.11.0
  4155. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4156. * src/AbstractCommand.cc
  4157. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  4158. MSG_MAX_TRY from error to info.
  4159. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  4160. * src/message.h
  4161. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  4162. (MSG_DOWNLOAD_ABORTED): Added %s.
  4163. (MSG_RESTARTING_DOWNLOAD): Added %s.
  4164. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  4165. * src/PeerAbstractCommand.cc
  4166. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  4167. * src/Request.h
  4168. (cookieBox): Made ShardHandle.
  4169. * src/RequestGroup.h, src/RequestGroup.cc
  4170. (createNextCommandWithAdj): New function.
  4171. * src/FileAllocationCommand.cc
  4172. (executeInternal): Use createNextCommandWithAdj().
  4173. * src/CheckIntegrityCommand.cc
  4174. (executeInternal): Use createNextCommandWithAdj().
  4175. Added --load-cookies command-option.
  4176. * src/OptionHandlerFactory.cc
  4177. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  4178. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  4179. Now aria2 can handle cookie's expiration date.
  4180. * src/Cookie.h (expires): Changed its type to time_t.
  4181. * src/main.cc: Added --load-cookies command-line option.
  4182. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  4183. * src/Util.h, src/Util.cc (httpGMT): New function.
  4184. * src/Request.cc (Request): Initialize cookieBox using
  4185. CookieBoxFactory.
  4186. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  4187. * src/CookieParser.h, src/CookieParser.cc: New class.
  4188. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  4189. * src/HttpResponseCommand.cc
  4190. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  4191. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  4192. download.
  4193. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4194. Added -j command-line option.
  4195. * src/OptionHandlerFactory.cc (createOptionHandlers)
  4196. * src/main.cc
  4197. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  4198. Rewritten using stringstream.
  4199. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  4200. Rewritten using stringstream.
  4201. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4202. Make download size shown in MB, KB.
  4203. * src/ConsoleDownloadEngine.h (sendStatistics)
  4204. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  4205. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4206. Accept incoming connections if download rate is low.
  4207. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  4208. (_lowestSpeedLimit): New variable.
  4209. (setLowestSpeedLimit): New function.
  4210. (execute): Accept incoming connections if download rate is low.
  4211. MAX_PEERS is ignored in this case.
  4212. Disable PREF_OUT in multiple concurrent download:
  4213. * src/RequestGroup.h, src/RequestGroup.cc
  4214. (setUserDefinedFilename): New function.
  4215. * src/DownloadEngineFactory.cc
  4216. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  4217. concurrent download.
  4218. * src/DefaultSegmentManFactory.cc
  4219. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  4220. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4221. RequestGroup::getNextCommand() was renamed to createNextCommand().
  4222. Added its overloaded method.
  4223. * src/RequestGroup.h
  4224. (_numConcurrentCommand): New variable.
  4225. (setNumConcurrentCommand): New function.
  4226. * src/RequestGroup.cc
  4227. Abort download if same file is being downloaded concurrently.
  4228. * src/RequestGroup.h, src/RequestGroupMan.cc
  4229. (isSameFileBeingDownloaded): New function.
  4230. * src/HttpResponseCommand.cc (executeInternal)
  4231. * src/FtpNegotiateCommand.cc (recvSize)
  4232. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  4233. * main.cc: Added help message for -i option.
  4234. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4235. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  4236. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  4237. * src/MetalinkEntry.h
  4238. (checksum): Changed to ChecksumHandle
  4239. * src/MetalinkRequestInfo.cc
  4240. (checksum): Changed to ChecksumHandle
  4241. * src/File.cc
  4242. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  4243. * src/common.h
  4244. (DIR_OPEN_MODE): New definition
  4245. * src/RequestGroup.cc
  4246. (prepareForNextAction): Added an argument.
  4247. * src/message.h
  4248. (MSG_GOOD_CHECKSUM): New definition
  4249. (MSG_BAD_CHECKSUM): New definition
  4250. * src/HttpResponseCommand.cc
  4251. (handleDefaultEncoding): Continue download sequence in new
  4252. non-segmented download.
  4253. * src/FileAllocationEntry.h
  4254. (_nextDownloadCommand): New variable.
  4255. * src/DownloadCommand.cc
  4256. (prepareForNextSegment): Create ChecksumCommand if checksum is
  4257. available.
  4258. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  4259. * src/IteratableChecksumValidator.h,
  4260. src/IteratableChecksumValidator.cc: New class.
  4261. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  4262. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Change file mode to 666:
  4264. * src/common.h (OPEN_MODE): New definition.
  4265. * src/File.cc
  4266. * src/Util.cc
  4267. * src/Directry.cc
  4268. * src/AbstractDiskWriter.cc
  4269. Change the level of log message "download aborted" to debug:
  4270. * src/PeerAbstractCommand.cc (execute)
  4271. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  4272. * src/TrackerWatcherCommand.cc
  4273. (createCommand): Sleep some seconds after request failed.
  4274. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  4275. then abort tracker request.
  4276. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4277. * Added the simultaneous download feature.
  4278. * src/main.cc: Print "Exception caught: " when exception is caught.
  4279. Use CUIDCounter instead of BtRuntime::getNewCuid():
  4280. * src/ActivePeerConnectionCommand.cc
  4281. * src/PeerInteractionCommand.cc
  4282. * src/BtRuntime.h
  4283. (cuidCounter): Removed.
  4284. (getNewCuid): Removed.
  4285. * src/DownloadEngineFactory.cc
  4286. * src/PeerListenCommand.cc
  4287. * src/TrackerUpdateCommand.cc
  4288. * src/PeerInitiateConnectionCommand.cc
  4289. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4290. * src/PeerAbstractCommand.cc
  4291. (onAbort): Call PeerStorage::returnPeer()
  4292. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  4293. (incomingPeers): New variable.
  4294. (addIncomingPeer): New function.
  4295. (returnPeer): New function.
  4296. (onErasingPeer): New function.
  4297. (addPeer): push_back -> push_front
  4298. (getActivePeers): Rewritten.
  4299. (calculateStat): Rewritten.
  4300. * src/PeerStorage.h
  4301. (TransferStat::copy): New function.
  4302. (TransferStat::TransferStat): New function.
  4303. (TransferStat::operator=): New function.
  4304. (addIncomingPeer): New function.
  4305. (returnPeer): New function.
  4306. * src/PeerListenCommand.cc
  4307. (execute): Use PeerStorage::addIncomingPeer() instead of
  4308. Peer::addPeer().
  4309. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4310. Connect to a peer actively when download speed is lower than specified
  4311. speed in torrent download:
  4312. * src/ActivePeerConnectionCommand.h: New class.
  4313. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4314. * src/HttpRequest.cc (createRequest): url-encode user-agent
  4315. * src/main.cc: Fixed the bug that prevents download if .netrc
  4316. doesn't exist.
  4317. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4318. To cache resolved hostname:
  4319. * src/AbstractCommand.h, src/AbstractCommand.cc
  4320. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  4321. Added dns cache.
  4322. * src/FtpInitiateConnectionCommand.cc
  4323. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  4324. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  4325. NameResolver working without ares.
  4326. * src/TorrentRequestInfo.cc
  4327. (execute): Don't cache dns in torrent download.
  4328. * src/HttpInitiateConnectionCommand.cc
  4329. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  4330. * src/DNSCache.h: New class.
  4331. * src/UrlRequestInfo.cc
  4332. (execute): Use dns cache.
  4333. In http request, suppress port number in http request header if port
  4334. is 80 or 443:
  4335. * src/HttpRequest.cc (getHostText): Suppress port number in http
  4336. request header if port is 80 or 443.
  4337. (createProxyRequest): Allways send port number.
  4338. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4339. To add the command-line option which disables netrc support:
  4340. * src/OptionHandlerFactory.cc
  4341. (createOptionHandlers): Added PREF_NO_NETRC.
  4342. * src/main.cc: Added -n option.
  4343. * src/prefs.h (PREF_NO_NETRC): New definition.
  4344. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  4345. V_TRUE.
  4346. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  4347. is V_FALSE. This may get configurable in the future release.
  4348. To clear peer's error status by time basis:
  4349. * src/PeerAbstractCommand.cc
  4350. (onAbort): Call Peer::startBadCondition().
  4351. * src/Peer.h, src/Peer.cc
  4352. (error): Removed.
  4353. (_badConditionStartTime): New variable.
  4354. (_badConditionInterval): New variable. Initialized to 10 seconds.
  4355. (startBadCondition): New function.
  4356. (isGood): New function.
  4357. * src/DefaultPeerStorage.cc
  4358. (addPeer): Use Peer::isGood().
  4359. (FindFinePeer): Use Peer::isGood().
  4360. Always include port number in http request header:
  4361. * src/HttpRequest.cc (getHostText): Always include port number in
  4362. http request header.
  4363. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4364. To the ability to read options from a config file:
  4365. * src/main.cc: Command-line parameter validation is delegated to
  4366. OptionHandler class.
  4367. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  4368. * src/Option.h, src/Option.cc (clear): New function.
  4369. * src/OptionParser.h, src/OptionParser.cc: New class.
  4370. * src/OptionHandler.h: New class.
  4371. * src/NameMatchOptionHandler.h: New class.
  4372. * src/OptionHandlerImpl.h: New classes.
  4373. * src/prefs.h: '_' -> '-'
  4374. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  4375. (FTP_PASV): New definition.
  4376. * src/Util.h, src/Util.cc (getRealSize): New function.
  4377. To disable netrc support if .netrc file does not have correct
  4378. permissions:
  4379. * src/File.h, src/File.cc (mode): New function.
  4380. To prevent confidential information to be logged:
  4381. * src/HttpConnection.h, src/HttpConnection.cc
  4382. (eraseConfidentialInfo): New function.
  4383. (sendRequest): Call eraseConfidentialInfo().
  4384. (sendProxyRequest): Call eraseConfidentialInfo().
  4385. * src/main.cc: Validate permissions of .netrc file.
  4386. To add --user-agent command-line option:
  4387. * src/main.cc: Added new command line option: --user-agent
  4388. * src/prefs.h (PREF_USER_AGENT): New definition.
  4389. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  4390. parameter to HttpRequest object.
  4391. * src/AbstractProxyRequestCommand.cc
  4392. (executeInternal): Set user-agent option parameter to HttpRequest
  4393. object.
  4394. Marged the patches from Dan Fandrich.
  4395. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4396. Use filename and size from Metalink file instead of sending HEAD
  4397. request:
  4398. * src/UrlRequestInfo.h
  4399. (_filename): New variable.
  4400. (_totalLength): New variable.
  4401. (setTotalLength): New variable.
  4402. (setFilename): New variable.
  4403. * src/MetalinkRequestInfo.cc
  4404. (execute): Set filename and size to UrlRequestInfo
  4405. * src/UrlRequestInfo.cc
  4406. (execute): Use filename and size from Metalink instead of seding
  4407. HEAD request to servers.
  4408. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4409. To add the ability to resume downloading a partially downloaded file
  4410. which is downloaded from the beginning:
  4411. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  4412. takes this role.
  4413. * src/main.cc: Added -c option.
  4414. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  4415. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  4416. * src/prefs.h (PREF_CONTINUE): New definition.
  4417. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  4418. * src/DefaultDiskWriter.cc
  4419. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  4420. * src/AbstractDiskWriter.h
  4421. (glowFileAllocator): New variable.
  4422. * src/AbstractDiskWriter.cc
  4423. (openExistingFile): Now preallocate file space from the end of the
  4424. existing file if totalLength argument is specified and grater than 0.
  4425. * src/UrlRequestInfo.cc: If -c option is specified and the file
  4426. to download exists in local, continue the download of the file.
  4427. --allow-overwrite=true is assumed in this context.
  4428. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  4429. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  4430. Throw exception if --check-integrity=true is specified but chunk
  4431. checksums are not provided:
  4432. * src/UrlRequestInfo.cc
  4433. Do not print URLs to stdout:
  4434. * src/UrlRequestInfo.cc
  4435. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4436. * src/Request.h: Use AuthResolver to get authentication information.
  4437. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  4438. set to RequestFactory object.
  4439. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  4440. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  4441. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  4442. create Request object.
  4443. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  4444. To integrate Netrc into exsiting classes:
  4445. * src/Request.h
  4446. (_userDefinedAuthConfig): New variable.
  4447. (findNetrcAuthenticator): New function.
  4448. (segment): Removed.
  4449. (setUserDefinedAuthConfig): New function.
  4450. (resolveHttpAuthConfigItem): New function.
  4451. (resolveFtpAuthConfigItem): New function.
  4452. (resolveHttpProxyAuthConfigItem): New function.
  4453. * src/HttpRequest.h
  4454. (authConfig): Removed.
  4455. (proxyAuthConfig): Removed.
  4456. (setAuthConfig): Removed.
  4457. (setProxyAuthConfig): Removed.
  4458. * src/UrlRequest.h
  4459. (getHeadResult): Added a parameter: authConfigHandle
  4460. * src/common.h
  4461. (SingletonHolder.h): New include.
  4462. * src/main.cc
  4463. (Netrc.h): New include.
  4464. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  4465. Added initial value of PREF_NETRC_PATH.
  4466. Added the initialization of netrc.
  4467. * src/AuthConfig.h: New class.
  4468. * src/prefs.h
  4469. (PREF_NETRC_PATH): New definition.
  4470. * src/HttpAuthConfig.h: Removed.
  4471. * src/Netrc.cc
  4472. (getRequiredNextToken): New function.
  4473. (skipMacdef): New function.
  4474. (parse): Rewritten.
  4475. * src/Netrc.h
  4476. (getRequiredNextToken): New function.
  4477. (skipMacdef): New function.
  4478. * src/Util.h, src/Util.cc
  4479. (getHomeDir): New function.
  4480. * src/TrackerWatcherComand.cc
  4481. (createRequestCommand): Use AuthConfig.
  4482. * src/FtpConnection.cc
  4483. (sendUser): Use Request::resolveFtpAuthConfigItem().
  4484. (sendPass): Use Request::resolveFtpAuthConfigItem().
  4485. * src/Request.cc
  4486. (findNetrcAuthenticator): New function.
  4487. (resolveHttpAuthConfigItem): New function.
  4488. (resolveFtpAuthConfigItem): New function.
  4489. (resolveHttpProxyAuthConfigItem): New function.
  4490. * src/UrlRequestInfo.cc: Use AuthConfig.
  4491. * src/HttpRequest.cc
  4492. (createRequest): Use authConfig.
  4493. (getProxyAuthString): Use authConfig.
  4494. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  4495. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  4496. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4497. To reduce overhead to find commands whose socket is either
  4498. readable or writable in the download engine loop:
  4499. * src/Command.h, src/Command.cc
  4500. (STATUS): New enum.
  4501. (status): New variable.
  4502. (statusMatch): New function.
  4503. (setStatusActive): New function.
  4504. (setStatusInactive): New function.
  4505. * src/DownloadEngine.h, src/DownloadEngine.cc
  4506. (executeCommand): New function.
  4507. (run): Simplified.
  4508. (waitData): Call Command::setStatusActive() when command's socket is
  4509. readable or writable.
  4510. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4511. To handle Segment as SegmentHandle:
  4512. * src/AbstractCommand.cc (execute): Rewritten.
  4513. * src/SegmentMan.h: Segment -> SegmentHandle
  4514. Introducded HttpResponse class, HttpRequest class to improve code
  4515. extensiveness and make it clear:
  4516. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  4517. HttpResponse class.
  4518. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  4519. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  4520. * src/HttpConnection.cc: Contruction of http request were moved to
  4521. HttpRequest class.
  4522. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  4523. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  4524. * src/HttpAuthConfig.h: New class.
  4525. * src/Range.h: New class.
  4526. To make FtpTunnel{Request, Response}Command and
  4527. HttpProxy{Request, Response}Command derived from
  4528. AbstractProxy{Request, Response}Command:
  4529. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  4530. Derived from AbstractProxyRequestCommand class.
  4531. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  4532. Derived from AbstractProxyResponseCommand class.
  4533. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  4534. Derived from AbstractProxyRequestCommand class.
  4535. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  4536. Derived from AbstractProxyResponseCommand class.
  4537. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  4538. : New class.
  4539. * src/AbstractProxyResponseCommand.h,
  4540. src/AbstractProxyResponseCommand.cc: New class.
  4541. To add netrc support:
  4542. * src/Netrc.h, src/Netrc.cc: New class.
  4543. * src/Util.h, src/Util.cc (split): New function.
  4544. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  4545. "Content-Range" header instead of "Range" header.
  4546. * src/HttpHeader.h
  4547. (getStatus): Removed.
  4548. (setStatus): Removed.
  4549. * src/Segment.h
  4550. (getPositionToWrite): New function.
  4551. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4552. * src/HttpHeader.h
  4553. (Range.h): New include.
  4554. (status): New variable.
  4555. (HttpHeader): Initialized status with 0.
  4556. (getStatus): New function.
  4557. (setStatus): New function.
  4558. (getRange): New function.
  4559. (HttpHeaderHandle): New function.
  4560. * src/HttpHeader.cc
  4561. (getRange): New function.
  4562. * src/Request.h
  4563. (RequestWeakHandle): New definition.
  4564. * src/HttpConnection.h
  4565. (HttpConnectionHandle): New type definition.
  4566. * src/HttpConnection.cc
  4567. (receiveResponse): Set HTTP status to headers.
  4568. * src/main.cc
  4569. (showUsage): Fixed typo.
  4570. * src/Segment.h
  4571. (SegmentHandle): New type definition.
  4572. * src/BitfieldMan.h
  4573. (getMissingUnusedLength): New function.
  4574. * src/BitfieldMan.cc
  4575. (getMissingUnusedLength): New function.
  4576. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4577. To fix static initialization order problem:
  4578. * src/BitfieldManFactory.h
  4579. (defaultRandomizer): Removed.
  4580. (factory): New variable.
  4581. (getNewFactory): Removed.
  4582. (getFactoryInstance): New function.
  4583. (setDefaultRandomizer): Rewritten.
  4584. (getDefaultRandomizer): Rewritten.
  4585. * src/BitfieldManFactory.cc
  4586. (defaultRandomizer): Removed.
  4587. (factory): Initialized to 0.
  4588. (BitfieldManFactory): Initialized randomizer to 0.
  4589. * src/DefaultPieceStorage.cc
  4590. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  4591. * src/Peer.cc
  4592. (Peer): getNewFactory() -> getFactoryInstance()
  4593. * src/SegmentMan.cc
  4594. (initBitfield): getNewFactory() -> getFactoryInstance()
  4595. * src/Piece.cc
  4596. (Piece): getNewFactory() -> getFactoryInstance()
  4597. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4598. To fix the bug that causes crash on Max OS X:
  4599. * src/SimpleRandomizer.h
  4600. (getInstance): Create new instance if the static variable is null.
  4601. * src/SimpleRandomizer.cc
  4602. (randomizer): Initialized to 0.
  4603. * src/BitfieldManFactory.h
  4604. (getNewFactory): Removed the call to setRandomizer().
  4605. To fix the miscalculation of the range of checksum:
  4606. * src/BitfieldMan.h
  4607. (isBitSetOffsetRange): New function.
  4608. * src/BitfieldMan.cc
  4609. (isBitSetOffsetRange): New function.
  4610. * src/SegmentMan.cc
  4611. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  4612. Use bitfield->getBlockLength() instead of segment.segmentLength.
  4613. * Release 0.10.1
  4614. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4615. To lower CPU usage in BitTorrent download when --max-upload-limit
  4616. command-line option specified:
  4617. * src/DefaultBtMessageDispatcher.cc
  4618. (sendMessages): Calculate uploading speed only when current message
  4619. is uploading data and is not sent yet.
  4620. * src/DefaultPeerStorage.h
  4621. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  4622. * src/HttpResponseCommand.cc
  4623. (handleDefaultEncoding): Added the cast to int32_t to itos.
  4624. This fixes compile error in Soralis 10.
  4625. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4626. To fix segfault in Metalink download:
  4627. * src/UrlRequestInfo.h
  4628. (filename): Removed.
  4629. (totalLength): Removed.
  4630. (setTotalLength): Removed.
  4631. (setFilename): Removed.
  4632. * src/MetalinkRequestInfo.cc
  4633. (execute): Do not set filename and totalLength to reqInfo.
  4634. Set chunk checksum to reqInfo if it is not null.
  4635. * src/HttpResponseCommand.cc
  4636. (executeInternal): Fixed filename in log.
  4637. (handleDefaultEncoding): Removed the call to initBitfield() and
  4638. markAllPiecesDone().
  4639. (handleOtherEncoding): Added HEAD method handling.
  4640. * src/FtpNegotiateCommand.cc
  4641. (executeInternal): Added SEQ_HEAD_OK handling.
  4642. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  4643. return false.
  4644. * src/FtpNegotiateCommand.h
  4645. (SEQ_HEAD_OK): New definition.
  4646. * src/SegmentMan.cc
  4647. (initBitfield): Delete bitfield.
  4648. (isChunkChecksumValidationReady): Fixed the condition.
  4649. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  4650. works fine.
  4651. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. * src/Xml2MetalinkProcessor.h
  4653. (xpathExists): New function.
  4654. * src/Xml2MetalinkProcessor.cc
  4655. (xpathExists): New function.
  4656. Not to send HEAD request if filename and size are available in Metalink
  4657. file:
  4658. * src/UrlRequestInfo.h
  4659. (filename): New variable.
  4660. (totalLength): New variable.
  4661. (setTotalLength): New function.
  4662. (setFilename): New function.
  4663. * src/MetalinkRequestInfo.cc
  4664. (execute): Set filename and size to UrlRequestInfo.
  4665. * src/MetalinkEntry.cc
  4666. (MetalinkEntry): Initialize size with 0.
  4667. * src/UrlRequestInfo.cc
  4668. (execute): Set filename and size to SegmentMan.
  4669. Not to download rest of the files after selected files are downloaded
  4670. in BitTorrent:
  4671. * src/PieceStorage.h
  4672. (allDownloadFinished): New function.
  4673. * src/DefaultBtAnnounce.cc
  4674. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  4675. downloadFinished.
  4676. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  4677. * src/DefaultPieceStorage.cc
  4678. (completePiece): Use allDownloadFinished instead of downloadFinished.
  4679. Commented out the call to finishSelectiveDownloadingMode().
  4680. (downloadFinished): Call isFilteredAllBitSet() instead of
  4681. isAllBitSet().
  4682. (allDownloadFinished): New function.
  4683. * src/DefaultBtInteractive.cc
  4684. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  4685. downloadFinished().
  4686. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  4687. * src/TorrentDownloadEngine.cc
  4688. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  4689. * src/BitfieldMan.h
  4690. (isFilteredAllBitSet): New function.
  4691. * src/ShareRatioSeedCriteria.h
  4692. (PieceStorage.h): New include.
  4693. (pieceStorage): New variable.
  4694. (evaluate):
  4695. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  4696. * src/BitfieldMan.cc
  4697. (isFilteredAllBitSet): New function.
  4698. (isAllBitSet): Filter is not took into account.
  4699. Rename --force-truncate as --allow-overwrite:
  4700. * src/TorrentRequestInfo.cc
  4701. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  4702. * src/main.cc
  4703. (showUsage): --force-truncate -> --allow-overwrite
  4704. * src/message.h
  4705. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  4706. * src/prefs.h
  4707. (PREF_FORCE_TRUNCATE): Removed.
  4708. (PREF_ALLOW_OVERWRITE): New definition.
  4709. * src/SegmentMan.cc
  4710. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  4711. * src/MetalinkRequestInfo.cc
  4712. (execute): Queueing message are now logged in info level.
  4713. * src/common.h
  4714. (LONG_LONG_MAX): Removed.
  4715. (LONG_LONG_MIN): Removed.
  4716. * src/HttpResponseCommand.cc
  4717. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  4718. * src/FtpNegotiateCommand.cc
  4719. (recvSize): LONG_LONG_MAX -> INT64_MAX
  4720. * src/main.cc
  4721. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  4722. command-line option.
  4723. (main): Added --check-integriy and --realtime-chunk-checksum
  4724. command-line option.
  4725. --force-truncate -> --allow-overwrite
  4726. Set initial value of --check-integrity option to false.
  4727. Don't show usage when error occurs while persing command-line options.
  4728. Removed deprecated --upload-limit option.
  4729. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4730. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  4731. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  4732. * src/BtAllowedFastMessage.cc:
  4733. * src/BtBitfieldMessage.cc
  4734. * src/BtCancelMessage.cc
  4735. * src/BtChokeMessage.cc
  4736. * src/BtHaveAllMessage.cc
  4737. * src/BtHaveMessage.cc
  4738. * src/BtHaveNoneMessage.cc
  4739. * src/BtInterestedMessage.cc
  4740. * src/BtNotInterestedMessage.cc
  4741. * src/BtPieceMessage.cc
  4742. * src/BtPortMessage.cc
  4743. * src/BtRejectMessage.cc
  4744. * src/BtRequestMessage.cc
  4745. * src/BtSuggestPieceMessage.cc
  4746. * src/BtUnchokeMessage.cc
  4747. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  4748. files are affected.
  4749. * src/ChunkChecksumValidator.cc
  4750. * src/SegmentMan.cc
  4751. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4752. To add chunk checksum validation:
  4753. * src/MetalinkEntry.h
  4754. (MetalinkChunkChecksum.h): New include.
  4755. (chunkChecksum): New variable.
  4756. * src/Request.h
  4757. (method): New variable.
  4758. (setMethod): New function.
  4759. (getMethod): New function.
  4760. (METHOD_GET): New static constant.
  4761. (METHOD_HEAD): New static constant.
  4762. * src/Xml2MetalinkProcessor.h
  4763. (getPieceHash): New function.
  4764. * src/PieceStorage.h
  4765. (markAllPiecesDone): New function.
  4766. (checkIntegrity): New function.
  4767. * src/FileAllocator.h
  4768. (NullFileAllocationMonitor.h): New include.
  4769. (FileAllocator): Initialize fileAllocationMonitor with new
  4770. NullFileAllocationMonitor().
  4771. * src/MultiDiskAdaptor.h
  4772. (messageDigest.h): Remove include.
  4773. (ctx): Removed.
  4774. (hashUpdate): Added ctx.
  4775. (MultiDiskAdaptor): Removed ctx.
  4776. (sha1Sum): Renamed as messageDigest.
  4777. (messageDigest): New function.
  4778. * src/UrlRequestInfo.h
  4779. (HeadResult): New class.
  4780. (digestAlgo): New variable.
  4781. (chunkChecksumLength): New variable.
  4782. (chunkChecksums): New variable.
  4783. (getHeadResult): New function.
  4784. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  4785. (setDigestAlgo): New function.
  4786. (setChunkChecksumLength): New function.
  4787. (setChunkChecksums): New function.
  4788. * src/DefaultPieceStorage.cc
  4789. (DiskAdaptorWriter.h): New include.
  4790. (ChunkChecksumValidator.h): New include.
  4791. (markAllPiecesDone): New function.
  4792. (checkIntegrity): New function.
  4793. * src/DefaultBtContext.h
  4794. (getPieceHashes): New function.
  4795. * src/TorrentRequestInfo.cc
  4796. (execute): Try to validate chunk checksum if file already exists and
  4797. .aria2 file doesn't there and user allows aria2 to overwrite it.
  4798. * src/messageDigest.h
  4799. (~MessageDigestContext): Added digestFree().
  4800. * src/MetalinkRequestInfo.cc
  4801. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  4802. * src/DiskAdaptor.h
  4803. (messageDigest.h): New include.
  4804. (sha1Sum): Renamed as messageDigest.
  4805. (messageDigest): New function.
  4806. * src/DownloadCommand.h
  4807. (PeerStat.h): New include.
  4808. (maxDownloadSpeedLimit): New variable.
  4809. (startupIdleTime): New variable.
  4810. (lowestDownloadSpeedLimit): New variable.
  4811. (peerStat): New variable.
  4812. (setMaxDownloadSpeedLimit): New function.
  4813. (setStartupIdleTime): New function.
  4814. (setLowestDownloadSPeedLimit): New function.
  4815. * src/BtContext.h
  4816. (getPieceHashes): New function.
  4817. * src/main.cc
  4818. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  4819. option to true for testing purpose.
  4820. * src/BtPieceMessage.cc
  4821. (checkPieceHash): Use messageDigest
  4822. * src/DownloadEngine.cc
  4823. (SetDescriptor): Removed.
  4824. (AccumulateActiveCommand): Removed.
  4825. (waitData): Rewritten.
  4826. (updateFdSet): Rewritten.
  4827. * src/MultiDiskAdaptor.cc
  4828. (hashUpdate): Added ctx.
  4829. (sha1Sum): Renamed as messageDigest.
  4830. (messageDigest): New function.
  4831. * src/BitfieldMan.h
  4832. (isBitRangeSet): New function.
  4833. (unsetBitRange): New function.
  4834. * src/ByteArrayDiskWriter.h
  4835. (sha1Sum): Renamed as messageDigest.
  4836. (messageDigest): New function.
  4837. * src/ConsoleDownloadEngine.cc
  4838. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  4839. * src/DiskWriter.h
  4840. (messageDigest.h): New include.
  4841. (sha1Sum): Renamed as messageDigest.
  4842. (messageDigest): New function.
  4843. * src/ChunkChecksumValidator.h: New class.
  4844. * src/DiskAdaptorWriter.h: New class.
  4845. * src/prefs.h
  4846. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  4847. (PREF_CHECK_INTEGRITY): New definition.
  4848. * src/HttpResponseCommand.cc
  4849. (handleDefaultEncoding): Added method "HEAD" handling.
  4850. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  4851. (handleOtherEncoding):
  4852. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  4853. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  4854. startupIdleTime, lowestDownloadSpeedLimit to command.
  4855. * src/SegmentMan.h
  4856. (getSegmentEntryByIndex): New function.
  4857. (getSegmentEntryByCuid): New function.
  4858. (getSegmentEntryIteratorByCuid): New function.
  4859. (diskWriter): DiskWriter -> DiskWriterHandle
  4860. (pieceHashes): New variable.
  4861. (chunkHashLength): New variable.
  4862. (digestAlgo): New variable.
  4863. (FindPeerStat): Removed.
  4864. (getPeerStat): Rewritten.
  4865. (markAllPiecesDone): New function.
  4866. (checkIntegrity): New function.
  4867. (tryChunkChecksumValidation): New function.
  4868. (isChunkChecksumValidationReady): New function.
  4869. * src/BitfieldMan.cc
  4870. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  4871. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  4872. blocks to 0.
  4873. (isBitRangeSet): New function.
  4874. (unsetBitRange): New function.
  4875. * src/FtpNegotiateCommand.cc
  4876. (executeInternal): Set maxDownloadSpeedLimit,
  4877. startupIdleTime, lowestDownloadSpeedLimit to command.
  4878. (recvSize): Added method "HEAD" handling.
  4879. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  4880. * src/AbstractSingleDiskAdaptor.cc
  4881. (sha1Sum): Renamed as messageDigest.
  4882. (messageDigest): New function.
  4883. * src/AbstractSingleDiskAdaptor.h
  4884. (sha1Sum): Renamed as messageDigest.
  4885. (messageDigest): New function.
  4886. * src/Util.h
  4887. (indexRange): New function.
  4888. * src/MetalinkEntry.cc
  4889. (MetalinkEntry): Initialized chunkChecksum to 0.
  4890. * src/ShaVisitor.cc
  4891. (~ShaVisitor): Removed the call to ctx.digestFree().
  4892. * src/SegmentMan.cc
  4893. (ChunkChecksumValidator.h): New include.
  4894. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  4895. to DIGEST_ALGO_SHA1.
  4896. (~SegmentMan): Removed diskWriter.
  4897. (FindSegmentEntryByIndex): Removed.
  4898. (FindSegmentEntryByCuid): Removed.
  4899. (checkoutSegment): Rewritten.
  4900. (findSlowerSegmentEntry): Rewritten.
  4901. (getSegment): Rewritten.
  4902. (updateSegment): Rewritten.
  4903. (completeSegment): Rewritten.
  4904. (markAllPiecesDone): New function.
  4905. (checkIntegrity): New function.
  4906. (isChunkChecksumValidationReady): New function.
  4907. (tryChunkChecksumValidation): New function.
  4908. * src/Xml2MetalinkProcessor.cc
  4909. (getEntry): Get size and set it to entry.
  4910. Get chunk checksum and set it to entry.
  4911. (getPieceHash): New function.
  4912. * src/Util.cc
  4913. (sha1Sum): Removed ctx.digestFree()
  4914. (fileChecksum): Removed ctx.digestFree()
  4915. (indexRange): New function.
  4916. * src/Request.cc
  4917. (METHOD_GET): New variable.
  4918. (METHOD_HEAD): New variable.
  4919. (Request): Added method.
  4920. * src/UrlRequestInfo.cc
  4921. (FatalException.h): New include.
  4922. (message.h): New include.
  4923. (operator<<): Added operator<< for class HeadResult.
  4924. (getHeadResult): New function.
  4925. (execute): Get filename and size in separate download engine.
  4926. * src/ChunkChecksumValidator.cc: New class.
  4927. * src/DownloadCommand.cc:
  4928. (DownloadCommand): Added peerStat.
  4929. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  4930. the value from Option.
  4931. The buffer size is now 16KB.
  4932. Use peerStat member instead of getting it from SegmentMan.
  4933. Use startupIdleTime member instead of gettingit from Option.
  4934. Added chunk checksum validation.
  4935. * src/AbstractDiskWriter.cc
  4936. (AbstractDiskWriter): Removed ctx.
  4937. (~AbstractDiskWriter): Removed ctx.digestFree()
  4938. (writeDataInternal): Returns the return value of write.
  4939. (readDataInternal): Returns the return value of read.
  4940. (sha1Sum): Renamed as messageDigest
  4941. (messageDigest): New function.
  4942. * src/AbstractDiwkWriter.h
  4943. (messageDigest.h): Removed include.
  4944. (ctx): Removed.
  4945. (sha1Sum): Renamed as messageDigest
  4946. (messageDigest): New function.
  4947. * src/DefaultPieceStorage.h
  4948. (markAllPiecesDone): New function.
  4949. (checkIntegrity): New function.
  4950. * src/NullFileAllocationMonitor.h: New class.
  4951. * src/MetalinkChunkChecksum.h: New class.
  4952. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. To decrease CPU usage in bittorrent download, calculation results in
  4954. BitfieldMan were cached and realtime fetching PeerObject was removed
  4955. with WeakHandle introduced. Option values are set to the objects
  4956. by setter before download begins.
  4957. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  4958. * src/DefaultBtRequestFactory.h
  4959. (dispatcher): BtMessageDispatcherHandle ->
  4960. BtMessageDispatcherWeakHandle.
  4961. (messageFactory): New variable.
  4962. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  4963. BtMessageDispatcherWeakHandle.
  4964. (setBtMessageFactory): New function.
  4965. * src/DefaultBtMessageDispatcher.cc:
  4966. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  4967. from Option.
  4968. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  4969. feating the value from Option.
  4970. Use messageFactory member.
  4971. * src/PeerInteractionCommand.cc
  4972. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  4973. Add reverse dependencies to factory object.
  4974. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  4975. dispatcher.
  4976. Set messageFactory to receiver.
  4977. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  4978. btInteractive.
  4979. Set receiver to peerObject.
  4980. Set maxDownloadSpeedLimit to this.
  4981. (executeInternal): Use maxDownloadSpeedLimit member.
  4982. * src/BtChokeMessage.cc
  4983. (doReceivedAction): Use dispatcher, requestFactory member.
  4984. (onSendComplete): Use dispatcher member.
  4985. * src/PeerInteractionCommand.h
  4986. (maxDownloadSpeedLimit): New variable.
  4987. * src/DefaultBtMessageReceiver.h
  4988. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  4989. (dispatcher):
  4990. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  4991. (messageFactory): New variable.
  4992. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  4993. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  4994. (setDispatcher):
  4995. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  4996. (setBtMessageFactory): New function.
  4997. * src/DefaultBtInteractive.cc
  4998. (initiateHandshake): Use messageFactory member.
  4999. (addBitfieldMessageToQueue): Use messageFactory member.
  5000. (addAllowedFastMessageToQueue): Use messageFactory member.
  5001. (decideChoking): Use messageFactory member.
  5002. (checkHave): Use messageFactory member.
  5003. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  5004. (receiveMessages): Use maxDownloadSpeedLimit member.
  5005. (decideInterest): Use messageFactory member.
  5006. * src/BtRequestMessage.cc
  5007. (doReceivedAction): Use messageFactory, dispatcher member.
  5008. (onQueued): Use dispatcher member.
  5009. * src/BtPieceMessage.cc
  5010. (doReceivedAction): Use dispatcher member.
  5011. (send): Use peerConnection member.
  5012. (onWrongPiece): Use requestFactory member.
  5013. (handleChokingEvent): Use messageFactory, dispatcher member.
  5014. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  5015. * src/BtMessageDispatcher.h
  5016. (BtMessageDispatcherWeakHandle): New type definition.
  5017. * src/SimpleBtMessage.cc
  5018. (send): Use peerConnection member.
  5019. * src/BtRejectMessage.cc
  5020. (doReceivedAction): Use dispatcher member.
  5021. * src/DefaultBtMessageDispatcher.h
  5022. (Option.h): Removed include.
  5023. (messageFactory): New variable.
  5024. (option): Removed.
  5025. (maxUploadSpeedLimit): New variable.
  5026. (requestTimeout): New variable.
  5027. (DefaultBtMessageDispatcher): Removed option.
  5028. Added maxUploadSpeedLimit, requestTimeout.
  5029. (setOption): Removed.
  5030. (getOption): Removed.
  5031. (setMaxUploadSpeedLimit): New function.
  5032. (setRequestTimeout): New function.
  5033. (setBtMessageFactory): New function.
  5034. * src/DefaultBtInteractive.h
  5035. (btMessageReceiver):
  5036. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  5037. (dispatcher):
  5038. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  5039. (btRequestFactory):
  5040. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  5041. (peerConnection):
  5042. PeerConnectionHandle -> PeerConnectionWeakHandle
  5043. (messageFactory): New variable.
  5044. (option): Removed.
  5045. (keepAliveInterval): New variable.
  5046. (maxDownloadSpeedLimit): New variable.
  5047. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  5048. (setBtMessageReceiver):
  5049. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  5050. (setDispatcher):
  5051. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  5052. (setBtRequestFactory):
  5053. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  5054. (setPeerConnection):
  5055. PeerConnectionHandle -> PeerConnectionWeakHandle
  5056. (setOption): Removed.
  5057. (setKeepAliveInterval): New function.
  5058. (setMaxDownloadSpeedLimit): New function.
  5059. (setBtMessageFactory): New function.
  5060. * src/BitfieldMan.h
  5061. (cachedNumMissingBlock): New variable.
  5062. (cachedNumFilteredBlock): New variable.
  5063. (cachedCompletedLength): New variable.
  5064. (cachedFilteredComletedLength): New variable.
  5065. (cachedFilteredTotalLength): New variable.
  5066. (countMissingBlockNow): New function.
  5067. (countFilteredBlockNow): New function.
  5068. (getFilteredTotalLengthNow): New function.
  5069. (getCompletedLengthNow): New function.
  5070. (getFilteredCompletedLengthNow): New function.
  5071. (updateCache): New function.
  5072. * src/AbstractBtMessage.h
  5073. (BtMessageDispatcher.h): New include.
  5074. (PeerConnection.h): New include.
  5075. (BtRequestFactory.h): New include
  5076. (BtMessageFactory.h): New include.
  5077. (dispatcher): New variable.
  5078. (messageFactory): New variable.
  5079. (peerConnection: New variable.
  5080. (setBtMessageDispatcher): New function.
  5081. (setPeerConnection): New function.
  5082. (setBtMessageFactory): New function.
  5083. (setBtRequestFactory): New function.
  5084. * src/DefaultBtMessageFactory.cc
  5085. (setCommonProperty): Set dispatcher, requestFactory, this,
  5086. peerConnection to msg.
  5087. * src/BtRegistry.h
  5088. (BT_MESSAGE_RECEIVER): New macro.
  5089. * src/PeerConnection.h
  5090. (PeerConnectionWeakHandle): New type definition.
  5091. * src/BtMessageFactory.h
  5092. (BtMessageFactoryWeakHandle): New type definition.
  5093. * src/BitfieldMan.cc
  5094. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  5095. cachedCompletedLength, cachedFilteredComletedLength,
  5096. cachedFilteredTotalLength.
  5097. Call updateCache().
  5098. (countMissingBlock): Return cachedNumMissingBlock.
  5099. (countMissingBlockNow): New function.
  5100. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  5101. (countFilteredBlockNow): New function.
  5102. (setBit): Call updateCache().
  5103. (unsetBit): Call updateCache().
  5104. (setBitfield): Call updateCache().
  5105. (clearAllBit): Call updateCache().
  5106. (setAllBit): Use setBitInternal instead of setBit.
  5107. Call updateCache().
  5108. (addFilter): Call updateCache().
  5109. (enableFilter): Call updateCache().
  5110. (disableFilter): Call updateCache().
  5111. (clearFilter): Call updateCache().
  5112. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  5113. (getFilteredTotalLengthNow): New function.
  5114. (getCompletedLength): Return cachedCompletedLength.
  5115. (getCompletedLengthNow): New function.
  5116. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  5117. (getFilteredCompletedLengthNow): New function.
  5118. (updateCache): New function.
  5119. * src/BtMessageReceiver.h
  5120. (BtMessageReceiverWeakHandle): New type definition.
  5121. * src/DefaultBtMessageReceiver.cc
  5122. (receiveHandshake): Use messageFactory member.
  5123. (sendHandshake): Use messageFactory member.
  5124. (receiveMessage): Use messageFactory member.
  5125. * src/DefaultBtMessageFactory.h
  5126. (dispatcher): New variable.
  5127. (requestFactory): New variable.
  5128. (peerConnection): New variablle.
  5129. (setBtMessageDispatcher): New function.
  5130. (setBtRequestFactory): New function.
  5131. (setPeerConnection): New function.
  5132. * src/SharedHandle.h
  5133. (RefCount): New class.
  5134. (WeakHandle): New class.
  5135. * src/PeerObject.h
  5136. (BtMessageReceiver.h): New include.
  5137. (PeerObject): Added btMessageReceiver.
  5138. (btMessageReceiver): New variable.
  5139. * src/Util.cc
  5140. (countBit): Simplified.
  5141. * src/BtCancelMessage.cc
  5142. (doReceivedAction): Use dispatcher member.
  5143. * src/BtRequestFactory.h
  5144. (BtRequestFactoryWeakHandle): New type definition.
  5145. * src/PeerStorage.h
  5146. (downloadSpeed): int -> uint32_t
  5147. (uploadSpeed): int -> uint32_t
  5148. (sessionDownloadLength): long long int -> uint64_t
  5149. (sessionUploadLength): long long int -> uint64_t
  5150. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. To add RecoverableException, FatalException:
  5152. * src/AbstractCommand.cc
  5153. (onAbort): Exception -> RecoverableException
  5154. * src/PeerAbstractCommand.h
  5155. (RecoverableException.h): New include.
  5156. (onAbort): Exception -> RecoverableException.
  5157. * src/PeerInteractionCommand.cc
  5158. (onAbort): Exception -> RecoverableException.
  5159. * src/PeerAbstractCommand.cc
  5160. (execute): Exception -> RecoverableException.
  5161. (onAbort): Exception -> RecoverableException.
  5162. * src/TorrentRequestInfo.cc
  5163. (execute): Exception -> RecoverableException.
  5164. * src/MetalinkRequestInfo.cc
  5165. (execute): Exception -> RecoverableException.
  5166. * src/MetaFileUtil.cc: RecoverableException.
  5167. * src/AbstractCommand.h
  5168. (onAbort): Exception -> RecoverableException.
  5169. * src/DlRetryEx.h: Exception -> RecoverableException.
  5170. * src/DlAbortEx.h: Exception -> RecoverableException.
  5171. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  5172. * src/Util.cc: Exception -> RecoverableException.
  5173. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  5174. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  5175. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  5176. To make ID static const int
  5177. * src/BtInterestedMessage.h
  5178. (ID_t): Removed.
  5179. (ID): New variable.
  5180. (getId): Made non-const.
  5181. * src/BtPieceMessage.h
  5182. (ID_t): Removed.
  5183. (ID): New variable.
  5184. (getId): Made non-const.
  5185. * src/BtChokeMessage.h
  5186. (ID_t): Removed.
  5187. (ID): New variable.
  5188. (getId): Made non-const.
  5189. * src/BtHaveAllMessage.h
  5190. (ID_t): Removed.
  5191. (ID): New variable.
  5192. (getId): Made non-const.
  5193. * src/BtKeepAliveMessage.h
  5194. (ID_t): Removed.
  5195. (ID): New variable.
  5196. (getId): Made non-const.
  5197. * src/BtHandshakeMessage.h
  5198. (ID): New variable.
  5199. (getId): Made non-const.
  5200. * src/BtSuggestPieceMessage.h
  5201. (ID_t): Removed.
  5202. (ID): New variable.
  5203. (getId): Made non-const.
  5204. * src/BtPortMessage.h
  5205. (ID_t): Removed.
  5206. (ID): New variable.
  5207. (getId): Made non-const.
  5208. * src/AbstractBtMessage.h
  5209. (id): Removed.
  5210. (AbstractBtMessage): Removed id.
  5211. (getId): Removed.
  5212. * src/BtHaveMessage.h
  5213. (ID_t): Removed.
  5214. (ID): New variable.
  5215. (getId): Made non-const.
  5216. * src/BtAllowedFastMessage.h
  5217. (ID_t): Removed.
  5218. (ID): New variable.
  5219. (getId): Made non-const.
  5220. * src/BtCancelMessage.h
  5221. (ID_t): Removed.
  5222. (ID): New variable.
  5223. (getId): Made non-const.
  5224. * src/BtNotInterestedMessage.h
  5225. (ID_t): Removed.
  5226. (ID): New variable.
  5227. (getId): Made non-const.
  5228. * src/BtChokeMessage.h
  5229. (ID_t): Removed.
  5230. (ID): New variable.
  5231. (getId): Made non-const.
  5232. * src/BtRejectMessage.h
  5233. (ID_t): Removed.
  5234. (ID): New variable.
  5235. (getId): Made non-const.
  5236. * src/BtBitfieldMessage.h
  5237. (ID_t): Removed.
  5238. (ID): New variable.
  5239. (getId): Made non-const.
  5240. * src/BtUnchokeMessage.h
  5241. (ID_t): Removed.
  5242. (ID): New variable.
  5243. (getId): Made non-const.
  5244. * src/BtRequestMessage.h
  5245. (ID_t): Removed.
  5246. (ID): New variable.
  5247. (getId): Made non-const.
  5248. * src/BtHaveMessage.h
  5249. (ID_t): Removed.
  5250. (ID): New variable.
  5251. (getId): Made non-const.
  5252. To add --force-truncate command-line option and a check whether
  5253. the file already exists:
  5254. * src/DirectDiskAdaptor.h
  5255. (getFilePath): Made virtual public.
  5256. * src/MultiDiskAdaptor.h
  5257. (File.h): New include.
  5258. (DiskWriterEntry::fileEntry): Made private.
  5259. (DiskWriterEntry::fileExists): New function.
  5260. (DiskWriterEntry::getFileEntry): New function.
  5261. (fileExists): New function.
  5262. (getFilePath): New function.
  5263. * src/TorrentRequestInfo.cc
  5264. (FatalException.h): New include.
  5265. (message.h): New include.
  5266. (RecoverableException.h): New include.
  5267. (execute): Added a check whether file is already exists or not.
  5268. * src/DiskAdaptor.h
  5269. (fileExists): New function.
  5270. (getFilePath): New function.
  5271. * src/main.cc
  5272. (showUsage): Added an explanation of --force-truncate command-line
  5273. option.
  5274. (main): Added --force-truncate command-line option.
  5275. * src/Exception.h
  5276. (setMsg): buf[256] -> buf[1024]
  5277. * src/CopyDiskWriter.h
  5278. (getFilePath): Made public virtual.
  5279. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  5280. (fileExists): New function.
  5281. * src/DownloadEngineFactory.cc
  5282. (newTorrentConsoleEngine): Don't open file here.
  5283. * src/message.h
  5284. (EX_FILE_ALREADY_EXISTS): New definition.
  5285. * src/prefs.h
  5286. (PREF_FOECE_TRUNCATE): New definition.
  5287. * src/HttpResponseCommand.cc
  5288. (handleDefaultEncoding): Added a check whether the file already exists.
  5289. * src/SegmentMan.h
  5290. (fileExists): New function.
  5291. (shouldCancelDownloadForSafety): New function.
  5292. * src/FtpNegotiateCommand.cc
  5293. (recvSize): Added a check whether the file already exists.
  5294. * src/AbstractSingleDiskAdaptor.cc
  5295. (File.h): New include.
  5296. (fileExists): New function.
  5297. * src/AbstractSingleDiskAdaptor.h
  5298. (getFilePath): Removed.
  5299. (fileExists): New function.
  5300. * src/SegmentMan.cc
  5301. (fileExists): New function.
  5302. (shouldCancelDownloadForSafety): New function.
  5303. To fix regression bug in torrent downloading:
  5304. * src/DefaultBtRequestFactory.cc
  5305. (doChokedAction): New function.
  5306. * src/DefaultBtRequestFactory.h
  5307. (doChokedAction): New function.
  5308. * src/DefaultBtMessageDispatcher.cc
  5309. (doChokedAction): Do not delete request if its target is in allowed
  5310. fast set.
  5311. * src/DefaultBtInteractive.cc
  5312. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  5313. (sendKeepAlive): Send keep alive message even if the outgoing message
  5314. queue is not empty.
  5315. (decideInterest): Simplified the code.
  5316. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  5317. it is already called when BtChokeMessage is received from a peer.
  5318. * src/BtRequestFactory.h
  5319. (doChokedAction): New function.
  5320. To clean up code:
  5321. * src/PeerInteractionCommand.h
  5322. (executeInternal): Added virtual keyword explicitly.
  5323. (prepareForRetry): Added virtual keyword explicitly.
  5324. (prepareForNextPeer): Added virtual keyword explicitly.
  5325. (onAbort): Added virtual keyword explicitly.
  5326. * src/RequestSlot.cc
  5327. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  5328. * src/BtPieceMessage.cc
  5329. (doReceivedAction): Added a debug log of piece's bitfield.
  5330. * src/Piece.h
  5331. (getBitfieldLength): New function.
  5332. * src/ByteArrayDiskWriter.cc
  5333. (clear): Added buf = 0 to avoid double free corruption.
  5334. * src/FileAllocator.cc
  5335. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  5336. Added cp.reset().
  5337. * src/BitfieldMan.h
  5338. (operator=): Rewritten.
  5339. * src/BitfieldMan.cc
  5340. (BitfieldMan): Initialized bitfield, useBitfield.
  5341. * src/PeerConnection.cc
  5342. (receiveMessage): Added a call to socket->readable() after getting
  5343. message length to avoid possible EOF.
  5344. * src/Util.cc
  5345. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  5346. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5347. To add an ability to pre-allocate file space:
  5348. * src/DirectDiskAdaptor.h: Rewritten.
  5349. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  5350. * src/MultiDiskAdaptor.h: Rewritten.
  5351. * src/DefaultPieceStorage.cc
  5352. (MultiDiskWriter.h): Removed include.
  5353. (PreAllocationDiskWriter.h): Removed include.
  5354. (FileAllocationMonitor.h): New include.
  5355. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  5356. (initStorage): Rewritten.
  5357. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  5358. * src/FileAllocator.h: New class.
  5359. * src/FileAllocator.cc: New class.
  5360. * src/FileAllocationMonitor.h: New class.
  5361. * src/FileAllocationMonitor.cc: New class.
  5362. * src/ConsoleFileAllocationMonitor.h: New class.
  5363. * src/ConsoleFileAllocationMonitor.cc: New class.
  5364. * src/AbstractSingleDiskAdaptor.h: New class.
  5365. * src/AbstractSingleDiskAdaptor.cc: New class.
  5366. * src/DiskAdaptor.h
  5367. (Directory.h): Removed include.
  5368. (DiskWriter.h): Removed include.
  5369. (FileEntry.h): Removed include.
  5370. (diskWriter): Removed.
  5371. (DiskAdaptor): Removed diskWriter.
  5372. (openFile): Made pure virtual.
  5373. (closeFile): Made pure virtual.
  5374. (openExistingFile): Made pure virtual.
  5375. (initAndOpenFile): Made pure virtual.
  5376. (writeData): Made pure virtual.
  5377. (readData): Made pure virtual.
  5378. (sha1Sum): Made pure virtual.
  5379. (getStoreDir): Returns const reference of storeDir.
  5380. (DiskAdaptorHandle): New type definition.
  5381. * src/main.cc
  5382. (ConsoleFileAllocationMonitor.h): New include.
  5383. (showUsage): Added default value description of -s option.
  5384. Added the description of --file-allocation option.
  5385. (main): Set default value of --file-allocation option to 'none'.
  5386. Added --file-allocation command-line option.
  5387. Setup FileAllocationMonitorFactory.
  5388. * src/FtpInitiateConnectionCommand.cc
  5389. (executeInternal): Removed diskWriter related processing, which was
  5390. moved to FtpNegotiationCommand.cc.
  5391. * src/DirectDiskAdaptor.cc
  5392. (getFilePath): Made non-const.
  5393. * src/CopyDiskAdaptor.h
  5394. (DiskAdaptor.h): Removed include.
  5395. (DiskWriter.h): Removed include.
  5396. (AbstractSingleDiskAdaptor.h): New include.
  5397. (getFilePath): Made non-const. Added virtual keyword.
  5398. (CopyDiskAdaptor): Removed diskWriter.
  5399. (getTempFile): Returns const reference.
  5400. (CopyDiskAdaptorHandle): New type definition.
  5401. * src/ByteArrayDiskWriter.cc
  5402. (clear): Simplified.
  5403. (initAndOpenFile): Rewritten.
  5404. (openFile): Call initAndOpenFile()
  5405. * src/MultiDiskAdaptor.cc: Rewritten.
  5406. * src/DownloadEngineFactory.cc
  5407. (FileAllocator.h): New include.
  5408. (FileAllocationMonitor.h): New include.
  5409. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  5410. create DefaultDiskWriter with file allocator.
  5411. * src/DiskWriter.h
  5412. (initAndOpenFile): Added totalLength argument.
  5413. (openFile): Added totalLength argument.
  5414. * src/prefs.h
  5415. (PREF_FILE_ALLOCATION): New definition.
  5416. (V_PREALLOC): New definition.
  5417. (V_NONE): New definition.
  5418. * src/HttpResponseCommand.cc
  5419. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  5420. size.
  5421. * src/FtpNegotiateCommand.cc
  5422. (Util.h): New include.
  5423. (recvSize): Open file here.
  5424. * src/Util.h
  5425. (ullitos): New function.
  5426. * src/CopyDiskWriter.h
  5427. (getFilePath): Made non-const.
  5428. * src/DefaultDiskWriter.h
  5429. (Option.h): New include.
  5430. (totalLength): Removed.
  5431. (DefaultDiskWriter): Removed totalLength.
  5432. (initAndOpenFile): Added totalLength argument.
  5433. (DefaultDiskWriterHandle): New type definition.
  5434. (createNewDiskWriter): New function.
  5435. * src/Util.cc
  5436. (ullitos): New function.
  5437. * src/DefaultDiskWriter.cc
  5438. (message.h): New include.
  5439. (FileAllocator.h): New include.
  5440. (prefs.h): New include.
  5441. (Util.h): New include.
  5442. (DefaultDiskWriter): Removed totalLength.
  5443. (initAndOpenFile): Added file allocation.
  5444. (createNewDiskWriter): New function. Just for temporary solution.
  5445. It will be rewritten later.
  5446. * src/DiskAdaptor.cc
  5447. (DiskAdaptor): Removed diskWriter.
  5448. * src/AbstractDiskWriter.cc
  5449. (LogFactory.h): New include.
  5450. (AbstractDiskWriter): Added fileAllocator, logger.
  5451. (openFile): Added totalLength argument.
  5452. * src/AbstractDiskWriter.h
  5453. (FileAllocator.h): New include.
  5454. (Logger.h): New include.
  5455. (fileAllocator): New variable.
  5456. (logger): New variable.
  5457. (openFile): Added totalLength argument. Added virtual keyword
  5458. explicitly.
  5459. (openExistingFile): Added totalLength argument. Added virtual keyword
  5460. explicitly.
  5461. (closeFile): Added virtual keyword explicitly.
  5462. (sha1Sum): Added virtual keyword explicitly.
  5463. (writeData): Added virtual keyword explicitly.
  5464. (readData): Added virtual keyword explicitly.
  5465. (setFileAllocator): New function.
  5466. * src/DefaultPieceStorage.h
  5467. (FileAllocator.h): New include.
  5468. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  5469. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  5470. * src/FileProgressMonitor.h: New class.
  5471. To compile aria2 on PC-BSD:
  5472. * src/DefaultBtContext.cc
  5473. (libgen.h): New include.
  5474. To fix memory leak:
  5475. * src/Exception.h
  5476. (~Exception): Delete cause. Fixed memory leak.
  5477. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5478. Rewritten a portion of bittorrent implementation:
  5479. * src/BtMessageValidator.h: New class.
  5480. * src/BtBitfieldMessageValidator.h: New class.
  5481. * src/BtHandshakeMessageValidator.h: New class.
  5482. * src/BtRequestMessageValidator.h: New class.
  5483. * src/BtSuggestPieceMessageValidator.h: New class.
  5484. * src/BtAllowedFastMessageValidator.h: New class.
  5485. * src/BtRejectMessageValidator.h: New class.
  5486. * src/BtCancelMessageValidator.h: New class.
  5487. * src/BtPieceMessageValidator.h: New class.
  5488. * src/BtHaveMessageValidator.h: New class.
  5489. * src/BtEventListener.h: New class.
  5490. * src/AbstractBtEventListener.h: New class.
  5491. * src/BtEvent.h: New class.
  5492. * src/BtChokingEvent.h: New class.
  5493. * src/BtChokedEvent.h: New class.
  5494. * src/BtCancelSendingPieceEvent.h: New class.
  5495. * src/BtAbortOutstandingRequestEvent.h: New class.
  5496. * src/Randomizer.h: New class.
  5497. * src/SimpleRandomizer.h: New class.
  5498. * src/BtMessage.h: New class.
  5499. * src/AbstractBtMessage.h: New class.
  5500. * src/SimpleBtMessage.h: New class.
  5501. * src/BtHaveMessage.h: New class.
  5502. * src/BtInterestedMessage.h: New class.
  5503. * src/BtAllowedFastMessage.h: New class.
  5504. * src/BtUnchokeMessage.h: New class.
  5505. * src/BtCancelMessage.h: New class.
  5506. * src/BtNotInterestedMessage.h: New class.
  5507. * src/BtChokeMessage.h: New class.
  5508. * src/BtHaveNoneMessage.h: New class.
  5509. * src/BtHandshakeMessage.h: New class.
  5510. * src/BtSuggestPieceMessage.h: New class.
  5511. * src/BtHaveMessage.h: New class.
  5512. * src/BtPieceMessage.h: New class.
  5513. * src/BtHaveAllMessage.h: New class.
  5514. * src/BtKeepAliveMessage.h: New class.
  5515. * src/BtPortMessage.h: New class.
  5516. * src/BtRejectMessage.h: New class.
  5517. * src/BtBitfieldMessage.h: New class.
  5518. * src/BtRequestMessage.h: New class.
  5519. * src/DefaultBtRequestFactory.h: New class.
  5520. * src/DefaultBtMessageReceiver.h: New class.
  5521. * src/BtInteractive.h: New class.
  5522. * src/BtMessageDispatcher.h: New class.
  5523. * src/DefaultBtMessageDispatcher.h: New class.
  5524. * src/DefaultBtInteractive.h: New class.
  5525. * src/BitfieldManFactory.h: New class.
  5526. * src/HandleRegistry.h: New class.
  5527. * src/BtMessageFactory.h: New class.
  5528. * src/BtMessageReceiver.h: New class.
  5529. * src/DefaultBtMessageFactory.h: New class.
  5530. * src/PeerObject.h: New class.
  5531. * src/BtRequestFactory.h: New class.
  5532. * src/SuggestPieceMessage.h: Removed.
  5533. * src/PortMessage.h: Removed.
  5534. * src/SuggestPieceMessage.h: Removed.
  5535. * src/KeepAliveMessage.h: Removed.
  5536. * src/HandshakeMessage.h: Removed.
  5537. * src/PeerInteraction.h: Removed.
  5538. * src/UnchokeMessage.h: Removed.
  5539. * src/PieceMessage.h: Removed.
  5540. * src/RequestMessage.h: Removed.
  5541. * src/InterestedMessage.h: Removed.
  5542. * src/HaveMessage.h: Removed.
  5543. * src/CancelMessage.h: Removed.
  5544. * src/RejectMessage.h: Removed.
  5545. * src/AllowedFastMessage.h: Removed.
  5546. * src/HaveNoneMessage.h: Removed.
  5547. * src/SimplePeerMessage.h: Removed.
  5548. * src/HaveAllMessage.h: Removed.
  5549. * src/BitfieldMessage.h: Removed.
  5550. * src/PeerMessageFactory.h: Removed.
  5551. * src/NotInterestedMessage.h: Removed.
  5552. * src/ChokeMessage.h: Removed.
  5553. * src/PeerMessage.h: Removed.
  5554. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5555. To know root cause of exception:
  5556. * src/Exception.h
  5557. (cause): New variable.
  5558. (Exception): Added a parameter.
  5559. (getMsg): Return const reference to msg.
  5560. (getCause): New function.
  5561. * src/DlRetryEx.h
  5562. (DlRetryEx): Added a parameter 'cause'.
  5563. Added an overloaded constructor.
  5564. (DlAbortEx): Added a parameter 'cause'.
  5565. Added an overloaded constructor.
  5566. * src/SimpleLogger.cc
  5567. (writeLog): Log nested exception messages recursively.
  5568. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. * src/DefaultBtProgressInfoFile.cc
  5570. (load): Fixed memory leak when the infohash doesn't match.
  5571. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5572. * src/DefaultPeerStorage.cc
  5573. (calculateStat): Simplified the code by combining 2 loops into 1.
  5574. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5575. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  5576. for BitTorrent download:
  5577. * src/PeerAbstractCommand.cc
  5578. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  5579. * src/main.cc:
  5580. (timeoutSpecified): Removed.
  5581. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  5582. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  5583. * src/TorrentRequestInfo.cc
  5584. (timeoutSpecified): Removed.
  5585. (torrentHandler): Removed timeoutSpecified and the adjustment of
  5586. timeout value.
  5587. * src/prefs.h
  5588. (PREF_BT_TIMEOUT): New definition.
  5589. Delete unused variables:
  5590. * src/TorrentRequestInfo.cc
  5591. (requestInfo): Removed.
  5592. Move setSignalHander to Util::setGlobalSignalHandler:
  5593. * src/TorrentRequestInfo.cc:
  5594. setSignalHander -> Util::setGlobalSignalHandler
  5595. * src/main.cc
  5596. (setSignalHander): Removed.
  5597. (main): setSignalHander -> Util::setGlobalSignalHandler
  5598. * src/Util.h
  5599. (setGlobalSignalHandler): New function.
  5600. * src/Util.cc
  5601. (setGlobalSignalHandler): New function.
  5602. * src/UrlRequestInfo.cc:
  5603. setSignalHander -> Util::setGlobalSignalHandler
  5604. Reset peer status in order to exit gracefully:
  5605. * src/PeerAbstractCommand.cc
  5606. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  5607. To fix the bug that causes the number of bytes uploaded is not saved
  5608. to .aria2 file:
  5609. * src/DefaultPeerStorage.h
  5610. (removedPeerSessionDownloadLength): New variable.
  5611. (removedPeerSessionUploadLength): New variable.
  5612. * src/DefaultPeerStorage.cc
  5613. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  5614. removedPeerSessionUploadLength(0).
  5615. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  5616. through all peers, and then add removedPeerSessionDownloadLength(
  5617. removedPeerSessionUploadLength) to it.
  5618. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  5619. (to) the peer to removedPeerSessionDownloadLength
  5620. (removedPeerSessionUploadLength).
  5621. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5622. To add Metalink location option:
  5623. * src/MetalinkRequestInfo.cc
  5624. (execute): Call MetalinkEntry::setLocationPreference()
  5625. * src/main.cc
  5626. (showUsage): Added the help message for --metalink-location option.
  5627. (main): Added --metalink-location option.
  5628. * src/prefs.h
  5629. (PREF_METALINK_LOCATION): New definition.
  5630. * src/MetalinkEntry.cc
  5631. (AddLocationPreference): New function object.
  5632. (setLocationPreference): New function.
  5633. * src/Xml2MetalinkProcessor.cc
  5634. (getResource): Set location attribute to MetalinkResource
  5635. To show URLs to download
  5636. * src/UrlRequestInfo.h
  5637. (printUrls): New function.
  5638. To add multiple <file> Metalink support:
  5639. * src/MetalinkEntry.h
  5640. (MetalinkResources): Removed.
  5641. (setLocationPreference): New function.
  5642. (MetalinkEntryHandle): New type definition.
  5643. (MetalinkEntries): New type definition.
  5644. * src/Xml2MetalinkProcessor.h
  5645. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  5646. (getResource): MetalinkResource* -> MetalinkResourceHandle
  5647. (parseFile): Metalinker* -> MetalinkerHandle
  5648. * src/UrlRequestInfo.h
  5649. (execute): RequestInfo* -> RequestInfos
  5650. * src/MetalinkRequestInfo.cc
  5651. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  5652. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  5653. (execute): RequestInfo* -> RequestInfos
  5654. Added multiple <file> support. Print filename when it is queued.
  5655. * src/MetalinkRequestInfo.h
  5656. (execute): RequestInfo* -> RequestInfos
  5657. (getDownloadEngine): Removed.
  5658. * src/RequestInfo.h
  5659. (RequestInfoHandle): New type definition.
  5660. (RequestInfos): New type definition.
  5661. (execute): RequestInfo* -> RequestInfos
  5662. (getDownloadEngine): Removed.
  5663. * src/MetalinkResource.h
  5664. (MetalinkResourceHandle): New type definition.
  5665. (MetalinkResources): New type definition.
  5666. * src/MetalinkEntry.cc
  5667. (~MetalinkEntry): Removed the deletion of the elements of resources,
  5668. because the element is now of type MetalinkResourceHandle.
  5669. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  5670. (Supported): MetalinkResource* -> MetalinkResourceHandle
  5671. (dropUnsupportedResource): Removed the deletion of the elements of
  5672. resources because the element is now of type MetalinkResourceHandle.
  5673. * src/Xml2MetalinkProcessor.cc
  5674. (parseFile): Metalinker* -> MetalinkerHandle
  5675. MetalinkEntry* -> MetalinkEntryHandle
  5676. Removed try-catch block.
  5677. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  5678. MetalinkResource* -> MetalinkResourceHandle
  5679. Removed try-catch block.
  5680. (getResource): MetalinkResource* -> MetalinkResourceHandle
  5681. Free result by using xmlXPathFreeObject()
  5682. * src/Metalinker.cc
  5683. (~Metalinker): Removed the deletion of entries.
  5684. MetalinkEntry* -> MetalinkEntryHandle
  5685. (queryEntry): Add multiple <file> Metalink support.
  5686. * src/Metalinker.h
  5687. (MetalinkEntries): Removed.
  5688. (queryEntry): MetalinkEntry* -> MetalinkEntries
  5689. * src/MetalinkProcessor.h
  5690. (parseFile): Metalinker* -> MetalinkerHandle
  5691. Bug fixes:
  5692. * src/PeerChokeCommand.cc
  5693. (execute): cat01->cat02
  5694. * src/DefaultPieceStorage.cc
  5695. (DefaultPieceStorage): Added diskAdaptor(0)
  5696. * src/TrackerWatcherComand.cc:
  5697. (execute): Use btAnnounce->noMoreAnnounce()
  5698. to determin whether the function returns true or not.
  5699. * src/TrackerUpdateCommand.cc:
  5700. (execute): Use btAnnounce->noMoreAnnounce()
  5701. to determin whether the function returns true or not.
  5702. * src/FtpConnection.cc
  5703. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  5704. This is the fix of the busy loop bug.
  5705. * src/DownloadCommand.cc
  5706. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  5707. cached PeerStat.
  5708. The value of "name" entry in torrent file is now set by
  5709. *DiskAdaptor::setTopDir(...) methods.
  5710. * src/MultiDiskAdaptor.h
  5711. (topDir): New variable.
  5712. (setTopDir): New function.
  5713. (getTopDir): New function.
  5714. * src/MultiDiskAdaptor.cc
  5715. (getFilePath): Concat storDir, "/" and topDir.
  5716. (mkdir): Use getFilePath() to get the directory path for output.
  5717. * src/DefaultPieceStorage.cc
  5718. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  5719. CopyDiskAdaptor.
  5720. * src/CopyDiskAdaptor.h
  5721. (topDir): New variable.
  5722. (setTopDir): New function.
  5723. (getTopDir): New function.
  5724. * src/CopyDiskAdaptor.cc
  5725. (fixFilename): Updated.
  5726. Misc
  5727. * src/UrlRequestInfo.h
  5728. (e): Removed.
  5729. (UrlRequestInfo): Removed e.
  5730. (getDownloadEngine): Removed.
  5731. * src/UrlRequestInfo.cc
  5732. (handler): Rewritten.
  5733. (printUrls): New function.
  5734. (execute): Call printUrls().
  5735. * src/HandshakeMessage.cc
  5736. (check): peerinteraction->getBtContext() -> btContext
  5737. * src/PeerInteraction.h
  5738. (getBtContext): Removed.
  5739. * src/TorrentRequestInfo.h
  5740. (execute): RequestInfo* -> RequestInfos
  5741. (getDownloadEngine): Removed.
  5742. * src/TorrentRequestInfo.cc
  5743. (haltRequested): Removed.
  5744. (btHaltRequested): New variable.
  5745. (torrentHandler): haltRequested -> btHaltRequested
  5746. (execute): RequestInfo* -> RequestInfos
  5747. * src/TorrentConsoleDownloadEngine.cc
  5748. (afterEachIteration): haltRequested -> btHaltRequested.
  5749. * src/ConsoleDownloadEngine.h
  5750. (initStatistics): Added virtual.
  5751. (calculateStatistics): Added virtual.
  5752. (onEndOfRun): Added virtual.
  5753. (afterEachIteration): Added virtual.
  5754. * src/ConsoleDownloadEngine.cc
  5755. (haltRequested): New variable.
  5756. (afterEachIteration): New function.
  5757. * src/main.cc
  5758. (requestInfo): Removed.
  5759. * src/SegmentMan.cc
  5760. (findSlowerSegmentEntry): Refactored.
  5761. * Release 0.9.0
  5762. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5763. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  5764. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  5765. * src/TorrentMan.h: Removed.
  5766. * src/TorrentMan.cc: Removed.
  5767. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  5768. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  5769. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  5770. * src/PeerAbstractCommand.cc: Use btRuntime.
  5771. * src/BtContextAwareCommand.h: New class.
  5772. * src/FileEntry.h: Added accessor methods for following variables.
  5773. (path): Made private.
  5774. (length): Made private.
  5775. (offset): Made private.
  5776. (extracted): Made private.
  5777. (requested): Made private.
  5778. (FileEntries): New definition.
  5779. (FileEntryHandle): New definition.
  5780. * src/FileEntry.cc: New file.
  5781. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  5782. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  5783. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  5784. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  5785. * src/PieceStorage.h: New file.
  5786. * src/PeerInteractionCommand.h: Use btContext.
  5787. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  5788. btRuntime.
  5789. * src/DefaultBtProgressInfoFile.h: New file.
  5790. * src/DefaultBtProgressInfoFile.cc: New file.
  5791. * src/File.cc
  5792. (Util.h): New include.
  5793. (mkdirs): New function.
  5794. * src/MultiDiskAdaptor.h
  5795. (mkdir): New function.
  5796. * src/PeerListProcessor.h
  5797. (Peers): Removed.
  5798. * src/PeerInteraction.h
  5799. (torrentMan): Removed.
  5800. (btContext): New variable.
  5801. (peerStorage): New variable.
  5802. (pieceStorage): New variable.
  5803. (btAnnounce): New variable.
  5804. (getTorrentMan): Removed.
  5805. (getBtContext): New function.
  5806. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  5807. btAnnounce.
  5808. * src/HandshakeMessage.h
  5809. (TorrentMan.h): Removed.
  5810. * src/HandshakeMessage.cc: Use btContext.
  5811. * src/DefaultBtAnnounce.cc: New file.
  5812. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  5813. * src/DefaultPieceStorage.cc: New file.
  5814. * src/DefaultBtContext.h: New file.
  5815. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  5816. Use the accessor methods of FileEntry.
  5817. * src/CookieBox.cc: Updated to use Util::slice().
  5818. * src/PieceMessage.cc: Use btContext, pieceStorage.
  5819. * src/common.h (SharedHandle.h): New include.
  5820. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  5821. pieceStorage.
  5822. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  5823. * src/DiskAdaptor.h
  5824. (topDir): Removed.
  5825. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  5826. (setTopDir): Removed.
  5827. (getTopDir): Removed.
  5828. * src/BtContext.h: New file.
  5829. * src/DefaultPeerStorage.h: New file.
  5830. * src/PieceMessage.h (TorrentMan.h): Removed.
  5831. * src/RequestMessage.h (TorrentMan.h): Removed.
  5832. * src/TorrentDownloadEngine.h
  5833. (uploadLength): New variable.
  5834. (btContext): New variable.
  5835. (btRuntime): New variable.
  5836. (pieceStorage): New variable.
  5837. (peerStorage): New variable.
  5838. (btAnnounce): New variable.
  5839. (btProgressInfoFile): New variable.
  5840. (torrentMan): Removed.
  5841. (setBtContext): New function.
  5842. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  5843. peerStorage, btAnnounce, btProgressInfoFile.
  5844. * src/Piece.h
  5845. (toString): New function.
  5846. (Pieces): New type definition.
  5847. * src/Peer.h
  5848. (active): New variable.
  5849. (Peer): Added active.
  5850. (activate): Set active to true.
  5851. (deactivate): Set active to false.
  5852. (isActive): New function.
  5853. (Peers): New type definition.
  5854. * src/DirectDiskAdaptor.cc
  5855. (getFilePath): Use the accessor methods of FileEntry.
  5856. * src/TorrentConsoleDownloadEngine.h
  5857. (afterEachIteration): New function.
  5858. * src/TorrentConsoleDownloadEngine.cc
  5859. (haltRequested): New variable.
  5860. (sendStatistics): Use pieceStorage, btRuntime.
  5861. (afterEachIteration): New function.
  5862. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  5863. * src/Directry.h
  5864. (Directory): New function.
  5865. (DirectoryHandle): New type definition.
  5866. * src/BtProgressInfoFile.h: New file.
  5867. * src/RequestMessage.cc: Use pieceStorage.
  5868. * src/BtRuntime.h: New file.
  5869. * src/DefaultBtContext.cc: New file.
  5870. * src/BitfieldMan.h
  5871. (getCompletedLength): New function(private).
  5872. (getCompletedLength): New function.
  5873. (getFilteredCompletedLength): New function.
  5874. * src/BitfieldMan.h
  5875. (getCompletedLength): New function(private).
  5876. (getCompletedLength): New function.
  5877. (getFilteredCompletedLength): New function.
  5878. * src/MultiDiskAdaptor.cc
  5879. (mkdir): New function.
  5880. (openFile): Call mkdir().
  5881. (initAndOpenFile): Call mkdir().
  5882. * src/CancelMessage.h
  5883. (TorrentMan.h): Removed.
  5884. * src/RejectMessage.h
  5885. (TorrentMan.h): Removed.
  5886. * src/DownloadEngineFactory.cc
  5887. (DefaultPieceStorage.h): New include.
  5888. (DefaultPeerStorage.h): New include.
  5889. (DefaultBtAnnounce.h): New include.
  5890. (DefaultBtProgressInfoFile.h): New include.
  5891. (newTorrentConsoleEngine): Rewritten.
  5892. * src/ShareRatioSeedCriteria.h
  5893. (torrentMan): Removed.
  5894. (btContext): New variable.
  5895. (peerStorage): New variable.
  5896. (btRuntime): New variable.
  5897. (evaluate): Use btContext, btRuntime, peerStorage.
  5898. * src/AnnounceTier.h: New file.
  5899. * src/BtAnnounce.h: New file.
  5900. * src/BtRegistry.h: New file.
  5901. * src/PeerInitiateConnectionCommand.h: Added btContext.
  5902. * src/PeerConnection.h (TorrentMan.h): Removed.
  5903. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  5904. * src/Util.h
  5905. (slice): Added an argument.
  5906. * src/Util.cc
  5907. (slice): Added an argument to control whether trim is made or not.
  5908. * src/PeerStorage.h: New file.
  5909. * src/BtRegistry.cc: New file.
  5910. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  5911. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  5912. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  5913. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  5914. * src/TorrentRequestInfo.h
  5915. (e): Removed.
  5916. (showFileEntry): Added an argument.
  5917. (getDownloadEngine): Return 0.
  5918. * src/DefaultBtAnnounce.h: New file.
  5919. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  5920. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  5921. * src/PeerMessageFactory.h
  5922. (btContext): New variable.
  5923. (pieceStorage): New variable.
  5924. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  5925. btAnnounce.
  5926. * src/DiskAdaptor.cc
  5927. (DiskAdaptor): Removed topDir.
  5928. (~DiskAdaptor): Removed topDir.
  5929. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  5930. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  5931. * src/File.h (mkdirs): New function.
  5932. * src/DefaultPeerStorage): New file.
  5933. * src/DownloadEngineFactory.h
  5934. (newTorrentConsoleEngine): Use btContext.
  5935. * src/BtContextAwareCommand.cc: New file.
  5936. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  5937. * src/PeerMessage.h
  5938. (btContext): New variable.
  5939. (peerStorage): New variable.
  5940. (pieceStorage): New variable.
  5941. (setBtContext): New function.
  5942. * src/Directry.cc
  5943. (Directory): New function.
  5944. (createDir): Do nothing if name.size() == 0.
  5945. * src/AnnounceList.h
  5946. (AnnounceTier): Removed.
  5947. (AnnounceTiers): Removed.
  5948. * src/DefaultPieceStorage.h: New file.
  5949. * src/Piece.cc (toString): New function.
  5950. To fix typo:
  5951. * src/main.cc (showVersion): Fixed typo.
  5952. To fix compile warning:
  5953. * src/DelegatingPeerListProcessor.cc
  5954. (canHandle): Added "return false".
  5955. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5956. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  5957. make the process of announce request testable.
  5958. * src/TrackerWatcherCommand.h
  5959. (TimeA2.h): Removed.
  5960. (interval): Removed.
  5961. (checkPoint): Removed.
  5962. (createRequestCommand): Added an argument 'url'.
  5963. (TrackerWatherCommand): Removed interval.
  5964. (createCommand): New function.
  5965. * src/DownloadEngineFactory.cc
  5966. (newTorrentConsoleEngine): Updated according to the changes in
  5967. TrackerWatherCommand.
  5968. * src/TorrentMan.cc
  5969. (DelegatingPeerListProcessor.h): New includes.
  5970. (TorrentMan): Added the initialization of announceInterval.
  5971. (isStoppedAnnounceReady): New function.
  5972. (isCompletedAnnounceReady): New function.
  5973. (isDefaultAnnounceReady): New function.
  5974. (isAnnounceReady): New function.
  5975. (getAnnounceUrl): New function.
  5976. (announceStart): New function.
  5977. (announceFailure): New function.
  5978. (announceSuccess): New function.
  5979. (isAllAnnounceFailed): New function.
  5980. (resetAnnounce): New function.
  5981. (processAnnounceResponse): New function.
  5982. (needMorePeerConnection): New function.
  5983. (noMoreAnnounce): New function.
  5984. * src/TrackerUpdateCommand.h
  5985. (getTrackerResponse): int->size_t
  5986. * src/TorrentMan.h
  5987. (isStoppedAnnounceReady): New function.
  5988. (isCompletedAnnounceReady): New function.
  5989. (isDefaultAnnounceReady): New function.
  5990. (announceInterval): New variable.
  5991. (isAnnounceReady): New function.
  5992. (getAnnounceUrl): New function.
  5993. (announceStart): New function.
  5994. (announceFailure): New function.
  5995. (announceSuccess): New function.
  5996. (isAllAnnounceFailed): New function.
  5997. (resetAnnounce): New function.
  5998. (processAnnounceResponse): New function.
  5999. (needMorePeerConnection): New function.
  6000. (noMoreAnnounce): New function.
  6001. * src/TrackerWatcherCommand.cc
  6002. (TrackerWatherCommand): Removed interval and checkPoint.
  6003. (execute): Rewritten.
  6004. (createCommand): New function.
  6005. (createRequestCommand): Rewritten.
  6006. * src/TrackerUpdateCommand.cc
  6007. (MetaFileUtil.h): Removed.
  6008. (DelegatingPeerListProcessor.h): Removed.
  6009. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  6010. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6011. Request -> RequestHandle:
  6012. * src/HttpResponseCommand.h: Request->RequestHandle
  6013. * src/AbstractCommand.cc: Request->RequestHandle
  6014. * src/HttpDownloadCommand.cc: Request->RequestHandle
  6015. * src/HttpRequestCommand.cc: Request->RequestHandle
  6016. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  6017. * src/AbstractCommand.h: Request->RequestHandle
  6018. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  6019. * src/HttpResponseCommand.cc: Request->RequestHandle
  6020. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  6021. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  6022. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  6023. * src/HttpConnection.h: Request->RequestHandle
  6024. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  6025. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  6026. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  6027. * src/DownloadCommand.h: Request->RequestHandle
  6028. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  6029. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  6030. * src/HttpRequestCommand.h: Request->RequestHandle
  6031. * src/FtpNegotiateCommand.h: Request->RequestHandle
  6032. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  6033. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  6034. * src/HttpDownloadCommand.h: Request->RequestHandle
  6035. * src/FtpConnection.cc: Request->RequestHandle
  6036. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  6037. * src/UrlRequestInfo.cc: Request->RequestHandle
  6038. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  6039. * src/HttpConnection.h: Request->RequestHandle
  6040. * src/DownloadCommand.cc: Request->RequestHandle
  6041. * src/FtpConnection.h: Request->RequestHandle
  6042. * src/FtpDowndloadCommand.h: Request->RequestHandle
  6043. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  6044. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  6045. * src/Request.h
  6046. (SharedHandle.h): New include.
  6047. (RequestHandle): New type definition.
  6048. (Requests): Redefined.
  6049. To add MULTITRACKER support:
  6050. * src/TrackerWatcherCommand.h
  6051. (createRequestCommand): New function.
  6052. * src/DownloadEngineFactory.cc
  6053. (newTorrentConsoleEngine): Removed req.
  6054. * src/prefs.h
  6055. (PREF_TRACKER_MAX_TRIES): New definition.
  6056. * src/TorrentMan.cc
  6057. (TorrentMan): Removed req. Added trackerNumTry.
  6058. (~TorrentMan): Removed req.
  6059. (setupInternal1): Added announceList.
  6060. * src/TorrentRequestInfo.cc
  6061. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  6062. announces is now specified by PREF_TRACKER_MAX_TRIES.
  6063. * src/main.cc
  6064. (main): Added PREF_TRACKER_MAX_TRIES.
  6065. * src/TorrentMan.h
  6066. (Request.h): Removed.
  6067. (AnnounceList.h): New include.
  6068. (trackerNumTry): New variable.
  6069. (req): Removed.
  6070. (announceList): New variable.
  6071. * src/TrackerWatcherCommand.cc
  6072. (execute): Rewritten.
  6073. (createRequestCommand): New function.
  6074. * src/TrackerUpdateCommand.cc
  6075. (execute): Updated with the use of AnnounceList.
  6076. * src/AnnounceList.cc: New class.
  6077. * src/AnnounceList.h: New class.
  6078. To fix typo:
  6079. * src/prefs.h
  6080. (PREF_MAX_TRIES): max_try->max_tries
  6081. To not to decode "+" as space in URL decode:
  6082. * src/Util.cc
  6083. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  6084. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6085. To add timeout to async name resolution:
  6086. * src/AbstractCommand.h
  6087. (nameResolveFinished): New function. This is not elegant way. It needs
  6088. to be more refined.
  6089. (nameResolverCheck): New variable.
  6090. * src/AbstractCommand.cc
  6091. (AbstractCommand): Added nameResolverCheck.
  6092. (execute): Added the check whether the name resolution has finished.
  6093. (setNameResolverCheck): Set nameResolverCheck to true.
  6094. (disableNameResolverCheck): Set nameResolverCheck to false.
  6095. (nameResolverFinished): New function.
  6096. * src/FtpInitiateConnectionCommand.h
  6097. (nameResolverFinished): New function.
  6098. * src/FtpInitiateConnectionCommand.cc
  6099. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  6100. * src/HttpInitiateConnectionCommand.h
  6101. (nameResolverFinished): New function.
  6102. * src/HttpInitiateConnectionCommand.cc
  6103. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  6104. * src/prefs.h
  6105. (PREF_DNS_TIMEOUT): New definition.
  6106. * src/main.cc
  6107. (main): Added PREF_DNS_TIMEOUT.
  6108. To add the support for a non-compact response from a tracker:
  6109. * src/PeerListProcessor.h: New class.
  6110. * src/DefaultPeerListProcessor.h: New class.
  6111. * src/DefaultPeerListProcessor.cc: New class.
  6112. * src/CompactPeerListProcessor.h: New class.
  6113. * src/CompactPeerListProcessor.cc: New class.
  6114. * src/DelegatingPeerListProcessor.h: New class.
  6115. * src/DelegatingPeerListProcessor.cc: New class.
  6116. * src/TorrentMan.cc
  6117. (addPeer): New function(overload).
  6118. (addPeer): Delete unused peers only when new peer is added.
  6119. * src/TorrentMan.h
  6120. (PeerListProcessor.h): Included.
  6121. (Peers): Removed.
  6122. (addPeer): New function(overload).
  6123. * src/TrackerUpdateCommand.cc
  6124. (netinet/in.h): Removed.
  6125. (DelegatingPeerListProcessor.h): Included.
  6126. (execute): Updated to use DelegatingPeerListProcessor.
  6127. To fix the memory leak in TorrentMan::peers:
  6128. * src/PeerAbstractCommand.cc
  6129. (onAbort): Added peer->resetStatus().
  6130. * src/Peer.h
  6131. (resetStatus): Made public.
  6132. To improve the precision of the speed calculation:
  6133. * src/SpeedCalc.h
  6134. (nextInterval): New variable.
  6135. * src/SpeedCalc.cc
  6136. (reset): Added nextInterval.
  6137. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  6138. (changeSw): Set nextInterval to 15 seconds relative to the current
  6139. instant time.
  6140. * src/main.cc
  6141. (showVersion): Updated.
  6142. (showUsage): Updated.
  6143. * Release 0.8.1
  6144. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6145. * src/main.cc
  6146. (showUsage): Commented out --min-segment-size option.
  6147. (main): Commented out --min-segment-size option.
  6148. * Release 0.8.0
  6149. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. * src/*.{h,cc}:
  6151. Added an exception to the license which allows linking with OpenSSL.
  6152. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. * src/AbstractCommand.cc
  6154. (execute): Check whether the download has finished before checking
  6155. socket status.
  6156. Return true if peerStat->getStatus() == REQUEST_IDLE.
  6157. Do not exit even if no segment is available.
  6158. * src/prefs.h
  6159. (PREF_STARTUP_IDLE_TIME): New definition.
  6160. * src/PeerInteractionCommand.cc
  6161. (executeInternal): Removed max speed limit. Because it performs bad.
  6162. (receiveMessages): Added max speed limit. This was better than above,
  6163. but still a little bit to be desired. Sometimes the download speed
  6164. became much faster than I specified.
  6165. * src/SpeedCalc.h
  6166. (start): New variable.
  6167. (accumulatedLength): New variable.
  6168. (getAvgSpeed): New function.
  6169. * src/SpeedCalc.cc
  6170. (reset): Added start, accumulatedLength.
  6171. (update): Added calculation of an average speed.
  6172. (getAvgSpeed): New function.
  6173. * src/DownloadCommand.h
  6174. (sw): Removed.
  6175. * src/main.cc
  6176. (main): Added PREF_STARTUP_IDLE_TIME.
  6177. * src/PeerStat.h
  6178. (STATUS): Added REQUEST_IDLE.
  6179. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  6180. (getAvgDownloadSpeed): New function
  6181. (requestIdle): New function.
  6182. * src/SegmentMan.h
  6183. (SegmentEntryHandle): New type definition.
  6184. (SegmentEntries): Now holds SegmentEntryHandle.
  6185. (findSlowerSegmentEntry): New funtion.
  6186. * src/SegmentMan.cc
  6187. (save): Updated according to the changes in SegmentEntries.
  6188. (read): Updated according to the changes in SegmentEntries.
  6189. (FindSegmentEntryByIndex): Updated according to the changes in
  6190. SegmentEntries.
  6191. (FindSegmentEntryByCuid): Updated according to the changes in
  6192. SegmentEntries.
  6193. (checkoutSegment): Updated according to the changes in SegmentEntries.
  6194. (onNullBitfield): Updated according to the changes in SegmentEntries.
  6195. Renamed uitr as itr.
  6196. (findSlowerSegmentEntry): New function.
  6197. (getSegment): Updated according to the changes in SegmentEntries.
  6198. Added the feature that cancels the segment with slow server and fast
  6199. one takes it over.
  6200. (cancelSegment): Updated according to the changes in SegmentEntries.
  6201. (getDownloadLength): Updated according to the changes in
  6202. SegmentEntries.
  6203. (init): Assigned 0 to bitfield after deleting it.
  6204. * src/DownloadCommand.cc
  6205. (STARTUP_IDLE_TIME): Removed.
  6206. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  6207. * src/PeerChokeCommand.cc
  6208. (optUnchokingPeer): Updated according to the changes in Peer.
  6209. (ResetDelta): Removed.
  6210. (UploadFaster): Updated according to the changes in Peer.
  6211. (DownloadFaster): Updated according to the changes in Peer.
  6212. (execute): I clarify the meaning of "upload" and "download" here.
  6213. "upload" means the transfer from localhost to remote host.
  6214. "download" means the transfer from remote host to localhost.
  6215. Based on this rule, I swapped orderByUploadRate and
  6216. orderByDownloadRate.
  6217. * src/PeerInteractionCommand.cc
  6218. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  6219. (executeInternal): Removed the argument of
  6220. peerInteraction->sendMessages().
  6221. (receiveMessages): Rewritten download speed limit.
  6222. (sendKeepAlive): Removed peerInteraction->sendMessages().
  6223. * src/HttpResponseCommand.cc
  6224. (handleDefaultEncoding): If file size is unknown in torrent request,
  6225. do not call segmentMan->initBitfield() here.
  6226. Disabled persistent connection feature in torrent request.
  6227. * src/UrlRequestInfo.h
  6228. (UrlRequestInfo): Removed const qualifier from option.
  6229. * src/TorrentMan.h
  6230. (TransferStat): New class.
  6231. (deltaDownloadLength): Removed.
  6232. (deltaUploadLength): Removed.
  6233. (addDeltaDownloadLength): Removed.
  6234. (getDeltaDownloadLength): Removed.
  6235. (resetDeltaDownloadLength): Removed.
  6236. (addDeltaUploadLength): Removed.
  6237. (getDeltaUploadLength): Removed.
  6238. (resetDeltaUploadLength): Removed.
  6239. (addActivePeer): Added peer->activate().
  6240. (deleteActivePeer): Added peer->deactivate().
  6241. (calculateStat): New function.
  6242. * src/TorrentMan.cc
  6243. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  6244. (calculateStat): New function.
  6245. * src/PeerInteraction.h
  6246. (uploadLimit): Removed.
  6247. (option): New variable.
  6248. (setUploadLimit): Removed.
  6249. (getUploadSpeed): Removed.
  6250. (sendMessages): Removed the argument "currentUploadSpeed".
  6251. * src/PeerInteraction.cc
  6252. (prefs.h): Included.
  6253. (PeerInteraction): Removed uploadLimit. Added option.
  6254. (sendMessages): Rewritten upload speed limit.
  6255. (sendHandshake): Removed the argument from sendMessages().
  6256. (sendBitfield): Removed the argument from sendMessages().
  6257. * src/PeerAbstractCommand.cc
  6258. (execute): Commented out the portion of upload limit.
  6259. (onAbort): Removed peer->resetStatus().
  6260. * src/TorrentRequestInfo.cc
  6261. (timeoutSpecified): Declared extern.
  6262. (execute): Set timeout to 180 if timeout is not specified by.
  6263. command-line.
  6264. * src/PieceMessage.cc
  6265. (receivedAction): Added peer->updateDownloadLength().
  6266. Removed peer->addPeerUpload().
  6267. Removed torrentMan->addDeltaDownloadLength().
  6268. (send): Added peer->updateUploadLength().
  6269. Removed peer->addPeerDownload().
  6270. Removed torrentMan->addDeltaUploadLength().
  6271. * src/main.cc
  6272. (timeoutSpecified): New variable.
  6273. (main): Set timeoutSpecified to false.
  6274. If the command-line option "--upload-limit" is specified, then
  6275. timeoutSpecified is set to true. This option will remain in the next
  6276. release, but be deprecated in the future release.
  6277. * src/TorrentRequestInfo.h
  6278. (TorrentRequestInfo): Removed const qualifier from op.
  6279. * src/PeerStat.h
  6280. (uploadSpeed): New variable.
  6281. (PeerStat): Added default value to cuid.
  6282. (calculateUploadSpeed): New function.
  6283. (updateUploadLength): New function.
  6284. (getMaxUploadSpeed): New function.
  6285. (getAvgUploadSpeed): New function.
  6286. (reset): Added uploadSpeed. Set status to IDLE.
  6287. * src/TorrentDownloadEngine.h
  6288. (cp): Declared as Time.
  6289. (sessionDownloadLengthArray): Removed.
  6290. (sessionUploadLengthArray): Removed.
  6291. (currentCp): Removed.
  6292. (lastCalcStat): New variable
  6293. (lastElapsed): Removed.
  6294. (sessionDownloadLength): Removed.
  6295. (calculateStat): New function.
  6296. * src/TorrentDownloadEngine.cc
  6297. (initStatistics): Removed lastElapsed, cp[],
  6298. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  6299. currentCp, sessionDownloadLength.
  6300. Added cp.reset() and lastCalcStat.reset().
  6301. (calculateSpeed): Changed the name of the argument.
  6302. (calculateStatistics): Rewritten.
  6303. (calculateStat): New function.
  6304. * src/Peer.h
  6305. (PeerStat.h): Included.
  6306. (peerUpload): Removed.
  6307. (peerDownload): Removed.
  6308. (peerStat): New variable.
  6309. (sessionUploadLength): New variable.
  6310. (sessionDownloadLength): New variable.
  6311. (deltaUpload): Removed.
  6312. (deltaDownload): Removed.
  6313. (resetStatus): Made private.
  6314. (Peer): Added sessionUploadLength, sessionDownloadLength.
  6315. Removed peerUpload, peerDownload.
  6316. (updateUploadLength): New function.
  6317. (addDeltaUpload): Removed.
  6318. (updateDownloadLength): New function.
  6319. (resetDeltaUpload): Removed.
  6320. (getDeltaUpload): Removed.
  6321. (addDeltaDownload): Removed.
  6322. (calculateUploadSpeed): New function.
  6323. (resetDeltaDownload): Removed.
  6324. (getDeltaDownload): Removed.
  6325. (calculateDownloadSpeed): New function.
  6326. (getSessionUploadLength): New function.
  6327. (getSessionDownloadLength): New function.
  6328. (activate): New function.
  6329. (deactivate): New function.
  6330. (addPeerUpload): Removed.
  6331. (setPeerUpload): Removed.
  6332. (getPeerUpload): Removed.
  6333. (addPeerDownload): Removed.
  6334. (setPeerDownload): Removed.
  6335. (getPeerDownload): Removed.
  6336. * src/Peer.cc
  6337. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  6338. * src/MetalinkRequestInfo.h
  6339. (MetalinkRequestInfo): Removed const qualifier from op.
  6340. * src/RequestInfo.h
  6341. (op): Removed const qualifier.
  6342. (RequestInfo): Removed const qualifier from op.
  6343. * src/prefs.h
  6344. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  6345. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  6346. * src/PeerInteractionCommand.cc
  6347. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  6348. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  6349. * src/PeerInteraction.cc
  6350. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  6351. * src/main.cc
  6352. (showUsage): Updated the description of "--lowest-speed-limit" option.
  6353. Added the description of "--max-download-limit" option.
  6354. Removed the description of "--upload-limit" option.
  6355. Added the description of "--max-upload-limit" option.
  6356. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  6357. Added "--max-download-limit" option and "--max-upload-limit" option.
  6358. Added the warning message if "--upload-limit" option is used.
  6359. * src/DownloadCommand.cc
  6360. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  6361. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. To rewrite segment download mechanism for HTTP/FTP download.
  6363. Use BitfieldMan to manage segment download.
  6364. * src/HttpResponseCommand.h
  6365. (executeInternal): Pass the reference of segment.
  6366. * src/AbstractCommand.cc
  6367. (prepareForRetry): Call segmentMan->cancelSegment here.
  6368. (onAbort): Call segmentMan->cancelSegment here.
  6369. * src/HttpDownloadCommand.cc
  6370. (prepareForNextSegment): New function.
  6371. * src/DownloadEngineFactory.cc
  6372. (newConsoleEngine): Removed splitter.
  6373. (newTorrentConsoleEngine): Removed splitter.
  6374. * src/Request.h
  6375. (segment): Renamed from seg.
  6376. * src/FtpInitiateConnectionCommand.h
  6377. (executeInternal): Pass the reference of segment.
  6378. * src/AbstractCommand.h
  6379. (executeInternal): Pass the reference of segment.
  6380. * src/pref.h
  6381. (PREF_SEGMENT_SIZE): New definition.
  6382. * src/HttpProxyRequestCommand.h
  6383. (executeInternal): Pass the reference of segment.
  6384. * src/HttpResponseCommand.cc
  6385. (checkResponse): Allowed status 206 when a request range starts 0.
  6386. (handleDefaultEncoding): Rewritten the code related to Segment.
  6387. (handleOtherEncoding): Rewritten the code related to Segment.
  6388. * src/SegmentMan.h
  6389. (SegmentEntry): New class.
  6390. (SegmentEntries): New type definition.
  6391. (bitfield): New variable.
  6392. (usedSegmentEntries): New variable.
  6393. (onNullBitfield): New function.
  6394. (checkoutSegment): New function.
  6395. (segments): Removed.
  6396. (splitter): Removed.
  6397. (unregisterId): Removed.
  6398. (getSegment): New function(overload)
  6399. (getDownloadedSize): Removed.
  6400. (cancelSegment): New function.
  6401. (completeSegment): New function.
  6402. (initBitfield): New function.
  6403. (hasSegment): New function.
  6404. (getDownloadLength): New function.
  6405. * src/BitfieldMan.h
  6406. (getStartIndex): New function.
  6407. (getEndIndex): New function.
  6408. (getMissingUnusedIndex): New function(overload).
  6409. (getSparseMissingUnusedIndex): New function.
  6410. * src/BitfieldMan.cc
  6411. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  6412. (getMissingUnusedIndex): New function(overload).
  6413. (Range): New class.
  6414. (getStartIndex): New function.
  6415. (getEndIndex): New function.
  6416. (getSparseMissingUnusedIndex): New function.
  6417. (isBitSetInternal): Return false if the given index is less than 0.
  6418. * src/HttpInitiateConnectionCommand.h
  6419. (executeInternal): Pass the reference of segment.
  6420. * src/FtpNegotiateCommand.h
  6421. (executeInternal): Pass the reference of segment.
  6422. * src/FtpNegotiateCommand.cc
  6423. (recvSize): Initialize bitfield here.
  6424. * src/FtpTunnelResponseCommand.h
  6425. (executeInternal): Pass the reference of segment.
  6426. * src/HttpConnection.cc
  6427. (createRequest): Rewritten range header processing.
  6428. * src/DownloadCommand.h
  6429. (executeInternal): Pass the reference of segment.
  6430. (prepareForRetry): Removed.
  6431. (prepareForNextSegment): Added an argument segment. Made it a virtual
  6432. function.
  6433. * src/main.cc
  6434. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  6435. * src/SegmentMan.cc
  6436. (SegmentMan): Added bitfield. Removed splitter.
  6437. (~SegmentMan): Added bitfield. Removed splitter.
  6438. (unregisterId): Removed.
  6439. (getSegment): Rewritten.
  6440. (updateSegment): Rewritten.
  6441. (save): Rewritten.
  6442. (read): Rewritten.
  6443. (finished): Rewritten.
  6444. (getDownloadedSize): Removed.
  6445. (initBitfield): New function.
  6446. (FindSegmentEntryByIndex): New function object.
  6447. (FindSegmentEntryByCuid): New function object.
  6448. (checkoutSegment): New function.
  6449. (onNullBitfield): New function.
  6450. (getSegment): New function(overload).
  6451. (CancelSegment): New function object.
  6452. (cancelSegment): New function.
  6453. (completeSegment): New function.
  6454. (hasSegment): New function.
  6455. (getDownloadLength): New function.
  6456. * src/FtpInitiateConnectionCommand.cc
  6457. (executeInternal): Load .aria2 file after hostname resolution finishes.
  6458. * src/Segment.h: Rewritten.
  6459. * src/Segment.cc (operator<<): New function.
  6460. * src/HttpDownloadCommand.h
  6461. (prepareForNextSegment): New function.
  6462. * src/Request.cc
  6463. (resetUrl): Made segment null.
  6464. * src/DownloadEngine.cc
  6465. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  6466. * src/HttpProxyRequestCommand.h
  6467. (executeInternal): Pass the reference of segment.
  6468. * src/DownloadCommand.cc
  6469. (executeInternal): Rewritten the code related to Segment.
  6470. (prepareForRetry): Removed.
  6471. (prepareForNextSegment): Rewritten.
  6472. * src/FtpTunnelResponseCommand.h
  6473. (executeInternal): Pass the reference of segment.
  6474. To add HTTP 1.1 persistent connection support(experimental)
  6475. * src/HttpRequestCommand.cc
  6476. (executeInternal): Disable keep alive if it is disabled by
  6477. configuration.
  6478. * src/Request.h
  6479. (keepAlive): New variable.
  6480. (isKeepAlive): New function.
  6481. (setKeepAlive): New function.
  6482. * src/pref.h
  6483. (PREF_HTTP_KEEP_ALIVE): New definition.
  6484. * src/HttpResponseCommand.cc
  6485. (executeInternal): Check the remote server supports keep alive.
  6486. * src/HttpConnection.cc
  6487. (createRequest): Send "Connection: close" only if keep alive is
  6488. disabled.
  6489. * src/main.cc
  6490. (main):
  6491. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  6492. To add max download speed limit:
  6493. * src/pref.h
  6494. (PREF_MAX_SPEED_LIMIT): New definition.
  6495. * src/PeerInteractionCommand.cc
  6496. (executeInternal): Added max download speed limit. Not tested yet.
  6497. * src/SegmentMan.h
  6498. (PeerStats): New type definition.
  6499. (peerStats): New variable.
  6500. (registerPeerStat): New function.
  6501. (FindPeerStat): New function object.
  6502. (getPeerStat): New function.
  6503. (calculateDownloadSpeed): New function.
  6504. * src/SpeedCalc.h: New class.
  6505. * src/SpeedCalc.cc: New class.
  6506. * src/main.cc
  6507. (main):
  6508. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  6509. download speed is not restricted).
  6510. * src/PeerStat.h: New class.
  6511. * src/SegmentMan.cc
  6512. (registerPeerStat): New function.
  6513. (calculateDownloadSpeed): New function.
  6514. * src/DownloadCommand.cc
  6515. (STARTUP_IDLE_TIME): New definition.
  6516. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  6517. downloadStart.
  6518. (~DownloadCommand): Call peerStat->downloadStop.
  6519. (executeInternal): Added download speed limitter. Rewritten lowest
  6520. speed limitter.
  6521. * src/HttpConnection.cc
  6522. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  6523. * src/AbstractCommand.cc
  6524. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  6525. Added hostname to the error message.
  6526. * src/ConsoleDownloadEngine.cc
  6527. (calculateStatistics): Initialize psize with dlSize.
  6528. * src/PieceMessage.cc
  6529. (receivedAction): Do not call peerInteraction->abortPiece here.
  6530. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  6531. * src/BitfieldMan.h
  6532. (clearAllUseBit): New function.
  6533. (setAllUseBit): New function.
  6534. * src/BitfieldMan.cc
  6535. (clearAllBit): Do not clear useBitfield here.
  6536. (clearAllUseBit): New function.
  6537. (setAllUseBit): New function.
  6538. * src/Piece.cc
  6539. (clearAllBlock): Call bitfield->clearAllUseBit().
  6540. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. To make filename URL-decoded:
  6542. * src/HttpResponseCommand.h: Updated doc.
  6543. * src/HttpResponseCommand.cc
  6544. (determinFilename): Made filename URL-decoded.
  6545. * src/FtpInitiateConnectionCommand.cc
  6546. (executeInternal): Made filename URL-decoded.
  6547. * src/Util.h (urldecode): New function.
  6548. * src/Util.cc (urldecode): New function.
  6549. To fix a bug that caused assertion failure in ares_strerror:
  6550. * src/NameResolver.cc (callback): Fixed the bug.
  6551. * Release 0.7.3
  6552. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6553. To add --seed-time and --seed-ratio command-line option:
  6554. * src/Option.h (getAsDouble): New function.
  6555. * src/Option.cc (getAsDouble): New function.
  6556. * src/SeedCheckCommand.h: New class.
  6557. * src/SeedCheckCommand.cc: New class.
  6558. * src/DownloadEngineFactory.cc
  6559. (SeedCheckCommand.h): Included.
  6560. (UnionSeedCriteria.h): Included.
  6561. (TimeSeedCriteria.h): Included.
  6562. (ShareRatioSeedCriteria.h): Included.
  6563. (newTorrentConsoleEngine): Added the processing of seed option.
  6564. * src/SeedCriteria.h: New class.
  6565. * src/ShareRatioSeedCriteria.h: New class.
  6566. * src/TimeSeedCriteria.h: New class.
  6567. * src/UnionSeedCriteria.h: New class.
  6568. * src/prefs.h
  6569. (PREF_SEED_TIME): New definition.
  6570. (PREF_SEED_RATIO): New definition.
  6571. * src/main.cc
  6572. (showUsage): Added --seed-time and --seed-ratio option.
  6573. (main): Added --seed-time and --seed-ratio option.
  6574. Made default log file name "/dev/null".
  6575. * src/SharedHandle.h
  6576. (SharedHandle): Copy constructor. Made it assignable from the
  6577. SharedHandle of the subclasses.
  6578. (operator=): Made it assignable from the SharedHandle of the
  6579. subclasses.
  6580. (getRefCount): New function.
  6581. To add notice log level and the switch to write log to stdout. This
  6582. switch is configurable per log level.
  6583. * src/Logger.h
  6584. (notice): New function.
  6585. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  6586. constant.
  6587. * src/LogFactory.cc
  6588. (getInstance): The use of NullLogger was removed. A log message with
  6589. notice log level was made written to stdout along with log file.
  6590. * src/NullLogger.h
  6591. (notice): New function.
  6592. * src/SimpleLogger.h
  6593. (writeHeader): Added the 'file' argument.
  6594. (writeLog): Added the 'file' argument.
  6595. (writeFile): New function.
  6596. (stdoutField): New variable.
  6597. (SimpleLogger): Removed the default constructor.
  6598. (SimpleLogger): Made the default value of logfile 0.
  6599. (debug): Added 'virtual' keyword.
  6600. (info): Added 'virtual' keyword.
  6601. (warn): Added 'virtual' keyword.
  6602. (error): Added 'virtual' keyword.
  6603. (notice): New function.
  6604. (setStdout): New function.
  6605. * src/SimpleLogger.cc
  6606. (WRITE_LOG): Replaced writeLog with writeFile.
  6607. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  6608. (SimpleLogger): Removed the default constructor.
  6609. (setStdout): New function.
  6610. (writeLog): Added the handling of NOTICE log level.
  6611. (writeFile): New function.
  6612. (notice): New function.
  6613. * src/TorrentMan.h: Updated doc.
  6614. * src/BitfieldMan.h: Updated doc.
  6615. * src/TrackerWatcherCommand.cc
  6616. (execute): Return true if error occurred in the request to the tracker
  6617. and halt is requested.
  6618. * src/TrackerUpdateCommand.cc
  6619. (execute): Return true if error occurred in the request to the tracker
  6620. and halt is requested.
  6621. To call onDownloadComplete from TorrentMan::completePiece(), not from
  6622. DownloadEngine:
  6623. * src/TorrentConsoleDownloadEngine.h
  6624. (onSelectiveDownloadingCompletes): Removed.
  6625. * src/TorrentConsoleDownloadEngine.cc
  6626. (onSelectiveDownloadingCompletes): Removed.
  6627. * src/TorrentDownloadEngine.h
  6628. (onEndOfRun): Added 'virtual' keyword.
  6629. (afterEachIteration): Removed.
  6630. (onSelectiveDownloadingCompletes): Removed.
  6631. * src/TorrentDownloadEngine.cc
  6632. (onEndOfRun): Removed filenameFixed.
  6633. (afterEachIteration): Removed.
  6634. * src/TorrentMan.cc
  6635. (completePiece): Call onDownloadComplete here.
  6636. (onDownloadComplete): Added 2 log messages.
  6637. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6638. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  6639. * src/NameResolver.h: Added the prototype declaration of callback().
  6640. To support c-ares library:
  6641. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  6642. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  6643. * src/FtpInitiateConnectionCommand.h:
  6644. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  6645. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  6646. * src/HttpInitiateConnectionCommand.h:
  6647. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  6648. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  6649. Added thes upport of c-ares's ares_strerror(the idea came from patch
  6650. #1542285 by tizianomueller)
  6651. * src/HttpInitiateConnectionCommand.cc:
  6652. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  6653. * src/FtpInitiateConnectionCommand.cc:
  6654. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  6655. * src/DownloadEngine.h:
  6656. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  6657. * src/DownloadEngine.cc:
  6658. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  6659. To fix the bug that causes compilation failure with metalink-support
  6660. disabled(bug#1543587):
  6661. * src/main.cc: Fixed with the patch by tizianomueller.
  6662. * Release 0.7.2
  6663. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6664. * src/main.cc
  6665. (main): Added a message to inform users that aria2 is starting to
  6666. verify checksum.
  6667. * src/RequestInfo.cc
  6668. (printDownloadAbortMessage): Added a message to inform users that
  6669. transfer can be resumed.
  6670. * src/FeatureConfig.cc
  6671. (FEATURE_ASYNC_DNS): New definition.
  6672. (FeatureConfig): Added aysnc DNS entry.
  6673. To replace CommandUuid with Command* in SocketEntry and
  6674. NameResolverEntry:
  6675. * src/DownloadEngine.h
  6676. (CommandUuids): Removed.
  6677. (SocketEntry::commandUuid): Removed.
  6678. (SocketEntry::command): New variable.
  6679. (SocketEntry::SocketEntry): Updated.
  6680. (SocketEntry::operator==): Updated.
  6681. (NameResolverEntry::commandUuid): Removed.
  6682. (NameResolverEntry::command): New variable.
  6683. (NameResolverEntry::NameResolverEntry): Updated.
  6684. (NameResolverEntry::operator==): Updated.
  6685. (waitData): Changed the argument type.
  6686. (addSocketForReadCheck): Changed the argument type.
  6687. (deleteSocketForReadCheck): Changed the argument type.
  6688. (addSocketForWriteCheck): Changed the argument type.
  6689. (deleteSocketForWriteCheck): Changed the argument type.
  6690. (addNameResolverCheck): Changed the argument type.
  6691. (deleteNameResolverCheck): Changed the argument type.
  6692. * src/DownloadEngine.cc
  6693. (FindCommand): Removed.
  6694. (run): Removed activeUuid. Added activeCommands instead.
  6695. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  6696. (AccumulateActiveCommand): New function object.
  6697. (waitData): Use AccumulateActiveCommand.
  6698. (addSocketForReadCheck): Use Command instead of CommandUuid.
  6699. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  6700. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  6701. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  6702. (addNameResolverCheck): Use Command instead of CommandUuid.
  6703. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  6704. * src/AbstractCommand.cc
  6705. (disableReadCheckSocket): Updated according to the changes in
  6706. DownloadEngine.
  6707. (setReadCheckSocket): Updated according to the changes in
  6708. DownloadEngine.
  6709. (disableWriteCheckSocket): Updated according to the changes in
  6710. DownloadEngine.
  6711. (setWriteCheckSocket): Updated according to the changes in
  6712. DownloadEngine.
  6713. (setNameResolverCheck): Updated according to the changes in
  6714. DownloadEngine.
  6715. (disableNameResolverCheck): Updated according to the changes in
  6716. DownloadEngine.
  6717. * src/AbstractCommand.cc
  6718. (disableReadCheckSocket): Updated according to the changes in
  6719. DownloadEngine.
  6720. (setReadCheckSocket): Updated according to the changes in
  6721. DownloadEngine.
  6722. (disableWriteCheckSocket): Updated according to the changes in
  6723. DownloadEngine.
  6724. (setWriteCheckSocket): Updated according to the changes in
  6725. DownloadEngine.
  6726. * release 0.7.1
  6727. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. To handle the case where some BitTorrent tracker requires all letters
  6729. except for [A-Za-z0-9] is URL encoded.
  6730. * src/Util.h
  6731. (torrentUrlencode): New function.
  6732. * src/Util.cc
  6733. (ctype.h): Included.
  6734. (torrentUrlencode): New function.
  6735. * src/TrackerWatcherCommand.cc
  6736. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  6737. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6738. To add asynchronous DNS support(libares):
  6739. * src/AbstractCommand.h
  6740. (setNameResolverCheck): New function.
  6741. (disableNameResolverCheck): New function
  6742. (resolveHostname): New function.
  6743. * src/AbstractCommand.cc
  6744. (setNameResolverCheck): New function.
  6745. (disableNameResolverCheck): New function
  6746. (resolveHostname): New function.
  6747. * src/FtpInitiateConnectionCommand.h
  6748. (nameResolver): New function.
  6749. * src/FtpInitiateConnectionCommand.cc
  6750. (Util.h): Included.
  6751. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  6752. disableWriteCheckSocket.
  6753. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  6754. (executeInternal): Added async DNS support.
  6755. * src/HttpInitiateConnectionCommand.h
  6756. (nameResolver): New function.
  6757. * src/HttpInitiateConnectionCommand.cc
  6758. (DlRetryEx.h): Included.
  6759. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  6760. disableWriteCheckSocket.
  6761. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  6762. (executeInternal): Added async DNS support.
  6763. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  6764. by extern "C" declaration.
  6765. * src/NameResolver.cc: New class.
  6766. * src/Util.h:
  6767. (isNumberAndDotsNotation): New function
  6768. * src/Util.cc
  6769. (isNumberAndDotsNotation): New function.
  6770. * src/DownloadEngine.h
  6771. (NameResolver.h): Included.
  6772. (NameResolverEntry): New class.
  6773. (NameResolverEntries): New type definition.
  6774. (addNameResolverCheck): New function.
  6775. (deleteNameResolverCheck): New function.
  6776. * src/DownloadEngine.cc
  6777. (run): Initialize cp with 0.
  6778. (SetDescriptor::operator()): Added for NameResolverEntry.
  6779. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  6780. (waitData): Check nameResolver entries.
  6781. (updateFdSet): Update fds in nameResolver entries.
  6782. (addNameResolverCheck): New function.
  6783. (deleteNameResolverCheck): new function.
  6784. * src/PeerInteractionCommand.cc
  6785. (executeInternal): Fixed wrong socket handling.
  6786. * src/main.cc
  6787. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  6788. * src/Util.cc
  6789. (fileChecksum): Removed the call to ctx.digestReset().
  6790. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6791. * po/ru.po: Azamat sent me Russian translation.
  6792. * src/FtpNegotiateCommand.cc
  6793. (recvGreeting): Call disableWriteCheckSocket just after
  6794. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  6795. (recvRetr): Recognized status code 125 as a acceptable response code.
  6796. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  6797. case-insesitive filesystem(BUG#1531057).
  6798. * src/Time.h: Renamed as TimeA2.h.
  6799. * src/Time.cc: Renamed as TimeA2.cc.
  6800. * src/TimeA2.h: New class.
  6801. * src/TimeA2.cc: New class.
  6802. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  6803. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  6804. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  6805. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  6806. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  6807. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  6808. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  6809. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  6810. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  6811. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  6812. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  6813. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  6814. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  6815. * release 0.7.0
  6816. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. * src/PeerChokeCommand.h
  6818. (PeerChokeCommand): Rearranged the arguments.
  6819. * src/PeerChokeCommand.cc
  6820. (PeerChokeCommand): Rearranged the arguments.
  6821. * src/MetalinkEntry.h
  6822. (Checksum.h): Included.
  6823. (md5): Removed.
  6824. (sha1): Removed.
  6825. (checksum): New variable.
  6826. (operator=): Updated.
  6827. (check): Removed.
  6828. * src/prefs.h
  6829. (PREF_LOWEST_SPEED_LIMIT): New definition.
  6830. (PREF_FOLLOW_TORRENT): New definition.
  6831. (PREF_SELECT_FILE): New definition.
  6832. (PREF_FOLLOW_METALINK): New definition.
  6833. * src/MetalinkResource.h
  6834. (TYPE_HTTPS): Added to enum TYPE.
  6835. * src/TorrentMan.cc
  6836. (~TorrentMan): Rewritten.
  6837. * src/MultiDiskWriter.cc
  6838. (MultiDiskAdaptor): Updated according to the changes in
  6839. MessageDigestContext.
  6840. (~MultiDiskAdaptor): Updated according to the changes in
  6841. MessageDigestContext.
  6842. (hashUpdate): Updated according to the changes in MessageDigestContext.
  6843. (sha1Sum): Updated according to the changes in MessageDigestContext.
  6844. * src/Util.h
  6845. (fileChecksum): Updated according to the changes in
  6846. MessageDigestContext.
  6847. * src/Util.cc
  6848. (sha1Sum): Updated according to the changes in MessageDigestContext.
  6849. (fileChecksum): Updated according to the changes in
  6850. MessageDigestContext.
  6851. * src/messageDigest.h: Rewritten.
  6852. * src/MetalinkEntry.cc
  6853. (check): Removed.
  6854. (Supported): Updated.
  6855. (dropUnsupportedResource): Fixed a memory leak.
  6856. * src/ShaVisitor.cc
  6857. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  6858. (~ShaVisitor): Updated according to the changes in
  6859. MessageDigestContext.
  6860. (visit): Updated according to the changes in MessageDigestContext.
  6861. * src/main.cc
  6862. (main): Rewritten the portion of download loop. --lowest-speed-limit
  6863. command-line option added.
  6864. * src/DownloadEngine.h
  6865. (SocketEntry): New class.
  6866. (SocketEntries): New definition.
  6867. (PairFind): Removed.
  6868. (SockCmdMap): Removed.
  6869. * src/DownloadEngine.cc
  6870. (DownloadEngine): Rewritten.
  6871. (~DownloadEngine): Rewritten.
  6872. (run): Renamed activeCommandUuids as activeUuids.
  6873. (SetDescriptor): Rewritten.
  6874. (AccumulateActiveCommandUuid): Removed.
  6875. (AccumulateActiveUuid): New function object.
  6876. (waitData): Rewritten.
  6877. (updateFdSet): Rewritten.
  6878. (addSocket): Rewritten.
  6879. (deleteSocket): Rewritten.
  6880. (addSocketForReadCheck): Rewritten.
  6881. (deleteSocketForReadCheck): Rewritten.
  6882. (addSocketForWriteCheck): Rewritten.
  6883. (deleteSocketForWriteCheck): Rewritten.
  6884. * src/Xml2MetalinkProcessor.cc
  6885. (getEntry): Rewritten the portion of MetalinkEntry creation.
  6886. * src/DownloadCommand.cc
  6887. (executeInternal): Added the check routine for lowest speed limit.
  6888. * src/AbstractDiskWriter.cc
  6889. (AbstractDiskWriter): Updated according to the changes in
  6890. MessageDigestContext.
  6891. (~AbstractDiskWriter): Updated according to the changes in
  6892. MessageDigestContext.
  6893. (sha1Sum): Updated according to the changes in MessageDigestContext.
  6894. * src/RequestInfo.h: New class.
  6895. * src/UrlRequestInfo.h: New class.
  6896. * src/UrlRequestInfo.cc: New class.
  6897. * src/TorrentRequestInfo.h: New class.
  6898. * src/TorrentRequestInfo.cc: New class.
  6899. * src/MetalinkRequestInfo.h: New class.
  6900. * src/MetalinkRequestInfo.cc: New class.
  6901. * src/Checksum.h: New class.
  6902. * src/DownloadEngineFactory.h: New class.
  6903. * src/DownloadEngineFactory.cc: New class.
  6904. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6905. * src/Option.h
  6906. (getAsBool): New function.
  6907. * src/Option.cc
  6908. (prefs.h): Included.
  6909. (defined): 0-length value is now recognized as undefined.
  6910. (getAsInt): Rewritten.
  6911. (getAsLLInt): Rewritten.
  6912. (getAsBool): New function.
  6913. * src/FeatureConfig.h: Rewritten.
  6914. * src/FeatureConfig.cc: Rewritten.
  6915. * src/prefs.h
  6916. (PREF_STDOUT_LOG): New definition.
  6917. (PREF_LOG): New definition.
  6918. (PREF_DIR): New definition.
  6919. (PREF_OUT): New definition.
  6920. (PREF_SPLIT): New definition.
  6921. (PREF_DAEMON): New definition.
  6922. (PREF_REFERER): New definition.
  6923. (PREF_TORRENT_FILE): New definition.
  6924. (PREF_LISTEN_PORT): New definition.
  6925. (PREF_METALINK_FILE): New definition.
  6926. (PREF_METALINK_VERSION): New definition.
  6927. (PREF_METALINK_LANGUAGE): New definition.
  6928. (PREF_METALINK_OS): New definition.
  6929. (PREF_METALINK_SERVERS): New definition.
  6930. * src/main.cc
  6931. (main): Following command-line parameters are now put into Option
  6932. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  6933. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  6934. metalinkLanguage, metalinkOs, metalinkServers
  6935. To fix the bug that aria2 can not handle http response header properly.
  6936. * src/HttpHeader.cc
  6937. (put): Made name lowercased.
  6938. (defined): Made name lowercased.
  6939. (getFirst): Made name lowercased.
  6940. (get): Made name lowercased.
  6941. (getFirstAsInt): Rewritten.
  6942. (getFirstAsLLInt): Rewritten.
  6943. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6944. * src/TorrentMan.h:
  6945. (advertisePiece): Updated doc.
  6946. (getAdvertisedPieceIndexes): Updated doc.
  6947. (removeAdvertisedPiece); New function.
  6948. * src/TorrentMan.cc
  6949. (FindElapsedHave): New function object.
  6950. (removeAdvertisedPiece): New function.
  6951. * src/HaveEraseCommand.h: New class.
  6952. * src/HaveEraseCommand.cc: New class.
  6953. * src/FeatureConfig.h: New class.
  6954. * src/FeatureConfig.cc: New class.
  6955. * src/Request.h
  6956. (defaultPorts): Removed.
  6957. * src/Request.cc
  6958. (FeatureConfig.h): Included.
  6959. (Request): Removed the statements related to defaultPorts.
  6960. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  6961. A default port number is now retrieved from FeatureConfig.
  6962. * src/main.cc
  6963. (HaveEraseCommand.h): Included.
  6964. (showVersion): Added the output of feature list.
  6965. (main): Added HaveEraseCommand to command queue in BitTorrent
  6966. downloading.
  6967. * src/PeerInteractionCommand.h
  6968. (chokeCheckPoint): Commented out.
  6969. (periodicExecPoint): New variable.
  6970. * src/PeerInteractionCommand.cc
  6971. (executeInternal): Following methods are now called in at least every
  6972. 0.5 seconds to reduce CPU usage:
  6973. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  6974. checkHave(), sendKeepAlive().
  6975. (checkLongTimePeerChoking): Commented out.
  6976. * src/BitfieldMan.h
  6977. (getNthBitIndex): Changed the method signature.
  6978. (getMissingIndexRandomly): Changed the method signature.
  6979. * src/BitfieldMan.cc
  6980. (getNthBitIndex): Rewritten
  6981. (getMissingIndexRandomly): Rewritten.
  6982. (hasMissingPiece): Rewritten.
  6983. (getMissingIndex): Refactored.
  6984. (getMissingUnusedIndex); Refactored.
  6985. (getMissingIndex): Refactored.
  6986. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6987. * src/PeerMessage.h
  6988. (Piece.h): Included.
  6989. (SharedHandle.h): Included.
  6990. (invalidate): New variable.
  6991. (uploading): New variable.
  6992. (isInvalidate): New function.
  6993. (isUploading): New function.
  6994. (onPush): New function.
  6995. (onChoked): New function.
  6996. (onCanceled): New function.
  6997. (onAbortPiece): New function.
  6998. (PeerMessageHandle): New type definition.
  6999. * src/PeerMessage.cc
  7000. (PeerMessage): Added the initialization for invalidate and uploading.
  7001. * src/CancelMessage.h
  7002. (CancelMessage): Rewritten.
  7003. * src/RejectMessage.h
  7004. (RejectMessage): Rewritten.
  7005. * src/Metalinker.h
  7006. (operator=): Defined.
  7007. * src/MetaEntry.h
  7008. (operator=): Defined.
  7009. * src/MetalinkResource.h
  7010. (operator=): Defined.
  7011. * src/AllowedFastMessage.h
  7012. (AllowedFastMessage): Rewritten.
  7013. * src/HandshakeMessage.h
  7014. (HandshakeMessage): New function(overload).
  7015. * src/HandshakeMessage.cc
  7016. (HandshakeMessage): Rewritten.
  7017. (init): New function.
  7018. * src/HaveMessage.h
  7019. (HaveMessage): Rewritten.
  7020. * src/Time.h
  7021. (operator=): Defined the function body here.
  7022. * src/Time.cc
  7023. (operator=): Removed.
  7024. * src/SocketCore.h
  7025. (operator==): Defined here.
  7026. (operator!=): Defined here.
  7027. (operator<): Defined here.
  7028. * src/SocketCore.cc
  7029. (operator==): Removed.
  7030. (operator<): Removed.
  7031. * src/BitfieldMan.h
  7032. (operator=): Defined the function body here.
  7033. * src/BitfieldMan.cc
  7034. (operator=): Removed.
  7035. * src/TorrentMan.h
  7036. (deleteErrorPeer): Removed.
  7037. (deleteUnusedPeer); New function.
  7038. * src/TorrentMan.cc
  7039. (addPeer): Call deleteUnusedPeer.
  7040. (deleteErrorPeer): Removed.
  7041. (deleteUnusedPeer): New function.
  7042. * src/PeerAbstractCommand.h
  7043. (setNoCheck): New function.
  7044. (noCheck): New variable.
  7045. * src/PeerAbstractCommand.cc
  7046. (PeerAbstractCommand): Added the initialization of noCheck.
  7047. (execute): Added a check for noCheck.
  7048. (setNoCheck): New function.
  7049. * src/Util.h
  7050. (stdio.h): Included.
  7051. * src/Util.cc
  7052. (unistd.h): Included.
  7053. * src/DefaultDiskWriter.cc
  7054. (unistd.h): Included.
  7055. * src/Peer.h
  7056. (operator==): Defined the function body here.
  7057. (operator!=): Defined the function body here.
  7058. * src/Peer.cc
  7059. (operator==): Removed.
  7060. (operator!=): Removed.
  7061. * src/Piece.h
  7062. (Piece): Defined the function body here(copy constructor).
  7063. (operator=): Defined the function body here.
  7064. (operator==): Defined the function body here.
  7065. * src/Piece.cc
  7066. (Piece): Removed(copy constructor).
  7067. (operator=): Removed.
  7068. (operator==): Removed.
  7069. * src/PeerMessageUtil.h
  7070. (ChokeMessage.h): Removed.
  7071. (UnchokeMessage.h): Removed.
  7072. (InterestedMessage.h): Removed.
  7073. (NotInterestedMessage.h): Removed.
  7074. (HaveMessage.h): Removed.
  7075. (BitfieldMessage.h): Removed.
  7076. (RequestMessage.h): Removed.
  7077. (CancelMessage.h): Removed.
  7078. (PieceMessage.h): Removed.
  7079. (HandshakeMessage.h): Removed.
  7080. (KeepAliveMessage.h): Removed.
  7081. (PortMessage.h): Removed.
  7082. (HaveAllMessage.h): Removed.
  7083. (HaveNoneMessage.h): Removed.
  7084. (PeerConnection.h): Removed.
  7085. (HandshakeMessage.h): Included.
  7086. * src/BitfieldMessage.h
  7087. (init): New function.
  7088. (BitfieldMessage): Rewritten.
  7089. (BitfieldMessage): New function(overload).
  7090. * src/RequestSlot.h
  7091. (operator=): Defined the function body here.
  7092. (operator==): Defined the function body here.
  7093. * src/RequestSlot.cc
  7094. (operator=): Removed.
  7095. (operator==): Removed.
  7096. To remove the dependency on the PeerMessage subclass from
  7097. PeerInteraction:
  7098. * src/PeerMessageFactory.h: New class.
  7099. * src/PeerMessageFactory.cc: New class.
  7100. * src/SimplePeerMessage.cc
  7101. (send): If invalidate is true then do nothing.
  7102. * src/PeerInteractionCommand.cc
  7103. (HandshakeMessage.h): Included.
  7104. (KeepAliveMessage.h): Included.
  7105. (ChokeMessage.h): Included.
  7106. (UnchokeMessage.h): Included.
  7107. (HaveMessage.h): Included.
  7108. (executeInternal): Call setNoCheck().
  7109. Removed setWriteCheckSocket(socket).
  7110. * src/PeerInteraction.h
  7111. (ChokeMessage.h): Removed.
  7112. (UnchokeMessage.h): Removed.
  7113. (InterestedMessage.h): Removed.
  7114. (NotInterestedMessage.h): Removed.
  7115. (HaveMessage.h): Removed.
  7116. (BitfieldMessage.h): Removed.
  7117. (RequestMessage.h): Removed.
  7118. (CancelMessage.h): Removed.
  7119. (PieceMessage.h): Removed.
  7120. (HandshakeMessage.h): Removed.
  7121. (KeepAliveMessage.h): Removed.
  7122. (PortMessage.h): Removed.
  7123. (HaveAllMessage.h): Removed.
  7124. (HaveNoneMessage.h): Removed.
  7125. (RejectMessage.h): Removed.
  7126. (AllowedFastMessage.h): Removed.
  7127. (SuggestPieceMessage.h): Removed.
  7128. (PeerMessageFactory.h): Included.
  7129. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  7130. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  7131. (PeerMessageFactory): New variable.
  7132. (createPeerMessage): Removed.
  7133. (createHandshakeMessage): Removed.
  7134. (setPeerMessageCommonProperty): Removed.
  7135. (addRequestSlot): New function.
  7136. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  7137. (getPeerMessageFactory): New function.
  7138. (createRequestMessage): Removed.
  7139. (createCancelMessage): Removed.
  7140. (createPieceMessage): Removed.
  7141. (createHaveMessage): Removed.
  7142. (createChokeMessage): Removed.
  7143. (createUnchokeMessage): Removed.
  7144. (createInterestedMessage): Removed.
  7145. (createNotInterestedMessage): Removed.
  7146. (createBitfieldMessage): Removed.
  7147. (createKeepAliveMessage): Removed.
  7148. (createHaveAllMessage): Removed.
  7149. (createHaveNoneMessage): Removed.
  7150. (createRejectMessage): Removed.
  7151. (createAllowedFastMessage): Removed.
  7152. * src/PeerInteraction.cc
  7153. (PeerInteraction): Allocate PeerMessageFactory here.
  7154. (~PeerInteraction): Deallocate PeerMessageFactory here.
  7155. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  7156. PieceMessage::ID.
  7157. (addMessage): Simplified by using PeerMessage::onPush().
  7158. (addRequestSlot): New function.
  7159. (rejectAllPieceMessageInQueue): Simplified by using
  7160. PeerMessage::onChoked().
  7161. (rejectPieceMessageInQueue): Simplified by using
  7162. PeerMessage::onCanceled().
  7163. (abortPiece): Simplified by using PeerMessage::abortPiece().
  7164. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  7165. (createHandshakeMessage): Removed.
  7166. (createPeerMessage): Removed.
  7167. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  7168. (setPeerMessageCommonProperty): Removed.
  7169. (createRequestMessage): Removed.
  7170. (createCancelMessage): Removed.
  7171. (createPieceMessage): Removed.
  7172. (createHaveMessage): Removed.
  7173. (createChokeMessage): Removed.
  7174. (createUnchokeMessage): Removed.
  7175. (createInterestedMessage): Removed.
  7176. (createNotInterestedMessage): Removed.
  7177. (createBitfieldMessage): Removed.
  7178. (createKeepAliveMessage): Removed.
  7179. (createHaveAllMessage): Removed.
  7180. (createHaveNoneMessage): Removed.
  7181. (createRejectMessage): Removed.
  7182. (createAllowedFastMessage): Removed.
  7183. * src/PieceMessage.h
  7184. (createRejectMessage): New function.
  7185. (PieceMessage): Rewritten.
  7186. (onChoked): New function.
  7187. (onCanceled): New function.
  7188. * src/PieceMessage.cc
  7189. (send): If invalidate is true then do nothing, just return.
  7190. (createRejectMessage): New function.
  7191. (onChoked): New function.
  7192. (onCanceled): New function.
  7193. * src/RequestMessage.h
  7194. (RequestMessage): Rewritten.
  7195. (onPush): New function.
  7196. (onAbortPiece): New function.
  7197. * src/RequestMessage.cc
  7198. (onPush): New function.
  7199. (onAbortPiece): New function.
  7200. Update fd_set when a socket is added or deleted in order to improve
  7201. performance:
  7202. * src/DownloadEngine.h
  7203. (rfdset): New variable.
  7204. (wfdset): New variable.
  7205. (updateFdSet): New function.
  7206. * src/DownloadEngine.cc
  7207. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  7208. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  7209. (waitData): Copy rfdset and wfdset.
  7210. (updateFdSet): New function.
  7211. (addSocket): Call updateFdSet.
  7212. (deleteSocket): Call updateFdSet.
  7213. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7214. To add the support for Metalink3.0 backward compatible links:
  7215. * src/Request.h
  7216. (SAFE_CHARS): Added '#'.
  7217. (METALINK_MARK): New definition.
  7218. * src/Request.cc
  7219. (parseUrl): Added the support for Metalink3.0 backward compatible
  7220. links.
  7221. etc
  7222. * src/PeerInteraction.cc
  7223. (MsgPushBack): Removed.
  7224. (sendMessages): Use STL copy and back_inserter.
  7225. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  7226. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  7227. * src/TorrentMan.h
  7228. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  7229. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7230. * src/SharedHandle.h: New class.
  7231. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  7232. * src/HttpResponseCommand.h
  7233. (HttpResponseCommand): Wrapped Socket.
  7234. * src/SocketCore.h
  7235. (operator==): New function.
  7236. (operator!=): New function.
  7237. (operator<): New function.
  7238. (getSockfd): New function.
  7239. (isOpen): New function.
  7240. (writeData): New function.
  7241. * src/SocketCore.cc
  7242. (operator==): New function.
  7243. (operator!=): New function.
  7244. (operator<): New function.
  7245. * src/AbstractCommand.h
  7246. (socket): Changed its type to SocketHandle.
  7247. (setReadCheckSocket): Replaced Socket with SocketHandle.
  7248. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  7249. (disableReadCheckSocket): New function.
  7250. (disableWriteCheckSocket): New function.
  7251. (readCheckTarget): Changed its type to SocketHandle.
  7252. (writeCheckTarget): Changed its type to SocketHandle.
  7253. (AbstractCommand): Replaced Socket with SocketHandle.
  7254. * src/AbstractCommand.cc
  7255. (AbstractCommand): Replaced Socket with SocketHandle.
  7256. (~AbstractCommand): Removed the deallocation for Socket object.
  7257. (disableReadCheckSocket): New function.
  7258. (setReadCheckSocket): Replaced Socket with SocketHandle.
  7259. (disableWriteCheckSocket): New function.
  7260. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  7261. * src/HttpDownloadCommand.cc
  7262. (DownloadCommand): Replaced Socket with SocketHandle.
  7263. * src/PeerAbstractCommand.h
  7264. (socket): Changed its type to SocketHandle.
  7265. (peer): Changed its type to PeerHandle.
  7266. (setReadCheckSocket): Replaced Socket with SocketHandle.
  7267. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  7268. (disableReadCheckSocket): New function.
  7269. (disableWriteCheckSocket): New function.
  7270. (readCheckTarget): Changed its type to SocketHandle.
  7271. (writeCheckTarget): Changed its type to SocketHandle.
  7272. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  7273. Replaced Peer with PeerHandle.
  7274. * src/HttpRequestCommand.cc
  7275. (HttpRequestCommand): Replaced Socket with SocketHandle.
  7276. Use disableReadCheckSocket.
  7277. * src/PeerInitiateConnectionCommand.h
  7278. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  7279. * src/PeerChokeCommand.cc
  7280. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  7281. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  7282. (execute): Use PeerHandle.
  7283. * src/PeerConnection.h
  7284. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  7285. (socket): Changed its type to SocketHandle.
  7286. (PeerConnection): Replaced Socket with SocketHandle.
  7287. * src/PeerConnection.cc
  7288. (PeerConnection): Replaced Socket with SocketHandle.
  7289. * src/PeerInteractionCommand.h
  7290. (PeerInteractionCommand): Replaced socket with SocketHandle.
  7291. Replaced Peer with PeerHandle.
  7292. * src/PeerInteractionCommand.cc
  7293. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  7294. Replaced Peer with PeerHandle.
  7295. (executeInternal): Use disableWriteCheckSocket.
  7296. Use HandshakeMessageHandle.
  7297. (receiveMessages): Use PeerMessageHandle.
  7298. (prepareForNextPeer): Use PeerHandle.
  7299. * src/HttpProxyRequestCommand.h
  7300. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  7301. * src/HttpResponseCommand.cc
  7302. (HttpResponseCommand): Replaced Socket with SocketHandle.
  7303. * src/TorrentMan.cc
  7304. (nullPeer): Added external reference.
  7305. (~TorrentMan): Removed the deallocation of the elements of peers.
  7306. (addPeer): Rewritten.
  7307. (isPeerAvailable): Use nullPeer.
  7308. (deleteOldpeers): Replaced with deleteErrorPeer.
  7309. (deleteErrorPeer): New function.
  7310. (getPeer): Use PeerHandle and nullPeer.
  7311. (hasMissingPiece): Replaced Peer with PeerHandle.
  7312. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  7313. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  7314. (getMissingFastPiece): Replaced Peer with PeerHandle.
  7315. (getMissingPiece): Replaced Peer with PeerHandle.
  7316. * src/FtpNegotiateCommand.cc
  7317. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  7318. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  7319. (recvGreeting): Use disableWriteCheckSocket.
  7320. (recvPasv): Removed the allocation of Socket.
  7321. Use disableReadCheckSocket.
  7322. (sendRestPasv): Use disableWriteCheckSocket.
  7323. (recvRetr): Changed assertion.
  7324. * src/PeerInteraction.h
  7325. (SharedHandle.h): Included SharedHandle.h.
  7326. (PeerMessageHandle): New type definition.
  7327. (HandshakeMessageHandle): New type definition.
  7328. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  7329. (peer): Changed its type to PeerHandle.
  7330. (createHandshakeMessage): Replaced HandshakeMessage with
  7331. HandshakeMessageHandle.
  7332. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  7333. (PeerInteraction): Replaced Peer with PeerHandle.
  7334. Replaced Socket with SocketHandle.
  7335. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  7336. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  7337. (receiveHandshake): Replaced HandshakeMessage with
  7338. HandshakeMessageHandle.
  7339. * src/PeerInteraction.cc
  7340. (PeerInteraction): Replaced Peer with PeerHandle.
  7341. Replaced Socket with SocketHandle.
  7342. (~PeerInteraction): Removed the deallocation of the elements of
  7343. messageQueue.
  7344. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  7345. (isSendingMessageInProgress): Replaced PeerMessage with
  7346. PeerMessageHandle.
  7347. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  7348. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  7349. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  7350. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  7351. (abortPiece): Use PeerMessageHandle.
  7352. (receiveHandshake): Replaced HandshakeMessage with
  7353. HandshakeMessageHandle. Removed try-catch block.
  7354. (createHandshakeMessage): Replaced HandshakeMessage with
  7355. HandshakeMessageHandle.
  7356. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  7357. Removed try-catch block.
  7358. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  7359. * src/HttpProxyResponseCommand.cc
  7360. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  7361. * src/FtpTunnelResponseCommand.h
  7362. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  7363. * src/HttpConnection.cc
  7364. (HttpConnection): Replaced Socket with SocketHandle.
  7365. * src/PeerAbstractCommand.cc
  7366. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  7367. (~PeerAbstractCommand): Removed the deallocation of socket.
  7368. Use disableReadCheckSocket, disableWriteCheckSocket.
  7369. (disableReadCheckSocket): New function.
  7370. (setReadCheckSocket): Replaced Socket with SocketHandle.
  7371. (disableWriteCheckSocket): New function.
  7372. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  7373. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  7374. * src/FtpTunnelRequestCommand.cc
  7375. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  7376. (~FtpTunnelRequestCommand): Corrected indentation.
  7377. * src/DownloadCommand.h
  7378. (DownloadCommand): Replaced Socket with SocketHandle.
  7379. * src/PeerListenCommand.cc
  7380. (PeerListenCommand): Removed the initialization of socket.
  7381. (~PeerListenCommand): Removed the deallocation of socket.
  7382. (bindPort): Use SocketHandle.
  7383. (execute): Use SocketHandle and PeerHandle.
  7384. * src/FtpDowndloadCommand.cc
  7385. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  7386. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  7387. * src/main.cc
  7388. (main): Corrected indentation.
  7389. * src/HttpInitiateConnectionCommand.cc
  7390. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  7391. (executeInternal): Removed the allocation of socket.
  7392. * src/HttpRequestCommand.h
  7393. (HttpRequestCommand): Replaced Socket with SocketHandle.
  7394. * src/FtpNegotiationCommand.h
  7395. (dataSocket): Changed its type to SocketHandle.
  7396. (serverSocket): Changed its type to SocketHandle.
  7397. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  7398. * src/TorrentMan.h
  7399. (MAX_PEER_UPDATE): Removed.
  7400. (MAX_PEERS): New definition.
  7401. (Peers): The element is now of type PeerHandle.
  7402. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  7403. (getPeer): Replaced Peer with PeerHandle.
  7404. (deleteOldErrorPeers): Removed.
  7405. (deleteErrorPeer): New function.
  7406. (hasMissingPiece): Replaced Peer with PeerHandle.
  7407. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  7408. (getMissingPiece): Replaced Peer with PeerHandle.
  7409. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  7410. (getMissingFastPiece): Replaced Peer with PeerHandle.
  7411. (addActivePeer): Replaced Peer with PeerHandle.
  7412. (deleteActivePeer): Replaced Peer with PeerHandle.
  7413. Added a check for the return value of find.
  7414. * src/FtpTunnelResponseCommand.cc
  7415. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  7416. * src/FtpInitiateConnectionCommand.cc
  7417. (executeInternal): Removed the allocation of socket.
  7418. * src/DownloadEngine.h
  7419. (Sockets): An element is now of type SocketHandle.
  7420. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  7421. (CommandUuids): New type definition.
  7422. (rsockets): Changed its type to SockCmdMap.
  7423. (wsockets): Changed its type to SockCmdMap.
  7424. (addSocket): Rewritten.
  7425. (deleteSocket): Rewritten.
  7426. (addSocketForReadCheck): Rewritten.
  7427. (deleteSocketForReadCheck): Rewritten.
  7428. (addSocketForWriteCheck): Rewritten.
  7429. (deleteSocketForWriteCheck): Rewritten.
  7430. (PairFind): New template class.
  7431. * src/HttpDownloadCommand.h
  7432. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  7433. * src/FtpConnection.cc
  7434. (FtpConnection): Replaced Socket with SocketHandle.
  7435. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  7436. block.
  7437. * src/InitiateConnectionCommandFactory.cc
  7438. (DlAbortEx.h): Included DlAbortEx.h.
  7439. (createInitiateConnectionCommand): Throw exception if the protocol of
  7440. requested URI is not supported.
  7441. * src/Peer.cc
  7442. (nullPeer): Changed its type to PeerHandle.
  7443. (operator==): New function.
  7444. (operator!=): New function.
  7445. * src/Peer.h
  7446. (SharedHandle.h): Included SharedHandle.h.
  7447. (operator==): New function.
  7448. (operator!=): New function.
  7449. (Peer): Added the default constructor.
  7450. Use resetStatus() to initialize member variables.
  7451. (nullPeer): Removed.
  7452. * src/TrackerUpdateCommand.cc
  7453. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  7454. with MIN_PEERS.
  7455. * src/PeerListenCommand.h
  7456. (socket): Changed its type to SocketHandle.
  7457. * src/Command.h
  7458. (CommandUuid): New type definition.
  7459. (uuid): New variable.
  7460. (uuidGen): New variable.
  7461. (Command): Added the initialization of uuid.
  7462. (getUuid): New function.
  7463. * src/Socket.h
  7464. (Socket): Removed.
  7465. (SocketHandle): New type definition.
  7466. * src/DownloadEngine.h
  7467. (FindCommand): New function object.
  7468. (run): The portion of socket check was rewritten.
  7469. (SetDescriptor): New function object.
  7470. (AccumulateActiveCommandUuid): New function object.
  7471. (waitData): Rewritten.
  7472. (addSocket): Rewritten.
  7473. (deleteSocket): Rewritten.
  7474. (addSocketForReadCheck): Rewritten.
  7475. (addSocketForWriteCheck): Rewritten.
  7476. (deleteSocketForReadCheck): Rewritten.
  7477. (deleteSocketForWriteCheck): Rewritten.
  7478. * src/HttpProxyResponseCommand.h
  7479. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  7480. * src/HttpConnection.h
  7481. (socket): Changed its type to SocketHandle.
  7482. (HttpConnection): Replaced Socket with SocketHandle.
  7483. * src/PeerInitiateConnectionCommand.cc
  7484. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  7485. (executeInternal): Removed the allocation of socket.
  7486. (prepareForNextPeer): Use PeerHandle.
  7487. * src/PeerMessage.h
  7488. (peer): Changed its type to PeerHandle.
  7489. (getPeer): Replaced Peer with PeerHandle.
  7490. (setPeer): Replaced Peer with PeerHandle.
  7491. * src/DownloadCommand.cc
  7492. (DownloadCommand): Replaced Socket with SocketHandle.
  7493. * src/FtpConnection.h
  7494. (socket): Changed its type to SocketHandle.
  7495. (FtpConnection): Replaced Socket with SocketHandle.
  7496. (sendPort); Replaced Socket with SocketHandle.
  7497. * src/FtpDowndloadCommand.h
  7498. (ctrlSocket): Changed its type to SocketHandle.
  7499. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  7500. * src/HttpProxyRequestCommand.cc
  7501. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  7502. * src/FtpTunnelRequestCommand.h
  7503. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  7504. etc
  7505. * src/PeerChokeCommand.h
  7506. (setAllPeerChoked): Removed.
  7507. (setAllPeerResetDelta): Removed.
  7508. * src/PeerChokeCommand.cc
  7509. (setAllPeerChoked): Removed.
  7510. (ChokePeer): New function object.
  7511. (setAllPeerResetDelta): Removed.
  7512. (ResetDelta): New function object.
  7513. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  7514. (execute): Show download speed when the local node is a seeder.
  7515. setAllPeerChoked and setAllPeerResetDelta were rewritten
  7516. using STL.
  7517. * src/TrackerWatcherCommand.h
  7518. (MIN_PEERS): Removed.
  7519. * src/TorrentMan.cc
  7520. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  7521. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7522. To fix the bug that .aria2 file is not saved if downloading is stopped
  7523. by the errors:it results that aria2 can not resume downloading:
  7524. * src/main.cc
  7525. (normalDownload): Added the call to save().
  7526. (main): Added the deletion of the elements in 'reserved'.
  7527. To fix log:
  7528. * src/PeerInteraction.cc
  7529. (receiveHandshake): Fixed log.
  7530. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7531. To improve download performance in BitTorrent:
  7532. * src/TorrentMan.cc
  7533. (getPeer): Check the number of connections. Return nullPeer if
  7534. it is greater than MAX_PEER_UPDATE.
  7535. This code was originally here, but was removed in 0.5.1.
  7536. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7537. To improve the conditional compilation:
  7538. * src/MultiDiskWriter.h:
  7539. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  7540. * src/MultiDiskWriter.cc:
  7541. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  7542. * src/Util.h:
  7543. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  7544. Added ENABLE_BITTORRENT around computeFastSet().
  7545. * src/Util.cc:
  7546. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  7547. Added ENABLE_BITTORRENT around computeFastSet().
  7548. * src/messageDigest.h:
  7549. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  7550. * src/ShaVisitor.h:
  7551. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  7552. * src/ShaVisitor.cc:
  7553. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  7554. * src/main.cc:
  7555. Added ENABLE_BITTORRENT around includes and blocks related to
  7556. BitTorrent.
  7557. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  7558. digest support is not available.
  7559. * src/AbstractDiskWriter.h:
  7560. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  7561. * src/AbstractDiskWriter.cc:
  7562. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  7563. * src/MetalinkEntry.cc
  7564. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  7565. support is not available.
  7566. To add command-line options for Metalink:
  7567. * src/main.cc:
  7568. Added metalink-version, metalink-language, metalink-os,
  7569. follow-metalink.
  7570. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  7571. * src/main.cc: Use these definition.
  7572. * Release 0.6.0
  7573. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7574. To add Metalink support(http/ftp only):
  7575. * src/AbstractCommand.h
  7576. (tryReserved): New function.
  7577. * src/AbstractCommand.cc
  7578. (execute): Call tryReserved().
  7579. (tryReserved): New function.
  7580. * src/Request.h
  7581. (Requests): New type definition.
  7582. * src/SegmentMan.h
  7583. (reserved): New variable.
  7584. * src/Util.h
  7585. (fileChecksum): New function.
  7586. (toUpper): New function.
  7587. (toLower): New function.
  7588. * src/Util.cc
  7589. (messageDigest.h): Included.
  7590. (trim): Trim \r\n\t.
  7591. (fileChecksum): New function.
  7592. (toUpper): New function.
  7593. (toLower): New function.
  7594. * src/main.cc
  7595. (normalDownload): New function.
  7596. (main): Added 2 command-line options: metalink-file,
  7597. metalink-connection. Their usage has not been written yet.
  7598. * src/MetalinkProcessor.h: New class.
  7599. * src/Xml2MetalinkProcessor.h: New class.
  7600. * src/Xml2MetalinkProcessor.cc: New class.
  7601. * src/MetalinkEntry.h: New class.
  7602. * src/MetalinkEntry.cc: New class.
  7603. * src/MetalinkResource.h: New class.
  7604. * src/MetalinkResource.cc: New class.
  7605. To add md5 message digest checking:
  7606. * src/messageDigest.h: Rewritten.
  7607. * src/MultiDiskWriter.cc: Updated according to the changes in
  7608. messageDigest.h.
  7609. * src/ShaVisitor.cc: Updated according to the changes in
  7610. messageDigest.h.
  7611. * src/Util.cc: Updated according to the changes in messageDigest.h.
  7612. * src/AbstractDiskWriter.cc: Updated according to the changes in
  7613. messageDigest.h.
  7614. To fix a bug that causes segfault when the payload length in peer
  7615. message is less than 0:
  7616. * src/PeerConnection.cc:
  7617. (receiveMessage): Fixed the bug.
  7618. * src/PeerMessageUtil.cc
  7619. (checkLength): Throw an exception if length is less than or equals to
  7620. 0.
  7621. To add new interfaces to Base64 encoding/decoding:
  7622. * src/Base64.h
  7623. (part_encode): Changed the method signature.
  7624. (encode): New function(overload).
  7625. (decode): New function(overload).
  7626. * src/Base64.cc
  7627. (part_encode): Rewritten.
  7628. (encode): Rewritten.
  7629. (encode): New function(overload).
  7630. To prevent a peer to download same piece if there is an error in
  7631. checksum:
  7632. * src/PieceMessage.cc
  7633. (receivedAction): Call peerInteraction->abortPiece().
  7634. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7635. To fix the bug that causes same have message is sent many times to
  7636. a single peer.
  7637. * src/Time.cc
  7638. (isNewer): Use Util::difftv().
  7639. * src/Util.cc
  7640. (difftv): Added a cast to (long long int).
  7641. * src/TorrentMan.cc
  7642. (advertisePiece): Use push_front.
  7643. (getAdvertisedPieceIndexes): A performance improvement was made.
  7644. To fix the bug that sends tracker requests without a sleep interval
  7645. when the number of connections is less than 15.
  7646. * src/TrackerWatcherCommand.cc
  7647. (execute): Now the number of connections is not a factor to decide
  7648. whether or not a tracker request should be sent or not.
  7649. * src/Time.h
  7650. (setTimeInSec): New function.
  7651. * src/Time.cc
  7652. (setTimeInSec): New function.
  7653. etc.
  7654. * src/ChokeMessage.cc
  7655. (receivedAction): Removed peer->snubbing = false
  7656. * src/PeerConnection.h
  7657. (receiveHandshake): Updated doc.
  7658. * src/TorrentMan.h
  7659. (getAdvertisedPieceIndexes): Updated the method signature.
  7660. * src/TorrentMan.cc
  7661. (getAdvertisedPieceIndexes): Updated the method signature.
  7662. * src/Time.h
  7663. (getTimeInMicros): Added a cast to (long long int).
  7664. (getTimeInMillis): Added a cast to (long long int).
  7665. * Release 0.5.2
  7666. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7667. To make a listening socket non-block:
  7668. * src/SocketCore.h
  7669. (setNonBlockingMode): New function.
  7670. * src/SocketCore.cc
  7671. (setNonBlockingMode): New function.
  7672. (beginListen): Added a call to setNonBlockingMode().
  7673. (acceptConnection): Call setNonBlockingMode().
  7674. (setBlockingMode): Updated.
  7675. To handle tracker's NAT-checking:
  7676. * src/PeerConnection.cc
  7677. (receiveHandshake): 'msg' param is filled with received data and
  7678. its length is assigned to 'length' param, even if all handshake
  7679. message is not yet received.
  7680. * src/PeerInteractionCommand.cc
  7681. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  7682. a new peer connects to localhost.
  7683. A call to peerInteraction->sendHandshake() was removed because
  7684. it is called from peerInteraction->receiveHandshake(true).
  7685. * src/PeerInteraction.h
  7686. (quickReplied): New variable.
  7687. (receiveHandshake): Added an argument.
  7688. * src/PeerInteraction.cc
  7689. (PeerInteraction): Added the initialization of quickReplied.
  7690. (receiveHandshake): Send handshake message as soon as the info hash
  7691. in a handshake message from a peer is correct.
  7692. To change the random part of peer id and key parameter:
  7693. * src/TorrentMan.h
  7694. (key): New variable.
  7695. * src/TorrentMan.cc
  7696. (setupInternal1): Use Util::randomAlpha() to generate random part
  7697. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  7698. key is also generated by Util::randomAlpha() and it is now 8 character
  7699. long.
  7700. * src/Util.h
  7701. (randomAlpha): New function.
  7702. * src/Util.cc
  7703. (randomAlpha): New function.
  7704. * src/TrackerWatcherCommand.cc
  7705. (execute): In a tracker request: Use torrentMan->key as key parameter.
  7706. Added no_peer_id=1.
  7707. Set snubbing flag to false when a choke message is received from a
  7708. snubbed peer.
  7709. * src/ChokeMessage.cc
  7710. (receivedAction): Set snubbing flag to false.
  7711. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7712. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  7713. * src/SimpleLogger.h (writeHeader): New function.
  7714. * src/SimpleLogger.cc (writeHeader): New function.
  7715. (writeLog): Fixed the bug that causes segfaults if exception message
  7716. contains an unescaped "%" character.
  7717. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  7718. when a tracker request fails.
  7719. * src/Request.cc (parseUrl): Query string is now handled properly.
  7720. * Release 0.5.1
  7721. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. To add Time class which represents a specific instant in time and
  7723. its precision is microseconds. Time checking procedures were rewritten
  7724. using this object.
  7725. * src/Time.h: New class.
  7726. * src/Time.cc: New class.
  7727. * src/AbstractCommand.h
  7728. (updateCheckPoint): Removed.
  7729. (isTimeoutDetected): Removed.
  7730. (checkPoint): Changed the type to Time.
  7731. (timeout): New variable.
  7732. (setTimeout): New function.
  7733. * src/AbstractCommand.cc
  7734. (AbstractCommand): Removed the initialization of checkPoint.
  7735. Added the initialization of timeout.
  7736. (updateCheckPoint): Removed.
  7737. (isTimeoutDetected): Removed.
  7738. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  7739. * src/PeerChokeCommand.h
  7740. (checkPoint): Changed the type to Time.
  7741. * src/PeerChokeCommand.cc
  7742. (PeerChokeCommand): Removed the initialization of checkPoint.
  7743. (execute): Rewritten using Time object.
  7744. * src/TrackerWatcherCommand.h
  7745. (checkPoint): Changed the type to Time.
  7746. * src/TrackerWatcherCommand.cc
  7747. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  7748. (execute): Rewritten.
  7749. * src/ConsoleDownloadEngine.h
  7750. (cp): Changed the type to Time.
  7751. (startup): Changed the type to Time.
  7752. * src/ConsoleDownloadEngine.cc
  7753. (initStatistics): Use cp.reset(), startup.reset().
  7754. (calculateStatistics): Rewritten using Time object.
  7755. * src/PeerAbstractCommand.h
  7756. (updateCheckPoint): Removed.
  7757. (isTimeoutDetected): Removed.
  7758. (checkPoint): Changed the type to Time.
  7759. * src/PeerAbstractCommand.cc
  7760. (PeerAbstractCommand): Removed the initialization of checkPoint.
  7761. (updateCheckPoint): Removed.
  7762. (isTimeoutDetected): Removed.
  7763. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  7764. * src/PeerInteractionCommand.cc
  7765. (PeerInteractionCommand): Removed the initializations of struct
  7766. timeval variables.
  7767. * src/PeerInteractionCommand.h
  7768. (keepAliveCheckPoint): Changed the type to Time.
  7769. (chokeCheckPoint): Changed the type to Time.
  7770. (freqCheckPoint): Changed the type to Time.
  7771. (haveCheckTime): Changed the type to Time.
  7772. * src/PeerInteractionCommand.cc
  7773. (executeInternal): Rewritten using Time object.
  7774. (detectMessageFlooding): Rewritten using Time object.
  7775. (checkLongTimePeerChoking): Rewritten using Time object.
  7776. (sendKeepAlive): Rewritten using Time object.
  7777. (checkHave): Rewritten using Time object.
  7778. * src/SleepCommand.h
  7779. (checkPoint): Changed the type to Time.
  7780. * src/SleepCommand.cc
  7781. (SleepCommand): Removed the initialization of checkPoint.
  7782. (execute): Rewritten using Time object.
  7783. * src/TorrentAutoSaveCommand.h
  7784. (checkPoint): Changed the type to Time.
  7785. * src/TorrentAutoSaveCommand.cc
  7786. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  7787. (execute): Rewritten.
  7788. * src/DownloadCommand.h
  7789. (sw): Changed the type to Time.
  7790. * src/DownloadCommand.cc
  7791. (DownloadCommand): Removed the initialization of sw.
  7792. (executeInternal): Rewritten.
  7793. * src/RequestSlot.h
  7794. (dispatchedTime): Changed the type to Time.
  7795. * src/RequestSlot.cc
  7796. (RequestSlot): Removed the call to setDispatchedTime().
  7797. (setDispatchedTime): Rewirtten.
  7798. (isTimeout): Rewritten.
  7799. (getLatencyInMillis): Rewritten.
  7800. * src/TorrentDownloadEngine.h
  7801. (cp): Changed the type to Time[2].
  7802. (startup): Changed the type to Time.
  7803. * src/TorrentDownloadEngine.cc
  7804. (initStatistics): Rewritten.
  7805. (calculateStatistics): Rewritten.
  7806. * src/DownloadEngine.cc
  7807. (run): Rewritten.
  7808. To detect all attempts to connect to the tracker are failed:
  7809. * src/AbstractCommand.cc
  7810. (execute): Increment e->segmentMan->errors if a command aborted.
  7811. * src/SegmentMan.h
  7812. (errors): New variable.
  7813. * src/SegmentMan.cc
  7814. (SegmentMan): Added the initialization of errors.
  7815. (init): Added the initialization of errors.
  7816. * src/TrackerWatcherCommand.cc
  7817. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  7818. request was failed.
  7819. To handle snubbed peers:
  7820. * src/PeerChokeCommand.cc
  7821. (optUnchokingPeer): Snubbed peers don't get unchoked.
  7822. (execute): Snubbed peers don't get unchoked.
  7823. * src/PeerInteraction.h
  7824. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  7825. * src/PeerInteraction.cc
  7826. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  7827. back the requested 16k block in 60 seconds.
  7828. * src/PieceMessage.cc
  7829. (receivedAction): A peer's snubbed state is cleard if it sends
  7830. the requested 16k block in 60 seconds.
  7831. * src/Peer.h
  7832. (snubbing): New variable.
  7833. * src/Peer.cc
  7834. (resetStatus): Added snubbed = false.
  7835. To fix the bug that causes have message is not sent:
  7836. * src/PeerInteractionCommand.cc
  7837. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  7838. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  7839. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  7840. * src/TorrentMan.h
  7841. (HaveEntry): New class.
  7842. (advertisePiece): Rewritten.
  7843. (getAdvertisedPieceIndexes): Rewritten.
  7844. (Haves): Changed the type.
  7845. (getAdvertisedPieceIndexes): Added an argument.
  7846. Others:
  7847. * src/TorrentMan.h
  7848. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  7849. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  7850. * src/TorrentMan.cc
  7851. (getPeer): Don't check the number of connections here.
  7852. (setupInternal1): Changed peerId.
  7853. * src/PeerInteractionCommand.h
  7854. (KEEP_ALIVE_INTERVAL): New definition.
  7855. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  7856. * src/main.cc
  7857. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  7858. * src/DownloadEngine.h: Removed unnecessary header includes.
  7859. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7860. To fix the bug that causes segfaults if a tracker returns a zero-length
  7861. list as "peers":
  7862. * src/TrackerUpdateCommand.cc
  7863. (execute): Added a check to see wether the type of peers is Data*.
  7864. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7865. * Release 0.5.0
  7866. To fix compile issue with gcc3:
  7867. * src/CancelMessage.h
  7868. (ID): Renamed as ID_t
  7869. (ID_t): New enum.
  7870. * src/RejectMessage.h
  7871. (ID): Renamed as ID_t
  7872. (ID_t): New enum.
  7873. * src/SuggestPieceMessage.h
  7874. (ID): Renamed as ID_t
  7875. (ID_t): New enum.
  7876. * src/AllowedFastMessage.h
  7877. (ID): Renamed as ID_t
  7878. (ID_t): New enum.
  7879. * src/PortMessage.h
  7880. (ID): Renamed as ID_t
  7881. (ID_t): New enum.
  7882. * src/HaveNoneMessage.h
  7883. (ID): Renamed as ID_t
  7884. (ID_t): New enum.
  7885. * src/KeepAliveMessage.h
  7886. (ID): Renamed as ID_t
  7887. (ID_t): New enum.
  7888. * src/HaveAllMessage.h
  7889. (ID): Renamed as ID_t
  7890. (ID_t): New enum.
  7891. * src/UnchokeMessage.h
  7892. (ID): Renamed as ID_t
  7893. (ID_t): New enum.
  7894. * src/BitfieldMessage.h
  7895. (ID): Renamed as ID_t
  7896. (ID_t): New enum.
  7897. * src/PieceMessage.h
  7898. (ID): Renamed as ID_t
  7899. (ID_t): New enum.
  7900. * src/RequestMessage.h
  7901. (ID): Renamed as ID_t
  7902. (ID_t): New enum.
  7903. * src/NotInterestedMessage.h
  7904. (ID): Renamed as ID_t
  7905. (ID_t): New enum.
  7906. * src/ChokeMessage.h
  7907. (ID): Renamed as ID_t
  7908. (ID_t): New enum.
  7909. * src/InterestedMessage.h
  7910. (ID): Renamed as ID_t
  7911. (ID_t): New enum.
  7912. * src/HaveMessage.h
  7913. (ID): Renamed as ID_t
  7914. (ID_t): New enum.
  7915. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. * src/PeerAbstractCommand.h
  7917. (beforeSocketCheck): Removed.
  7918. * src/PeerAbstractCommand.cc
  7919. Modified in order to call executeInternal() even if socket check
  7920. and upload limit check fail.
  7921. * src/PeerInteractionCommand.h
  7922. (keepAlive): Removed.
  7923. (sendKeepAlive): New function.
  7924. (checkHave): New function.
  7925. (beforeSocketCheck): Removed.
  7926. * src/PeerInteractionCommand.cc
  7927. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  7928. calls to checkHave() and sendKeepAlive().
  7929. (keepAlive): Renamed to sendKeepAlive().
  7930. (sendKeepAlive): New function.
  7931. (beforeSocketCheck): Removed.
  7932. (checkHave): New function.
  7933. * src/BitfieldMan.cc
  7934. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  7935. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  7936. 0.
  7937. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  7938. * src/TorrentMan.h
  7939. (UsedPieces): Removed.
  7940. (Pieces): New type definition.
  7941. * src/Piece.h: Updated doc.
  7942. * src/Peer.h
  7943. (totalLength): Removed.
  7944. * src/Peer.cc
  7945. (updateLatency): Fixed the latency calculation.
  7946. * src/TorrentMan.cc
  7947. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  7948. than or equal to MAX_PEER_LIST_SIZE.
  7949. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  7950. then return false.
  7951. (deleteOldErrorPeers): Rewritten.
  7952. (deleteUsedPiece): Fixed the miss use of STL remove.
  7953. * src/PeerInteraction.h
  7954. (Pieces): Removed.
  7955. (deleteTimeoutRequestSlot): Removed.
  7956. (deleteCompletedRequestSlot): Removed.
  7957. (checkRequestSlot): New function.
  7958. * src/PeerInteraction.cc
  7959. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  7960. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  7961. (checkRequestSlot): New function.
  7962. * src/DownloadEngine.cc
  7963. (run): Clear activeSockets before calling waitData().
  7964. (waitData): Removed a call to activeSockets.clear().
  7965. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7966. To attempt to handle EINTR:
  7967. * src/SocketCore.cc
  7968. (isReadable): Added EINTR handling.
  7969. (isWritable): Added EINTR handling.
  7970. To improve the performance:
  7971. * src/AbstractCommand.cc
  7972. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  7973. * src/PeerInteractionCommand.h
  7974. (receiveMessage): Renamed as receiveMessages().
  7975. (receiveMessages): New function.
  7976. * src/PeerInteractionCommand.cc
  7977. (executeInternal): receiveMessage loop is moved to new receiveMessages
  7978. () function. detectMessageFlooding() is moved here.
  7979. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  7980. (). The flooding detection for have message is comment out.
  7981. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  7982. Util::difftv().
  7983. (receiveMessage): Renamed as receiveMessages().
  7984. (receiveMessages): New function.
  7985. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  7986. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  7987. * src/SleepCommand.cc
  7988. (execute): Use Util::difftvsec() instead of Util::difftv().
  7989. * src/BitfieldMan.h
  7990. (getNthBitIndex): New function.
  7991. (hasMissingPiece): New function.
  7992. (getAllMissingIndexes): New function.
  7993. * src/BitfieldMan.cc
  7994. (countSetBit): Rewritten.
  7995. (getNthBitIndex): New function.
  7996. (getMissingIndexRandomly): Rewritten.
  7997. (hasMissingPiece): New function.
  7998. (getAllMissingIndexes): New function.
  7999. * src/TorrentMan.cc
  8000. (hasMissingPiece): New function.
  8001. (deleteUsedPiece): Rewritten using STL.
  8002. * src/PeerInteraction.cc
  8003. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  8004. is a little bit faster then TorrentMan::getMissingPieceIndex().
  8005. (addRequests): Updated the number of pending requests.
  8006. * src/PeerAbstractCommand.cc
  8007. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  8008. (execute): Returns true if TorrentMan::isHalt() is true.
  8009. Corrected the condition of upload limit checking.
  8010. * src/Util.h
  8011. (countBit): New function.
  8012. * src/Util.cc
  8013. (nbits): New variable.
  8014. (countBit): New function.
  8015. * src/DownloadEngine.h
  8016. (SockCmdMap): New type definition.
  8017. (waitData): Added an argument.
  8018. (addSocket): Added an argument.
  8019. (addSocketForReadCheck): Added an argument.
  8020. (addSocketForWriteCheck): Added an argument.
  8021. * src/DownloadEngine.cc
  8022. (run): Executes only commands whose sockets are ready to read or write.
  8023. All commands are executed in every 1 second.
  8024. (waitData): Calls select() again if it returned
  8025. EINTR.
  8026. (addSocket): Saves socket and command object pair to the map.
  8027. (deleteSocket): Deletes socket and command object pair from the map.
  8028. (addSocketForReadCheck): Added an argument.
  8029. (addSocketForWriteCheck): Added an argument.
  8030. * src/DownloadCommand.cc
  8031. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  8032. To send "event=stopped" to the tracker when the application finishes:
  8033. * src/PeerChokeCommand.h
  8034. (checkPoint): New variable.
  8035. * src/PeerChokeCommand.cc
  8036. (PeerChokeCommand): Added the initialization of checkPoint.
  8037. (execute): The interval check is now done by checkPoint, not
  8038. SleepCommand. Return true if TorrentMan::isHalt() is true.
  8039. * src/TorrentMan.h
  8040. (halt): New function.
  8041. (hasMissingPiece): New function.
  8042. (isHalt): New function.
  8043. (setHalt): New function.
  8044. * src/TorrentMan.cc
  8045. (TorrentMan): Added the initialization of halt.
  8046. * src/TorrentAutoSaveCommand.h
  8047. (checkPoint): New variable.
  8048. * src/PeerListenCommand.cc
  8049. (execute): Returns true if TorrentMan::isHalt() is true.
  8050. * src/main.cc
  8051. (setSignalHander): Added flags argument.
  8052. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  8053. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  8054. Removed printDownloadAbortMessage() after torrent downloading loop.
  8055. * src/TorrentAutoSaveCommand.cc
  8056. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  8057. (execute): Returns true if TorrentMan::isHalt() is true.
  8058. The interval check is now done by checkPoint, not SleepCommand.
  8059. * src/TrackerWatcherCommand.cc
  8060. (execute): If TorrentMan::isHalt(), then create a tracker request with
  8061. event=stopped.
  8062. * src/TrackerUpdateCommand.cc
  8063. (prepareForRetry): Do not use SleepCommand here.
  8064. (execute): Returns true if TorrentMan::isHalt() is true.
  8065. Others:
  8066. * src/TorrentMan.cc
  8067. (getMissingPieceIndex): Updated log message.
  8068. * src/PeerInteraction.cc
  8069. (createPeerMessag): Updated log message.
  8070. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8071. To add the ability to download several pieces in mix in a command and
  8072. increase the number of request slots according to request-cancel
  8073. latency:
  8074. * src/PeerInteractionCommand.cc
  8075. (executeInternal): The number of messages to be received at a time
  8076. is increased from 10 to 50.
  8077. * src/LogFactory
  8078. (getInstance): Added NullLogger.
  8079. * src/NullLogger.h: New class.
  8080. * src/BitfieldMan.h
  8081. (getMissingIndex): New function.
  8082. * src/BitfieldMan.cc
  8083. (getMissingIndex): New function.
  8084. * src/TorrentMan.h
  8085. (checkOutPiece): New function.
  8086. (getMissingPieceIndex): New function.
  8087. (getMissingFastPieceIndex): New function.
  8088. (getMissingFastPiece): New function.
  8089. * src/TorrentMan.cc
  8090. (updatePiece): Rewritten using STL.
  8091. (syncPiece): Rewritten using STL.
  8092. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  8093. checkOutPiece().
  8094. (getMissingPieceIndex): New function.
  8095. (getMissingFastPieceIndex): New function.
  8096. (getMissingFastPiece): New function.
  8097. (checkOutPiece): New function.
  8098. * src/PeerInteraction.h
  8099. (Pieces): New type definition.
  8100. (piece): Removed.
  8101. (pieces): New variable.
  8102. (getNewPieceAndSendInterest): Added the "piece" argument.
  8103. (abortPiece): Added the "piece" argument.
  8104. (abortAllPieces): New function.
  8105. (isInRequestSlot): New function.
  8106. (hasDownloadPiece): Added the "index" argument.
  8107. (setDownloadPiece): Removed.
  8108. (getDownloadPiece): Added the "index" argument.
  8109. (updatePiece): New function.
  8110. (createRequestMessage): Added the "index" argument.
  8111. * src/PeerInteraction.cc
  8112. (onChoked): Rewritten.
  8113. (abortPiece): Rewirtten.
  8114. (abortAllPieces): New function.
  8115. (deleteTimeoutRequestSlot): Rewritten.
  8116. Clarified code a little bit.
  8117. (deleteCompletedRequestSlot): Rewritten.
  8118. (isInRequestSlot): New function.
  8119. (syncPiece): Rewritten.
  8120. (updatePiece): New function.
  8121. (getNewPieceAndSendInterest): Rewritten.
  8122. (addRequests): Rewritten.
  8123. (getDownloadPiece): Rewritten.
  8124. (hasDownloadPiece): Rewritten.
  8125. (createRequestMessage): Added the "index" argument.
  8126. * src/common.h
  8127. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  8128. (DIV_FLOOR): New definition.
  8129. * src/PieceMessage.cc
  8130. (receivedAction): Update request-piece latency here.
  8131. * src/RequestSlot.h
  8132. (getLatencyInMillis): New function.
  8133. * src/RequestSlot.cc
  8134. (isTimeout): Rewritten using getLatencyInMillis.
  8135. (getLatencyInMillis): New function.
  8136. * src/Piece.h
  8137. (operator==): New function.
  8138. (getMissingBlockIndex): New function.
  8139. * src/Piece.cc
  8140. (operator==): New function.
  8141. (getMissingBlockIndex): New function.
  8142. * src/Peer.h
  8143. (DEFAULT_LATENCY): New definition.
  8144. (latency): New variable.
  8145. (updateLatency): New function.
  8146. (getLatency): New function.
  8147. * src/Peer.cc
  8148. (resetStatus): Reset latecy.
  8149. (updateLatency): New function.
  8150. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8151. * src/SocketCore.cc
  8152. (isReadable): Added secure to the condition.
  8153. * src/HttpConnection.cc
  8154. (receiveResponse): Fixed a bug that causes no response header
  8155. exception.
  8156. * src/Peer.h
  8157. (getFastSet): Fixed the return value type.
  8158. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. To remove a wait from download loop:
  8160. * src/DownloadEngine.cc
  8161. (run): Comment out shortSleep.
  8162. To rewrite the message handling:
  8163. * src/SimplePeerMessage.h: New class.
  8164. * src/SimplePeerMessage.cc: New class.
  8165. * src/CancelMessage.h: Derived from SimplePeerMessage.
  8166. (msg): New variable.
  8167. (create): New function.
  8168. (send): Removed.
  8169. (getMessage): New function.
  8170. (getMessageLength): New function.
  8171. * src/CancelMessage.cc
  8172. (create): New function.
  8173. (receivedAction): Replaced deleteRequestMessageInQueue with
  8174. rejectPieceMessageInQueue.
  8175. (send): Removed.
  8176. (getMessage): New function.
  8177. (getMessageLength): New function.
  8178. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  8179. (msg): New variable.
  8180. (msgLength): New variable.
  8181. (~BitfieldMessage): Deleted msg.
  8182. (send): Removed.
  8183. (getMessage): New function.
  8184. (getMessageLength): New function.
  8185. * src/BitfieldMessage.cc
  8186. (create): New function.
  8187. (send): Removed.
  8188. (getMessage): New function.
  8189. (getMessageLength): New function.
  8190. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  8191. (msg): New variable.
  8192. (sendPredicate): New function.
  8193. (onSendComplete): New function.
  8194. (send): Removed.
  8195. (getMessage): New function.
  8196. (getMessageLength): New function.
  8197. (create): New function.
  8198. * src/ChokeMessage.cc
  8199. (create): New function.
  8200. (send): Removed.
  8201. (sendPredicate): New function.
  8202. (getMessage): New function.
  8203. (getMessageLength): New function.
  8204. (onSendComplete): New function.
  8205. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  8206. (msg): New variable.
  8207. (send): Removed.
  8208. (getMessage): New function.
  8209. (getMessageLength): New function.
  8210. * src/KeepAliveMessage.cc
  8211. (send): Removed.
  8212. (getMessage): New function.
  8213. (getMessageLength): New function.
  8214. * src/PortMessage.h
  8215. (create): New function.
  8216. (receivedAction): Updated log message.
  8217. * src/PortMessage.cc: New file.
  8218. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  8219. (msg): New variable.
  8220. (sendPredicate): New function.
  8221. (onSendComplete): New function.
  8222. (create): New function.
  8223. (send): Removed.
  8224. (getMessage): New function.
  8225. (getMessageLength): New function.
  8226. * src/UnchokeMessage.cc
  8227. (create): New function.
  8228. (send): Removed.
  8229. (sendPredicate): New function.
  8230. (getMessage): New function.
  8231. (getMessageLength): New function.
  8232. (onSendComplete): New function.
  8233. * src/PieceMessage.h
  8234. (leftPieceDataLength): Removed.
  8235. (leftDataLength): New variable.
  8236. (headerSend): New variable.
  8237. (pendingCount): New variable.
  8238. (msgHeader): New variable.
  8239. (sendPieceData): New function.
  8240. (incrementPendingCount): New function.
  8241. (isPendingCountMax): New function.
  8242. (create): New function.
  8243. (getMessageHeader): New function.
  8244. (getMessageHeaderLength): New function.
  8245. * src/PieceMessage.cc
  8246. (create): New function.
  8247. (getMessageHeader): New function.
  8248. (getMessageHeaderLength): New function.
  8249. (send): Rewritten.
  8250. (sendPieceData): New function.
  8251. * src/HaveMessage.h: Derived from SimplePeerMessage.
  8252. (msg): New variable.
  8253. (create): New function.
  8254. (getMessage): New function.
  8255. (getMessageLength): New function.
  8256. * src/HaveMessage.cc
  8257. (create): New function.
  8258. (send): Removed.
  8259. (sendPieceData): New function.
  8260. (getMessage): New function.
  8261. (getMessageLength): New function.
  8262. * src/RequestMessage.h: Derived from SimplePeerMessage.
  8263. (msg): New variable.
  8264. (create): New function.
  8265. (send): Removed.
  8266. (getMessage): New function.
  8267. (getMessageLength): New function.
  8268. * src/RequestMessage.cc
  8269. (create): New function.
  8270. (receivedAction): Added the handling of fast extension.
  8271. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  8272. (send): Removed.
  8273. (getMessage): New function.
  8274. (getMessageLength): New function.
  8275. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  8276. (msg): New variable.
  8277. (sendPredicate): New function.
  8278. (onSendComplete): New function.
  8279. (create): New function.
  8280. (getMessage): New function.
  8281. (getMessageLength): New function.
  8282. * src/InterestedMessage.cc
  8283. (create): New function.
  8284. (send): Removed.
  8285. (sendPieceData): New function.
  8286. (getMessage): New function.
  8287. (getMessageLength): New function.
  8288. (onSendComplete): New function.
  8289. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  8290. (msg): New variable.
  8291. (sendPieceData): New function.
  8292. (onSendComplete): New function.
  8293. (create): New function.
  8294. (send): Removed.
  8295. (getMessage): New function.
  8296. (getMessageLength): New function.
  8297. * src/NotInterestedMessage.cc
  8298. (create): New function.
  8299. (send): Removed.
  8300. (sendPredicate): New function.
  8301. (getMessage): New function.
  8302. (getMessageLength): New function.
  8303. (onSendComplete): New function.
  8304. * src/AllowedFastMessage.h: New class.
  8305. * src/AllowedFastMessage.cc: New class.
  8306. * src/RejectMessage.h: New class.
  8307. * src/RejectMessage.cc: New class.
  8308. * src/SuggestPieceMessage.h: New class.
  8309. * src/SuggestPieceMessage.cc: New class.
  8310. * src/HaveAllMessage.h: New class.
  8311. * src/HaveAllMessage.cc: New class.
  8312. * src/HaveNoneMessage.h: New class.
  8313. * src/HaveNoneMessage.cc: New class.
  8314. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  8315. (msg): New variable.
  8316. (reserved): New variable.
  8317. (create): New function.
  8318. (getId): New function.
  8319. (receivedAction): New function.
  8320. (getMessage): New function.
  8321. (getMessageLength): New function.
  8322. (isFastExtensionSupported): New function.
  8323. * src/HandshakeMessage.cc
  8324. (HandshakeMessage): Moved here from HandshakeMessage.h.
  8325. (create): New function.
  8326. (getMessage): New function.
  8327. (getMessageLength): New function.
  8328. (toString): Added the output of reserved field.
  8329. (check): Added const qualifier.
  8330. (isFastExtensionSupported): New function.
  8331. * src/PeerMessageUtil.h
  8332. (createChokeMessage): Removed.
  8333. (createUnchokeMessage): Removed.
  8334. (createInterestedMessage): Removed.
  8335. (createNotInterestedMessage): Removed.
  8336. (createHaveMessage): Removed.
  8337. (createBitfieldMessage): Removed.
  8338. (createRequestMessage): Removed.
  8339. (createCancelMessage): Removed.
  8340. (createPieceMessage): Removed.
  8341. (createPortMessage): Removed.
  8342. (createChokeMessage): Removed.
  8343. (createUnchokeMessage): Removed.
  8344. (createInterestedMessage): Removed.
  8345. (createNotInterestedMessage): Removed.
  8346. (createHaveMessage): Removed.
  8347. (createBitfieldMessage): Removed.
  8348. (createRequestMessage): Removed.
  8349. (createCancelMessage): Removed.
  8350. (createPieceMessage): Removed.
  8351. (createKeepAliveMessage): Removed.
  8352. (createHandshakeMessage): Removed.
  8353. (setIntParam): New function.
  8354. (createPeerMessageString): New function.
  8355. * src/PeerMessageUtil.cc
  8356. (createChokeMessage): Removed.
  8357. (createUnchokeMessage): Removed.
  8358. (createInterestedMessage): Removed.
  8359. (createNotInterestedMessage): Removed.
  8360. (createHaveMessage): Removed.
  8361. (createBitfieldMessage): Removed.
  8362. (createRequestMessage): Removed.
  8363. (createCancelMessage): Removed.
  8364. (createPieceMessage): Removed.
  8365. (createPortMessage): Removed.
  8366. (createRequestMessage): Removed.
  8367. (createCancelMessage): Removed.
  8368. (createPieceMessage): Removed.
  8369. (createHaveMessage): Removed.
  8370. (createChokeMessage): Removed.
  8371. (createUnchokeMessage): Removed.
  8372. (createInterestedMessage): Removed.
  8373. (createNotInterestedMessage): Removed.
  8374. (createBitfieldMessage): Removed.
  8375. (createKeepAliveMessage): Removed.
  8376. (createHandshakeMessage): Removed.
  8377. (setIntParam): New function.
  8378. (createPeerMessageString): New function.
  8379. * src/PeerConnection.h
  8380. (peer): Removed.
  8381. (torrentMan): Removed.
  8382. (createNLengthMessage): Removed.
  8383. (setIntParam): Removed.
  8384. (writeOutgoingMessageLog): Removed all overloaded functions.
  8385. (PeerConnection): Deleted peer and torrentMan from its arguments.
  8386. (sendMessage): New function.
  8387. (sendHandshake): Removed.
  8388. (sendKeepAlive): Removed.
  8389. (sendChoke): Removed.
  8390. (sendUnchoke): Removed.
  8391. (sendInterested): Removed.
  8392. (sendNotInterested): Removed.
  8393. (sendHave): Removed.
  8394. (sendBitfield): Removed.
  8395. (sendRequest): Removed.
  8396. (sendPiece): Removed.
  8397. (sendPieceHeader): Removed.
  8398. (sendPieceData): Removed.
  8399. (sendCancel): Removed.
  8400. (getPeer): Removed.
  8401. * src/PeerConnection.cc
  8402. (PeerConnection): Deleted peer and torrentMan from its arguments.
  8403. (sendHandshake): Removed.
  8404. (sendKeepAlive): Removed.
  8405. (createNLengthMessage): Removed.
  8406. (setIntParam): Removed.
  8407. (writeOutgoingMessageLog): Removed all overloaded functions.
  8408. (sendChoke): Removed.
  8409. (sendUnchoke): Removed.
  8410. (sendInterested): Removed.
  8411. (sendNotInterested): Removed.
  8412. (sendHave): Removed.
  8413. (sendBitfield): Removed.
  8414. (sendRequest): Removed.
  8415. (sendPiece): Removed.
  8416. (sendPieceHeader): Removed.
  8417. (sendPieceData): Removed.
  8418. (sendMessage): New function.
  8419. (sendCancel): Removed.
  8420. * src/PeerInteractionCommand.cc
  8421. (PeerInteractionCommand): Call setUploadLimit.
  8422. (executeInternal): Call setUploadLimit.
  8423. Added the handling of "inProgress" state of handshake message.
  8424. Call sendBitfield() or sendAllowdFast() instead of deprecated
  8425. sendNow().
  8426. (keepAlive): Call addMessage and sendMessage instead of deprecated
  8427. sendNow().
  8428. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  8429. * src/TorrentMan.h
  8430. (PEER_ID_LENGTH): New definition.
  8431. (hasAllPieces): New function.
  8432. * src/TorrentMan.cc
  8433. (getMissingPiece): Added the handling of fast extension.
  8434. (cancelPiece): Call updatePiece().
  8435. (hasAllPieces): New function.
  8436. * src/PeerInteraction.h
  8437. (fastSet): New variable.
  8438. (getNewPieceAndSendInterest): Changed the return type to void.
  8439. (send): Renamed as sendMessages.
  8440. (deleteAllRequestSlot): Removed.
  8441. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  8442. (cancelAllRequest): Removed all overloaded functions.
  8443. (deleteAllRequestSlot): Removed.
  8444. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  8445. (rejectPieceMessageInQueue): New function.
  8446. (rejectAllPieceMessageInQueue): New function.
  8447. (onChoked): New function.
  8448. (isSendingMessageInProgress): New function.
  8449. (getCorrespondingRequestSlot): Changed its arguments.
  8450. (isInFastSet): New function.
  8451. (addFastSetIndex): New function.
  8452. (addRequests): New function.
  8453. (sendNow): Removed.
  8454. (trySendNow): Removed.
  8455. (sendBitfield): New function.
  8456. (sendAllowdFast): New function.
  8457. (createHaveAllMessage): New function.
  8458. (createHaveNoneMessage): New function.
  8459. (createRejectMessage): New function.
  8460. (createAllowedFastMessage): New function.
  8461. * src/PeerInteraction.cc
  8462. (send): Renamed as sendMessages.
  8463. (sendMessages): New function.
  8464. (MsgPushBack): New class.
  8465. (isSendingMessageInProgress): New function.
  8466. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  8467. (rejectAllPieceMessageInQueue): New function.
  8468. Added the handling of fast extension.
  8469. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  8470. (rejectPieceMessageInQueue): New function.
  8471. Added the handling of fast extension.
  8472. (deleteRequestSlot): Replaced for loop with std::find.
  8473. (onChoked): New function.
  8474. (deleteAllRequestSlot): Removed.
  8475. (abortPiece): Rewirtten.
  8476. (deleteTimeoutRequestSlot): Updated log messages.
  8477. (getCorrespondingRequestSlot): Changed its arguments.
  8478. (cancelAllRequest): Removed all overloaded functions.
  8479. (receiveHandshake): Added the check to see whether an incoming peer
  8480. supports fast extension.
  8481. (createHandshakeMessage): Use HandshakeMessage::create instead of
  8482. PeerMessageUtil.
  8483. (createPeerMessage): Use create() of each message class instead of
  8484. PeerMessageUtil.
  8485. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  8486. AllowedFastMessage were added.
  8487. (getNewPieceAndSendInterest): Changed its return value type to void.
  8488. Added the handling of fast extension.
  8489. (addRequests): New function.
  8490. (sendNow): Removed.
  8491. (sendHandshake): Rewritten.
  8492. (trySendNow): Removed.
  8493. (sendBitfield): New function.
  8494. (sendAllowdFast): New function.
  8495. (isInFastSet): New function.
  8496. (addFastSetIndex): New function.
  8497. (createRequestMessage): Use RequestMessage::create instead of
  8498. PeerMessageUtil.
  8499. (createCancelMessage): Use CancelMessage::create instead of
  8500. PeerMessageUtil.
  8501. (createPieceMessage): Use PieceMessage::create instead of
  8502. PeerMessageUtil.
  8503. (createHaveMessage): Use HaveMessage::create instead of
  8504. PeerMessageUtil.
  8505. (createChokeMessage): Use ChokeMessage::create instead of
  8506. PeerMessageUtil.
  8507. (createUnchokeMessage): Use UnchokeMessage::create instead of
  8508. PeerMessageUtil.
  8509. (createInterestedMessage): Use InterestedMessage::create instead of
  8510. PeerMessageUtil.
  8511. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  8512. of PeerMessageUtil.
  8513. (createBitfieldMessage): Use BitfieldMessage::create instead of
  8514. PeerMessageUtil.
  8515. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  8516. PeerMessageUtil.
  8517. (createHaveAllMessage): New function.
  8518. (createHaveNoneMessage): New function.
  8519. (createRejectMessage): New function.
  8520. (createAllowedFastMessage: New function.
  8521. * src/Util.h
  8522. (sha1Sum): New function.
  8523. (computeFastSet): New function.
  8524. * src/Util.cc
  8525. (sha1Sum): New function.
  8526. (computeFastSet): New function.
  8527. * src/Peer.h
  8528. (fastExtensionEnabled): New variable.
  8529. (fastSet): New variable.
  8530. (setAllBitfield): New function.
  8531. (setFastExtensionEnabled): New function.
  8532. (isFastExtensionEnabled): New function.
  8533. (addFastSetIndex): New function.
  8534. (getFastSet): New function.
  8535. (isInFastSet): New function.
  8536. (countFastSet): New function.
  8537. * src/Peer.cc
  8538. (isInFastSet): New function.
  8539. (addFastSetIndex): New function.
  8540. (setAllBitfield): New function.
  8541. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  8542. sockets.
  8543. * src/PeerAbstractCommand.cc
  8544. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  8545. and uploadLimit.
  8546. (execute): Changed the procedure of checking sockets. The upload speed
  8547. checking were added.
  8548. (setUploadLimit): New function.
  8549. (setUploadLimitCheck): New function.
  8550. * src/PeerAbstractCommand.h
  8551. (setUploadLimit): New function.
  8552. (setUploadLimitCheck): New function.
  8553. (uploadLimit): New variable.
  8554. (uploadLimitCheck): New variable.
  8555. To contact a tracker regularly:
  8556. * src/TrackerWatcherCommand.h (interval): New variable.
  8557. (checkPoint): New variable.
  8558. (TrackerWatcherCommand): Added interval argument.
  8559. * src/TrackerWatcherCommand.cc
  8560. (TrackerWatcherCommand): Initialized checkPoint.
  8561. (execute): Now a tracker is contacted in every specified period.
  8562. If peer list is not needed, send request with numwant=0.
  8563. * src/TrackerUpdateCommand.cc
  8564. (execute): Updated log messages.
  8565. * src/DownloadEngine.cc
  8566. (~DownloadEngine): Removed two asserts.
  8567. (waitData): Uncommented wfds. May be a bug fix.
  8568. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8569. * src/PeerInteractionCommand.h
  8570. (checkInactiveConnection): Removed.
  8571. * src/PeerInteractionCommand.cc
  8572. (executeInternal): Removed following function calls:
  8573. detectMessageFlooding(), checkLongTimePeerChoking and
  8574. checkInactiveConnection().
  8575. (checkInactiveConnection): Removed.
  8576. (detectMessageFlooding): Removed function call to
  8577. checkInactiveConnection().
  8578. * src/PeerMessageUtil.h
  8579. (createChokeMessage): New function. Overload.
  8580. (createUnchokeMessage): New function. Overload.
  8581. (createInterestedMessage): New function. Overload.
  8582. (createNotInterestedMessage): New function. Overload.
  8583. (createHaveMessage): New function. Overload.
  8584. (createBitfieldMessage): New function. Overload.
  8585. (createRequestMessage): New function. Overload.
  8586. (createCancelMessage): New function. Overload.
  8587. (createPieceMessage): New function. Overload.
  8588. (createKeepAliveMessage): New function. Overload.
  8589. * src/PeerMessageUtil.cc
  8590. (createChokeMessage): New function. Overload.
  8591. (createUnchokeMessage): New function. Overload.
  8592. (createInterestedMessage): New function. Overload.
  8593. (createNotInterestedMessage): New function. Overload.
  8594. (createHaveMessage): New function. Overload.
  8595. (createBitfieldMessage): New function. Overload.
  8596. (createRequestMessage): New function. Overload.
  8597. (createCancelMessage): New function. Overload.
  8598. (createPieceMessage): New function. Overload.
  8599. (createKeepAliveMessage): New function. Overload.
  8600. * src/SendMessageQueue.cc
  8601. (createRequestMessage): Use PeerMessageUtil.
  8602. (createCancelMessage): Use PeerMessageUtil.
  8603. (createPieceMessage): Use PeerMessageUtil.
  8604. (createHaveMessage): Use PeerMessageUtil.
  8605. (createChokeMessage): Use PeerMessageUtil.
  8606. (createUnchokeMessage): Use PeerMessageUtil.
  8607. (createInterestedMessage): Use PeerMessageUtil.
  8608. (createNotInterestedMessage): Use PeerMessageUtil.
  8609. (createBitfieldMessage): Use PeerMessageUtil.
  8610. (createKeepAliveMessage): Use PeerMessageUtil.
  8611. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  8612. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  8613. * src/PeerInteraction.h: New class.
  8614. * src/PeerInteraction.cc: New class.
  8615. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8616. Each peer message has its own class.
  8617. * src/PendingMessages.h: Removed.
  8618. * src/PendingMessages.cc: Removed. The sending process was moved to
  8619. each message class.
  8620. * src/RequestSlotMan.h: Removed.
  8621. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  8622. SendMessageQueue.
  8623. * src/RequestMessage.h: New class.
  8624. * src/RequestMessage.cc: New class.
  8625. * src/CancelMessage.h: New class.
  8626. * src/CancelMessage.cc: New class.
  8627. * src/BitfieldMessage.h: New class.
  8628. * src/BitfieldMessage.cc: New class.
  8629. * src/ChokeMessage.h: New class.
  8630. * src/ChokeMessage.cc: New class.
  8631. * src/KeepAliveMessage.h: New class.
  8632. * src/KeepAliveMessage.cc: New class.
  8633. * src/PortMessage.h: New class.
  8634. * src/UnchokeMessage.h: New class.
  8635. * src/UnchokeMessage.cc: New class.
  8636. * src/PieceMessage.h: New class.
  8637. * src/PieceMessage.cc: New class.
  8638. * src/HaveMessage.h: New class.
  8639. * src/HaveMessage.cc: New class.
  8640. * src/BitfieldMessage.h: New class.
  8641. * src/BitfieldMessage.cc: New class.
  8642. * src/NotInterestedMessage.h: New class.
  8643. * src/NotInterestedMessage.cc: New class.
  8644. * src/InterestedMessage.h: New class.
  8645. * src/InterestedMessage.cc: New class.
  8646. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  8647. (getSendMessageQueue): New function.
  8648. (setSendMessageQueue): New function.
  8649. * src/HandshakeMessage.cc: New class.
  8650. * src/PeerConnection.h (receiveMessage): Changed return value and
  8651. arguments.
  8652. (receiveHandshake): Changed return value and arguments.
  8653. * src/PeerConnection.cc (receiveMessage): Do not create message class
  8654. here.
  8655. (receiveHandshake): Do not create handshake class here.
  8656. * src/PeerInteractionCommand.h (peerConnection): Removed.
  8657. (piece): Removed.
  8658. (syncPiece): Removed.
  8659. (sendInterest): Removed.
  8660. (sendMessages): Removed.
  8661. (createRequestPendingMessage): Removed.
  8662. (checkPieceHash): Removed.
  8663. (erasePieceOnDisk): Removed.
  8664. (getNewPieceAndSendInterest): Removed.
  8665. (onGotNewPice): Removed.
  8666. (onGotWrongPiece): Removed.
  8667. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  8668. Removed peerConnection, piece.
  8669. (~PeerInteractionCommand): Removed peerConnection.
  8670. (executeInternal): Use sendMessageQueue instead of peerConnection.
  8671. (syncPiece): Moved to SendMessageQueue.
  8672. (decideChoking): Removed PendingMessage.
  8673. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  8674. The action after receiving peer message was moved to each message
  8675. class.
  8676. (onGotNewPice): Moved to SendMessageQueue.
  8677. (onGotWrongPiece): Moved to SendMessageQueue.
  8678. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  8679. (sendInterest): Moved to SendMessageQueue.
  8680. (createRequestPendingMessage): Removed.
  8681. (sendMessages): Moved to SendMessageQueue.
  8682. (onAbort): Use SendMessageQueue::abortPiece()
  8683. (keepAlive): Use sendMessageQueue instead of peerConnection.
  8684. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  8685. (checkPieceHash): Moved to SendMessageQueue.
  8686. (erasePieceOnDisk): Moved to SendMessageQueue.
  8687. * src/PeerMessageUtil.h
  8688. (createBitfieldMessage): Removed.
  8689. (createHaveMessage): Changed return value and arguments.
  8690. (createBitfieldMessage): Changed return value and arguments.
  8691. (createRequestCancelMessage): Removed.
  8692. (createPieceMessage): Changed return value and arguments.
  8693. (getShortIntParam): New function.
  8694. (checkIndex): Changed arguments.
  8695. (checkBegin): Changed arguments.
  8696. (checkLength): Changed arguments.
  8697. (checkPieceOffset): Removed.
  8698. (checkRange): New function.
  8699. (checkBitfield): Changed arguments.
  8700. (createPeerMessage): Removed.
  8701. (checkIntegrity): Removed.
  8702. (createHandshakeMessage): Changed arguments.
  8703. (createChokeMessage): New function.
  8704. (createUnchokeMessage): New function.
  8705. (createInterestedMessage): New function.
  8706. (createNotInterestedMessage): New function.
  8707. (createRequestMessage): New function.
  8708. (createCancelMessage): New function.
  8709. (createPortMessage): New function.
  8710. * src/PeerMessageUtil.cc
  8711. (createBitfieldMessage): Removed.
  8712. (createHaveMessage): Changed return value and arguments.
  8713. (createBitfieldMessage): Changed return value and arguments.
  8714. (createRequestCancelMessage): Removed.
  8715. (createPieceMessage): Changed return value and arguments.
  8716. (getShortIntParam): New function.
  8717. (checkIndex): Changed arguments.
  8718. (checkBegin): Changed arguments.
  8719. (checkLength): Changed arguments.
  8720. (checkPieceOffset): Removed.
  8721. (checkRange): New function.
  8722. (checkBitfield): Changed arguments.
  8723. (createPeerMessage): Removed.
  8724. (checkIntegrity): Removed.
  8725. (createHandshakeMessage): Changed arguments.
  8726. (createChokeMessage): New function.
  8727. (createUnchokeMessage): New function.
  8728. (createInterestedMessage): New function.
  8729. (createNotInterestedMessage): New function.
  8730. (createRequestMessage): New function.
  8731. (createCancelMessage): New function.
  8732. (createPortMessage): New function.
  8733. * src/PeerMessage.h
  8734. (id): Removed.
  8735. (index): Removed.
  8736. (begin): Removed.
  8737. (length): Removed.
  8738. (bitfield): Removed.
  8739. (bitfieldLength): Removed.
  8740. (block): Removed.
  8741. (blockLength): Removed.
  8742. (inProgress): New variable.
  8743. (cuid): New variable.
  8744. (peer): New variable.
  8745. (sendMessageQueue): New variable.
  8746. (logger): New variable.
  8747. (setBitfield): Removed.
  8748. (getBitfield): Removed.
  8749. (setBlock): Removed.
  8750. (getBlock): Removed.
  8751. (getBitfieldLength): Removed.
  8752. (getBlockLength): Removed.
  8753. (isInProgress): New function.
  8754. (toString): Made pure virtual.
  8755. (check): New function.
  8756. (send): New function.
  8757. (receivedAction): New function.
  8758. (getId): Made pure virtual.
  8759. (setId): Removed.
  8760. (getIndex): Removed.
  8761. (setIndex): Removed.
  8762. (getBegin): Removed.
  8763. (setBegin): Removed.
  8764. (getLength): Removed.
  8765. (setLength): Removed.
  8766. (getCuid): New function.
  8767. (setCuid): New function.
  8768. (getPeer): New function.
  8769. (setPeer): New function.
  8770. (getSendMessageQueue): New function.
  8771. (setSendMessageQueue): New function.
  8772. (ID): Removed.
  8773. * src/PeerMessage.cc
  8774. (setBitfield): Removed.
  8775. (setBlock): Removed.
  8776. (toString): Removed.
  8777. * src/TorrentMan.h
  8778. (getPieceLength): New function.
  8779. (getPieceLength): New function.
  8780. * src/SendMessageQueue.h
  8781. (REQUEST_TIME_OUT): New definition.
  8782. (RequestSlots): New definition.
  8783. (MessageQueue): New definition.
  8784. (requestSlotMan): Removed.
  8785. (pendingMessages): Removed.
  8786. (requestSlots): New variable.
  8787. (messageQueue): New variable.
  8788. (torrentMan): New variable.
  8789. (peerConnection): New variable.
  8790. (peer): New variable.
  8791. (piece): New variable.
  8792. (getNewPieceAndSendInterest): New function.
  8793. (createPeerMessage): New function.
  8794. (createHandshakeMessage): New function.
  8795. (send): Made private.
  8796. (setPeerMessageCommonProperty): New function.
  8797. (deleteAllRequestSlot): New function.
  8798. (deleteRequestMessageInQueue): New function.
  8799. (cancelAllRequest): Made private.
  8800. (cancelAllRequest): Made private.
  8801. (countRequestSlot): Made private.
  8802. (addPendingMessage): Removed.
  8803. (deletePendingPieceMessage): Removed.
  8804. (deletePendingRequestMessage): Removed.
  8805. (addMessage): New function.
  8806. (deletePieceMessageInQueue): New function.
  8807. (deleteTimeoutRequestSlot): Changed argument.
  8808. (deleteCompletedRequestSlot): Changed argument.
  8809. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  8810. (getCorrespondingRequestSlot): New function.
  8811. (countPendingMessage): Removed.
  8812. (countMessageInQueue): New function.
  8813. (getTorrentMan): New function.
  8814. (getPeerConnection): New function.
  8815. (hasDownloadPiece): New function.
  8816. (getDownloadPiece): New function.
  8817. (setDownloadPiece): New function.
  8818. (syncPiece): New function.
  8819. (sendMessages): New function.
  8820. (sendNow): New function.
  8821. (trySendNow): New function.
  8822. (abortPiece): New function.
  8823. (sendHandshake): New function.
  8824. (receiveMessage): New function.
  8825. (receiveHandshake): New function.
  8826. (createRequestMessage): New function.
  8827. (createCancelMessage): New function.
  8828. (createPieceMessage): New function.
  8829. (createHaveMessage): New function.
  8830. (createChokeMessage): New function.
  8831. (createUnchokeMessage): New function.
  8832. (createInterestedMessage): New function.
  8833. (createNotInterestedMessage): New function.
  8834. (createBitfieldMessage): New function.
  8835. (createKeepAliveMessage): New function.
  8836. * src/SendMessageQueue.cc
  8837. (SendMessageQueue): Removed requestSlotMan.
  8838. Instantiated peerConnection here.
  8839. (~SendMessageQueue): Removed requestSlotMan.
  8840. Added deletion of peerConnection and the contents of messageQueue.
  8841. (send): Updated according to the change of messageQueue.
  8842. (addPendingMessage): Renamed to addMessage.
  8843. (addMessage): New function.
  8844. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  8845. (deletePieceMessageInQueue): New function.
  8846. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  8847. (deleteRequestMessageInQueue): New function.
  8848. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  8849. here.
  8850. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  8851. (...) was moved here.
  8852. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  8853. moved here.
  8854. (deleteCompletedRequestSlot):
  8855. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  8856. (getCorrespondingRequestSlot):
  8857. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  8858. And renamed to getCorrespondingRequestSlot, correcting a typo.
  8859. (countPendingMessage): Renamed to countMessageInQueue.
  8860. (countMessageInQueue): New function.
  8861. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  8862. (receiveHandshake): New function.
  8863. (createHandshakeMessage): New function.
  8864. (receiveMessage): New function.
  8865. (createPeerMessage): New function.
  8866. (syncPiece): New function.
  8867. (getNewPieceAndSendInterest): New function.
  8868. (sendMessages): New function.
  8869. (sendNow): New function.
  8870. (trySendNow): New function.
  8871. (sendHandshake): New function.
  8872. (abortPiece): New function.
  8873. (getDownloadPiece): New function.
  8874. (getPeerMessageCommonProperty): New function.
  8875. (createRequestMessage): New function.
  8876. (createCancelMessage): New function.
  8877. (createPieceMessage): New function.
  8878. (createHaveMessage): New function.
  8879. (createChokeMessage): New function.
  8880. (createUnchokeMessage): New function.
  8881. (createInterestedMessage): New function.
  8882. (createNotInterestedMessage): New function.
  8883. (createBitfieldMessage): New function.
  8884. (createKeepAliveMessage): New function.
  8885. To add simple Content-Disposition support:
  8886. * src/HttpResponseCommand.h (determinFilename): New function.
  8887. * src/HttpResponseCommand.cc (executeInternal):
  8888. Use determinFilename(headers) instead of req->getFile() when comparing
  8889. filename.
  8890. (determinFilename): New function.
  8891. (handleDefaultEncoding): Use determinFilename(headers) instead of
  8892. req->getFile().
  8893. (handleOtherEncoding): Use determinFilename(headers) instead of
  8894. req->getFile().
  8895. * src/Util.h (getContentDispositionFilename): New function.
  8896. * src/Util.cc (getContentDispositionFilename): New function.
  8897. * src/LogFactory.h (release): New function.
  8898. * src/LogFactory.cc (release): New function.
  8899. To fix a bug that causes out-of-bound exception when HTTP status
  8900. line is wrong:
  8901. * src/HttpConnection.cc (receiveResponse): Added a check for header
  8902. size.
  8903. * src/common.h (Deleter): New class.
  8904. * src/SegmentMan.cc
  8905. (~SegmentMan): Added deletion of splitter and diskWriter.
  8906. * src/DownloadEngine.h
  8907. (Commands): Use deque.
  8908. (clearQueue): New function.
  8909. * src/DownloadEngine.cc
  8910. (~DownloadEngine): Added deletion of segmentMan.
  8911. (cleanQueue): New function.
  8912. * src/TorrentDownloadEngine.h
  8913. (TorrentDownloadEngine): The implementation was moved to
  8914. TorrentDownloadEngine.cc.
  8915. (~TorrentDownloadEngine): The implementation was moved to
  8916. TorrentDownloadEngine.cc.
  8917. * src/TorrentDownloadEngine.cc
  8918. (~TorrentDownloadEngine): Added deletion of torrentMan.
  8919. * src/main.cc
  8920. (clearRequest): Removed.
  8921. (handler): Added deletion of e.
  8922. (torrentHandler): Added deletion of te.
  8923. (main): Do not share splitter.
  8924. Use Deleter instead of clearRequest.
  8925. Deletion of classes were updated.
  8926. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8927. * src/main.cc (main): Fixed typo.
  8928. * src/message.h: Fixed typo.
  8929. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  8930. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8931. To add --select-file command-line option:
  8932. * src/Util.cc
  8933. (unfoldRange): New function.
  8934. (getNum): New function.
  8935. (unfoldSubRange): New function
  8936. * src/main.cc
  8937. (showUsage): Added help message.
  8938. (main): Added --select-file command-line option. Updated the layout of
  8939. file listing.
  8940. * src/common.h
  8941. (Integers): New definition.
  8942. * src/SocketCore.cc
  8943. (writeData): Removed timeout argument.
  8944. (readData): Removed timeout argument.
  8945. (peekData): Removed timeout argument.
  8946. * src/Socket.cc
  8947. (writeData): Removed timeout argument.
  8948. (readData): Removed timeout argument.
  8949. (peekData): Removed timeout argument.
  8950. * Release 0.4.1
  8951. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8952. To deploy upload rate based choking algorithm:
  8953. * src/PeerInteractionCommand.cc
  8954. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  8955. peer currently used.
  8956. (decideChoking): Deleted the choke/unchoke decision algorithm when
  8957. download completes. Simplified.
  8958. (receiveMessage): Updated.
  8959. * src/TorrentMan.h
  8960. (activePeers): New variable.
  8961. (addActivePeer): New function.
  8962. (getActivePeers): New function.
  8963. (deleteActivePeer): New function.
  8964. * src/TorrentMan.cc
  8965. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  8966. * src/PeerAbstractCommand.cc
  8967. (onAbort): Use peer->resetStatus().
  8968. * src/main.cc
  8969. (PeerChokeCommand.h): Included.
  8970. (main): Added the instance of ChokingCommand to the command queue.
  8971. * src/Peer.h
  8972. (amChoking): Renamed from amChocking
  8973. (chokingRequired): New variable.
  8974. (optUnchoking): New variable.
  8975. (deltaUpload): New variable.
  8976. (deltaDownload): New variable.
  8977. (addDeltaUpload): New function.
  8978. (resetDeltaUpload): New function.
  8979. (addDeltaDownload): New function.
  8980. (resetDeltaDownload): New function.
  8981. (addPeerUpload): Added a call to addDeltaUpload.
  8982. (addPeerDownload): Added a call to addDeltaDownload.
  8983. * src/Peer.cc
  8984. (shouldBeChoking): Renamed from shouldChoke.
  8985. (resetStatus): New function.
  8986. * src/PeerChokeCommand.h: New class.
  8987. * src/PeerChokeCommand.cc: New class.
  8988. To add lazy upload speed limiter:
  8989. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  8990. statistics calculation to TorrentDownloadEngine.
  8991. * src/TorrentConsoleDownloadEngine.cc
  8992. (sendStatistics): Renamed from printStatistics.
  8993. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  8994. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  8995. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  8996. * src/TorrentDownloadEngine.h: Added the variables for statistics
  8997. calculation.
  8998. (sendStatistics): New function as pure virtual function.
  8999. (getUploadSpeed): New function.
  9000. * src/TorrentDownloadEngine.cc
  9001. (initStatistics): New function.
  9002. (calculateSpeed): New function.
  9003. (calculateStatistics): New function.
  9004. * src/SendMessageQueue.h
  9005. (uploadLength): New variable.
  9006. (send): Added an argument.
  9007. (setUploadLimit): New function.
  9008. (getUploadLimit): New function.
  9009. * src/SendMessageQueue.cc
  9010. (send): Added upload speed limiter.
  9011. * src/prefs.h
  9012. (PREF_UPLOAD_LIMIT): New definition.
  9013. * src/PeerInteractionCommand.cc
  9014. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  9015. * src/main.cc
  9016. (main): Added --upload-limit option
  9017. For bug fixes:
  9018. * src/main.cc
  9019. (showUsage): Corrected --listen-port help
  9020. Other changes:
  9021. * src/TorrentMan.cc
  9022. (getPeer): Return nullPeer if connection is grather than
  9023. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  9024. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9025. To add some useful information to the exception message:
  9026. * src/SocketCore.cc : Updated messages.
  9027. * src/SegmentMan.cc :
  9028. * src/TorrentMan.cc : Updated messages.
  9029. * src/MultiDiskWriter.cc : Updated messages.
  9030. * src/Util.cc : Updated messages.
  9031. * src/AbstractDiskWriter.cc : Updated messages.
  9032. * src/PreAllocationDiskWriter.cc : Updated messages.
  9033. * src/message.cc : Added new messages. Updated some messages.
  9034. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  9035. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  9036. Updated threshold from 30 to 15.
  9037. * src/AbstractDiskWriter.h (filename): New variable.
  9038. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  9039. (createFile): Assigned filename.
  9040. * src/main.cc: Updated the help message for http-auth-scheme.
  9041. * Release 0.4.0
  9042. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9043. To add TrackerUpdateCommand with which replaces
  9044. CompactTrackerResponseProcessor:
  9045. * src/TrackerWatcherCommand.h (req): Removed.
  9046. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  9047. if the number of peer connections are less than 30.
  9048. * src/ByteArrayDiskWriter.h (readData): Implemented.
  9049. * src/SegmentMan.h (diskWriter): New function.
  9050. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  9051. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  9052. (main): Use TrackerUpdateCommand.
  9053. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  9054. (req): New variable.
  9055. (setTrackerResponseProcessor): Removed.
  9056. (getTrackerResponseProcessor): Removed.
  9057. (processTrackerResponse): Removed.
  9058. * src/DownloadEngine.h (diskWriter): Removed.
  9059. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  9060. to torrentMan->processTrackerResponse().
  9061. To add Util::expandBuffer:
  9062. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  9063. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  9064. * src/Util.h (expandBuffer): New function.
  9065. To fix the bug that causes segmentation fault when "-l ." is specified
  9066. in command-line option:
  9067. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  9068. (openFile): New function.
  9069. (closeFile): New function.
  9070. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  9071. (~SimpleLogger): Call closeFile();
  9072. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  9073. * src/main.cc (main): Added a check to see logger is configured
  9074. properly.
  9075. To enable HTTP authentication without specifying "--http-auth-scheme"
  9076. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  9077. * src/HttpConnection.cc (createRequest): Send Authorization header
  9078. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  9079. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  9080. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  9081. * src/Peer.cc (shouldChoke): Updated algorithm.
  9082. * src/message.h (EX_AUTH_FAILED): New definition.
  9083. (EX_FILE_OPEN): New definition.
  9084. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  9085. if status == 401.
  9086. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  9087. if req->isTorrent == true.
  9088. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  9089. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  9090. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  9091. (createFile): Updated message.
  9092. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9093. To add a readout of estimated remaining time to normal HTTP/FTP
  9094. downloads:
  9095. * src/ConsoleDownloadEngine.h (startup): New variable.
  9096. (startupLength): New variable.
  9097. (isStartupLengthSet): New variable.
  9098. (avgSpeed): New variable.
  9099. (eta): New variable.
  9100. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  9101. estimated remaining time.
  9102. (initStatistics): Initialized newly added variables.
  9103. (calculateStatistics): Calculate average speed and estimated remaining
  9104. time.
  9105. To decouple TorrentDownloadEngine from HttpResponseCommand:
  9106. * src/TrackerDownloadCommand.h: Removed.
  9107. * src/TrackerDownloadCommand.cc: Removed.
  9108. * src/TrackerInitCommand.h: Removed.
  9109. * src/TrackerInitCommand.cc: Removed.
  9110. * src/TrackerUpdateCommand.h: Removed.
  9111. * src/TrackerUpdateCommand.cc: Removed.
  9112. * src/TrackerWatcherCommand.cc (execute): The construction of request
  9113. url written in TrackerInitCommand was moved here. Do not create
  9114. tracker request command if torrentMan->trackers != 0.
  9115. * src/CompactTrackerResponseProcessor.h: New class.
  9116. * src/CompactTrackerResponseProcessor.cc: New class.
  9117. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  9118. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  9119. Decoupled TorrentDownloadEngine from this.
  9120. * src/SegmentMan.h (init): New function.
  9121. * src/SegmentMan.cc (init): New function.
  9122. * src/TorrentMan.h (responseProcessor): New variable.
  9123. (trackers): New variable.
  9124. (setTrackerResponseProcessor): New function.
  9125. (getTrackerResponseProcessor): New function.
  9126. (processTrackerResponse): New function.
  9127. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  9128. (processTrackerResponse): New function.
  9129. * src/main.cc (main): Use ByteArrayDiskWriter and
  9130. CompactTrackerResponseProcessor.
  9131. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  9132. processTrackerResponse().
  9133. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  9134. readout.
  9135. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  9136. which indicates download has completed.
  9137. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  9138. (closeFile): fd >= 0, not fd > 0
  9139. * src/main.cc (main): Added short cut for show-files.
  9140. Added short cut for torrent-file.
  9141. Added new command-line option listen-port.
  9142. Updated i18n messages.
  9143. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9144. To add LogFactory which creates singleton logger:
  9145. * src/LogFactory.h: New class.
  9146. * src/LogFactory.cc: New class.
  9147. * src/Command.h (logger): New variable.
  9148. (Constructor): Use LogFactory.
  9149. * src/AbstractCommand.cc: Use Command::logger
  9150. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  9151. Use LogFactory.
  9152. * src/SegmentSplitter.h : Made logger protected.
  9153. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  9154. * src/SegmentMan.cc (Constructor): Use LogFactory.
  9155. * src/DownloadEngine.h : Made logger protected.
  9156. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  9157. * src/PeerInteractionCommand.cc : Use Command::logger.
  9158. * src/HttpResponseCommand.cc : Use Command::logger.
  9159. * src/SegmentMan.h : Made logger private.
  9160. * src/TorrentMan.h : Made logger private.
  9161. * src/TorrentMan.cc : Use LogFactory.
  9162. * src/FtpNegotiateCommand.cc : Use Command::logger.
  9163. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  9164. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  9165. Use LogFactory.
  9166. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  9167. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  9168. Use LogFactory.
  9169. * src/DownloadCommand.cc : Use Command::logger.
  9170. * src/PeerAbstractCommand.cc : Use Command::logger.
  9171. * src/PeerListenCommand.cc : Use Command::logger.
  9172. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  9173. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  9174. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  9175. * src/TrackerWatcherCommand.cc : Use Command::logger.
  9176. * src/TrackerUpdateCommand.cc : Use Command::logger.
  9177. * src/TrackerDownloadCommand.cc : Use Command::logger.
  9178. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  9179. Use LogFactory.
  9180. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  9181. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  9182. Use LogFactory.
  9183. * src/main.cc (main): Use LogFactory.
  9184. * src/DiskAdaptor.h (logger): New variable.
  9185. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  9186. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  9187. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9188. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  9189. parameter to a tracker request.
  9190. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  9191. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  9192. * src/main.cc (setSignalHander): New function.
  9193. (main): Added a handler for SIGTERM.
  9194. (handler): Updated message.
  9195. (torrentHandler): Updated message.
  9196. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9197. * src/TorrentConsoleDownloadEngine.cc
  9198. (onPartialDownloadingCompletes): Renamed as
  9199. onSelectiveDownloadingCompletes.
  9200. (onSelectiveDownloadingCompletes): Updated message.
  9201. To add DiskAdaptor which abstract DiskWriter family:
  9202. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  9203. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  9204. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  9205. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  9206. MultiDiskAdaptor.h.
  9207. (readFileEntry): Changed its arguments.
  9208. (setup): setupDiskWriter is merged into this function.
  9209. (setupDiskWriter): Removed.
  9210. (setFileFilter): New function.
  9211. (readFileEntryFromMetaInfoFile): Updated according to the changes
  9212. made in readFileEntry.
  9213. (getFilePath): Removed.
  9214. (getTempFilePath): Removed.
  9215. (getSegmentFilePath): Updated due to the removal of getFilePath.
  9216. (fixFilename): Removed.
  9217. (copySingleFile): Removed.
  9218. (splitMultiFile): Removed.
  9219. (deleteTempFile): Removed.
  9220. (setFileEntriesToDownload): Removed.
  9221. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  9222. (isSelectiveDownloadingMode): New function.
  9223. (setAllMultiFileRequestedState): Removed.
  9224. (finishPartialDownloadingMode): Renamed as
  9225. finishSelectiveDownloadingMode.
  9226. (finishSelectiveDownloadingMode): New function.
  9227. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  9228. (getSelectedTotalLength): New function.
  9229. (onDownloadComplete): Use diskAdaptor.
  9230. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  9231. (Range): Removed.
  9232. (setMultiFileEntries): Renamed as setFileEntries.
  9233. (setFileEntries): New function.
  9234. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  9235. (pieceLength): New variable.
  9236. * src/main.cc (printDownloadCompeleteMessage): New function.
  9237. (torrentHandler): Use diskAdaptor instead of diskWriter.
  9238. (main): Renamed torrent-show-files to show-files.
  9239. Rewritten file contents listing.
  9240. * src/TorrentMan.h (FileEntry): Removed.
  9241. (multiFileTopDir): Removed.
  9242. (multiFileEntries): Removed.
  9243. (diskWriter): Removed.
  9244. (diskAdaptor): New variable.
  9245. * src/DefaultDiskWriter.h (totalLength): New variable.
  9246. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  9247. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  9248. diskWriter.
  9249. * src/TorrentConsoleDownloadEngine.h
  9250. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  9251. (partialTotalLength): Renamed as selectedTotalLength.
  9252. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  9253. openExistingFile, otherwise call initAndOpenFile.
  9254. (closeFile): fd > 0, not fd != 0.
  9255. * src/DirectDiskAdaptor.h: New class.
  9256. * src/DirectDiskAdaptor.cc: New class.
  9257. * src/MultiDiskAdaptor.h: New class.
  9258. * src/MultiDiskAdaptor.cc: New class.
  9259. * src/CopyDiskAdaptor.h: New class.
  9260. * src/CopyDiskAdaptor.cc: New class.
  9261. * src/DiskAdaptor.h: New class.
  9262. * src/DiskAdaptor.cc: New class.
  9263. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  9264. (PREF_SHOW_FILES): New definition.
  9265. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9266. To add the ability to download multi torrent into respective files
  9267. directly:
  9268. * src/DiskWriter.h (openFile): New function.
  9269. (seek): Removed.
  9270. * src/MultiDiskWriter.h: New class.
  9271. * src/MultiDiskWriter.cc: New class.
  9272. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  9273. protected.
  9274. (openFile): New function.
  9275. * src/AbstractDiskWriter.cc (openFile): New function.
  9276. * src/prefs.h (V_FALSE): New definition.
  9277. (PREF_DIRECT_FILE_MAPPING): New definition.
  9278. * src/TorrentMan.h (setupDiskWriter): New function.
  9279. (setAllMultiFileRequestedState): New function.
  9280. (onDownloadComplete): New function.
  9281. * src/TorrentMan.cc : Included MultiDiskWriter.h
  9282. (setupDiskWriter): New function.
  9283. (getFilePath): Updated.
  9284. (getTempFilePath): Updated.
  9285. (getSegmentFilePath): Updated.
  9286. (fixFilename): Updated.
  9287. (deleteTempFile): Updated.
  9288. (setAllMultiFileRequestedState): New function.
  9289. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  9290. (finishPartialDownloadingMode): Reset requested flags.
  9291. (onDownloadComplete): New function.
  9292. * src/main.cc: Added --direct-file-mapping option.
  9293. Use TorrentMan::setupDiskWriter().
  9294. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  9295. onDownloadComplete().
  9296. To fix ETA bug:
  9297. * src/Util.h (difftvsec): New function.
  9298. * src/Util.cc (difftvsec): New function.
  9299. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  9300. type of "elapsed" instead of long long int.
  9301. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  9302. The updates of statistics takes place every 1 seconds.
  9303. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  9304. (calculateSpeed): Changed its argument signature.
  9305. * src/PeerMessage.cc (toString): Fixed message.
  9306. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9307. To print ETA:
  9308. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  9309. completion handling when dealing with
  9310. TorrentMan::isPartialDownloadingMode() == true.
  9311. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  9312. New function.
  9313. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  9314. (sessionDownloadLength): New variable.
  9315. (avgSpeed): New variable.
  9316. (eta): New variable.
  9317. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  9318. new variables: eta, avgSpeed, startup.
  9319. (calculateSpeed): Calculate average speed and ETA.
  9320. (printStatistics): Added ETA.
  9321. * src/Util.h (secfmt): New function.
  9322. * src/Util.cc (secfmt): New function.
  9323. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9324. To detect "keep alive" flooding:
  9325. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  9326. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  9327. variable: keepAliveCount.
  9328. (detectMessageFlooding): Added "keep alive" flooding detection.
  9329. (receiveMessage): Increase keepAliveCount when "keep alive" message
  9330. received.
  9331. To add the ability to download only specified files in multi-file
  9332. torrent:
  9333. * src/BitfieldMan.h (filterBitfield): New variable.
  9334. (filterEnabled): New variable.
  9335. (setFilterBit): New function.
  9336. (enableFilter): New function.
  9337. (disableFilter): New function.
  9338. (isFilterEnabled): New function.
  9339. (getFilteredTotalLength): New function.
  9340. (getCompletedLength): New function.
  9341. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  9342. filterBitfield, filterEnabled.
  9343. (CopyConstructor): Added filterBitfield and filterEnabled.
  9344. (operator==): Added filterBitfield and filterEnabled.
  9345. (Destructor): Added filterBitfield.
  9346. (getMissingIndex): Use filterBitfield.
  9347. (getMissingUnusedIndex): Use filterBitfield.
  9348. (getFirstMissingUnusedIndex): Use filterBitfield.
  9349. (getFirstMissingUnusedIndex): Use filterBitfield.
  9350. (getAllMissingIndexes): Use filterBitfield.
  9351. (countMissingBlock): Use filterBitfield.
  9352. (countBlock): Use filterBitfield.
  9353. (setBitInternal): Added new argument on.
  9354. (setUseBit): Use setBitInternal.
  9355. (unsetUseBit): Use setBitInternal.
  9356. (setBit): Use setBitInternal.
  9357. (unsetBit): Use setBitInternal.
  9358. (isAllBitSet): Use filterBitfield.
  9359. (setFilterBit): New function.
  9360. (addFilter): New function.
  9361. (enableFilter): New function.
  9362. (disableFilter): New function.
  9363. (clearFilter): New function.
  9364. (isFilterEnabled): New function.
  9365. (getFilteredTotalLength): New function.
  9366. (getCompletedLength): New function.
  9367. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  9368. Initalized newly added variables.
  9369. [FileEntry](offset): New variable.
  9370. [FileEntry](extracted): New variable.
  9371. [FileEntry](requested): New variable.
  9372. (readFileEntry): New function.
  9373. (option): New variable.
  9374. (splitMultiFile): Removed const qualifier.
  9375. (fixFilename): Removed const qualifier.
  9376. (readFileEntryFromMetaInfoFile): New function.
  9377. (finishPartialDownloadingMode): New function.
  9378. (isPartialDownloadingMode): New function.
  9379. (setFileEntriesToDownload): New function.
  9380. (getCompletedLength): New function.
  9381. (getPartialTotalLength): New function.
  9382. * src/TorrentMan.cc (readFileEntry): New function.
  9383. (setup): Use readFileEntry. If no-preallocation option is specified,
  9384. use DefaultDiskWriter.
  9385. (readFileEntryFromMetaInfoFile): New function.
  9386. (fixFilename): Removed const qualifier.
  9387. (splitMultiFile): Removed const qualifier.
  9388. (setFileEntriesToDownload): New function.
  9389. (isPartialDownloadingMode): New function.
  9390. (finishPartialDownloadingMode): New function.
  9391. (getCompletedLength): New function.
  9392. (getPartialTotalLength): New function.
  9393. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  9394. New variable.
  9395. (partialTotalLength): New variable.
  9396. (downloadLength): New variable.
  9397. (totalLength): New variable.
  9398. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  9399. Added log.
  9400. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  9401. partialTotalLength, downloadLength, totalLength.
  9402. (calculate): Calculate downloadLength and totalLength.
  9403. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  9404. * src/main.cc (addCommand): Changed argument signature.
  9405. (main): Added new variable: args. Added new option "torrent-show-files"
  9406. "no-preallocation". Usage is not updated yet.
  9407. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9408. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  9409. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9410. Attempt to add the ability to listing file entries in a .torrent file.
  9411. This feature is not yet complete.
  9412. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  9413. * src/TorrentMan.cc (getMultiFileEntries): New function.
  9414. (getName): New function.
  9415. * src/TorrentMan.h (getMultiFileEntries): New function.
  9416. (getName): New function.
  9417. * src/main.cc (main): Use above 2 funtion.
  9418. * Release 0.3.2
  9419. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9420. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  9421. (detectMessageFlooding): Updated threshold value.
  9422. (checkLongTimePeerChoking): Updated timeout value.
  9423. (getNewPieceAndSendInterest): Added debug log.
  9424. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  9425. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  9426. (getPeer): Updated.
  9427. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  9428. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  9429. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  9430. is localhost.
  9431. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  9432. * src/PendingMessage.cc (processMessage): Not to send piece message
  9433. if peer is not interested in the pieces localhost has.
  9434. * src/Peer.cc (shouldChoke): Updated.
  9435. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  9436. * src/Util.cc (isPowerOf): New function.
  9437. * src/Util.h (isPowerOf): New function.
  9438. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  9439. whether or not it is power of 2.
  9440. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9441. Added new class SendMessageQueue that includes PendingMessages and
  9442. RequestSlotMan.
  9443. * src/SendMessageQueue.h: New class.
  9444. * src/SendMessageQueue.cc: New class.
  9445. * src/PendingMessage.h: Added new member variable blockIndex and its
  9446. accessors.
  9447. (createRequestMessage): Updated.
  9448. * src/PendingMessage.cc (createRequestMessage): Updated.
  9449. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  9450. SendMessageQueue.
  9451. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  9452. (receiveMessage): Updated with SendMessageQueue.
  9453. (deletePendingPieceMessage): Removed.
  9454. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  9455. (sendInterest): Updated with SendMessageQueue.
  9456. (createRequestPendingMessage): Updated with SendMessageQueue.
  9457. (sendMessages): Updated with SendMessageQueue.
  9458. (onAbort): Updated with SendMessageQueue.
  9459. (keepAlive): Updated with SendMessageQueue.
  9460. (beforeSocketCheck): Updated SendMessageQueue.
  9461. * src/PeerInteractionCommand (sendMessages): Shuffle
  9462. missingBLockIndexes before using it.
  9463. Added its own timeout for peer connection.
  9464. * src/PeerAbstractCommand.h: Added member variable timeout and its
  9465. setter.
  9466. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  9467. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  9468. Added setTimeout() call.
  9469. (executeInternal): Added setTimeout() call.
  9470. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  9471. Added timeout.
  9472. (isTimeoutDetected): Updated.
  9473. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  9474. option.
  9475. Added *simple* message flooding checker.
  9476. * src/PeerInteractionCommand.cc (executeInternal):
  9477. Added detectMessageFlooding() call.
  9478. (detectMessageFlooding): New function.
  9479. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  9480. (beforeSocketCheck): Added detectMessageFlooding() call.
  9481. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  9482. chokeUnchokeCount, haveCount, detectMessageFlooding().
  9483. Removed deletePendingPieceMessage(), getRequestSlot(),
  9484. deleteRequestSlot(), deleteAllRequestSlot().
  9485. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  9486. Added checkLongTimePeerChoking() call.
  9487. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  9488. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  9489. if duplicate == false.
  9490. The parameter "uploaded" and "downloaded" in the tracker request are
  9491. the size since the client sent the "started" event to the tracker.
  9492. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  9493. uploaded size to preDownloadedSize, preUploadedSize respectively.
  9494. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  9495. getSessionDownloadedSize(), getSessionUploadedSize().
  9496. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  9497. getSessionUploadedSize() instead of getDownloadedSize(),
  9498. getUploadedSize().
  9499. * src/PendingMessage.cc (processMessage): Do not send request message
  9500. if the peer is choking the client.
  9501. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  9502. less than interval.
  9503. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9504. * configure.in: Added gnutls support. Added several CPP macros.
  9505. * m4/openssl.m4: Added.
  9506. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  9507. readData(), peekData(). Added gnutls support.
  9508. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  9509. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  9510. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  9511. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  9512. Instead, added a check for whether setup method has executed
  9513. successfully.
  9514. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  9515. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  9516. * src/Makefile.am: Updated.
  9517. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  9518. using whether OpenSSL or gcrypt, depending on the result of configure
  9519. script.
  9520. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  9521. messageDigest.h.
  9522. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  9523. * src/PeerListenCommand.cc: Added log about port binded successfully.
  9524. Fixed memory leak.
  9525. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  9526. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  9527. Removed instantiation of TrackerInitCommand. Instead,
  9528. TrackerWatcherCommand is instantiated and pushed to the command queue.
  9529. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  9530. ENABLE_SSL.
  9531. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  9532. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  9533. If a piece is already acquired by another command, delete the request
  9534. slots for the piece.
  9535. * src/TrackerUpdateCommand.cc (execute):
  9536. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  9537. Added a check whether peer list is null.
  9538. Fixed the bug that causes sending completed event to the tracker
  9539. several times.
  9540. * src/TrackerInitCommand.cc (execute):
  9541. Fixed the bug that causes sending completed event to the tracker
  9542. several times.
  9543. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  9544. by using messageDigest.h.
  9545. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9546. * PeerConnection.cc: Replaced log message "keep-alive" with
  9547. "keep alive".
  9548. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  9549. localhost long time.
  9550. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  9551. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  9552. at most 100 failure entry from the list. If with duplicate = false,
  9553. MAX_PEER_LIST is not checked.
  9554. * PeerListenCommand.cc: Fixed the argument order of log message.
  9555. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9556. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  9557. Added warn().
  9558. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  9559. Implemented warn().
  9560. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  9561. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9562. * Request.h: Added AFTER_COMPLETED event.
  9563. * TorrentDownloadEngine.cc: Prints "Download complete" message
  9564. instead of downloaded size and progress(%) after download completes.
  9565. * PeerInteractionCommand.cc: After download completes, sends unchoke
  9566. message to the peer if it is interested in what localhost has
  9567. downloaded.
  9568. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  9569. destination instead of just renaming it.
  9570. * TorrentMan.cc: Added deleteTempFile().
  9571. * PeerAbstractCommand.cc: do not stop execution after download
  9572. completes. This makes localhost a seeder.
  9573. * Util.{h,cc}: Added fileCopy().
  9574. * PeerListenCommand.cc: do not stop execution after download completes.
  9575. This makes localhost a seeder.
  9576. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  9577. Added TorrentMan::deleteTempFile() to torrentHandler.
  9578. Initialized the variable dir as ".".
  9579. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  9580. Deleted renameSingleFile().
  9581. Added copySingleFile(), deleteTempFile().
  9582. * DownloadEngine.h: Added virtual function afterEachIteration().
  9583. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  9584. in onEndOfRun() to afterEachIteration().
  9585. In onEndOfRun(), changed if condition to check whether filenameFixed is
  9586. true.
  9587. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  9588. In rangedFileCopy(), added try-catch block to properly close file
  9589. descriptors.
  9590. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  9591. Added afterEachIteration(), isFilenameFixed().
  9592. * Peer.cc: Changed choking strategy.
  9593. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  9594. * TrackerInitCommand.cc: Send completed event only once.
  9595. * DownloadEngine.cc: Added a call to afterEachIteration().
  9596. * TrackerUpdateCommand.cc: Do not stop execution after download
  9597. completes.
  9598. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  9599. connect the peers at most MAX_PEER_UPDATE when a peer list is
  9600. received from a tracker.
  9601. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  9602. Decreased the number of failure peers to delete to 0(just comment out
  9603. the line).
  9604. * Release 0.3.1
  9605. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9606. * PeerInteractionCommand.cc: added a call to
  9607. TorrentMan::unadvertisePiece in Destructor.
  9608. * PeerInteractionCommand.cc: make have message sent immediately
  9609. if the size of pending message queue is zero.
  9610. * TorrentMan.cc: set the maximum size of peer list to 250.
  9611. * TorrentMan.h: changed the container type of Peers and UsedPieces
  9612. to deque.
  9613. * Util.cc: fixed rangedFileCopy.
  9614. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  9615. to Constructor. Also, moved digest cleanup to Destructor.
  9616. * MetaFileUtil.cc: fixed memory leak
  9617. * replaced std::vector with std::deque.
  9618. * AbstractCommand.cc: casted timeout value to long long int.
  9619. * ChunkedEncoding.cc: fixed memory leak.
  9620. * PeerInteractionCommand.cc: casted timeout value to long long int.
  9621. * SleepCommand.cc: casted timeout value to long long int.
  9622. * Data.cc: fixed memory leak.
  9623. * Data.cc: fixed toLLInt().
  9624. * BitfieldMan.cc: fixed memory leak.
  9625. * TorrentMan.cc: initialized storeDir to ".".
  9626. * TorrentMan.cc: fixed memory leak.
  9627. * TorrentMan.cc: corrected file paths of splitted files.
  9628. * PeerAbstractCommand.cc: casted timeout to long long int.
  9629. * main.cc: added delete(req) and delete(te->diskWriter).
  9630. * RequestSlot.cc: casted timeout value to long long int.
  9631. * Request.cc: fixed memory leak.
  9632. * PendingMessage.cc: make HAVE messages sent only when peer does not
  9633. have the piece.
  9634. * Peer.{h,cc}: added hasPiece(int index).
  9635. * main.cc: corrected addCommand.
  9636. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9637. * BitTorrent protocol support added.
  9638. * Release 0.3.0
  9639. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9640. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  9641. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9642. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  9643. decoding did not work properly.
  9644. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9645. * DownloadEngine.h: included sys/time.h
  9646. * DownloadEngine.cc: remove sys/time.h
  9647. * Makefile.am (SUBDIRS): Add intl.
  9648. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  9649. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9650. * main.cc: correct help message for --http-auth-scheme.
  9651. * main.cc: changed e-mail address for bug reports.
  9652. * ja.po: added japanese translation.
  9653. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9654. * SimpleLogger.cc: flush log file instead of stdout.
  9655. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9656. * main.cc: Fixed command-line option: max-tries
  9657. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  9658. does not equal to seg.sp.
  9659. * DownloadCommand.cc: If EOF is got from the server and the total size
  9660. of file is not zero, then throw DlRetryEx.
  9661. * main.cc: Set the minium value of min-segment-size to 1024.
  9662. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  9663. fails because of a regression since 0.2.0 release.
  9664. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9665. * HttpConnection.cc:
  9666. * common.h: defined the user agent name as macro
  9667. * DownloadEngine.{h, cc}:
  9668. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  9669. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  9670. * main.cc: Download complete/abort message is now generated by main.
  9671. * Makefile.am (SUBDIRS): Add m4.
  9672. (ACLOCAL_AMFLAGS): New variable.
  9673. (EXTRA_DIST): New variable.
  9674. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  9675. * gettext: added gettext functionality
  9676. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9677. * AbstractCommand.cc:
  9678. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  9679. unregister its cuid from SegmentMan.
  9680. * DownloadEngine.cc: .aria2 file was written when a downloading
  9681. failed with errors.
  9682. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  9683. Added "User-Agent" header to CONNECT proxy request.
  9684. Fixed "Proxy-Authorization" header. Now proxy authorization works
  9685. properly.
  9686. * Logger.h:
  9687. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  9688. * ChunkedEncoding.cc: Added #include directive for strings.h
  9689. * Release 0.2.1
  9690. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9691. * Util.{h,cc}: added startsWith().
  9692. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  9693. Util::endsWith().
  9694. * SocketCore.cc: struct addrinfo is now zero-initialized.
  9695. * common.h: added #include directive of limit.h.
  9696. * DownloadEngine.cc: added #include directive of sys/time.h and
  9697. algorithm.
  9698. * Exception.h: added #include directive of stdio.h.
  9699. * AbstractCommand.h: added #include directive of sys/time.h.
  9700. * DownloadCommand.h: added #include directive of sys/time.h.
  9701. * *.h: added #include directive of common.h to all base classes.
  9702. subclasses' one was removed.
  9703. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  9704. does not define these macros.
  9705. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9706. * Release 0.2.0
  9707. * main.cc:
  9708. * HttpInitiateConnectionCommand.{h,cc}:
  9709. * prefs.h:
  9710. * HttpConnection.{h,cc}: added --http-proxy-method option.
  9711. We can now use GET command in http proxy.
  9712. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9713. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  9714. that splits slowest segment of SegmentMan::commands vector.
  9715. This is the default split algorithm of aria2.
  9716. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  9717. that splits first segment of SegmentMan::commands vector.
  9718. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  9719. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  9720. * Segment.h:
  9721. * SegmentMan.cc: Added speed field to Segment.h
  9722. * main.cc: -s option now affects all URLs in command-line arguemtns.
  9723. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  9724. * message.h: Change file size related %d to %lld.
  9725. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9726. * FtpInitiateConnectionCommand.{h,cc}:
  9727. * FtpNegotiationCommand.{h,cc}:
  9728. * FtpDownloadCommand.{h,cc}:
  9729. * FtpConnection.{h,cc}: Added FTP support
  9730. * SimpleLogger.cc: Log message now includes time information.
  9731. * main.cc: The value of --http-auth-scheme option is chagned from
  9732. 'BASIC' to 'basic'
  9733. * main.cc: Added --timeout command-line option.
  9734. * main.cc: Added --min-segment-size command-line option.
  9735. * main.cc: Added --max-retries command-line option.
  9736. * prefs.h: option string constants are now defined in prefs.h
  9737. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9738. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  9739. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  9740. with version 0.1.0's one.
  9741. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9742. * configure.in: Added --enable-ssl option to configure script.
  9743. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  9744. cannot permit absoluteURI as Request-URI.
  9745. * HttpConnection.cc: Added Referer support.
  9746. * main.cc: Added referer command-line option.
  9747. * main.cc: Added rety-wait command-line option.
  9748. * Exception.h: Fixed formating bug in Exception::setMsg()
  9749. * SocketCore.{h,cc}:
  9750. * Socket.{h, cc}:
  9751. * Request.cc:
  9752. * InitiateConnectionCommandFactory.cc:
  9753. * HttpRequestCommand.cc: Added HTTPS support.
  9754. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  9755. for SocketCore.
  9756. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  9757. size is wrong
  9758. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  9759. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  9760. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  9761. * Release 0.1.0