ChangeLog 450 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024
  1. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Commented out the code which sets virtual directory path "[MEMORY]"
  3. propagate directory to store to following RequestGroup.
  4. * src/MemoryBufferPreDownloadHandler.cc
  5. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Bump up version number to 1.0.0b
  7. * configure.ac
  8. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Added input_uris.txt to EXTRA_DIST
  10. * test/Makefile.am
  11. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  12. Removed PeerObject.h from Makefile.am
  13. * src/Makefile.am
  14. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  15. Avoid slow seeding
  16. * src/PeerInteractionCommand.cc
  17. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  18. Updated usage for -i option.
  19. * src/usage_text.h (TEXT_INPUT_FILE)
  20. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Added INPUT FILE section to man page.
  22. Escaped fake URLs.
  23. * doc/aria2c.1.txt
  24. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  25. Fixed wrong note position for -o option.
  26. * doc/aria2c.1.txt
  27. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Fixed compile error without SSL/XML library.
  29. * src/DefaultBtProgressInfoFile.cc
  30. * src/DefaultBtProgressInfoFile.h
  31. * src/FileMetalinkParserState.cc
  32. * src/RequestGroup.h
  33. * src/SocketCore.cc
  34. * src/SocketCore.h
  35. * src/VerificationMetalinkParserState.cc
  36. * src/download_helper.h
  37. * src/main.cc
  38. * test/DefaultBtProgressInfoFileTest.cc
  39. * test/DownloadHelperTest.cc
  40. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  41. Rewritten URI handling functions. They are now provided as a testable
  42. functions.
  43. * src/Makefile.am
  44. * src/RequestGroup.cc
  45. * src/RequestGroup.h
  46. * src/download_helper.cc
  47. * src/download_helper.h
  48. * src/main.cc
  49. * test/DownloadHelperTest.cc
  50. * test/Makefile.am
  51. * test/input_uris.txt
  52. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  53. Quickly terminate commands when ctrl-c is pressed.
  54. * src/DownloadEngine.cc
  55. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Quickly terminate idle commands when download finished.
  57. * src/AbstractCommand.cc
  58. * src/DownloadCommand.cc
  59. * src/DownloadEngine.cc
  60. * src/DownloadEngine.h
  61. * src/SleepCommand.cc
  62. * src/SleepCommand.h
  63. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Added the ability to specify output filename and directory in input
  65. file.
  66. Additional parameters are added in the following line of URIs
  67. with proceeding white space(s), 1 parameter in 1 line.
  68. The parameter names are the same with the command-line option name
  69. without proceeding "--". Not all the options are available here:
  70. at the moment, 'dir' and 'out' options are avialable.
  71. Please note that out option has no effect against Metalink or BitTorrent
  72. downloads.
  73. Example input file:
  74. http://host/foo-1.1.tar.bz2
  75. out=foo.tar.bz2
  76. dir=/tmp/downloads
  77. http://host/thundermonkey-2.0.tar.bz2
  78. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  79. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  80. thundermonkey-2.0.tar.bz2 is saved as
  81. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  82. * src/BtPostDownloadHandler.cc
  83. * src/Metalink2RequestGroup.cc
  84. * src/Metalink2RequestGroup.h
  85. * src/MetalinkPostDownloadHandler.cc
  86. * src/UriListParser.cc
  87. * src/UriListParser.h
  88. * src/main.cc
  89. * test/Metalink2RequestGroupTest.cc
  90. * test/UriListParserTest.cc
  91. * test/filelist1.txt
  92. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  93. Fixed error when SSL library is not found.
  94. * configure.ac
  95. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Cross referenced among -s, -C and -j options.
  97. Updated usage of -C and -s options.
  98. * src/usage_text.h
  99. * doc/aria2c.1.txt
  100. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Fixed bad cast in 32bit platforms.
  102. * test/DefaultPieceStorageTest.cc
  103. (DefaultPieceStorageTest::testGetCompletedLength)
  104. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  105. Fixed unit test fails on 32bit platforms.
  106. * test/CookieParserTest.cc
  107. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  108. Show an average download speed in Download results.
  109. * src/BtFileAllocationEntry.cc
  110. * src/DefaultPieceStorage.cc
  111. * src/DownloadContext.cc
  112. * src/DownloadContext.h
  113. * src/DownloadResult.h
  114. * src/RequestGroup.cc
  115. * src/RequestGroupMan.cc
  116. * src/StreamFileAllocationEntry.cc
  117. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  118. Fixed the bug that metalink file is not processed if Content-Type
  119. field has a paramter.
  120. * src/HttpResponse.cc
  121. * src/HttpResponse.h
  122. * test/HttpResponseTest.cc
  123. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  124. Removed unused code.
  125. * src/DefaultBtAnnounce.cc
  126. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  128. the value larger than DefaultPieceStorage::getTotalLength() when
  129. in flight pieces are involved.
  130. * src/DefaultPieceStorage.cc
  131. * test/DefaultPieceStorageTest.cc
  132. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  133. Bump up version number to 1.0.0a.
  134. * configure.ac
  135. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  136. Updated configure.ac
  137. * configure.ac
  138. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  139. Added usege for proxy.
  140. * doc/aria2c.1.txt
  141. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Added usage for --ca-certificate, --certificate, --private-key and
  143. --check-certificate options.
  144. * doc/aria2c.1.txt
  145. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  146. Updated man page
  147. * doc/aria2c.1.txt
  148. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  149. Added --no-proxy option. It receives comman separated hostname or
  150. domains to which proxy should not be used.
  151. aria2 honors the environment variable no_proxy to override no-proxy
  152. value in configuration file. The user can override the environment
  153. variable no_proxy with --no-proxy command-line option.
  154. * src/AbstractCommand.cc
  155. * src/OptionHandlerFactory.cc
  156. * src/option_processing.cc
  157. * src/prefs.cc
  158. * src/prefs.h
  159. * src/usage_text.h
  160. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  161. Added the ability to verify peer in SSL/TLS using given CA certificates.
  162. The CA certificates are specified in --ca-certificate option.
  163. By default, the verification is disabled. Use --check-certificate
  164. option to enable it.
  165. * src/HttpRequestCommand.cc
  166. * src/LibgnutlsTLSContext.cc
  167. * src/LibgnutlsTLSContext.h
  168. * src/LibsslTLSContext.cc
  169. * src/LibsslTLSContext.h
  170. * src/MultiUrlRequestInfo.cc
  171. * src/OptionHandlerFactory.cc
  172. * src/SocketCore.cc
  173. * src/SocketCore.h
  174. * src/a2functional.h
  175. * src/message.h
  176. * src/option_processing.cc
  177. * src/prefs.cc
  178. * src/prefs.h
  179. * src/usage_text.h
  180. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Added client certificate authentication for SSL/TLS.
  182. Currently a private key must be decrypted for use with aria2.
  183. If a user accidentally gives encrypted file to aria2 then following
  184. thing happens:
  185. If encrypted private key is given to aria2, it behaves differently
  186. depending on the ssl library it uses. If aria2 built with openssl then
  187. openssl prompts the user for password. If aria2 build with gnutls then
  188. aria2 exists with error at start up.
  189. * src/DownloadEngineFactory.cc
  190. * src/MultiUrlRequestInfo.cc
  191. * src/OptionHandlerFactory.cc
  192. * src/option_processing.cc
  193. * src/prefs.cc
  194. * src/prefs.h
  195. * src/usage_text.h
  196. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Introduced TLSContext that holds TLS related data that can be shared
  198. with multiple SSL connections.
  199. * src/DownloadEngineFactory.cc
  200. * src/LibgnutlsTLSContext.cc
  201. * src/LibgnutlsTLSContext.h
  202. * src/LibsslTLSContext.cc
  203. * src/LibsslTLSContext.h
  204. * src/Makefile.am
  205. * src/SocketCore.cc
  206. * src/SocketCore.h
  207. * src/TLSContext.h
  208. * src/message.h
  209. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  210. Fixed the bug that the DiskWriter of the first FileEntry whose
  211. `needsFileAllocation' property is false is not created
  212. even if it shares a piece with next FileEntry which `requested' property
  213. is true.
  214. Fixed the bug that zero-length file is not created if pre file
  215. allocation is not done.
  216. * src/MultiDiskAdaptor.cc
  217. * src/MultiDiskAdaptor.h
  218. * test/MultiDiskAdaptorTest.cc
  219. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  220. Added the ability to pool proxy connection.
  221. The conneciton in FTP with proxy-method=GET is not pooled.
  222. Proxy-Connection header will not be sent when sending CONNECT method.
  223. * src/DownloadEngine.cc
  224. * src/DownloadEngine.h
  225. * src/FtpFinishDownloadCommand.cc
  226. * src/FtpInitiateConnectionCommand.cc
  227. * src/FtpNegotiationCommand.cc
  228. * src/HttpDownloadCommand.cc
  229. * src/HttpInitiateConnectionCommand.cc
  230. * src/HttpRequest.cc
  231. * src/HttpRequest.h
  232. * src/HttpResponse.cc
  233. * src/HttpSkipResponseCommand.cc
  234. * test/HttpRequestTest.cc
  235. * test/HttpResponseTest.cc
  236. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  237. Handle date before epoch.
  238. To create *bad* Time object, call Time::null().
  239. * src/CookieParser.cc
  240. * src/FtpConnection.cc
  241. * src/FtpConnection.h
  242. * src/FtpNegotiationCommand.cc
  243. * src/RequestGroup.cc
  244. * src/TimeA2.cc
  245. * src/TimeA2.h
  246. * test/CookieParserTest.cc
  247. * test/FtpConnectionTest.cc
  248. * test/TimeTest.cc
  249. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  250. Added support for following envrionment variables: http_proxy,
  251. https_proxy, ftp_proxy and all_proxy.
  252. Each variable is equivalent to the aria2 option whose name is the
  253. variable name with '_' replaced with '-'.
  254. They overrides options specified in aria2.conf file.
  255. The envrionment variables can be overrode using command-line option.
  256. * src/option_processing.cc
  257. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  258. Renamed --http-proxy-method as --proxy-method.
  259. * src/AbstractCommand.cc
  260. * src/FtpInitiateConnectionCommand.cc
  261. * src/HttpInitiateConnectionCommand.cc
  262. * src/OptionHandlerFactory.cc
  263. * src/option_processing.cc
  264. * src/prefs.cc
  265. * src/prefs.h
  266. * src/usage_text.h
  267. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  268. Deprecated --http-proxy-user and --http-proxy-passwd options.
  269. Added --https-proxy, --ftp-proxy and --all-proxy options.
  270. Above 3 options and --http-proxy option can handle proxy in URL format
  271. like: http://user:passwd@host:port.
  272. If a proxy requires user/password, they must be specified in a URL.
  273. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  274. instead.
  275. * src/AbstractCommand.cc
  276. * src/AbstractCommand.h
  277. * src/AbstractProxyRequestCommand.cc
  278. * src/AbstractProxyRequestCommand.h
  279. * src/AuthConfigFactory.cc
  280. * src/AuthConfigFactory.h
  281. * src/FtpFinishDownloadCommand.cc
  282. * src/FtpInitiateConnectionCommand.cc
  283. * src/FtpInitiateConnectionCommand.h
  284. * src/FtpNegotiationCommand.cc
  285. * src/FtpTunnelRequestCommand.cc
  286. * src/FtpTunnelRequestCommand.h
  287. * src/HttpDownloadCommand.cc
  288. * src/HttpInitiateConnectionCommand.cc
  289. * src/HttpInitiateConnectionCommand.h
  290. * src/HttpProxyRequestCommand.cc
  291. * src/HttpProxyRequestCommand.h
  292. * src/HttpRequest.cc
  293. * src/HttpRequest.h
  294. * src/HttpRequestCommand.cc
  295. * src/HttpRequestCommand.h
  296. * src/HttpSkipResponseCommand.cc
  297. * src/InitiateConnectionCommand.cc
  298. * src/InitiateConnectionCommand.h
  299. * src/OptionHandlerFactory.cc
  300. * src/OptionHandlerImpl.h
  301. * src/Request.cc
  302. * src/option_processing.cc
  303. * src/prefs.cc
  304. * src/prefs.h
  305. * src/usage_text.h
  306. * test/AuthConfigFactoryTest.cc
  307. * test/HttpRequestTest.cc
  308. * test/OptionHandlerTest.cc
  309. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  310. Execute choking algorithm when unchoked and interested peer is
  311. disconected.
  312. * src/DefaultPeerStorage.cc
  313. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  314. Added testcase for BtNotInterestedMessage from unchoked peer.
  315. * test/BtNotInterestedMessageTest.cc
  316. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  317. Execute choking algorithm when BtInterestedMessage arrives from
  318. unchoked peer.
  319. * src/BtInterestedMessage.cc
  320. * src/BtInterestedMessage.h
  321. * src/DefaultBtMessageFactory.cc
  322. * test/BtInterestedMessageTest.cc
  323. * test/MockPeerStorage.h
  324. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  325. AuthConfigFactory is now part of DownloadEngine.
  326. * src/AbstractProxyRequestCommand.cc
  327. * src/AuthConfigFactory.h
  328. * src/DownloadEngine.cc
  329. * src/DownloadEngine.h
  330. * src/FtpConnection.cc
  331. * src/FtpConnection.h
  332. * src/FtpNegotiationCommand.cc
  333. * src/HttpConnection.cc
  334. * src/HttpRequest.cc
  335. * src/HttpRequest.h
  336. * src/HttpRequestCommand.cc
  337. * src/HttpResponse.cc
  338. * src/HttpResponseCommand.cc
  339. * src/HttpSkipResponseCommand.cc
  340. * src/MultiUrlRequestInfo.cc
  341. * src/main.cc
  342. * test/FtpConnectionTest.cc
  343. * test/HttpRequestTest.cc
  344. * test/HttpResponseTest.cc
  345. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  346. Corrected catched exception type.
  347. * src/ServerStatMan.cc
  348. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  349. DNSCache is now part of DownloadEngine.
  350. * src/DNSCache.h
  351. * src/DownloadEngine.cc
  352. * src/DownloadEngine.h
  353. * src/InitiateConnectionCommand.cc
  354. * src/MultiUrlRequestInfo.cc
  355. * test/Makefile.am
  356. * test/Makefile.in
  357. * test/SimpleDNSCacheTest.cc
  358. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  359. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  360. DownloadEngine.
  361. * src/ActivePeerConnectionCommand.cc
  362. * src/BtSetup.cc
  363. * src/CUIDCounter.h
  364. * src/DHTSetup.cc
  365. * src/DownloadCommand.cc
  366. * src/DownloadEngine.cc
  367. * src/DownloadEngine.h
  368. * src/DownloadEngineFactory.cc
  369. * src/FileAllocationDispatcherCommand.cc
  370. * src/InitiatorMSEHandshakeCommand.cc
  371. * src/PeerInitiateConnectionCommand.cc
  372. * src/PeerInteractionCommand.cc
  373. * src/PeerListenCommand.cc
  374. * src/RequestGroup.cc
  375. * src/StreamFileAllocationEntry.cc
  376. * src/TrackerWatcherCommand.cc
  377. * src/main.cc
  378. * test/RequestGroupManTest.cc
  379. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  380. Implemented commented code in BtSeederStateChoke
  381. * src/BtSeederStateChoke.cc
  382. * src/Peer.cc
  383. * src/Peer.h
  384. * src/PeerInteractionCommand.cc
  385. * src/PeerSessionResource.cc
  386. * src/PeerSessionResource.h
  387. * test/MockBtMessageDispatcher.h
  388. * test/PeerSessionResourceTest.cc
  389. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  390. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  391. its object.
  392. * src/AbstractBtMessage.cc
  393. * src/ActivePeerConnectionCommand.cc
  394. * src/ActivePeerConnectionCommand.h
  395. * src/BtContextAwareCommand.cc
  396. * src/BtContextAwareCommand.h
  397. * src/BtExtendedMessage.cc
  398. * src/BtExtendedMessage.h
  399. * src/BtInterestedMessage.cc
  400. * src/BtInterestedMessage.h
  401. * src/BtNotInterestedMessage.cc
  402. * src/BtNotInterestedMessage.h
  403. * src/BtRegistry.cc
  404. * src/BtRegistry.h
  405. * src/BtSeederStateChoke.cc
  406. * src/BtSetup.cc
  407. * src/DHTGetPeersCommand.cc
  408. * src/DHTGetPeersCommand.h
  409. * src/DHTPeerAnnounceEntry.cc
  410. * src/DHTPeerAnnounceEntry.h
  411. * src/DHTPeerAnnounceStorage.cc
  412. * src/DHTPeerAnnounceStorage.h
  413. * src/DHTPeerLookupTask.cc
  414. * src/DHTPeerLookupTask.h
  415. * src/DHTSetup.cc
  416. * src/DHTSetup.h
  417. * src/DHTTaskFactory.h
  418. * src/DHTTaskFactoryImpl.cc
  419. * src/DHTTaskFactoryImpl.h
  420. * src/DefaultBtAnnounce.cc
  421. * src/DefaultBtInteractive.cc
  422. * src/DefaultBtInteractive.h
  423. * src/DefaultBtMessageDispatcher.cc
  424. * src/DefaultBtMessageDispatcher.h
  425. * src/DefaultBtMessageFactory.cc
  426. * src/DefaultBtMessageFactory.h
  427. * src/DefaultBtMessageReceiver.cc
  428. * src/DefaultBtProgressInfoFile.cc
  429. * src/DefaultBtProgressInfoFile.h
  430. * src/DefaultBtRequestFactory.cc
  431. * src/DefaultBtRequestFactory.h
  432. * src/DefaultExtensionMessageFactory.cc
  433. * src/DefaultExtensionMessageFactory.h
  434. * src/DefaultPeerStorage.cc
  435. * src/DefaultPeerStorage.h
  436. * src/DownloadEngine.cc
  437. * src/DownloadEngine.h
  438. * src/InitiatorMSEHandshakeCommand.cc
  439. * src/InitiatorMSEHandshakeCommand.h
  440. * src/MSEHandshake.cc
  441. * src/MSEHandshake.h
  442. * src/Makefile.am
  443. * src/Makefile.in
  444. * src/PeerChokeCommand.cc
  445. * src/PeerChokeCommand.h
  446. * src/PeerInitiateConnectionCommand.cc
  447. * src/PeerInitiateConnectionCommand.h
  448. * src/PeerInteractionCommand.cc
  449. * src/PeerInteractionCommand.h
  450. * src/PeerObject.h
  451. * src/PeerReceiveHandshakeCommand.cc
  452. * src/PeerReceiveHandshakeCommand.h
  453. * src/ReceiverMSEHandshakeCommand.cc
  454. * src/RequestGroup.cc
  455. * src/RequestGroup.h
  456. * src/RequestGroupMan.cc
  457. * src/RequestGroupMan.h
  458. * src/SeedCheckCommand.cc
  459. * src/SeedCheckCommand.h
  460. * src/ShareRatioSeedCriteria.h
  461. * src/SimpleBtMessage.cc
  462. * src/TrackerWatcherCommand.cc
  463. * src/TrackerWatcherCommand.h
  464. * src/UTPexExtensionMessage.cc
  465. * src/UTPexExtensionMessage.h
  466. * test/BtCancelMessageTest.cc
  467. * test/BtChokeMessageTest.cc
  468. * test/BtExtendedMessageTest.cc
  469. * test/BtInterestedMessageTest.cc
  470. * test/BtNotInterestedMessageTest.cc
  471. * test/BtPieceMessageTest.cc
  472. * test/BtPortMessageTest.cc
  473. * test/BtRegistryTest.cc
  474. * test/BtRejectMessageTest.cc
  475. * test/BtRequestMessageTest.cc
  476. * test/DHTPeerAnnounceEntryTest.cc
  477. * test/DHTPeerAnnounceStorageTest.cc
  478. * test/DefaultBtMessageDispatcherTest.cc
  479. * test/DefaultBtMessageFactoryTest.cc
  480. * test/DefaultBtProgressInfoFileTest.cc
  481. * test/DefaultBtRequestFactoryTest.cc
  482. * test/DefaultExtensionMessageFactoryTest.cc
  483. * test/MSEHandshakeTest.cc
  484. * test/MockDHTTaskFactory.h
  485. * test/ShareRatioSeedCriteriaTest.cc
  486. * test/UTPexExtensionMessageTest.cc
  487. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  488. Fixed compiler warning.
  489. * test/UtilTest.cc
  490. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  491. Treat Cookie object as session cookie if expiry = 0 is given.
  492. With this change, you can specify session scoped cookies in an external
  493. file setting expiry value to 0.
  494. * src/Cookie.cc
  495. * src/Cookie.h
  496. * test/CookieParserTest.cc
  497. * test/CookieStorageTest.cc
  498. * test/CookieTest.cc
  499. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  500. Changed signature of DHTMessageFactory::createResponseMessage().
  501. Removed unused validateIDMatch.
  502. * src/DHTMessageFactory.h
  503. * src/DHTMessageFactoryImpl.cc
  504. * src/DHTMessageFactoryImpl.h
  505. * src/DHTMessageTracker.cc
  506. * test/DHTMessageFactoryImplTest.cc
  507. * test/MockDHTMessageFactory.h
  508. Dropped DHT message coming from same ID of localhost.
  509. * src/DHTMessageReceiver.cc
  510. Rejected adding node whose ID is the same as localhost's.
  511. * src/DHTRoutingTable.cc
  512. * test/BtPortMessageTest.cc
  513. * test/DHTRoutingTableTest.cc
  514. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  515. Pool connection when redirection occurs with Content-Length = 0.
  516. * src/HttpSkipResponseCommand.cc
  517. * src/HttpSkipResponseCommand.h
  518. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  519. Fixed the bug that causes time out when redirection occurs with
  520. content-length 0.
  521. * src/HttpResponseCommand.cc
  522. * src/HttpSkipResponseCommand.cc
  523. * src/HttpSkipResponseCommand.h
  524. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  525. Now each status legends is shown only when it appears in Download
  526. Result. If Download Result has no item, then status legend will not
  527. be printed.
  528. * src/RequestGroupMan.cc
  529. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  530. Removed duplicate creation of OptionHandlers.
  531. * src/option_processing.cc
  532. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  533. Fixed the bug that causes segmentation fault when accessing files which
  534. don't exist or are not included in --select-file option while
  535. validating chunk checksum.
  536. * src/MultiDiskAdaptor.cc
  537. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  538. Fixed compiler warning.
  539. * test/UtilTest.cc
  540. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  541. Included cstdlib. This fixed the compile error with g++-4.3.2.
  542. * src/IteratableChecksumValidator.cc
  543. * src/IteratableChunkChecksumValidator.cc
  544. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  545. * Release 0.16.2
  546. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  547. Added Serbian translation. Updated Ukrainian translation.
  548. Thanks to all translators.
  549. * po/sr.po
  550. * po/uk.po
  551. * po/LINGUAS
  552. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  553. Bump up version number to 0.16.2
  554. * configure.ac
  555. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  556. Added length equality test to operator== to drop a piece message
  557. whose length does not match to the requested one.
  558. * src/RequestSlot.cc
  559. * test/DefaultBtMessageDispatcherTest.cc
  560. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  561. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  562. recieved.
  563. In this fix, if a request larger than 16KiB length is received, aria2
  564. disconnects the peer.
  565. * src/BtConstants.h
  566. * src/PeerMessageUtil.cc
  567. * src/PeerMessageUtil.h
  568. * test/BtRequestMessageTest.cc
  569. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  570. * Release 0.16.1
  571. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  572. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  573. * doc/aria2c.1.txt
  574. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  575. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  576. Updated French, Simplified Chinese and Japanese translations.
  577. Thanks to all translators.
  578. en@quot and en@boldquot are also added.
  579. * po/LINGUAS
  580. * po/fr.po
  581. * po/ja.po
  582. * po/uk.po
  583. * po/vi.po
  584. * po/zh_CN.po
  585. * po/zh_TW.po
  586. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  587. Bump up version number to 0.16.1.
  588. * configure.ac
  589. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  590. Updated README.
  591. * README
  592. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  593. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  594. not to replace '--' with em dash character.
  595. * doc/aria2c.1.txt
  596. * doc/makeman
  597. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  598. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  599. every SEC seconds.
  600. * src/DownloadEngineFactory.cc
  601. * src/OptionHandlerFactory.cc
  602. * src/option_processing.cc
  603. * src/usage_text.h
  604. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  605. Fixed compile warning on linux-amd64
  606. * src/FtpConnection.cc
  607. * src/IteratableChunkChecksumValidator.cc
  608. * src/MultiDiskAdaptor.cc
  609. Fixed the bug that unit test fails on linux-amd64
  610. * test/UtilTest.cc
  611. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  612. Added --dht-file-path option to change the path to dht.dat, which is a
  613. serialized DHT routing table.
  614. * src/OptionHandlerFactory.cc
  615. * src/option_processing.cc
  616. * src/usage_text.h
  617. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  618. Fixed possible underflow.
  619. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  620. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  621. Fixed the bug that last character in URI is not encoded.
  622. * src/Request.cc
  623. * test/RequestTest.cc
  624. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  625. Fixed the bug that referer header field contains fragment.
  626. Now Request class removes fragment part of URI and encodes it
  627. in Request::setUri() and setReferer().
  628. * src/Request.h
  629. * src/Request.cc
  630. * test/RequestTest.cc
  631. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  632. Added missing m4 macros.
  633. * m4/cppunit.m4
  634. * m4/libgcrypt.m4
  635. * m4/libgnutls-extra.m4
  636. * m4/libgnutls.m4
  637. * m4/libxml2.m4
  638. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  639. Fixed compile error with gcc-4.4(snapshot)
  640. * src/File.cc
  641. * src/FtpConnection.cc
  642. * src/OptionHandlerImpl.h
  643. * src/Util.cc
  644. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  645. Removed assert()
  646. * src/SocketBuffer.cc (SocketBuffer::send)
  647. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  648. Changed the type of _numNewConnection to unsigned int.
  649. * src/ActivePeerConnectionCommand.cc
  650. * src/ActivePeerConnectionCommand.h
  651. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  652. * Release 0.16.0
  653. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  654. Updated doc
  655. * README
  656. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  657. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  658. translations. Thanks to all translators.
  659. * po/bg.po
  660. * po/de.po
  661. * po/fr.po
  662. * po/ja.po
  663. * po/zh_CN.po
  664. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  665. Bump up version number to 0.16.0.
  666. * configure.ac
  667. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  668. Casted entry->maxConnections to int32_t for std::min<T> with T =
  669. int32_t.
  670. Changed the type of count to int32_t.
  671. * src/Metalink2RequestGroup.cc
  672. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  673. Added test for Time::elapsed(time_t).
  674. * test/TimeTest.cc
  675. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  676. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  677. Util::difftv() should be used instead.
  678. * src/TimeA2.cc
  679. * src/TimeA2.h
  680. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  681. Made socket for dht connections non-blocking
  682. * src/DHTAbstractMessage.cc
  683. * src/DHTAbstractMessage.h
  684. * src/DHTConnection.h
  685. * src/DHTConnectionImpl.cc
  686. * src/DHTConnectionImpl.h
  687. * src/DHTMessage.h
  688. * src/DHTMessageDispatcherImpl.cc
  689. * src/DHTMessageDispatcherImpl.h
  690. * src/DHTUnknownMessage.cc
  691. * src/DHTUnknownMessage.h
  692. * src/SocketCore.cc
  693. * src/SocketCore.h
  694. * test/MockDHTMessage.h
  695. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  696. Changed the type of offset to int.
  697. * src/ParameterizedStringParser.cc
  698. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  699. Made getAsInt() return int32_t
  700. * src/Option.h
  701. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  702. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  703. build.
  704. * configure.ac
  705. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  706. Use sqlite3_open if sqlite3_open_v2 is not available.
  707. * src/Sqlite3MozCookieParser.cc
  708. * src/Sqlite3MozCookieParser.h
  709. * m4/sqlite3.m4
  710. * test/Sqlite3MozCookieParserTest.cc
  711. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  712. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  713. * src/BtPieceMessage.cc
  714. * src/DHTPeerAnnounceStorage.cc
  715. * src/DefaultPieceStorage.cc
  716. * src/DownloadCommand.cc
  717. * src/DownloadEngine.cc
  718. * src/FtpConnection.cc
  719. * src/PeerConnection.cc
  720. * src/PeerMessageUtil.cc
  721. * src/RequestGroup.cc
  722. * src/RequestGroupMan.cc
  723. * src/SimpleBtMessage.cc
  724. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  725. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  726. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  727. * src/AbstractDiskWriter.cc
  728. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  729. Don't set Request::supportsPersistentConnection() in HttpConnection
  730. since this code is also used in AbstractProxyResponseCommand.
  731. Moved those code to HttpResponse.
  732. * src/HttpResponse.cc
  733. * src/HttpResponse.h
  734. * src/HttpConnection.cc
  735. * src/HttpConnection.h
  736. * src/HttpResponseCommand.cc
  737. * test/HttpResponseTest.cc
  738. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  739. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  740. The configuration is minimum: no torrent, no metalink, so there may be
  741. other compile error on their code.
  742. * src/a2netcompat.h
  743. * src/File.cc
  744. * src/File.h
  745. * src/SocketCore.cc
  746. * src/SocketCore.h
  747. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  748. Made a socket of incoming peer non-blocking.
  749. * src/PeerListenCommand.cc
  750. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  751. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  752. whole message data is not sent in one send() call.
  753. * src/BtPieceMessage.cc
  754. * src/BtPieceMessage.h
  755. * src/PeerConnection.cc
  756. * src/PeerConnection.h
  757. * src/SimpleBtMessage.cc
  758. * src/SimpleBtMessage.h
  759. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  760. Fixed the bug that aria2 downloads faster than max-download-limit when
  761. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  762. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  763. , instead of sum of them.
  764. * src/ActivePeerConnectionCommand.cc
  765. * src/DefaultBtInteractive.cc
  766. * src/DownloadCommand.cc
  767. * src/PeerInteractionCommand.cc
  768. * src/PeerReceiveHandshakeCommand.cc
  769. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  770. Fixed the bug that HTTPS download fails.
  771. * src/AbstractCommand.cc
  772. * src/AbstractCommand.h
  773. * src/DownloadCommand.cc
  774. * src/FtpConnection.cc
  775. * src/HttpConnection.cc
  776. * src/HttpRequestCommand.cc
  777. * src/HttpResponseCommand.cc
  778. * src/HttpSkipResponseCommand.cc
  779. * src/MSEHandshake.cc
  780. * src/PeerConnection.cc
  781. * src/SocketCore.cc
  782. * src/SocketCore.h
  783. Fixed the bug that aria2 doesn't download whole content body and cannot
  784. reuse connection if chunked transfer encoding and gzip content encoding
  785. are set.
  786. * src/DownloadCommand.cc
  787. * src/HttpSkipResponseCommand.cc
  788. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  789. Updated man page.
  790. * doc/aria2c.1.txt
  791. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  792. When error occurred while aria2 was parsing an .aria2.conf file, print
  793. the usage of the option that caused error.
  794. * src/option_processing.cc
  795. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  796. Fixed compile error on OptionHandlerException
  797. * src/Makefile.am
  798. * src/OptionHandlerException.cc
  799. * src/OptionHandlerException.h
  800. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  801. Moved message of the error to OptionHandlerException.h
  802. * src/NameMatchOptionHandler.h
  803. * src/OptionHandlerException.h
  804. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  805. When error occurs while aria2 is parsing an command-line option, print
  806. the usage of the option.
  807. * src/Makefile.am
  808. * src/NameMatchOptionHandler.h
  809. * src/OptionHandlerException.h
  810. * src/option_processing.cc
  811. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  812. Reverted previous change.
  813. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  814. username is not in URI.
  815. * src/HttpRequest.cc
  816. * src/Request.cc
  817. * test/HttpRequestTest.cc
  818. * test/RequestTest.cc
  819. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  820. Now colon is required for username and password in FTP URL, like:
  821. ftp://username:password@host.
  822. If colon is not there, aria2 don't parse it as a username. For example,
  823. aria2 don't retrieve username from ftp://username@host.
  824. This fix was made in order to login FTP server via non-transparent ftp
  825. proxy.
  826. * src/Request.cc
  827. * test/RequestTest.cc
  828. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  829. Use netrc for HTTP.
  830. Now FTP user/password is sent in Authorization header when
  831. --ftp-via-http-proxy=get is given.
  832. * src/AuthConfigFactory.cc
  833. * src/HttpRequest.cc
  834. * src/HttpRequest.h
  835. * src/NetrcAuthResolver.cc
  836. * src/NetrcAuthResolver.h
  837. * src/OptionHandlerFactory.cc
  838. * src/option_processing.cc
  839. * src/prefs.cc
  840. * src/prefs.h
  841. * test/AuthConfigFactoryTest.cc
  842. * test/HttpRequestTest.cc
  843. * test/NetrcAuthResolverTest.cc
  844. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  845. Issue PWD command first and get working directory and use it as a prefix
  846. for CWD command.
  847. * src/DownloadEngine.cc
  848. * src/DownloadEngine.h
  849. * src/FtpConnection.cc
  850. * src/FtpConnection.h
  851. * src/FtpFinishDownloadCommand.cc
  852. * src/FtpInitiateConnectionCommand.cc
  853. * src/FtpNegotiationCommand.cc
  854. * src/FtpNegotiationCommand.h
  855. * test/FtpConnectionTest.cc
  856. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  857. Removed default user/pass for FTP user/pass, since it should not have
  858. precedence over netrc configuration by default.
  859. * src/OptionHandlerFactory.cc
  860. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  861. Added debug log for socket event.
  862. * src/AbstractCommand.cc
  863. * src/PeerAbstractCommand.cc
  864. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  865. Log microseconds.
  866. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  867. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  868. Replaced HelpItem.cc with OptionHandler.cc.
  869. * po/POTFILES.in
  870. Updated po files with 'make update-po'
  871. * po/aria2c.pot
  872. * po/*.po
  873. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  874. Removed possible values from the text.
  875. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  876. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  877. Removed unused preferences:
  878. PREF_NO_PREALLOCATION
  879. PREF_STDOUT_LOG
  880. PREF_TRACKER_MAX_TRIES
  881. PREF_DIRECT_DOWNLOAD_TIMEOUT
  882. PREF_MIN_SEGMENT_SIZE
  883. * src/option_processing.cc
  884. * src/prefs.cc
  885. * src/prefs.h
  886. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  887. Integrated HelpItem into OptionParser to ease the workload for adding
  888. new options. Removed default value from usage text.
  889. * src/HelpItem.cc: Removed.
  890. * src/HelpItem.h: Removed.
  891. * src/HelpItemFactory.cc: Removed.
  892. * src/HelpItemFactory.h: Removed.
  893. * src/Makefile.am
  894. * src/Makefile.in
  895. * src/NameMatchOptionHandler.h
  896. * src/OptionHandler.cc
  897. * src/OptionHandler.h
  898. * src/OptionHandlerFactory.cc
  899. * src/OptionHandlerImpl.h
  900. * src/OptionParser.cc
  901. * src/OptionParser.h
  902. * src/TagContainer.cc: Removed.
  903. * src/TagContainer.h: Removed.
  904. * src/TaggedItem.cc: Removed.
  905. * src/TaggedItem.h: Removed.
  906. * src/main.cc
  907. * src/option_processing.cc
  908. * src/usage_text.h
  909. * src/version_usage.cc
  910. * test/HelpItemTest.cc: Removed.
  911. * test/Makefile.am
  912. * test/Makefile.in
  913. * test/OptionHandlerTest.cc
  914. * test/OptionParserTest.cc
  915. * test/TagContainerTest.cc: Removed.
  916. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  917. Moved `TransferStat stat = ...' to inside the `if' clause.
  918. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  919. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  920. Fixed the bug that a block in a piece is requested when same block is
  921. already requested to the same peer in end game mode.
  922. * src/BtRequestFactory.h
  923. * src/DefaultBtInteractive.cc
  924. * src/DefaultBtRequestFactory.cc
  925. * src/DefaultBtRequestFactory.h
  926. * src/DefaultPieceStorage.cc
  927. * src/DefaultPieceStorage.h
  928. * src/PieceStorage.h
  929. * src/UnknownLengthPieceStorage.cc
  930. * src/UnknownLengthPieceStorage.h
  931. * test/DefaultBtRequestFactoryTest.cc
  932. * test/DefaultPieceStorageTest.cc
  933. * test/MockBtRequestFactory.h
  934. * test/MockPieceStorage.h
  935. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  936. Removed _uploadLength and _downloadLength from PeerSessionResource
  937. and use PeerStat::_sessionUploadLength and
  938. PeerStat::_sessionDownloadLength.
  939. * src/PeerSessionResource.cc
  940. * src/PeerSessionResource.h
  941. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  942. Fixed the bug that prefixLength of split bucket which doesn't include
  943. local node ID is incremented.
  944. * src/DHTBucket.cc
  945. * src/DHTBucket.h
  946. * test/DHTBucketTest.cc
  947. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  948. Added cookies.sqlite to EXTRA_DIST
  949. * test/Makefile.am
  950. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  951. Added Turkish translation. Updated French, German, Russian and
  952. Simplified Chinese translations. Thanks to all translators.
  953. * po/LINGUAS
  954. * po/de.po
  955. * po/fr.po
  956. * po/ru.po
  957. * po/tr.po
  958. * po/zh_CN.po
  959. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  960. Added deliminating text to the beginning of the log so that one can find
  961. where the log starts easily.
  962. * src/main.cc
  963. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  964. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  965. to fix compile error when async DNS is not enabled by configuration.
  966. * src/AbstractCommand.cc
  967. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  968. If establishing conneciton to a server is failed, then mark error on
  969. its ServerStat.
  970. Added the cause of error to log when error event occurred.
  971. Moved message string to message.h for translation.
  972. * src/AbstractCommand.cc
  973. * src/AbstractCommand.h
  974. * src/FtpNegotiationCommand.cc
  975. * src/HttpRequestCommand.cc
  976. * src/PeerAbstractCommand.cc
  977. * src/message.h
  978. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  979. Added the function to get error message from socket.
  980. * src/SocketCore.cc
  981. * src/SocketCore.h
  982. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  983. Added convenient method RequestGroupMan::getOrCreateServerStat()
  984. * src/RequestGroupMan.cc
  985. * src/RequestGroupMan.h
  986. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  987. If error event is received in epoll, then abort download immediately.
  988. * src/AbstractCommand.cc
  989. * src/Command.cc
  990. * src/Command.h
  991. * src/DownloadEngine.cc
  992. * src/PeerAbstractCommand.cc
  993. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  994. Added usage message for --uri-selector, --server-stat-of,
  995. --server-stat-in, --server-stat-timeout options.
  996. * src/HelpItemFactory.cc
  997. * src/usage_text.h
  998. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  999. Added upper limit of FTP response buffer. The current implementation
  1000. uses 4096bytes as a limit.
  1001. * src/FtpConnection.cc
  1002. * src/FtpConnection.h
  1003. * test/FtpConnectionTest.cc
  1004. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1005. Use non-blocking socket for TCP communication to avoid possible
  1006. blocking due to buffer full.
  1007. * src/AbstractProxyRequestCommand.cc
  1008. * src/FtpConnection.cc
  1009. * src/FtpConnection.h
  1010. * src/FtpNegotiationCommand.cc
  1011. * src/FtpNegotiationCommand.h
  1012. * src/HttpConnection.cc
  1013. * src/HttpConnection.h
  1014. * src/HttpRequestCommand.cc
  1015. * src/InitiatorMSEHandshakeCommand.cc
  1016. * src/InitiatorMSEHandshakeCommand.h
  1017. * src/MSEHandshake.cc
  1018. * src/MSEHandshake.h
  1019. * src/Makefile.am
  1020. * src/PeerConnection.cc
  1021. * src/PeerConnection.h
  1022. * src/PeerInteractionCommand.cc
  1023. * src/PeerListenCommand.cc
  1024. * src/ReceiverMSEHandshakeCommand.cc
  1025. * src/ReceiverMSEHandshakeCommand.h
  1026. * src/SocketBuffer.cc
  1027. * src/SocketBuffer.h
  1028. * src/SocketCore.cc
  1029. * src/SocketCore.h
  1030. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1031. Call setStatusRealtime() in constructor.
  1032. * src/RealtimeCommand.cc
  1033. * src/RealtimeCommand.h
  1034. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1035. Call Download::setNoWait(true) to execute newly created command without
  1036. a pause.
  1037. * src/AbstractCommand.cc
  1038. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1039. Added --max-file-not-found=NUM option. If aria2 receives `file not
  1040. found' error from HTTP/FTP server NUM times without getting single
  1041. bytes of data, then force the download to fail.
  1042. Basically aria2 tris all URIs available. So if long list of URIs are
  1043. specified in Metalink, then aria2 will take a long time to fail
  1044. eventually if all URIs are outdated. This option eases this situation
  1045. to limit the number of servers to try.
  1046. * src/FtpNegotiationCommand.cc
  1047. * src/HelpItemFactory.cc
  1048. * src/HttpResponseCommand.cc
  1049. * src/OptionHandlerFactory.cc
  1050. * src/PeerStat.h
  1051. * src/RequestGroup.cc
  1052. * src/RequestGroup.h
  1053. * src/SegmentMan.cc
  1054. * src/SegmentMan.h
  1055. * src/option_processing.cc
  1056. * src/prefs.cc
  1057. * src/prefs.h
  1058. * src/usage_text.h
  1059. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1060. Fixed the bug that bulkReceiveResponse() reads all received data as a
  1061. response even if more than one response is in it.
  1062. * src/FtpConnection.cc
  1063. * src/FtpConnection.h
  1064. * test/FtpConnectionTest.cc
  1065. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1066. Merged from stable-0.15
  1067. * m4/libcares.m4
  1068. Use pkg-config
  1069. * m4/sqlite3.m4
  1070. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1071. Removed unnecessary if statement.
  1072. * src/DefaultPieceStorage.cc (initPieceStorage)
  1073. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1074. Added --connect-timeout option to specify connect timeout in seconds.
  1075. This option is in effect for HTTP/FTP/proxy server. The timeout for
  1076. connecting to BitTorrent peer is not controlled by this option.
  1077. * src/AbstractProxyRequestCommand.cc
  1078. * src/FtpNegotiationCommand.cc
  1079. * src/HelpItemFactory.cc
  1080. * src/HttpRequestCommand.cc
  1081. * src/OptionHandlerFactory.cc
  1082. * src/option_processing.cc
  1083. * src/prefs.cc
  1084. * src/prefs.h
  1085. * src/usage_text.h
  1086. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1087. Added help message for -R option.
  1088. * src/HelpItemFactory.cc
  1089. * src/usage_text.h
  1090. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1091. Added the message that the time is in local time zone.
  1092. * src/RequestGroup.cc
  1093. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1094. Implemented the ability to get timestamp from remote FTP server using
  1095. MDTM command described in RFC3659.
  1096. * src/FtpConnection.cc
  1097. * src/FtpConnection.h
  1098. * src/FtpNegotiationCommand.cc
  1099. * src/FtpNegotiationCommand.h
  1100. * test/FtpConnectionTest.cc
  1101. * test/Makefile.am
  1102. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1103. Implemented the ability to get timestamp from remote HTTP server and
  1104. apply it to local file. To enable this feature, --remote-time option
  1105. is added. No usage text has been written yet.
  1106. If several servers returns difference timestamp, then aria2 uses latest
  1107. one.
  1108. * src/CopyDiskAdaptor.cc
  1109. * src/CopyDiskAdaptor.h
  1110. * src/DirectDiskAdaptor.cc
  1111. * src/DirectDiskAdaptor.h
  1112. * src/DiskAdaptor.h
  1113. * src/File.cc
  1114. * src/File.h
  1115. * src/HttpHeader.cc
  1116. * src/HttpHeader.h
  1117. * src/HttpResponse.cc
  1118. * src/HttpResponse.h
  1119. * src/HttpResponseCommand.cc
  1120. * src/HttpResponseCommand.h
  1121. * src/MultiDiskAdaptor.cc
  1122. * src/MultiDiskAdaptor.h
  1123. * src/OptionHandlerFactory.cc
  1124. * src/RequestGroup.cc
  1125. * src/RequestGroup.h
  1126. * src/RequestGroupMan.cc
  1127. * src/option_processing.cc
  1128. * src/prefs.cc
  1129. * src/prefs.h
  1130. * test/CopyDiskAdaptorTest.cc
  1131. * test/FileTest.cc
  1132. * test/Makefile.am
  1133. * test/Makefile.in
  1134. * test/MultiDiskAdaptorTest.cc
  1135. * test/TestUtil.cc
  1136. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1137. Fixed the bug that DiskWriterEntry is not created when its
  1138. FileEntry.isRequested() is false and it doesn't share a piece with
  1139. other FileEntries that are requested. This bug causes segmentation fault
  1140. in the end.
  1141. * src/MultiDiskAdaptor.cc
  1142. * src/MultiDiskAdaptor.h
  1143. * src/MultiFileAllocationIterator.cc
  1144. * test/MultiDiskAdaptorTest.cc
  1145. * test/MultiFileAllocationIteratorTest.cc
  1146. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1147. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  1148. called if the number of file entries are greater than max open files.
  1149. * src/AbstractSingleDiskAdaptor.cc
  1150. * src/AbstractSingleDiskAdaptor.h
  1151. * src/DiskAdaptor.h
  1152. * src/MultiDiskAdaptor.cc
  1153. * src/MultiDiskAdaptor.h
  1154. * test/MultiDiskAdaptorTest.cc
  1155. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1156. Added a constuctor that receives struct timeval.
  1157. Added operator<.
  1158. * src/TimeA2.cc
  1159. * src/TimeA2.h
  1160. * test/TimeTest.cc
  1161. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1162. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  1163. * src/CookieParser.cc
  1164. * test/CookieParserTest.cc
  1165. * test/HttpResponseTest.cc
  1166. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1167. Implmented the functions to parse date.
  1168. * src/TimeA2.cc
  1169. * src/TimeA2.h
  1170. * test/TimeTest.cc
  1171. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1172. Added "Firefox3 Cookie" feature to FeatureConfig
  1173. * src/FeatureConfig.cc
  1174. * src/FeatureConfig.h
  1175. * test/FeatureConfigTest.cc
  1176. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1177. Bump up version number to 0.16.0b
  1178. * configure.ac
  1179. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1180. Use pkg-config if is is available.
  1181. * m4/openssl.m4
  1182. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1183. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  1184. * src/BtAnnounce.h
  1185. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1186. If an error occurred with a URI, remove identical URI from remaining
  1187. URI list because it is likely that same error occurred in the end and it
  1188. is waste of time.
  1189. * src/AbstractCommand.cc
  1190. * src/RequestGroup.cc
  1191. * src/RequestGroup.h
  1192. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1193. Removed wrong comment.
  1194. * src/DefaultPeerStorage.cc
  1195. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1196. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  1197. Added return value of getpid() to argument of srand() to achieve more
  1198. randomized value.
  1199. * src/SimpleRandomizer.cc
  1200. * src/SimpleRandomizer.h
  1201. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1202. Contact tracker frequently when the number of connections are 0 and
  1203. download is not finished yet.
  1204. * src/ActivePeerConnectionCommand.cc
  1205. * src/BtAnnounce.h
  1206. * src/DefaultBtAnnounce.cc
  1207. * src/DefaultBtAnnounce.h
  1208. * test/MockBtAnnounce.h
  1209. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1210. Moved threshold values to UTPexExtensionMessage.
  1211. * src/DefaultBtInteractive.cc
  1212. * src/Peer.cc
  1213. * src/Peer.h
  1214. * src/UTPexExtensionMessage.cc
  1215. * src/UTPexExtensionMessage.h
  1216. * test/UTPexExtensionMessageTest.cc
  1217. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1218. Added _incoming member to Peer class and made it true if the peer
  1219. initiated connection. Don't add those peer to UTPex message.
  1220. If extended handshake is received, assign _incoming to false.
  1221. * src/DefaultBtInteractive.cc
  1222. * src/HandshakeExtensionMessage.cc
  1223. * src/Peer.cc
  1224. * src/Peer.h
  1225. * src/PeerListenCommand.cc
  1226. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1227. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  1228. Encoding Decoder. Removed size threshold for turning off on the fly
  1229. inflation because resulting file may or may not be inflated depending
  1230. on the file size and I think it is not expected by users.
  1231. This change fixes segmentation fault when Metalink file contains gzipped
  1232. file and its filesize is provided.
  1233. * src/HttpResponseCommand.cc
  1234. * src/HttpResponseCommand.h
  1235. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1236. Made Cookie immutable.
  1237. * src/Cookie.cc
  1238. * src/Cookie.h
  1239. * src/CookieParser.cc
  1240. * src/CookieParser.h
  1241. * src/CookieStorage.cc
  1242. * test/CookieParserTest.cc
  1243. * test/CookieStorageTest.cc
  1244. * test/NsCookieParserTest.cc
  1245. * test/Sqlite3MozCookieParserTest.cc
  1246. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1247. Removed CookieBox, CookieBoxFactory.
  1248. * src/CookieBox.cc
  1249. * src/CookieBox.h
  1250. * src/CookieBoxFactory.cc
  1251. * src/CookieBoxFactory.h
  1252. * src/Makefile.am
  1253. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1254. Use CookieStorage class instead of CookieBox class.
  1255. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  1256. * src/AbstractProxyRequestCommand.cc
  1257. * src/CookieStorage.cc
  1258. * src/DownloadEngine.cc
  1259. * src/DownloadEngine.h
  1260. * src/HttpConnection.cc
  1261. * src/HttpConnection.h
  1262. * src/HttpRequest.cc
  1263. * src/HttpRequest.h
  1264. * src/HttpRequestCommand.cc
  1265. * src/HttpResponse.cc
  1266. * src/HttpResponseCommand.cc
  1267. * src/HttpSkipResponseCommand.cc
  1268. * src/Makefile.am
  1269. * src/MultiUrlRequestInfo.cc
  1270. * src/Request.cc
  1271. * src/Request.h
  1272. * src/main.cc
  1273. * test/AllTest.cc
  1274. * test/CookieStorageTest.cc
  1275. * test/CookieTest.cc
  1276. * test/HttpRequestTest.cc
  1277. * test/HttpResponseTest.cc
  1278. * test/Makefile.am
  1279. * test/NsCookieParserTest.cc
  1280. * test/Sqlite3MozCookieParserTest.cc
  1281. * test/nscookietest.txt
  1282. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1283. Updated
  1284. * test/Cookies.sqlite
  1285. * test/nscookietest.txt
  1286. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1287. Added tests for CookieStorage::load()
  1288. * test/CookieStorageTest.cc
  1289. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1290. Added CookieStorage class which is based on RFC2109 and manages cookies
  1291. more strictly than CookieBox and CookieBoxFactory class.
  1292. * src/CookieStorage.cc
  1293. * src/CookieStorage.h
  1294. * src/Cookie.cc
  1295. * src/Cookie.h
  1296. * test/CookieStorageTest.cc
  1297. * test/CookieTest.cc
  1298. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1299. Fixed the bug that commands are created more than the number of pieces.
  1300. * src/RequestGroup.cc
  1301. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1302. Fixed infinite loop bug in FTP when SIZE command failed.
  1303. * src/FtpNegotiationCommand.cc
  1304. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1305. Removed DirectDiskAdaptorTest.h
  1306. * test/Makefile.am
  1307. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1308. Fixed chunk checksum validation cannot detect trailing garbage data.
  1309. BUG#2074141
  1310. * src/AbstractSingleDiskAdaptor.cc
  1311. * src/AbstractSingleDiskAdaptor.h
  1312. * src/CheckIntegrityEntry.cc
  1313. * src/CheckIntegrityEntry.h
  1314. * src/DiskAdaptor.h
  1315. * src/MultiDiskAdaptor.cc
  1316. * src/MultiDiskAdaptor.h
  1317. * src/RequestGroup.cc
  1318. * test/DirectDiskAdaptorTest.cc
  1319. * test/MultiDiskAdaptorTest.cc
  1320. * test/TestUtil.cc
  1321. * test/TestUtil.h
  1322. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1323. Bump up version number of dht.dat file to 3. In version 3 format, time
  1324. is stored in 64bit, network byte order.
  1325. New build can load old format(version 2) but it saves the file in new
  1326. format. It means once you used new build, your dht.dat becomes
  1327. incompatible with older build.
  1328. * src/DHTRoutingTableDeserializer.cc
  1329. * src/DHTRoutingTableSerializer.cc
  1330. * test/DHTRoutingTableSerializerTest.cc
  1331. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1332. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  1333. * test/Makefile.am
  1334. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1335. Bump up version number of .aria2 control file to 0001.
  1336. New aria2 can still load version 0000 file but it saves the file in
  1337. version 0001 format. It means that new aria2 can resume download
  1338. started by old aria2 but the opposite is not true.
  1339. * src/DefaultBtProgressInfoFile.cc
  1340. * src/DefaultBtProgressInfoFile.h
  1341. * test/DefaultBtProgressInfoFileTest.cc
  1342. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1343. Added ntoh64 and hton64 as inline functions.
  1344. * src/Util.cc
  1345. * test/UtilTest.cc
  1346. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1347. Added sqlite3 depenency and Firefox3 cookie support.
  1348. * README
  1349. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1350. State that firefox3 cookie is supported explicitly in the usage.
  1351. * src/usage_text.h
  1352. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1353. Externalized message.
  1354. * src/RequestGroupMan.cc
  1355. * src/message.h
  1356. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1357. Save temporary file first and rename to the destination on success.
  1358. Added test cases.
  1359. * src/RequestGroupMan.cc
  1360. * test/RequestGroupManTest.cc
  1361. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1362. Fixed the bug that the number of connected peer is exceeding the limit
  1363. (55 by default) in seeding mode.
  1364. Multiplied 0.8 to _maxUploadSpeedLimit.
  1365. * src/ActivePeerConnectionCommand.cc
  1366. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1367. Clear table item.
  1368. * src/Dictionary.cc
  1369. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1370. Fixed error handling of lseek.
  1371. * src/AbstractDiskWriter.cc
  1372. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1373. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  1374. style cookie file.
  1375. * src/usage_text.h
  1376. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1377. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  1378. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  1379. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  1380. * src/Util.cc
  1381. * src/Util.h
  1382. * src/CookieParser.cc
  1383. * test/UtilTest.cc
  1384. * test/CookieParserTest.cc
  1385. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1386. Separate the implementation to load old mozilla format of cookie to
  1387. NsCookieParser class.
  1388. * src/CookieBoxFactory.cc
  1389. * src/CookieBoxFactory.h
  1390. * src/NsCookieParser.cc
  1391. * src/NsCookieParser.h
  1392. * test/NsCookieParserTest.cc
  1393. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1394. Made parse() const
  1395. * src/Sqlite3MozCookieParser.cc
  1396. * src/Sqlite3MozCookieParser.h
  1397. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1398. Added firefox3 cookie support based on the patch submitted by
  1399. tizianomueller.
  1400. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  1401. this functionality.
  1402. * configure.ac
  1403. * m4/sqlite3.m4
  1404. * src/CookieBoxFactory.cc
  1405. * src/CookieBoxFactory.h
  1406. * src/Makefile.am
  1407. * src/Makefile.in
  1408. * src/Sqlite3MozCookieParser.cc
  1409. * src/Sqlite3MozCookieParser.h
  1410. * src/main.cc
  1411. * test/CookieBoxFactoryTest.cc
  1412. * test/Makefile.am
  1413. * test/Makefile.in
  1414. * test/Sqlite3MozCookieParserTest.cc
  1415. * test/badcookies.sqlite
  1416. * test/cookies.sqlite
  1417. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1418. Added Danish and Greek translations.
  1419. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  1420. Great thanks to all translators.
  1421. * po/LINGUAS
  1422. * po/el.po
  1423. * po/da.po
  1424. * po/es.po
  1425. * po/ca.po
  1426. * po/nn.po
  1427. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1428. Fixed man page: --follow-bittorrent should be --follow-torrent
  1429. * doc/aria2c.1.txt
  1430. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1431. Fixed: numCommand is less than the value specified in -C option.
  1432. * src/RequestGroup.cc
  1433. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1434. Fixed occasional assertion failure in PieceSegment.
  1435. Calling PieceStorage::getMissingPiece(size_t) was missing after
  1436. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  1437. creation of duplicate segments and one of the segment was finished then
  1438. assertion failure was caused.
  1439. * src/SegmentMan.cc
  1440. * test/SegmentManTest.cc
  1441. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1442. Added options to load/save the server's performance/status to a file
  1443. and the timeout to drop their data.
  1444. --server-stat-of=FILE specifies the file to which performance data
  1445. is saved.
  1446. --server-stat-if=FILE specifies the file to read previously saved
  1447. by --server-stat-of option. Might be used with --uri-selector=feedback.
  1448. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  1449. TIMEOUT is specified in seconds and the default value is 24hours.
  1450. * src/MultiUrlRequestInfo.cc
  1451. * src/OptionHandlerFactory.cc
  1452. * src/RequestGroupMan.cc
  1453. * src/RequestGroupMan.h
  1454. * src/ServerStatMan.cc
  1455. * src/ServerStatMan.h
  1456. * src/option_processing.cc
  1457. * src/prefs.cc
  1458. * src/prefs.h
  1459. * test/ServerStatManTest.cc
  1460. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1461. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  1462. * src/ServerStatMan.cc
  1463. * src/ServerStatMan.h
  1464. * test/ServerStatManTest.cc
  1465. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1466. Implemented ServerStatMan::load(...) function and its test case.
  1467. * src/ServerStat.cc
  1468. * src/ServerStat.h
  1469. * src/ServerStatMan.cc
  1470. * test/ServerStatManTest.cc
  1471. * test/ServerStatTest.cc
  1472. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1473. Use time_t instead of int32_t. Use int64_t where milli second is
  1474. expected.
  1475. * src/TimeA2.cc
  1476. * src/TimeA2.h
  1477. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1478. Implemented ServerStatMan::save(...) function and its test case.
  1479. * src/ServerStat.cc
  1480. * src/ServerStat.h
  1481. * src/ServerStatMan.cc
  1482. * src/ServerStatMan.h
  1483. * test/ServerStatManTest.cc
  1484. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1485. Now aria2 uses name attribute in Metalink as local filename in
  1486. BitTorrent downloads. BUG#2033999
  1487. * src/BtContext.h
  1488. * src/BtDependency.cc
  1489. * src/DefaultBtContext.cc
  1490. * src/DefaultBtContext.h
  1491. * src/SingleFileDownloadContext.cc
  1492. * src/SingleFileDownloadContext.h
  1493. * test/BtDependencyTest.cc
  1494. * test/DefaultBtContextTest.cc
  1495. * test/MockBtContext.h
  1496. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1497. Added AC_C_BIGENDIAN
  1498. * src/configure.ac
  1499. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1500. Limited numCommand less than or equal to the number of piece.
  1501. * src/RequestGroup.cc
  1502. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1503. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  1504. directive.
  1505. * test/DefaultPieceStorageTest.cc
  1506. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1507. Fixed memory leak in test code
  1508. * test/AnnounceListTest.cc
  1509. * test/DefaultPeerListProcessorTest.cc
  1510. * test/DefaultPeerStorageTest.cc
  1511. * test/MetaFileUtilTest.cc
  1512. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1513. Fixed wrong argument passing to BitfieldMan::isBitSet()
  1514. * src/DefaultPieceStorage.cc
  1515. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1516. Initialized _directIOAllowed
  1517. * src/MultiDiskAdaptor.cc
  1518. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1519. Fixed memory leak
  1520. * src/GZipDecoder.cc
  1521. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1522. Fixed memory leak
  1523. * src/MetalinkParserStateMachine.cc
  1524. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1525. Fixed memory leak
  1526. * src/Dictionary.cc
  1527. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1528. Fixed memory leak
  1529. * src/IteratableChunkChecksumValidator.h
  1530. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1531. Fixed unmatched malloc/free.
  1532. * src/IteratableChunkChecksumValidator.cc
  1533. * src/IteratableChecksumValidator.cc
  1534. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1535. Removed max chunk size check. This change fixes BUG#2040169
  1536. * src/ChunkedDecoder.cc
  1537. * src/ChunkedDecoder.h
  1538. * test/ChunkedDecoderTest.cc
  1539. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1540. Implemented download speed based URI selection algorithm.
  1541. Introduced new option --uri-selector.
  1542. If --uri-selector=feedback is given, aria2 uses download speed observed
  1543. in the previous downloads and chooses fastest server in the URI list.
  1544. Currently at most 10 URIs are considered to introduce randomeness for
  1545. finding better servers. The speed is average download speed in the
  1546. downloads.
  1547. On the other hand, if --uri-selector=inorder is given, which is default,
  1548. URI is tried in order in URI list.
  1549. The usage text for the new option has not been written yet.
  1550. * src/AbstractCommand.cc
  1551. * src/DownloadCommand.cc
  1552. * src/DownloadEngine.cc
  1553. * src/DownloadEngineFactory.cc
  1554. * src/InOrderURISelector.cc
  1555. * src/InOrderURISelector.h
  1556. * src/OptionHandlerFactory.cc
  1557. * src/PeerStat.h
  1558. * src/RequestGroup.cc
  1559. * src/RequestGroup.h
  1560. * src/RequestGroupMan.cc
  1561. * src/RequestGroupMan.h
  1562. * src/SegmentMan.cc
  1563. * src/SegmentMan.h
  1564. * src/ServerStat.cc
  1565. * src/ServerStat.h
  1566. * src/ServerStatMan.cc
  1567. * src/ServerStatMan.h
  1568. * src/ServerStatURISelector.cc
  1569. * src/ServerStatURISelector.h
  1570. * src/URISelector.h
  1571. * src/option_processing.cc
  1572. * src/prefs.cc
  1573. * src/prefs.h
  1574. * test/InOrderURISelectorTest.cc
  1575. * test/RequestGroupManTest.cc
  1576. * test/ServerStatManTest.cc
  1577. * test/ServerStatURISelectorTest.cc
  1578. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1579. * Release 0.15.1+2
  1580. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1581. Bump up version number to 0.15.1+2
  1582. * configure.ac
  1583. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1584. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  1585. * m4/aria2_arg.m4
  1586. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1587. * Release 0.15.1+1
  1588. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1589. Bump up version number to 0.15.1+1
  1590. * configure.ac
  1591. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1592. Fixed the bug that causes segmentaion fault when resuming download
  1593. using metalink without size tag. Reproducible only using HTTP URI.
  1594. * src/HttpResponseCommand.cc
  1595. * src/FtpNegotiationCommand.cc
  1596. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1597. * Release 0.15.1
  1598. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1599. Updated Bulgarian and French translations, thanks to all translators.
  1600. * po/bg.po
  1601. * po/fr.po
  1602. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1603. Bump up version number to 0.15.1
  1604. * configure.ac
  1605. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1606. Avoid repeated call of gettimeofday() when calculating speed.
  1607. * src/SpeedCalc.cc
  1608. * src/SpeedCalc.h
  1609. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1610. Removed writable check when socket's send buffer is full in BitTorrent
  1611. downloads to lower CPU usage.
  1612. * src/PeerInteractionCommand.cc
  1613. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1614. Fixed broken gzip inflation.
  1615. Turn off segmented downloading if gzip content is smaller than or equal
  1616. to 1MiB and inflate the data on the fly, because HTTP response header
  1617. doesn't contain the length of inflated file we can't determin where
  1618. the chunk of data should be written.
  1619. On the other hand, if gzip content is larger than 1MB, then turn off
  1620. on the fly inflation, because some servers returns "content-type: gzip"
  1621. for *.tgz, *.gz files.
  1622. * src/DownloadCommand.cc
  1623. * src/HttpResponseCommand.cc
  1624. * src/HttpResponseCommand.h
  1625. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1626. Applied tizianomueller's patch to fix compile error.
  1627. * test/BitfieldManTest.cc
  1628. * test/BtRequestMessageTest.cc
  1629. * test/DefaultBtContextTest.cc
  1630. * test/DefaultDiskWriterTest.cc
  1631. * test/DefaultPieceStorageTest.cc
  1632. * test/HttpHeaderProcessorTest.cc
  1633. * test/HttpResponseTest.cc
  1634. * test/Metalink2RequestGroupTest.cc
  1635. * test/MetalinkParserControllerTest.cc
  1636. * test/MetalinkProcessorTest.cc
  1637. * test/PeerSessionResourceTest.cc
  1638. * test/UtilTest.cc
  1639. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1640. * Release 0.15.0
  1641. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1642. Reordered src files in POTFILES.in so that usage text appears first.
  1643. * po/POTFILES.in
  1644. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1645. Bump up version number to 0.15.0
  1646. * configure.ac
  1647. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1648. Added Bulgarian translation.
  1649. Updated Catalan, Spanish, French and Japanese translations.
  1650. Thanks to all translators.
  1651. * po/LINGUAS
  1652. * po/bg.po
  1653. * po/ca.po
  1654. * po/es.po
  1655. * po/fr.po
  1656. * po/ja.po
  1657. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1658. Updated feature list. Added libz for dependency section.
  1659. Added a description about unit testing using CppUnit.
  1660. * README
  1661. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1662. Added a test for libz. Quoted where it is necessary.
  1663. * build_test.sh
  1664. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1665. Added GZip to `Enabled Features' list.
  1666. * src/FeatureConfig.cc
  1667. * src/FeatureConfig.h
  1668. * test/FeatureConfigTest.cc
  1669. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1670. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  1671. the transfer has not yet started.
  1672. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  1673. * src/SegmentMan.cc
  1674. * src/SegmentMan.h
  1675. * test/SegmentManTest.cc
  1676. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1677. Cache last calculated average download/upload speed.
  1678. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  1679. cached value.
  1680. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  1681. * src/PeerStat.h
  1682. * src/SpeedCalc.cc
  1683. * src/SpeedCalc.h
  1684. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1685. Call parseUrl directly.
  1686. * src/Request.cc (resetUrl)
  1687. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1688. Supported absolute/relative path in Location header field.
  1689. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  1690. * src/HttpHeader.cc
  1691. * src/HttpHeader.h
  1692. * src/HttpResponse.cc
  1693. * src/HttpSkipResponseCommand.cc
  1694. * src/Request.cc
  1695. * test/HttpHeaderTest.cc
  1696. * test/HttpResponseTest.cc
  1697. * test/RequestTest.cc
  1698. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1699. Changed help text for --load-cookie option.
  1700. * doc/aria2c.1.txt
  1701. * src/usage_text.h
  1702. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1703. Regenerated test/Makefile.in to remove stale ChangeLog.
  1704. * test/Makefile.in
  1705. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1706. Updated po files.
  1707. * po/aria2c.pot
  1708. * po/*.po
  1709. * po/*.gmo
  1710. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1711. Bump up version number to 0.15.0b
  1712. * configure.ac
  1713. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1714. Externalize messages.
  1715. * src/RequestGroupMan.cc
  1716. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  1717. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1718. Use File::exists() instead of File::isFile() to allow non-regular file
  1719. such as block special files.
  1720. * src/AbstractDiskWriter.cc
  1721. * src/MultiDiskWriter.cc
  1722. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1723. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  1724. * src/gai_strerror.h
  1725. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1726. Fixed compile error. Thanks gknauf for the patch.
  1727. * src/asctime_r.c
  1728. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1729. Included asctime_r.h from a2time.h.
  1730. * src/a2time.h
  1731. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1732. Added a message "aria2 doesn't verify signature" to log message when
  1733. signature file is saved.
  1734. * src/RequestGroupMan.cc
  1735. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1736. Added the ability to save signature when download is completed if
  1737. signature is available. The filename of signature file is the path to
  1738. download file followed by ".sig". If it already exists, then signature
  1739. will not be saved.
  1740. * src/RequestGroupMan.cc
  1741. * src/Signature.cc
  1742. * test/SignatureTest.cc
  1743. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1744. Updated the descriptions for --bt-seed-unverified.
  1745. * doc/aria2c.1
  1746. * doc/aria2c.1.html
  1747. * doc/aria2c.1.txt
  1748. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1749. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  1750. that this is not going to verify files using piece hashes.
  1751. * src/HelpItemFactory.cc
  1752. * src/OptionHandlerFactory.cc
  1753. * src/RequestGroup.cc
  1754. * src/option_processing.cc
  1755. * src/prefs.cc
  1756. * src/prefs.h
  1757. * src/usage_text.h
  1758. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1759. Added the ability to retrieve signature from Metalink file.
  1760. A retrieved signature is stored in Signature class and it is held by
  1761. DownloadContext class. Note that aria2 doesn't verify signature.
  1762. * src/DownloadContext.cc
  1763. * src/DownloadContext.h
  1764. * src/Makefile.am
  1765. * src/Makefile.in
  1766. * src/Metalink2RequestGroup.cc
  1767. * src/MetalinkEntry.cc
  1768. * src/MetalinkEntry.h
  1769. * src/MetalinkParserController.cc
  1770. * src/MetalinkParserController.h
  1771. * src/MetalinkParserStateMachine.cc
  1772. * src/MetalinkParserStateMachine.h
  1773. * src/Signature.cc
  1774. * src/Signature.h
  1775. * src/SignatureMetalinkParserState.cc
  1776. * src/SignatureMetalinkParserState.h
  1777. * src/VerificationMetalinkParserState.cc
  1778. * src/VerificationMetalinkParserState.h
  1779. * test/Metalink2RequestGroupTest.cc
  1780. * test/MetalinkParserControllerTest.cc
  1781. * test/MetalinkProcessorTest.cc
  1782. * test/test.xml
  1783. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1784. Close DiskAdaptor after renaming file.
  1785. * src/RequestGroup.cc
  1786. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1787. Corrected indentation
  1788. * src/DefaultBtProgressInfoFile.cc
  1789. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1790. Moved the calls of std::ios::exceptions() inside of try-catch block
  1791. because if an error occurred in constructor of std::fstream, then
  1792. exception is thrown immediately when std::ios::exceptions() is called
  1793. which results unhandled exception and aria2c aborts.
  1794. * src/DefaultBtProgressInfoFile.cc
  1795. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1796. Added the test for the previous change in DefaultBtContext.cc
  1797. * test/DefaultBtContextTest.cc
  1798. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1799. Fixed the bug that causes infinite loop when the number of pieces are
  1800. fewer than allowed fast set size which is 10 by default.
  1801. * src/DefaultBtContext.cc
  1802. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1803. Updated the descriptions for -j, -s. Added --bt-seed.
  1804. * doc/aria2c.1
  1805. * doc/aria2c.1.html
  1806. * doc/aria2c.1.txt
  1807. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1808. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  1809. aria2 seeds previously downloaded files without validating piece hashs.
  1810. * src/HelpItemFactory.cc
  1811. * src/OptionHandlerFactory.cc
  1812. * src/RequestGroup.cc
  1813. * src/option_processing.cc
  1814. * src/prefs.cc
  1815. * src/prefs.h
  1816. * src/usage_text.h
  1817. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1818. Updated DESCRIPTION of man page.
  1819. * doc/aria2c.1
  1820. * doc/aria2c.1.html
  1821. * doc/aria2c.1.txt
  1822. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1823. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  1824. Don't define `struct addrinfo' when __sun is defined.
  1825. * src/getaddrinfo.h
  1826. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1827. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  1828. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  1829. second argument is of type `struct _stati64'. Otherwise it is defined as
  1830. `struct stat'.
  1831. * src/AbstractDiskWriter.cc
  1832. * src/File.cc
  1833. * src/File.h
  1834. * src/a2io.h
  1835. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1836. Fixed the compile error in hurd-i386
  1837. See the original bug report:
  1838. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  1839. * src/a2io.h
  1840. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1841. Code cleanup.
  1842. * src/PeerAbstractCommand.cc
  1843. * src/PeerAbstractCommand.h
  1844. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1845. Removed TransferEncoding.
  1846. * src/DownloadCommand.cc
  1847. * src/DownloadCommand.h
  1848. * src/HttpResponseCommand.cc
  1849. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1850. Updated po files.
  1851. * po/aria2c.pot
  1852. * po/*.po
  1853. * po/*.gmo
  1854. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1855. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  1856. * src/A2STR.cc
  1857. * src/A2STR.h
  1858. * src/ChunkedDecoder.cc
  1859. * src/ChunkedDecoder.h
  1860. * src/ChunkedEncoding.cc: Removed
  1861. * src/ChunkedEncoding.h: Removed
  1862. * src/DownloadCommand.cc
  1863. * src/DownloadCommand.h
  1864. * src/HttpDownloadCommand.cc
  1865. * src/HttpResponse.cc
  1866. * src/HttpResponse.h
  1867. * src/HttpResponseCommand.cc
  1868. * src/HttpSkipResponseCommand.cc
  1869. * src/HttpSkipResponseCommand.h
  1870. * src/Makefile.am
  1871. * src/TransferEncoding.h: Removed
  1872. * test/ChunkedDecoderTest.cc
  1873. * test/ChunkedEncodingTest.cc: Removed
  1874. * test/HttpResponseTest.cc
  1875. * test/Makefile.am
  1876. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1877. Use append instead of insert.
  1878. * src/GZipDecoder.cc
  1879. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1880. Updated doc
  1881. * src/Decoder.h
  1882. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1883. Updated usage text for -s option.
  1884. * src/usage_text.h
  1885. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1886. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  1887. * src/Request.cc
  1888. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1889. Cleaned up configure.ac.
  1890. * configure.ac
  1891. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1892. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  1893. AC_ARG_ENABLE.
  1894. * configure.ac
  1895. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1896. Added gzip, deflate decoding support in HTTP using libz. If compiled
  1897. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  1898. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  1899. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  1900. fly and writes decoded data to a local disk.
  1901. * README
  1902. * README.html
  1903. * configure.ac
  1904. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  1905. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  1906. * m4/libz.m4
  1907. * src/Decoder.h
  1908. * src/DownloadCommand.cc
  1909. * src/DownloadCommand.h
  1910. * src/Exception.h
  1911. * src/GZipDecoder.cc
  1912. * src/GZipDecoder.h
  1913. * src/HttpHeader.cc
  1914. * src/HttpHeader.h
  1915. * src/HttpRequest.cc
  1916. * src/HttpRequest.h
  1917. * src/HttpResponse.cc
  1918. * src/HttpResponse.h
  1919. * src/HttpResponseCommand.cc
  1920. * src/Makefile.am
  1921. * test/GZipDecoderTest.cc
  1922. * test/HttpRequestTest.cc
  1923. * test/HttpResponseTest.cc
  1924. * test/Makefile.am
  1925. * test/Makefile.in
  1926. * test/gzip_decode_test.gz
  1927. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1928. Clarified usage of -j option.
  1929. * src/usage_text.h
  1930. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1931. Disabled getting size from the response of RETR.
  1932. If SIZE command failed, then disable resuming and segmented downloading.
  1933. * src/FtpConnection.cc
  1934. * src/FtpConnection.h
  1935. * src/FtpNegotiationCommand.cc
  1936. * src/FtpNegotiationCommand.h
  1937. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1938. Use digits to find first byte of file size, which makes the intention
  1939. of the code clearer.
  1940. * src/FtpConnection.cc
  1941. Don't call validateTotalLength() when size is 0.
  1942. * src/FtpNegotiationCommand.cc
  1943. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1944. Updated po files.
  1945. * po/aria2c.pot
  1946. * po/*.gmo
  1947. * po/*.po
  1948. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1949. Clarified usage text for --split option.
  1950. * src/usage_text.h
  1951. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1952. Bump up version number to 0.15.0dev. "dev" means "development"
  1953. version, which means I started the development of the next release!
  1954. * src/configure.ac
  1955. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1956. If FTP server returns negative response with REST raw command and
  1957. requested range is not 0, throw exception. If requested range is 0,
  1958. continue download a file from 0 byte.
  1959. * src/FtpNegotiationCommand.cc
  1960. * src/FtpNegotiationCommand.h
  1961. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1962. Supported FTP server which don't recognize SIZE raw command.
  1963. If SIZE raw command is failed, aria2 will try to get file size
  1964. from the response of RETR raw command. If both attempts are failed,
  1965. then resuming and segmented downloading are disabled.
  1966. * src/FtpConnection.cc
  1967. * src/FtpConnection.h
  1968. * src/FtpNegotiationCommand.cc
  1969. * src/FtpNegotiationCommand.h
  1970. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1971. * Release 0.14.0+1
  1972. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1973. Bump up version number to 0.14.0+1
  1974. * src/configure.ac
  1975. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1976. Fixed the code that refers static member variable from non-static
  1977. context.
  1978. * src/DefaultPeerStorage.cc
  1979. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1980. * Release 0.14.0
  1981. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1982. Added build test script
  1983. * build_test.sh
  1984. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1985. Updated ja.po
  1986. * src/ja.po
  1987. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1988. Bump up version number to 0.14.0
  1989. * src/configure.ac
  1990. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1991. Updated ja.po and fr.po. Great thanks for french translators and
  1992. Sebastien WILLEMIJNS.
  1993. * po/fr.po
  1994. * po/ja.po
  1995. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1996. Added configure option to enable/disable epoll support.
  1997. * configure.ac
  1998. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1999. Updated man page.
  2000. * doc/aria2c.1.txt
  2001. * doc/aria2c.1
  2002. * doc/aria2c.1.html
  2003. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2004. Added missing default value '5' to the usage of --split option.
  2005. * src/HelpItemFactory.cc
  2006. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2007. Filled up pieces based on the number of missing blocks, rather than
  2008. simplay the number of piece * block length.
  2009. * src/BtRequestFactory.h
  2010. * src/DefaultBtInteractive.cc
  2011. * src/DefaultBtInteractive.h
  2012. * src/DefaultBtRequestFactory.cc
  2013. * src/DefaultBtRequestFactory.h
  2014. * src/Piece.cc
  2015. * src/Piece.h
  2016. * test/BitfieldManTest.cc
  2017. * test/DefaultBtRequestFactoryTest.cc
  2018. * test/MockBtRequestFactory.h
  2019. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2020. Made _epEvents a member variable.
  2021. * src/DownloadEngine.cc
  2022. * src/DownloadEngine.h
  2023. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2024. Cancel download if http redirect is bounded more than 20 times.
  2025. * src/AbstractCommand.cc
  2026. * src/HttpSkipResponseCommand.cc
  2027. * src/Request.cc
  2028. * src/Request.h
  2029. * test/RequestTest.cc
  2030. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2031. Fixed unhandled exception(removed keyword `new').
  2032. * src/SocketCore.cc (initEPOLL)
  2033. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2034. Removed visit(const MetaEntry*)
  2035. * src/MetaEntryVisitor.h:
  2036. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  2037. and made them virtual.
  2038. * src/BencodeVisitor.h
  2039. * src/BencodeVisitor.cc
  2040. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2041. Updated po files.
  2042. * po/aria2c.pot
  2043. * po/*.po
  2044. * po/*.gmo
  2045. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2046. Moved the call setWriteCheckSocket inside the previous clause to reduce
  2047. the number of socket to watch out.
  2048. * src/PeerInteractionCommand.cc
  2049. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2050. When there is not enough space in disk when writing a chunk of data,
  2051. aria2 now prints the message to the console to warn user and aborts
  2052. its download. Not all downloads are canceled because some downloads
  2053. may use another disk or partition. BUG#1640332
  2054. * src/AbstractDiskWriter.cc
  2055. * src/PeerAbstractCommand.cc
  2056. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  2057. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  2058. setHaltRequested(true) to cancel download.
  2059. * src/PeerInteractionCommand.h
  2060. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2061. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  2062. socket from int to sock_t as sockets are unsigned in Windows.
  2063. For AsyncNameResolver, DownloadEngine, I did additional modification
  2064. for the portion of the code changed according to epoll support.
  2065. I defined sock_t in a2netcompat.h to use sock_t without including
  2066. SocketCore.h.
  2067. * src/AsyncNameResolver.cc
  2068. * src/AsyncNameResolver.h
  2069. * src/DownloadEngine.cc
  2070. * src/DownloadEngine.h
  2071. * src/SocketCore.cc
  2072. * src/SocketCore.h
  2073. * src/a2netcompat.h
  2074. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2075. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  2076. changes in the patch were applied.
  2077. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  2078. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  2079. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  2080. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2081. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  2082. a2io.h and common.h were modified.
  2083. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  2084. MinGW.
  2085. * src/common.h: Changed off_t to 64 bit in MinGW.
  2086. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2087. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2088. only a2netcompat.h is modified.
  2089. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  2090. directives.
  2091. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2092. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2093. only gai_strerror.h is modified.
  2094. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  2095. winsock errors in MinGW.
  2096. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2097. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  2098. follow sources are applied.
  2099. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  2100. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  2101. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  2102. I included locale.h from Platform.cc.
  2103. * src/main.cc: Moved common setup/teardown code to Platform class.
  2104. * test/AllTest.cc: Use Platform class.
  2105. Set locale to C in AllTest.cc to prevent the messages to be localized.
  2106. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2107. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  2108. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  2109. * test/HttpRequestTest.cc: Casted to off_t where it should.
  2110. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2111. Applied Ross's aria2-0.13.2+1-mingw.patch and
  2112. aria2-0.13.2+1-mingw-2.patch.
  2113. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  2114. systems which don't have termious.h. I moved the directive inside of
  2115. if(isTTY) { ... clause so that line is wiped out without termious.h.
  2116. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  2117. anyway.
  2118. * src/asctime_r.h
  2119. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  2120. I added 2nd argument to the prototype declaration.
  2121. * src/StringFormat.cc: Get rid of vasprintf.
  2122. * src/getaddrinfo.h: Fixed constants.
  2123. * configure.ac: Added the check for asctime_r function.
  2124. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  2125. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2126. Added writable test for Socket when the sending message is in progress.
  2127. Usually the sending message is piece message. Without wriable check,
  2128. upload latency is dropped to more than 1sec.
  2129. * src/PeerInteractionCommand.cc
  2130. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2131. Create only requested files and files which shares a piece with
  2132. requested file in multi-torrent downloads. Directory structures are
  2133. also created in the same rule.
  2134. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  2135. DiskWriterEntry as in the previous implementation.
  2136. * src/MultiDiskWriter.cc
  2137. * src/MultiFileAllocationIterator.cc
  2138. * src/MultiFileAllocationIterator.h
  2139. * test/MultiFileAllocationIteratorTest.cc
  2140. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2141. Commented out -lprofiler
  2142. * src/Makefile.am
  2143. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2144. Bump up version number to 0.14.0b.
  2145. * src/configure.ac
  2146. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2147. Actively establish connection to peers in seeding, when peer cache
  2148. is not full and max upload speed limit is not reached.
  2149. * src/ActivePeerConnectionCommand.cc
  2150. * src/ActivePeerConnectionCommand.h
  2151. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2152. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  2153. to make room more fleshy, recently found peers.
  2154. Peer::_badConditionStartTime is not used anymore. Consider to remove
  2155. it.
  2156. * src/DefaultPeerStorage.cc
  2157. * test/DefaultPeerStorageTest.cc
  2158. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2159. Returns cached data only when the previous receiveHandshake() is called
  2160. with peek = true.
  2161. * src/PeerConnection.cc (receiveHandshake)
  2162. * src/PeerConnection.h (receiveHandshake)
  2163. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2164. Changed default value of -s option from 1 to 5.
  2165. Also max value of -s option is changed from 5 to 16.
  2166. * src/HelpItemFactory.cc
  2167. * src/OptionHandlerFactory.cc
  2168. * src/option_processing.cc
  2169. * src/usage_text.h
  2170. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2171. Changed -s options behavior. Now it means the number of connections
  2172. made simultaneously in each http/ftp download.
  2173. If 1 URL is specified, the behavior is the same with old implementation.
  2174. If -s N is given and more than N URLs are specified, first N URLs are
  2175. used and remaining URLs are used for backup. If less than N URLs are
  2176. specified, some of URLs are used more than once so that totally N
  2177. connections are made simultaneously.
  2178. * src/main.cc
  2179. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2180. Included missing iosfwd or ostream header.
  2181. * src/RequestGroupMan.cc
  2182. * src/TaggedItem.cc
  2183. * src/TaggedItem.h
  2184. * src/Util.cc
  2185. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2186. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  2187. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  2188. * src/HttpConnection.cc: Included missing sstream.
  2189. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2190. Added --bt-max-open-files option.
  2191. * src/DefaultPieceStorage.cc
  2192. * src/HelpItemFactory.cc
  2193. * src/MultiDiskAdaptor.cc
  2194. * src/MultiDiskAdaptor.h
  2195. * src/OptionHandlerFactory.cc
  2196. * src/option_processing.cc
  2197. * src/prefs.cc
  2198. * src/prefs.h
  2199. * src/usage_text.h
  2200. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2201. Fixed the bug that aria2 aborts when a path to a directory is given
  2202. in command-line.
  2203. * src/ProtocolDetector.cc
  2204. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2205. Limited the number files opened in each BitTorrent download. The default
  2206. value is 100. The option to change this value will be added.
  2207. * src/MultiDiskAdaptor.cc
  2208. * src/MultiDiskAdaptor.h
  2209. * src/MultiFileAllocationIterator.cc
  2210. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2211. Fixed the bug that HTTP downloads don't start with old libraries.
  2212. * src/HttpHeaderProcessor.cc
  2213. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2214. Use empty() instead of size() > 0.
  2215. * src/HttpConnection.cc
  2216. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2217. Drop connection if the incoming peer ID is the same with localhost's
  2218. one. The previous implementation drops connection when incoming peer's
  2219. IP address is the same with localhost's one.
  2220. * src/PeerListenCommand.cc
  2221. * src/DefaultBtInteractive.cc
  2222. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2223. Returns cached data without checking whether socket is readable
  2224. if the cache is available.
  2225. * src/PeerConnection.cc (receiveHandshake)
  2226. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2227. Included stdint.h
  2228. * src/common.h
  2229. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2230. Removed duplicate HAVE_GETTIMEOFDAY
  2231. * src/Makefile.am
  2232. * src/Makefile.in
  2233. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2234. Use interval as a minInterval when minInterval is not supplied.
  2235. * src/DefaultBtAnnounce.cc
  2236. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2237. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  2238. attempt is failed, then 2nd attempt get kicked out more quickly.
  2239. And it is now static const member of DefaultBtAnnounce.
  2240. * src/DefaultBtAnnounce.h
  2241. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2242. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  2243. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  2244. * src/ActivePeerConnectionCommand.cc
  2245. * src/BtConstants.h
  2246. * src/BtRuntime.h
  2247. * src/DHTGetPeersCommand.cc
  2248. * src/DefaultBtAnnounce.cc
  2249. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  2250. BtRuntime::MAX_PEERS.
  2251. * src/DefaultPeerStorage.h
  2252. * src/InitiatorMSEHandshakeCommand.cc
  2253. * src/PeerInitiateConnectionCommand.cc
  2254. * src/PeerInteractionCommand.cc
  2255. * src/PeerReceiveHandshakeCommand.cc
  2256. * src/TrackerWatcherCommand.cc
  2257. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2258. Always Connect to _numNewConnection
  2259. * src/ActivePeerConnectionCommand.cc
  2260. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2261. Made `begin' unsigned int.
  2262. * src/GrowSegment.h
  2263. * src/Piece.cc
  2264. * src/Piece.h
  2265. * src/PiecedSegment.cc
  2266. * src/PiecedSegment.h
  2267. * src/Segment.h
  2268. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2269. Calculate piece hash when data is arrived if the data is arrived in
  2270. order. This removes additional read operation for hash calculation.
  2271. If the data is arrived in out of order, the hash is calucated when the
  2272. piece is completed. This is the same behavior as the old implementation.
  2273. * src/BtPieceMessage.cc
  2274. * src/DefaultBtProgressInfoFile.cc
  2275. * src/DefaultPieceStorage.cc
  2276. * src/DownloadCommand.cc
  2277. * src/DownloadCommand.h
  2278. * src/DownloadEngine.cc
  2279. * src/GrowSegment.cc
  2280. * src/GrowSegment.h
  2281. * src/Piece.cc
  2282. * src/Piece.h
  2283. * src/PiecedSegment.cc
  2284. * src/PiecedSegment.h
  2285. * src/Segment.h
  2286. * test/PieceTest.cc
  2287. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2288. Try to keep the ordering of outgoing piece message.
  2289. * src/DefaultBtMessageDispatcher.cc
  2290. (DefaultBtMessageDispatcher::sendMessages)
  2291. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2292. Fixed busy loop when error/hup epoll events occur.
  2293. * src/AbstractCommand.cc
  2294. * src/PeerAbstractCommand.cc
  2295. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2296. Added --bt-request-peer-speed-limit option, which was a constant
  2297. SLOW_SPEED_THRESHOLD.
  2298. * src/ActivePeerConnectionCommand.cc
  2299. * src/ActivePeerConnectionCommand.h
  2300. * src/BtConstants.h
  2301. * src/HelpItemFactory.cc
  2302. * src/OptionHandlerFactory.cc
  2303. * src/PeerReceiveHandshakeCommand.cc
  2304. * src/option_processing.cc
  2305. * src/prefs.cc
  2306. * src/prefs.h
  2307. * src/usage_text.h
  2308. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2309. Removed repeated call of getTopDirPath(). Instead, call it once and
  2310. cache the result.
  2311. * src/MultiDiskAdaptor.cc
  2312. * src/MultiDiskAdaptor.h
  2313. (mkdir, openFile, initAndOpenFile, openExistingFile)
  2314. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2315. Fixed compile error on debian etch.
  2316. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  2317. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  2318. it is undefined.
  2319. * src/Util.cc (ULLONG_MAX)
  2320. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2321. Added epoll support. Use epoll if it is available. If not, use select.
  2322. When async dns is enabled in compile time, epoll support is enabled
  2323. only when aria2 is built with c-ares. This condition statement is
  2324. defined in a2io.h.
  2325. Currently aria2 supports both c-ares and ares, but ares is maintained
  2326. for quite a while and debian already has c-ares package, ares support
  2327. will be dropped in the future version.
  2328. * configure.ac
  2329. * src/AbstractCommand.cc
  2330. * src/AsyncNameResolver.cc
  2331. * src/AsyncNameResolver.h
  2332. * src/Command.cc
  2333. * src/Command.h
  2334. * src/DownloadEngine.cc
  2335. * src/DownloadEngine.h
  2336. * src/PeerAbstractCommand.cc
  2337. * src/SocketCore.cc
  2338. * src/SocketCore.h
  2339. * src/a2io.h
  2340. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2341. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  2342. directive.
  2343. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2344. Do not do write operation to /dev/null file.
  2345. * src/LogFactory.cc
  2346. * src/SimpleLogger.cc
  2347. Replaced vasprintf with vsnprintf
  2348. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2349. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2350. * src/BtRequestMessage.cc
  2351. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  2352. for segmentation fault caused by previous commit.
  2353. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2354. Reduced the usage of gettimeofday().
  2355. * src/DefaultBtMessageDispatcher.cc
  2356. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  2357. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2358. * src/RequestSlot.cc
  2359. * src/RequestSlot.h
  2360. (RequestSlot::isTimeout)
  2361. Made RequestSlot have a reference to Piece object to avoid find
  2362. Piece repeatedly.
  2363. * src/DefaultBtMessageDispatcher.cc
  2364. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  2365. * src/RequestSlot.cc
  2366. * src/RequestSlot.h
  2367. (RequestSlot::getPiece)
  2368. * test/DefaultBtMessageDispatcherTest.cc
  2369. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2370. * src/TimeA2.cc
  2371. * src/TimeA2.h
  2372. (Time::difference): New function.
  2373. (Time::elapsed): Done optimization.
  2374. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2375. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  2376. directive.
  2377. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2378. * src/option_processing.cc: Added missing `defined' keyword to #if
  2379. directive.
  2380. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2381. Bump up version number to 0.13.2+1
  2382. * src/configure.ac
  2383. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2384. Refactored broken outstanding piece handling.
  2385. * src/DefaultPieceStorage.cc
  2386. * src/DefaultPieceStorage.h
  2387. * src/Piece.cc
  2388. * src/Piece.h
  2389. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2390. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  2391. name collision of static variable and predefined macro.
  2392. * src/BtContext.cc
  2393. * src/BtContext.h
  2394. * src/CookieBoxFactory.cc
  2395. * src/CookieBoxFactory.h
  2396. * src/CookieParser.cc
  2397. * src/CookieParser.h
  2398. * src/DefaultBtContext.cc
  2399. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2400. * src/RequestGroup.cc
  2401. (RequestGroup::createInitialCommand): Use empty() instead of size().
  2402. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2403. * Release 0.13.2
  2404. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2405. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  2406. * po/fr.po
  2407. * po/ja.po
  2408. * po/aria2c.pot
  2409. * po/*.po
  2410. * po/*.gmo
  2411. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2412. Bump up version number to 0.13.2
  2413. * src/configure.ac
  2414. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2415. Refactord.
  2416. * src/RequestGroupMan.cc
  2417. (removeStoppedGroup)
  2418. (fillRequestGroupFromReserver)
  2419. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2420. Fixed compile error on Ubuntu.
  2421. * src/BtPieceMessage.cc
  2422. * src/MessageDigestHelper.cc
  2423. * src/Util.cc
  2424. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2425. Fixed compile error when configured with --disable-bittorrent
  2426. * test/DownloadHandlerFactoryTest.cc
  2427. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2428. Done make update-po
  2429. * po/aria2c.pot
  2430. * po/*.po
  2431. * po/*.gmo
  2432. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2433. Bump up version number to 0.13.2rc.
  2434. * src/configure.ac
  2435. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2436. Made option name bold. Updated SYNOPSIS to make it more readable.
  2437. * doc/aria2c.1.txt
  2438. * doc/aria2c.1
  2439. * doc/aria2c.1.html
  2440. * src/version_usage.cc
  2441. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2442. Refactored. Use std::string instead of size and char*.
  2443. * Data.cc
  2444. * Data.h
  2445. * test/Data.cc
  2446. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2447. Added trimSelf(). Rewritten trim() to use trimSelf().
  2448. * Util.cc
  2449. * Util.h
  2450. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2451. * src/ChunkChecksum.h (getChecksum): Return const reference.
  2452. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2453. Fixed compile error when configured with --disable-metalink.
  2454. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  2455. * test/FeatureConfigTest.cc
  2456. * test/DownloadHandlerFactoryTest.cc
  2457. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2458. Fixed compile error when configured with --without-gnutls
  2459. --without-openssl
  2460. * src/main.cc
  2461. * test/DefaultBtProgressInfoFileTest.cc
  2462. * test/SegmentManTest.cc
  2463. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2464. Fixed compile error with OpenSSL.
  2465. * src/IteratableChunkChecksumValidator.cc
  2466. * src/LibsslDHKeyExchange.h
  2467. * src/MessageDigestHelper.cc
  2468. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2469. Revert the default value of --max-concurrent-downloads to 5.
  2470. Revert the default value of --metalink-servers to 5.
  2471. Man pages was also updated.
  2472. * src/option_processing.cc
  2473. * doc/aria2c.1.txt
  2474. * doc/aria2c.1.html
  2475. * doc/aria2c.1
  2476. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2477. Returns const reference:
  2478. DownloadContext::getPieceHash, DownloadContext::getName,
  2479. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  2480. BtContext::getInfoHashAsString,
  2481. * src/BtContext.h
  2482. * src/DefaultBtContext.cc
  2483. * src/DefaultBtContext.h
  2484. * src/DownloadContext.h
  2485. * src/SingleFileDownloadContext.h
  2486. * test/MockBtContext.h
  2487. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2488. * src/RequestGroup.h (getDir): Removed.
  2489. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2490. Returns const reference. The internal urlencode function was optimized
  2491. a little bit.
  2492. * src/Request.cc
  2493. * src/Request.h
  2494. * src/HttpRequest.cc
  2495. * src/HttpRequest.h
  2496. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2497. Defined option name and possible values as std::string to reduce
  2498. temporary string object creation in runtime.
  2499. * src/HelpItemFactory.cc
  2500. * src/LogFactory.cc
  2501. * src/Option.cc
  2502. * src/OptionHandlerFactory.cc
  2503. * src/option_processing.cc
  2504. * src/prefs.cc
  2505. * src/prefs.h
  2506. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2507. Return const reference.
  2508. * src/DownloadHandlerConstants.cc
  2509. * src/DownloadHandlerConstants.h
  2510. (getMetalinkExtensions)
  2511. (getMetalinkContentTypes)
  2512. (getBtExtensions)
  2513. (getBtContentTypes)
  2514. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2515. * src/HttpHeader.cc (get): Rewritten.
  2516. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2517. Make HttpHeader::getFirst(...) return const reference.
  2518. * src/HttpHeader.cc
  2519. * src/HttpHeader.h
  2520. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2521. Use Option::getAsBool(...) instead of Option::get(...) and compare
  2522. it with V_TRUE.
  2523. * src/DefaultPieceStorage.cc
  2524. * src/DownloadCommand.cc
  2525. * src/FtpNegotiationCommand.cc
  2526. * src/HttpRequest.cc
  2527. * src/InitiateConnectionCommand.cc
  2528. * src/RequestGroup.cc
  2529. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2530. Made Option::get(...) return const reference of std::string.
  2531. * src/Option.cc
  2532. * src/Option.h
  2533. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2534. Replaced std:copy with insert.
  2535. * src/DefaultBtMessageDispatcher.cc
  2536. * src/DefaultPieceStorage.cc
  2537. * src/DownloadEngineFactory.cc
  2538. * src/RequestGroup.cc
  2539. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2540. Included SocketCore.h to fix compiler warning.
  2541. * src/InitiateConnectionCommand.cc
  2542. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2543. Put piece selection strategy algorithm to RarestPieceSelector class,
  2544. Added a switch to choose whether randomized selection so that unit
  2545. tests emit same results in, possibly, win32.
  2546. * src/DefaultPieceStorage.cc
  2547. * src/DefaultPieceStorage.h
  2548. * src/RarestPieceSelector.cc
  2549. * src/RarestPieceSelector.h
  2550. * test/DefaultPieceStorageTest.cc
  2551. * test/RarestPieceSelectorTest.cc
  2552. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2553. Don't pool connection if HTTP proxy is enabled.
  2554. * src/FtpFinishDownloadCommand.cc
  2555. * src/FtpNegotiationCommand.cc
  2556. * src/HttpSkipResponseCommand.cc
  2557. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2558. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  2559. * src/AbstractCommand.cc
  2560. * src/AbstractCommand.h
  2561. * src/ActivePeerConnectionCommand.cc
  2562. * src/FtpInitiateConnectionCommand.cc
  2563. * src/HttpInitiateConnectionCommand.cc
  2564. * src/InitiateConnectionCommandFactory.cc
  2565. * src/PeerAbstractCommand.cc
  2566. * src/PeerAbstractCommand.h
  2567. * src/PeerInitiateConnectionCommand.cc
  2568. * src/TrackerWatcherCommand.cc
  2569. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2570. Sort RequestSlot in ascending order and manipulate them using
  2571. lower_bound.
  2572. * src/DefaultBtMessageDispatcher.cc
  2573. * src/DefaultBtMessageDispatcher.h
  2574. (getMessageQueue): Added const qualifier.
  2575. (getRequestSlots): Added const qualifier.
  2576. (sendMessages): Use empty() instead of size().
  2577. (doCancelSendingPieceAction): Use HandleEvent object.
  2578. (doAbortOutstandingRequestAction): Rewritten.
  2579. (doChokedAction): Rewritten.
  2580. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  2581. (isOutstandingRequest): Rewritten.
  2582. (getOutstandingRequest): Rewritten.
  2583. (removeOutstandingRequest): Rewritten.
  2584. (addOutstandingRequest): Rewritten.
  2585. * src/RequestSlot.cc
  2586. * src/RequestSlot.h
  2587. (operator=): Rewritten.
  2588. (operator!=): New function.
  2589. (operator<): New function.
  2590. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2591. * src/DefaultBtRequestFactory.cc
  2592. (doChokedAction): Rewritten.
  2593. (removeCompletedPiece): Rewritten.
  2594. (removeTargetPiece): Rewritten.
  2595. (createRequestMessages): Added the debug log.
  2596. (createRequestMessagesOnEndGame: Added the debug log.
  2597. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2598. Added the debug log message.
  2599. * src/BtPieceMessage.cc (doReceivedAction)
  2600. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2601. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  2602. used lower_bound to process them rather than linear search.
  2603. * src/DHTPeerAnnounceStorage.cc
  2604. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2605. Call subtractPieceStats from ~PeerInteractionCommand only when the
  2606. peer has at least one completed piece.
  2607. * src/Peer.cc
  2608. * src/Peer.h
  2609. * src/PeerInteractionCommand.cc
  2610. * src/PeerSessionResource.cc
  2611. * src/PeerSessionResource.h
  2612. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2613. Removed unnecessary sorting
  2614. * src/DefaultPieceStorage (DefaultPieceStorage)
  2615. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2616. Rewritten the portion of the code that mangaes allowed fast indexes.
  2617. * src/PeerSessionResource.cc
  2618. * src/PeerSessionResource.h
  2619. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2620. Removed the invalid string including '\r' from ru.po and
  2621. did make update-po.
  2622. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2623. Added --log-level and --summary-interval to man page.
  2624. * doc/aria2c.1.txt
  2625. * doc/aria2c.1.html
  2626. * doc/aria2c.1
  2627. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2628. Added --log-level option to specify log level. Log messages under
  2629. the specified level are not output. Default value is `debug'.
  2630. * src/HelpItemFactory.cc
  2631. * src/LogFactory.cc
  2632. * src/LogFactory.h
  2633. * src/Logger.h
  2634. * src/OptionHandlerFactory.cc
  2635. * src/SimpleLogger.cc
  2636. * src/SimpleLogger.h
  2637. * src/main.cc
  2638. * src/option_processing.cc
  2639. * src/prefs.h
  2640. * src/usage_text.h
  2641. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2642. Print download progress summary of all parallel downloads in specified
  2643. interval, default 60 secs. While aria2 could download several files
  2644. in parallel (see -j option), it displayed just first download progress,
  2645. and the other downloads are hidden from the users. This new feature
  2646. prints all downloads currently in-progress to the console so that you
  2647. can check the status of all downloads. The interval can be adjusted
  2648. by --summary-interval option.
  2649. The progress readout is now cut so that all fits in the one line of
  2650. console.
  2651. * src/ConsoleStatCalc.cc
  2652. * src/ConsoleStatCalc.h
  2653. * src/HelpItemFactory.cc
  2654. * src/OptionHandlerFactory.cc
  2655. * src/RequestGroupMan.cc
  2656. * src/RequestGroupMan.h
  2657. * src/main.cc
  2658. * src/option_processing.cc
  2659. * src/prefs.h
  2660. * src/usage_text.h
  2661. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2662. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  2663. * src/DownloadEngine.cc (DownloadEngine)
  2664. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2665. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  2666. defined.
  2667. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  2668. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2669. Use erase+lower_bound+insert instead of sort.
  2670. * src/DefaultPieceStorage.cc (addPieceStats)
  2671. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2672. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  2673. * src/A2STR.cc
  2674. * src/A2STR.h
  2675. * src/OptionParser.cc (parse)
  2676. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2677. Defined fake filename `[tracker.announce]' as static const std::string.
  2678. * src/TrackerWatcherCommand.cc (createRequestGroup)
  2679. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2680. Defined default filename `index.html' as static const std::string
  2681. * src/SingleFileDownloadContext.cc
  2682. * src/SingleFileDownloadContext.h
  2683. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2684. Defined "[MEMORY]" as static const std::string.
  2685. * src/MemoryBufferPreDownloadHandler.cc (execute)
  2686. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2687. Defined control file's version number as static const std::string.
  2688. * src/DefaultBtProgressInfoFile.cc
  2689. * src/DefaultBtProgressInfoFile.h
  2690. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2691. Use Request::METHOD_GET
  2692. * src/RequestGroup.cc (createNextCommandWithAdj)
  2693. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2694. Defined "OK", "ERR", "INPR" as static const std::string
  2695. * src/RequestGroupMan.cc (showDownloadResults)
  2696. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2697. Defined default client used in extended handshake as static const
  2698. std::string
  2699. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  2700. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2701. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  2702. * src/HttpConnection.cc (eraseConfidentialInfo)
  2703. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2704. Defined default ftp user and password as static const std::string
  2705. * src/AuthConfigFactory.cc
  2706. * src/AuthConfigFactory.h
  2707. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2708. Defined strings used in netrc as static const std::string
  2709. * src/Netrc.cc
  2710. * src/Netrc.h
  2711. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2712. Defined HTTP status as static const std::string
  2713. * src/AbstractProxyResponseCommand.cc
  2714. * src/HttpHeader.cc
  2715. * src/HttpHeader.h
  2716. * src/HttpResponse.cc
  2717. * src/HttpResponseCommand.cc
  2718. * src/HttpSkipResponseCommand.cc
  2719. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2720. Defined "\r\n", "A", "I" as static const std::string
  2721. * src/A2STR.cc
  2722. * src/A2STR.h
  2723. * src/FtpConnection.cc
  2724. * src/FtpConnection.h
  2725. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2726. Added COLON_C(".") and used it in Request::parseUrl()
  2727. * src/A2STR.cc
  2728. * src/A2STR.h
  2729. * src/Request.cc (parseUrl)
  2730. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2731. Changed the type of padName from `const std::string&' to `const char*'.
  2732. * src/MSEHandshake.cc (verifyPadLength)
  2733. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2734. Defined "sha1" as static const std::string.
  2735. * src/MetalinkParserController.cc
  2736. * src/MetalinkParserController.h
  2737. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2738. Defined message digest algorithm name as static const std::string
  2739. * src/DHTTokenTracker.cc
  2740. * src/DHTUtil.cc
  2741. * src/DefaultBtContext.cc
  2742. * src/MSEHandshake.cc
  2743. * src/MessageDigestHelper.cc
  2744. * src/Peer.cc
  2745. * src/messageDigest.cc
  2746. * src/messageDigest.h
  2747. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2748. Made string literals used in SAX parser static const std::string.
  2749. * src/FileMetalinkParserState.cc
  2750. * src/FileMetalinkParserState.h
  2751. * src/FilesMetalinkParserState.cc
  2752. * src/FilesMetalinkParserState.h
  2753. * src/InitialMetalinkParserState.cc
  2754. * src/InitialMetalinkParserState.h
  2755. * src/MetalinkMetalinkParserState.cc
  2756. * src/MetalinkMetalinkParserState.h
  2757. * src/PiecesMetalinkParserState.cc
  2758. * src/PiecesMetalinkParserState.h
  2759. * src/ResourcesMetalinkParserState.cc
  2760. * src/ResourcesMetalinkParserState.h
  2761. * src/VerificationMetalinkParserState.cc
  2762. * src/VerificationMetalinkParserState.h
  2763. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2764. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  2765. * src/A2STR.cc
  2766. * src/A2STR.h
  2767. * src/File.cc
  2768. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2769. Defined static const std::string IP("ip"), PORT("port") and use them
  2770. instead of string literals.
  2771. * src/DefaultPeerListProcessor.cc
  2772. * src/DefaultPeerListProcessor.h
  2773. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2774. Made string literals for torrent file processing static const
  2775. std::string.
  2776. * src/BtContext.cc
  2777. * src/BtContext.h
  2778. * src/DefaultBtContext.cc
  2779. * src/DefaultBtContext.h
  2780. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2781. Made string literal for tracker response static const std::string
  2782. * src/BtAnnounce.cc
  2783. * src/BtAnnounce.h
  2784. * src/DefaultBtAnnounce.cc
  2785. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2786. Use DHTMessage::T instead of "t".
  2787. * src/DHTMessageTracker.cc (messageArrived)
  2788. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2789. Made keyName static const. Made trimmed charset static const
  2790. std::string.
  2791. * src/Util.cc (getContentDispositionFilename)
  2792. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2793. Made USER_AGENT const. Made "/" static const std::string.
  2794. * src/A2STR.cc
  2795. * src/A2STR.h
  2796. * src/HttpRequest.cc
  2797. * src/HttpRequest.h
  2798. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2799. Made string listeral to static const std::string:
  2800. "Content-Range", "Content-Length"
  2801. * src/HttpHeader.cc
  2802. * src/HttpHeader.h
  2803. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2804. Made string listeral to static const std::string.
  2805. * src/HttpConnection.cc
  2806. * src/HttpHeader.cc
  2807. * src/HttpHeader.h
  2808. * src/HttpResponse.cc
  2809. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2810. Made string listeral to static const std::string.
  2811. * src/A2STR.cc
  2812. * src/A2STR.h
  2813. * src/SimpleLogger.cc
  2814. * src/SimpleLogger.h
  2815. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2816. Made string literal to static const std::string.
  2817. Rewritten CookieParser::setField.
  2818. * src/A2STR.cc
  2819. * src/A2STR.h
  2820. * src/CookieBoxFactory.cc
  2821. * src/CookieBoxFactory.h
  2822. * src/CookieParser.cc
  2823. * src/CookieParser.h
  2824. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2825. Made string literal to static const std::string
  2826. * src/DHTAbstractMessage.cc
  2827. * src/DHTAnnouncePeerMessage.cc
  2828. * src/DHTAnnouncePeerMessage.h
  2829. * src/DHTAnnouncePeerReplyMessage.cc
  2830. * src/DHTAnnouncePeerReplyMessage.h
  2831. * src/DHTFindNodeMessage.cc
  2832. * src/DHTFindNodeMessage.h
  2833. * src/DHTFindNodeReplyMessage.cc
  2834. * src/DHTFindNodeReplyMessage.h
  2835. * src/DHTGetPeersMessage.cc
  2836. * src/DHTGetPeersMessage.h
  2837. * src/DHTGetPeersReplyMessage.cc
  2838. * src/DHTGetPeersReplyMessage.h
  2839. * src/DHTMessage.cc
  2840. * src/DHTMessage.h
  2841. * src/DHTMessageFactoryImpl.cc
  2842. * src/DHTMessageReceiver.cc
  2843. * src/DHTPingMessage.cc
  2844. * src/DHTPingMessage.h
  2845. * src/DHTPingReplyMessage.cc
  2846. * src/DHTPingReplyMessage.h
  2847. * src/DHTQueryMessage.cc
  2848. * src/DHTQueryMessage.h
  2849. * src/DHTResponseMessage.cc
  2850. * src/DHTResponseMessage.h
  2851. * src/DHTUnknownMessage.cc
  2852. * src/DHTUnknownMessage.h
  2853. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2854. Made string literal to static const std::string
  2855. * src/BtChokeMessage.cc (toString)
  2856. * src/BtHaveAllMessage.cc (toString)
  2857. * src/BtHaveNoneMessage.cc (toString)
  2858. * src/BtInterestedMessage.cc (toString)
  2859. * src/BtNotInterestedMessage.cc (toString)
  2860. * src/BtUnchokeMessage.cc (toString)
  2861. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2862. Replaced "" with static const variable A2STR::NIL.
  2863. Replaced string comparison against "" with std::string::empty().
  2864. Added PROTO_* to Request class and use them as a protocol string
  2865. constant.
  2866. Made "started", "stopped", "completed" static const variable in
  2867. AnnounceList class.
  2868. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2869. Updated translations. Great thanks to translators.
  2870. * po/ca.po
  2871. * po/de.po
  2872. * po/fr.po
  2873. * po/it.po
  2874. * po/ja.po
  2875. * po/ru.po
  2876. * po/zh_CN.po
  2877. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2878. Updated man page; categorized options and fixed typo.
  2879. * doc/aria2c.1.txt
  2880. * doc/aria2c.1.html
  2881. * doc/aria2c.1
  2882. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2883. Removed const ref
  2884. * src/MetalinkEntry.cc (AddProtocolPreference)
  2885. * src/RequestGroup.cc (FindServerHostByHostname)
  2886. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2887. Rewritten Accept-Features handling.
  2888. * src/HttpRequestCommand.cc (createHttpRequest)
  2889. * src/a2functional.h
  2890. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2891. Changed method signature:
  2892. DHTAbstractNodeLookupTask::toEntries
  2893. * src/DHTAbstractNodeLookupTask.cc
  2894. * src/DHTAbstractNodeLookupTask.h
  2895. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2896. Changed method signature:
  2897. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  2898. * src/BtContext.h
  2899. * src/DefaultBtContext.cc
  2900. * src/DefaultBtContext.h
  2901. * src/DefaultBtInteractive.cc
  2902. * test/DefaultBtContextTest.cc
  2903. * test/MockBtContext.h
  2904. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2905. Changed method signature:
  2906. MultiFileAllocationIterator::makeDiskWriterEntries
  2907. * src/MultiFileAllocationIterator.cc
  2908. * src/MultiFileAllocationIterator.h
  2909. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2910. Changed method sinature:
  2911. MetalinkEntry::toFileEntry,
  2912. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  2913. Metalinker::queryEntry
  2914. * src/Metalink2RequestGroup.cc
  2915. * src/MetalinkEntry.cc
  2916. * src/MetalinkEntry.h
  2917. * src/MetalinkHelper.cc
  2918. * src/MetalinkHelper.h
  2919. * src/Metalinker.cc
  2920. * src/Metalinker.h
  2921. * src/main.cc
  2922. * test/MetalinkHelperTest.cc
  2923. * test/MetalinkerTest.cc
  2924. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2925. Changed method sinature:
  2926. RequestGroup::getURIs
  2927. * src/RequestGroup.cc
  2928. * src/RequestGroup.h
  2929. * test/Metalink2RequestGroupTest.cc
  2930. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2931. Changed method signature:
  2932. PeerListProcessor::extractPeer
  2933. * src/CompactPeerListProcessor.cc
  2934. * src/CompactPeerListProcessor.h
  2935. * src/DefaultBtAnnounce.cc
  2936. * src/DefaultPeerListProcessor.cc
  2937. * src/DefaultPeerListProcessor.h
  2938. * src/DelegatingPeerListProcessor.cc
  2939. * src/DelegatingPeerListProcessor.h
  2940. * src/PeerListProcessor.h
  2941. * src/UTPexExtensionMessage.cc
  2942. * test/DefaultPeerListProcessorTest.cc
  2943. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2944. Changed method signature:
  2945. BtRequestFactory::createRequestMessages,
  2946. BtRequestFactory::createRequestMessagesOnEndGame
  2947. * src/BtRequestFactory.h
  2948. * src/DefaultBtInteractive.cc
  2949. * src/DefaultBtRequestFactory.cc
  2950. * src/DefaultBtRequestFactory.h
  2951. * test/DefaultBtRequestFactoryTest.cc
  2952. * test/MockBtRequestFactory.h
  2953. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2954. Changed method signature:
  2955. PieceStorage::getInFlightPieces
  2956. * src/DefaultBtProgressInfoFile.cc
  2957. * src/DefaultPieceStorage.cc
  2958. * src/DefaultPieceStorage.h
  2959. * src/PieceStorage.h
  2960. * src/UnknownLengthPieceStorage.cc
  2961. * src/UnknownLengthPieceStorage.h
  2962. * test/DefaultBtProgressInfoFileTest.cc
  2963. * test/MockPieceStorage.h
  2964. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2965. Changed method signature:
  2966. PostDownloadHandler::getNextRequestGroups
  2967. Metalink2RequestGroup::generate
  2968. RequestGroup::postDownloadProcessing
  2969. * src/BtPostDownloadHandler.cc
  2970. * src/BtPostDownloadHandler.h
  2971. * src/Metalink2RequestGroup.cc
  2972. * src/Metalink2RequestGroup.h
  2973. * src/MetalinkPostDownloadHandler.cc
  2974. * src/MetalinkPostDownloadHandler.h
  2975. * src/PostDownloadHandler.h
  2976. * src/RequestGroup.cc
  2977. * src/RequestGroup.h
  2978. * src/RequestGroupMan.cc
  2979. * src/main.cc
  2980. * test/BtPostDownloadHandlerTest.cc
  2981. * test/Metalink2RequestGroupTest.cc
  2982. * test/MetalinkPostDownloadHandlerTest.cc
  2983. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2984. Rewritten AccRequestGroup
  2985. * src/main.cc
  2986. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2987. Rewritten.
  2988. * src/TaggedItem.cc (toTagString)
  2989. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2990. Rewritten Accept-Features handling.
  2991. * src/HttpRequestCommand.cc (createHttpRequest)
  2992. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2993. Rewritten accept types handling.
  2994. * HttpRequest.cc (createRequest)
  2995. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2996. Rewritten
  2997. * src/FeatureConfig.cc (featureSummary)
  2998. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2999. Changed method signature:
  3000. PeerStorage::getActivePeers
  3001. * src/DHTPeerAnnounceEntry.cc
  3002. * src/DefaultPeerStorage.cc
  3003. * src/DefaultPeerStorage.h
  3004. * src/PeerStorage.h
  3005. * test/DefaultPeerStorageTest.cc
  3006. * test/MockPeerStorage.h
  3007. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3008. Changed method signature:
  3009. DHTPeerAnnounceStorage::getPeers,
  3010. DHTPeerAnnounceEntry::getPeers
  3011. * src/DHTGetPeersMessage.cc
  3012. * src/DHTPeerAnnounceEntry.cc
  3013. * src/DHTPeerAnnounceEntry.h
  3014. * src/DHTPeerAnnounceStorage.cc
  3015. * src/DHTPeerAnnounceStorage.h
  3016. * test/DHTAnnouncePeerMessageTest.cc
  3017. * test/DHTPeerAnnounceEntryTest.cc
  3018. * test/DHTPeerAnnounceStorageTest.cc
  3019. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3020. Changed method signature:
  3021. NameResolver::resolve
  3022. * src/DHTEntryPointNameResolveCommand.cc
  3023. * src/InitiateConnectionCommand.cc
  3024. * src/NameResolver.cc
  3025. * src/NameResolver.h
  3026. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3027. Changed method signature:
  3028. PieceStorage::getAdvertisedPieceIndexes
  3029. * src/DefaultBtInteractive.cc
  3030. * src/DefaultPieceStorage.cc
  3031. * src/DefaultPieceStorage.h
  3032. * src/PieceStorage.h
  3033. * src/UnknownLengthPieceStorage.h
  3034. * test/MockPieceStorage.h
  3035. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3036. Changed method signature:
  3037. SegmentMan::getInFlightSegment
  3038. * src/AbstractCommand.cc
  3039. * src/SegmentMan.cc
  3040. * src/SegmentMan.h
  3041. * test/SegmentManTest.cc
  3042. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3043. Changed method signature:
  3044. DHTAbstractNodeLookupTask::getNodesFromMessage
  3045. * src/DHTAbstractNodeLookupTask.cc
  3046. * src/DHTAbstractNodeLookupTask.h
  3047. * src/DHTNodeLookupTask.cc
  3048. * src/DHTNodeLookupTask.h
  3049. * src/DHTPeerLookupTask.cc
  3050. * src/DHTPeerLookupTask.h
  3051. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3052. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  3053. * src/AbstractCommand.cc
  3054. * src/BtCheckIntegrityEntry.cc
  3055. * src/BtCheckIntegrityEntry.h
  3056. * src/BtFileAllocationEntry.cc
  3057. * src/BtFileAllocationEntry.h
  3058. * src/BtSetup.cc
  3059. * src/BtSetup.h
  3060. * src/CheckIntegrityCommand.cc
  3061. * src/CheckIntegrityEntry.h
  3062. * src/ChecksumCheckIntegrityEntry.cc
  3063. * src/ChecksumCheckIntegrityEntry.h
  3064. * src/DHTSetup.cc
  3065. * src/DHTSetup.h
  3066. * src/DownloadEngine.cc
  3067. * src/FileAllocationCommand.cc
  3068. * src/FileAllocationEntry.h
  3069. * src/RequestGroup.cc
  3070. * src/RequestGroup.h
  3071. * src/RequestGroupMan.cc
  3072. * src/RequestGroupMan.h
  3073. * src/StreamCheckIntegrityEntry.cc
  3074. * src/StreamCheckIntegrityEntry.h
  3075. * src/StreamFileAllocationEntry.cc
  3076. * src/StreamFileAllocationEntry.h
  3077. * src/TrackerWatcherCommand.cc
  3078. * src/a2functional.h
  3079. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3080. Changed method signature:
  3081. BNode::findClosestKNodes, BNode:: enumerateBucket,
  3082. DHTBucket::getGoodNodes,
  3083. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  3084. * src/BNode.cc
  3085. * src/BNode.h
  3086. * src/DHTAbstractNodeLookupTask.cc
  3087. * src/DHTAutoSaveCommand.cc
  3088. * src/DHTBucket.cc
  3089. * src/DHTBucket.h
  3090. * src/DHTBucketRefreshTask.cc
  3091. * src/DHTFindNodeMessage.cc
  3092. * src/DHTGetPeersMessage.cc
  3093. * src/DHTRoutingTable.cc
  3094. * src/DHTRoutingTable.h
  3095. * test/BNodeTest.cc
  3096. * test/DHTBucketTest.cc
  3097. * test/DHTRoutingTableTest.cc
  3098. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3099. In piece selection functions, Pass std::deque<...> by reference rather
  3100. than returning it.
  3101. * src/BitfieldMan.cc
  3102. * src/BitfieldMan.h
  3103. * src/DefaultBtRequestFactory.cc
  3104. * src/DefaultPieceStorage.cc
  3105. * src/Piece.cc
  3106. * src/Piece.h
  3107. * test/BitfieldManTest.cc
  3108. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3109. Implemented rarest piece first piece selection strategy.
  3110. * src/AbstractBtMessage.cc
  3111. * src/AbstractBtMessage.h
  3112. * src/BitfieldMan.cc
  3113. * src/BitfieldMan.h
  3114. * src/BtBitfieldMessage.cc
  3115. * src/BtHaveAllMessage.cc
  3116. * src/BtHaveMessage.cc
  3117. * src/DefaultPieceStorage.cc
  3118. * src/DefaultPieceStorage.h
  3119. * src/PeerInteractionCommand.cc
  3120. * src/PieceStorage.h
  3121. * src/UnknownLengthPieceStorage.h
  3122. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3123. Rewritten readData and writeData.
  3124. * src/MultiDiskAdaptor.cc
  3125. * src/MultiDiskAdaptor.h
  3126. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3127. Move \n out of the message "Usage: ...".
  3128. * src/version_usage.cc
  3129. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3130. Bump up version number to 0.13.2b.
  3131. * configure.ac
  3132. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3133. Added const qualifier to argument Exception& e.
  3134. * src/Logger.h
  3135. * src/SimpleLogger.cc
  3136. * src/SimpleLogger.h
  3137. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3138. Pool connection when CWD, SIZE command fails.
  3139. * src/FtpNegotiationCommand.cc
  3140. * src/FtpNegotiationCommand.h
  3141. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3142. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  3143. * src/HttpResponseCommand.cc
  3144. * src/HttpSkipResponseCommand.cc
  3145. * src/HttpSkipResponseCommand.h
  3146. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3147. Pool connection when a server returns 4xx, 5xx responses.
  3148. * src/HttpNullDownloadCommand.cc
  3149. * src/HttpNullDownloadCommand.h
  3150. * src/HttpResponse.cc
  3151. * src/HttpResponse.h
  3152. * src/HttpResponseCommand.cc
  3153. * src/HttpResponseCommand.h
  3154. * test/HttpResponseTest.cc
  3155. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3156. Print usage when no URL is specifed or bad command-line option is
  3157. specified.
  3158. * src/HelpItemFactory.cc
  3159. * src/help_tags.h
  3160. * src/option_processing.cc
  3161. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3162. Removed duplicate log message.
  3163. * src/AbstractCommand.cc (asyncResolveHostname)
  3164. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3165. Updated man page: --async-dns and --ftp-reuse-connection were added.
  3166. Changed -j option's default value from 5 to 1.
  3167. Added new examples using protocol auto detection feature.
  3168. Removed -T, -M usage where it can be omitted.
  3169. * doc/aria2c.1.txt
  3170. * doc/aria2c.1.html
  3171. * doc/aria2c.1.txt
  3172. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3173. Updated command-line usage text, so that it tells users that they
  3174. can specify any number of torrent files and metalink files in
  3175. command-line.
  3176. * src/version_usage.cc
  3177. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3178. Changed the default value of -j option to 1.
  3179. * src/HelpItemFactory.cc
  3180. * src/option_processing.cc
  3181. * src/usage_text.h
  3182. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3183. Added the ability to reuse connection in FTP and it is enabled by
  3184. default. It can be disabled by --ftp-reuse-connection=false option.
  3185. * src/Command.cc
  3186. * src/DownloadCommand.cc
  3187. * src/FtpDownloadCommand.cc
  3188. * src/FtpDownloadCommand.h
  3189. * src/FtpFinishDownloadCommand.cc
  3190. * src/FtpFinishDownloadCommand.h
  3191. * src/FtpInitiateConnectionCommand.cc
  3192. * src/FtpNegotiationCommand.cc
  3193. * src/FtpNegotiationCommand.h
  3194. * src/HelpItemFactory.cc
  3195. * src/Makefile.am
  3196. * src/Makefile.in
  3197. * src/OptionHandlerFactory.cc
  3198. * src/option_processing.cc
  3199. * src/prefs.h
  3200. * src/usage_text.h
  3201. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3202. Call Command::transitStatus() before calling Command::execute(),
  3203. so that the status change made in execute() is not cleared.
  3204. * src/DownloadEngine.cc
  3205. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3206. Removed forward declaration of SocketCore class.
  3207. * src/HttpDownloadCommand.h
  3208. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3209. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  3210. in InitiateConnectionCommandFactory. They should be set only when
  3211. the protocol is HTTP or HTTPS.
  3212. * src/InitiateConnectionCommandFactory.cc
  3213. * src/RequestGroup.cc
  3214. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3215. Fixed infinite loop in checksum checking.
  3216. * src/IteratableChecksumValidator.cc
  3217. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3218. Set _supportsPersistentConnection to true by default.
  3219. * src/Request.cc
  3220. * src/RequestGroup.cc
  3221. * test/HttpRequestTest.cc
  3222. * test/RequestTest.cc
  3223. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3224. Added timeout to socket pool. The default timeout is 15 seconds,
  3225. which is the same value Apache uses.
  3226. * src/DownloadEngine.cc
  3227. * src/DownloadEngine.h
  3228. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3229. Fixed misuse of multimap::find()
  3230. * src/HttpHeader.cc
  3231. * test/HttpHeaderTest.cc
  3232. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  3234. option.
  3235. The asynchronous DNS is not capable of IPv6 yet.
  3236. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  3237. least for HTTP download.
  3238. * src/AbstractCommand.cc
  3239. * src/AbstractCommand.h
  3240. * src/AsyncNameResolver.cc
  3241. * src/AsyncNameResolver.h
  3242. * src/DHTEntryPointNameResolveCommand.cc
  3243. * src/DHTEntryPointNameResolveCommand.h
  3244. * src/DownloadEngine.cc
  3245. * src/DownloadEngine.h
  3246. * src/FtpInitiateConnectionCommand.cc
  3247. * src/FtpInitiateConnectionCommand.h
  3248. * src/HelpItemFactory.cc
  3249. * src/HttpInitiateConnectionCommand.cc
  3250. * src/HttpInitiateConnectionCommand.h
  3251. * src/InitiateConnectionCommand.cc
  3252. * src/InitiateConnectionCommand.h
  3253. * src/Makefile.am
  3254. * src/Makefile.in
  3255. * src/NameResolver.cc
  3256. * src/NameResolver.h
  3257. * src/OptionHandlerFactory.cc
  3258. * src/SocketCore.cc
  3259. * src/SocketCore.h
  3260. * src/Util.cc
  3261. * src/Util.h
  3262. * src/option_processing.cc
  3263. * src/prefs.h
  3264. * src/usage_text.h
  3265. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3266. Updated man page: --quiet, --header were added.
  3267. --metalink-servers and --enable-http-keep-alive option were updated.
  3268. * doc/aria2c.1
  3269. * doc/aria2c.1.html
  3270. * doc/aria2c.1.txt
  3271. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3272. Enable HTTP keep-alive by default.
  3273. * src/HelpItemFactory.cc
  3274. * src/option_processing.cc
  3275. * src/usage_text.h
  3276. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3277. Disable http keep-alive if the remote server is not HTTP/1.1.
  3278. * src/HttpConnection.cc
  3279. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3280. Receive content body of 302 response so that the connection can be
  3281. reused later when http keep-alive is enabled.
  3282. * src/HttpNullDownloadCommand.cc
  3283. * src/HttpNullDownloadCommand.h
  3284. * src/HttpResponseCommand.cc
  3285. * src/HttpResponseCommand.h
  3286. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3287. const SharedHandle<Request> -> const SharedHandle<Request>&
  3288. * src/FtpDowndloadCommand.cc
  3289. * src/FtpDowndloadCommand.h
  3290. * src/HttpDownloadCommand.cc
  3291. * src/HttpDownloadCommand.h
  3292. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3293. Fixed the bug that the control file(.aria2 file) is not renamed
  3294. according to tryAutoFileRenaming().
  3295. tryAutoFileRenaming() was rewritten so that if both renamed file and
  3296. its control file exist, use them and continue download.
  3297. The old implementation didn't take into account of control file's
  3298. existence, so basically you couldn't continue download of renamed file.
  3299. * src/BtProgressInfoFile.h
  3300. * src/DefaultBtProgressInfoFile.cc
  3301. * src/DefaultBtProgressInfoFile.h
  3302. * src/NullProgressInfoFile.h
  3303. * src/RequestGroup.cc
  3304. * test/DefaultBtProgressInfoFileTest.cc
  3305. * test/MockBtProgressInfoFile.h
  3306. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3307. Change the default value of --metalink-servers option from `5' to `1'.
  3308. * src/HelpItemFactory.cc
  3309. * src/option_processing.cc
  3310. * src/usage_text.h
  3311. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3312. Reimplemented transparent metalink using Accept request header.
  3313. * src/HttpRequest.cc
  3314. * src/HttpRequest.h
  3315. * src/HttpRequestCommand.cc
  3316. * src/Metalink2RequestGroup.cc
  3317. * src/RequestGroup.cc
  3318. * src/RequestGroup.h
  3319. * test/HttpRequestTest.cc
  3320. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3321. Bump up version number to 0.13.2a
  3322. * configure.ac
  3323. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3324. Updated configure.ac using the result of autoscan.
  3325. * configure.ac
  3326. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3327. Fixed compilation error without gcrypt/openssl.
  3328. * src/DownloadCommand.cc
  3329. * src/DownloadCommand.h
  3330. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3331. Reorganized version information so that it can be displayed in a
  3332. standard terminal screen without scrolling.
  3333. Removed http, ftp from Configuration section, because they are always
  3334. enabled.
  3335. * src/FeatureConfig.cc
  3336. * src/FeatureConfig.h
  3337. * src/main.cc
  3338. * src/messageDigest.cc
  3339. * src/messageDigest.h
  3340. * src/version_usage.cc
  3341. * test/FeatureConfigTest.cc
  3342. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3343. Masked user ID in log.
  3344. * src/FtpConnection.cc (sendUser)
  3345. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3346. Removed query part from filename in HTTP download. The query part means
  3347. the substring after "?" in URL. Firefox seems do the same thing.
  3348. A query part is sometimes very long and not suitable to filename,
  3349. so I think it is better to remove it from filename.
  3350. * src/HttpRequest.cc
  3351. * src/HttpRequest.h
  3352. * src/Request.cc
  3353. * src/Request.h
  3354. * test/HttpRequestTest.cc
  3355. * test/RequestTest.cc
  3356. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3357. Rewritten Exception class. Throw exception object, not its pointer and
  3358. catch by reference, so that remove problematic delete operator for
  3359. catched exception.
  3360. * src/Exception.cc
  3361. * src/Exception.h
  3362. * test/ExceptionTest.cc
  3363. * src/*: All files throwing/catching exception.
  3364. * test/*: All files throwing/catching exception.
  3365. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3366. Now auto protocol detection is enabled without -Z option.
  3367. But there is a important difference between with/without -Z optoin.
  3368. For example, if you type:
  3369. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  3370. then, aria2 interprets there are 3 request groups:
  3371. (1) http://host/file, http://mirror/file <-- multi-source download
  3372. (2) file1.torrent
  3373. (3) file2.metalink
  3374. On the other hand, if you invoke above command with -Z option, it is
  3375. interpreted as 4 request groups:
  3376. (1) http://host/file
  3377. (2) file1.torrent
  3378. (3) file2.metalink
  3379. (4) http://mirror/file
  3380. I think usually user don't mix multi-source URLs and torrent files, so
  3381. there is no big problem here.
  3382. * src/main.cc
  3383. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3384. Fixed the bug that causes segmentaion fault when reading XML containing
  3385. unescapsed character like '&'.
  3386. Also a modification was made which avoids adding unnecessary
  3387. characters stack and appending unused string.
  3388. * src/ExpatMetalinkProcessor.cc
  3389. * src/FileMetalinkParserState.h
  3390. * src/FilesMetalinkParserState.h
  3391. * src/FinMetalinkParserState.h
  3392. * src/HashMetalinkParserState.h
  3393. * src/InitialMetalinkParserState.h
  3394. * src/LanguageMetalinkParserState.h
  3395. * src/MetalinkMetalinkParserState.h
  3396. * src/MetalinkParserState.h
  3397. * src/MetalinkParserStateMachine.cc
  3398. * src/MetalinkParserStateMachine.h
  3399. * src/OSMetalinkParserState.h
  3400. * src/PieceHashMetalinkParserState.h
  3401. * src/PiecesMetalinkParserState.h
  3402. * src/ResourcesMetalinkParserState.h
  3403. * src/SizeMetalinkParserState.h
  3404. * src/SkipTagMetalinkParserState.h
  3405. * src/URLMetalinkParserState.h
  3406. * src/VerificationMetalinkParserState.h
  3407. * src/VersionMetalinkParserState.h
  3408. * src/XML2SAXMetalinkProcessor.cc
  3409. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3410. Added StringFormat class, which internally calls vasprintf.
  3411. operator<< is defined for this class, so it can be used with iostream
  3412. classes nicely. SimpleLogger and following functions are rewritten
  3413. using StringFormat class.
  3414. Besides, now Logger class's methods are non-const, many classes
  3415. that has a const Logger* as a member variable are modified to remove
  3416. const qualifier from the variable declaration.
  3417. * src/HelpItemFactory.cc
  3418. * src/Request.cc
  3419. * src/SimpleLogger.cc
  3420. * src/StringFormat.cc
  3421. * src/StringFormat.h
  3422. * src/Util.cc
  3423. * src/option_processing.cc
  3424. * src/version_usage.cc
  3425. * test/StringFormatTest.cc
  3426. * src/*.h: The classes that has const Logger* as a member variable.
  3427. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3428. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  3429. failed. Also fixed memory link when exception is thrown there.
  3430. * src/main.cc (AccRequestGroup)
  3431. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3432. Added build-in "Accept-Features" support. For now only "metalink" is
  3433. used in this header field.
  3434. This "metalink" value is removed from the list when connecting URLs
  3435. fed by metalink file to avoid loop in "transparent" metlaink.
  3436. * src/HttpRequest.cc
  3437. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  3438. header is also held in this variable. Also renamed setUserHeaders as
  3439. addHeader and it was rewritten to add header not just to clear the old
  3440. value.
  3441. * src/HttpRequestCommand.cc
  3442. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  3443. from "Accept-Features" list.
  3444. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  3445. default.
  3446. * src/RequestGroup.h
  3447. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  3448. * src/a2functional.h: Included <string> because Concat class depends on
  3449. it.
  3450. * test/HttpRequestTest.cc
  3451. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3452. Added comment
  3453. * src/RequestGroup.cc (createNextCommand)
  3454. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3455. Capitalized METHOD_GET and METHOD_HEAD
  3456. * src/Request.cc
  3457. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3458. Added getDownloadResults() method
  3459. * src/RequestGroupMan.cc
  3460. * src/RequestGroupMan.h
  3461. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3462. Fixed the bug that aria2 exits when commands is empty() but
  3463. _routineCommands are not.
  3464. * src/DownloadEngine.cc
  3465. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3466. Use the default value pulled from Option object in HelpItemFactory.
  3467. except options whose defualt value is embedded in a usage text.
  3468. * src/HelpItemFactory.cc
  3469. * src/HelpItemFactory.h
  3470. * src/option_processing.cc
  3471. * src/version_usage.cc
  3472. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3473. Added --quiet option to make aria2 quiet (no console output).
  3474. --quiet option is tagged with ADVANCED.
  3475. * src/HelpItemFactory.cc
  3476. * src/LogFactory.cc
  3477. * src/LogFactory.h
  3478. * src/MultiUrlRequestInfo.cc
  3479. * src/MultiUrlRequestInfo.h
  3480. * src/NullStatCalc.h: New class. This class prints nothing.
  3481. * src/OptionHandlerFactory.cc
  3482. * src/main.cc
  3483. * src/option_processing.cc
  3484. * src/prefs.h
  3485. * src/usage_text.h
  3486. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  3488. * src/HelpItemFactory.cc (createHelpItems):
  3489. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3490. Fixed compilation error in ExpatMetalinkProcessor.cc
  3491. * src/ExpatMetalinkProcessor.cc
  3492. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3493. Reuse socket if the origin server supports HTTP keep-alive and
  3494. --enable-http-keep-alive or --enable-http-pipelining is given.
  3495. The current implementation doesn't reuse the connections established
  3496. against proxy server.
  3497. * src/AbstractCommand.cc
  3498. * src/DownloadEngine.cc
  3499. * src/DownloadEngine.h
  3500. * src/HttpDownloadCommand.cc
  3501. * src/HttpInitiateConnectionCommand.cc
  3502. * src/HttpResponseCommand.cc
  3503. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3504. Rewritten HTTP keep-alive and pipelining routine.
  3505. * src/AbstractCommand.cc
  3506. * src/HttpConnection.cc
  3507. * src/HttpDownloadCommand.cc
  3508. * src/HttpRequest.cc
  3509. * src/HttpRequestCommand.cc
  3510. * src/HttpResponseCommand.cc
  3511. * src/Request.cc
  3512. * src/Request.h
  3513. * src/RequestGroup.cc
  3514. * test/HttpRequestTest.cc
  3515. * test/HttpResponseTest.cc
  3516. * test/RequestTest.cc
  3517. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3518. Added missing setUserHeaders call
  3519. * src/HttpRequestCommand.cc
  3520. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3521. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  3522. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  3523. waste of time because it is more likey false.
  3524. * src/FileAllocationDispatcherCommand.cc (execute)
  3525. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3526. Now HTTP status and version are a member variable of HttpHeader.
  3527. HTTP status is processed as a string, not integer.
  3528. * src/AbstractProxyResponseCommand.cc
  3529. * src/HttpConnection.cc
  3530. * src/HttpHeader.cc
  3531. * src/HttpHeader.h
  3532. * src/HttpHeaderProcessor.cc
  3533. * src/HttpHeaderProcessor.h
  3534. * src/HttpResponse.cc
  3535. * src/HttpResponse.h
  3536. * test/HttpHeaderProcessorTest.cc
  3537. * test/HttpResponseTest.cc
  3538. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3539. Added --header option. You can specify any number of additional HTTP headers
  3540. like:
  3541. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  3542. Unlike other commad-line option, you can use --header option multiple times.
  3543. * src/HelpItemFactory.cc
  3544. * src/HttpRequest.{cc, h}
  3545. * src/HttpRequestCommand.cc
  3546. * src/OptionHandlerFactory.cc
  3547. * src/OptionHandlerImpl.h
  3548. * src/option_processing.cc
  3549. * src/prefs.h
  3550. * src/usage_text.h
  3551. * test/HttpRequestTest.cc (testUserHeaders)
  3552. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3553. Eliminates the time lag between sequential downloads and commands in
  3554. the same RequestGroup.
  3555. In old implementation, aria2 occasionally waits 1 seconds before
  3556. executing next command or RequestGroup.
  3557. This is really a waste of time, and new implementation eliminates
  3558. this unnecessary time lag.
  3559. * src/AbstractCommand.cc
  3560. * src/AutoSaveCommand.cc
  3561. * src/CheckIntegrityCommand.cc
  3562. * src/Command.{cc, h}
  3563. * src/DownloadEngine.{cc, h}
  3564. * src/DownloadEngineFactory.cc
  3565. * src/FileAllocationCommand.cc
  3566. * src/FileAllocationDispatcherCommand.cc
  3567. * src/FillRequestGroupCommand.cc
  3568. * src/FtpInitiateConnectionCommand.cc
  3569. * src/HaveEraseCommand.cc
  3570. * src/HttpInitiateConnectionCommand.cc
  3571. * src/HttpResponseCommand.cc
  3572. * src/RealtimeCommand.cc
  3573. * src/RequestGroup.cc
  3574. * src/RequestGroupMan.cc
  3575. * src/StreamFileAllocationEntry.cc
  3576. * src/TimeBasedCommand.{cc, h}
  3577. * src/TimedHaltCommand.cc
  3578. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3579. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  3580. keyword explicit and SharedHandle's default constructor initializes
  3581. its internal obj to null, old implementation initializes it using
  3582. obj's default constructor.
  3583. To assign null, write SharedHandle<T> x(...); x.reset();
  3584. TODO: test/SharedHandleTest.cc needs more tests.
  3585. * src/SharedHandle.h
  3586. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3587. Fixed type in man page.
  3588. * doc/aria2c.1.txt
  3589. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3590. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  3591. * src/SimpleLogger.{cc, h}
  3592. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3593. Implemented auto protocol detection.
  3594. Now you can do:
  3595. aria2c -Z http://host/file file1.torrent file2.metalink
  3596. (Note: -Z option is required for auto protcol detection.)
  3597. Then aria2c downloads 3 files simultaneously:
  3598. 1. http://host/file
  3599. 2. file1.torrent <-- read local torrent file
  3600. 3. file2.metalink <-- read local Metalink file.
  3601. Same thing goes with -i option. Assume your uris.txt contans:
  3602. http://host/file
  3603. file1.torrent
  3604. file2.metalink
  3605. Then you can do: aria2c -i uris.txt
  3606. (Note: -Z option is not needed if -i option is given.)
  3607. * src/main.cc
  3608. * src/ProtocolDetector.{cc, h}
  3609. * test/ProtocolDetectorTest.cc
  3610. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3611. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  3612. installed
  3613. * src/ARC4Encryptor.h
  3614. * src/ARC4Decryptor.h
  3615. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3616. Renamed argument from 'errno' to 'err', since errno is confused with
  3617. errno defined in errno.h.
  3618. * src/LibgcryptARC4Decryptor.h
  3619. * src/LibgcryptARC4Context.h
  3620. * src/LibgcryptDHKeyExchange.h
  3621. * src/LibgcryptARC4Encryptor.h
  3622. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3623. Rewritten choking algorithm.
  3624. * src/PeerChokeCommand.{cc, h}
  3625. * src/BtInterestedMessage.cc
  3626. * src/PeerSessionResource.{cc, h}
  3627. * src/DefaultPeerStorage.{cc, h}
  3628. * src/BtNotInterestedMessage.cc
  3629. * src/DefaultBtMessageDispatcher.{cc, h}
  3630. * src/BtMessageDispatcher.h
  3631. * src/Peer.{cc, h}
  3632. * src/BtLeecherStateChoke.{cc, h}
  3633. * src/BtSetup.cc
  3634. * src/BtSeederStateChoke.{cc, h}
  3635. * src/PeerStorage.h
  3636. * test/MockPeerStorage.h
  3637. * test/MockBtMessageDispatcher.h
  3638. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3639. Fixed compilation error on x84-64 platform.
  3640. * src/AuthConfig.cc: Included ostream.
  3641. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3642. Rewritten getBasename() and getDirname(), without standard library
  3643. basename(), dirname().
  3644. * src/File.cc
  3645. * test/FileTest.cc
  3646. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3647. Added Simplified Chinese translation. Also updated the following
  3648. translations: Polish, Dutch, German. Great thanks to all translators.
  3649. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3650. Suppress content-range error when 'Content-Range' response header
  3651. doesn't contains bytes-unit specifier 'bytes'
  3652. * src/HttpHeader.cc (getRange)
  3653. * test/HttpHeaderTest.cc
  3654. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3655. Fixed compilation error with g++-4.3
  3656. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3657. Added missing include files for MinGW
  3658. * test/HttpHeaderProcessorTest.cc
  3659. * test/DHTRoutingTableSerializerTest.cc
  3660. * test/DHTRoutingTableDeserializerTest.cc
  3661. * test/UriListParserTest.cc
  3662. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3663. Now download line is printed nicely with no garbage at the end of
  3664. line. I use ioctl to get the columns of terminal.
  3665. If stdout is redirected to another device, instead of carriage return,
  3666. end of line '\n' character is used. This is feature request#1909659
  3667. * src/ConsoleStatCalc.cc (calculateStat)
  3668. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3669. Included a2time.h
  3670. * src/DHTMessageDispatcher.h
  3671. * src/DHTMessageEntry.h
  3672. * src/DHTReplaceNodeTask.h
  3673. * src/DHTMessageTracker.h
  3674. * src/Util.h
  3675. * src/CookieBox.h
  3676. * src/SocketCore.h
  3677. * src/DefaultBtMessageDispatcher.h
  3678. * src/SocketCore.cc
  3679. * src/Util.cc
  3680. * src/DHTPingTask.h
  3681. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3682. Fixed high memory footprint when DHT is enabled.
  3683. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  3684. queued than it is processed and the queue is getting longer. As a
  3685. consequence, momory usage is increased.
  3686. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  3687. replacement cache in DHTBucket which is described in Kademlia paper.
  3688. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  3689. DHTReplaceNodeTask.
  3690. * src/DHTBucket.{h, cc}
  3691. (cacheNode): New function.
  3692. (getCachedNodes): New function.
  3693. (dropNode): Push back cached node to _nodes.
  3694. * test/DHTBucketTest.cc
  3695. (testCacheNode): New test
  3696. (testDropNode): New test
  3697. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3698. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  3699. the unused 4KB memory when ssl is not used.
  3700. * src/SocketCore.cc
  3701. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3702. Added summary log for peer announce storage.
  3703. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  3704. Removed cast
  3705. * src/DefaultPeerStorage.cc (addPeer)
  3706. Log exception message
  3707. * src/DHTMessageTracker.cc (handleTimeout)
  3708. Fixed casting
  3709. * test/HttpRequestTest.cc
  3710. * test/MetalinkProcessorTest.cc
  3711. * test/PieceTest.cc
  3712. * test/MetalinkEntryTest.cc
  3713. * test/SequenceTest.cc
  3714. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3715. * src/ParameterizedStringParser.cc (createLoop):
  3716. Removed unused variable sstep.
  3717. * src/AlphaNumberDecorator.h (decode): Rewritten.
  3718. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3719. * src/Util.{h, cc}
  3720. (parseUInt): New function.
  3721. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  3722. The actual range is uint32_t.
  3723. * test/UtilTest.cc
  3724. * src/ParameterizedStringParser.cc:
  3725. Use Util::parseUInt() for loop variables.
  3726. * test/ParameterizedStringParserTest.cc
  3727. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  3728. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3729. Rewritten the functions for binding port.
  3730. * src/DHTConnectionImpl.{h, cc}
  3731. * src/PeerListenCommand.{h, cc}
  3732. * src/DHTSetup.cc
  3733. * src/BtSetup.cc
  3734. * test/DHTConnectionImplTest.cc
  3735. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3736. type cleanup for allmost all remaining files.
  3737. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3738. Type clarification
  3739. * src/PeerSessionResource.{h, cc}
  3740. * src/DefaultPieceStorage.{h, cc}
  3741. * src/Peer.{h, cc}
  3742. * test/PeerSessionResourceTest.cc
  3743. Use div function
  3744. * src/BtPieceMessage.cc (erasePieceOnDisk)
  3745. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3746. Type clarification
  3747. * src/DefaultPeerStorage.{h, cc}
  3748. * test/DefaultPeerStorageTest.cc
  3749. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3750. Type clarification: size_t for length or size, uint64_t for file
  3751. length, off_t for file offset.
  3752. * src/DefaultBtProgressInfoFile.cc
  3753. * src/DefaultBtContext.{h, cc}
  3754. * src/DefaultBtInteractive.cc
  3755. * src/DownloadCommand.{h, cc}
  3756. * src/IteratableChunkChecksumValidator.{h, cc}
  3757. * src/SegmentMan.{h, cc}
  3758. * src/SingleFileDownloadContext.{h, cc}
  3759. * src/IteratableChecksumValidator.{h, cc}
  3760. * src/BtContext.h
  3761. * src/IteratableValidator.h
  3762. * src/DownloadContext.h
  3763. * test/SingleFileDownloadContextTest.cc
  3764. * test/DefaultBtContextTest.cc
  3765. * test/MockBtContext.h
  3766. * test/Metalink2RequestGroupTest.cc
  3767. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3768. Type clarification: size_t for length or size, uint64_t for file
  3769. length, off_t for file offset.
  3770. * src/PiecedSegment.cc
  3771. * src/GrowSegment.h
  3772. * src/DefaultBtRequestFactory.h
  3773. * src/DefaultBtProgressInfoFile.cc
  3774. * src/UnknownLengthPieceStorage.h
  3775. * src/DefaultPieceStorage.cc
  3776. * src/UnknownLengthPieceStorage.cc
  3777. * src/DefaultBtInteractive.cc
  3778. * src/GrowSegment.cc
  3779. * src/BitfieldMan.h
  3780. * src/DownloadCommand.cc
  3781. * src/BtRequestFactory.h
  3782. * src/PiecedSegment.h
  3783. * src/DefaultPieceStorage.h
  3784. * src/Piece.cc
  3785. * src/DefaultBtRequestFactory.cc
  3786. * src/PieceStorage.h
  3787. * src/Segment.h
  3788. * src/Piece.h
  3789. * src/BitfieldMan.cc
  3790. * src/Util.cc
  3791. * test/DefaultBtProgressInfoFileTest.cc
  3792. * test/DefaultPieceStorageTest.cc
  3793. * test/MockPieceStorage.h
  3794. * test/BtRequestMessageTest.cc
  3795. * test/DefaultBtMessageDispatcherTest.cc
  3796. * test/BitfieldManTest.cc
  3797. * test/GrowSegmentTest.cc
  3798. * test/PieceTest.cc
  3799. * test/SegmentTest.cc
  3800. * test/SegmentManTest.cc
  3801. * test/DefaultBtRequestFactoryTest.cc
  3802. * test/MockBtRequestFactory.h
  3803. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3804. Fixed compilation error with --disable-nls
  3805. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  3806. in gettext.h causes the problem.
  3807. * src/common.h
  3808. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3809. Removed subPiece related functions.
  3810. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  3811. * src/DefaultPieceStorage.{h, cc}
  3812. * test/PieceTest.cc
  3813. * test/DefaultPieceStorageTest.cc
  3814. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3815. Use unsigned char for data store.
  3816. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3817. Bump up version number to 0.13.0+1
  3818. * configure.ac
  3819. * Release 0.13.0+1
  3820. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3821. Changed inactive connection timeout to 120.
  3822. To accept more mulually interested peers, disconnect peer when there
  3823. is no interest between us after certain time passed.
  3824. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  3825. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3826. Fixed the bug that aria2 only uses first dns server in resolv.conf
  3827. when compiled with async DNS support.
  3828. * src/DownloadEngine.cc
  3829. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  3830. value '10' will be a little bit short when some DNS servers are
  3831. offline and several DNS servers are tried. It should be configured
  3832. by command-line option.
  3833. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3834. Merged Ross's mingw patch.
  3835. * src/DHTRoutingTableDeserializer.cc
  3836. * src/DHTRoutingTableSerializer.cc
  3837. * src/Platform.{h, cc}
  3838. * src/timegm.h
  3839. * src/gettimeofday.h
  3840. * src/getaddrinfo.h
  3841. * src/SocketCore.h
  3842. * src/common.h
  3843. * src/inet_aton.h
  3844. * src/DownloadEngine.h
  3845. * src/gai_strerror.h
  3846. * src/a2netcompat.h
  3847. * configure.ac
  3848. * configure
  3849. * aclocal.m4
  3850. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3851. Included missing iostream.
  3852. * test/AllTest.cc
  3853. * test/BtDependencyTest.cc
  3854. * test/BtExtendedMessageTest.cc
  3855. * test/DHTConnectionImplTest.cc
  3856. * test/DHTMessageFactoryImplTest.cc
  3857. * test/DHTMessageTrackerEntryTest.cc
  3858. * test/DHTNodeTest.cc
  3859. * test/DHTRoutingTableSerializerTest.cc
  3860. * test/DefaultBtAnnounceTest.cc
  3861. * test/DefaultBtContextTest.cc
  3862. * test/DefaultBtMessageFactoryTest.cc
  3863. * test/DefaultExtensionMessageFactoryTest.cc
  3864. * test/HandshakeExtensionMessageTest.cc
  3865. * test/HttpResponseTest.cc
  3866. * test/MetalinkProcessorTest.cc
  3867. * test/MultiFileAllocationIteratorTest.cc
  3868. * test/SocketCoreTest.cc
  3869. * test/UTPexExtensionMessageTest.cc
  3870. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Reorganized includes.
  3872. * src/NameResolver.cc
  3873. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3874. Fixed compilation error without ares/c-ares
  3875. * src/NameResolver.h:
  3876. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3877. Added a test for large file.
  3878. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  3879. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3880. Fixed the bug that file size is ignored if size > INT32_MAX
  3881. * src/SizeMetalinkParserState.cc (endElement):
  3882. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3883. Bump up version number to 0.13.0
  3884. * configure.ac
  3885. * Release 0.13.0
  3886. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3887. Updated Makfefile.am to make 'make dist' work.
  3888. Now packaged filename is aria2c-VERSION.tar.bz2.
  3889. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  3890. Added LICENSE.OpenSSL to dist_noinst_DATA.
  3891. Large file support is now configured by configure script.
  3892. * configure.ac
  3893. Removed unsused source files
  3894. * src/
  3895. * test/
  3896. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  3897. Peer.h and BtContext.h respectively.
  3898. * src/Peer.h
  3899. * src/BtContext.h
  3900. Updated translations.
  3901. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  3902. translations. Great thanks to all translators!;)
  3903. * po/*.{po, gmo}
  3904. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3905. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  3906. statically declared sha1 MessageDigestContext.
  3907. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  3908. initialization of short-lived MessageDigestContext.
  3909. * src/MessageDigestHelper.{h, cc}
  3910. * src/main.cc
  3911. Now DownloadCommand has a reference to MessageDigestContext to avoid
  3912. the initialization of MessageDigestContext every time in validating
  3913. chunk checksum.
  3914. * src/DownloadCommand.{h, cc}
  3915. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3916. Add a file descriptor which connected to fast peer(latency<1500) to
  3917. select(). This change reduced CPU load.
  3918. * src/PeerInteractionCommand.cc
  3919. * src/DefaultBtInteractive.{h, cc}
  3920. * src/BtInteractive.h
  3921. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3922. Fixed the previous insufficient fix for possible busy loop.
  3923. * src/MSEHandshake.cc (identifyHandshakeType)
  3924. Removed unused functions.
  3925. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  3926. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3927. Fixed possible busy loop if first 20 bytes are not received for a few
  3928. minutes.
  3929. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  3930. * src/ReceiverMSEHandshakeCommand.cc
  3931. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3932. Fixed compilation error
  3933. * src/ExpatMetalinkProcessor.cc
  3934. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3935. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  3936. * src/DHTBucket.cc
  3937. Removed unnecessary cast.
  3938. * src/HandshakeExtensionMessage.cc
  3939. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3940. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  3941. is missing.
  3942. * src/OptionHandlerFactory.cc
  3943. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3944. Fixed the bug that HAVE message is not sent for a piece they are
  3945. downloaded fom http/ftp server before any BitTorrent handshake is done
  3946. with peers.
  3947. * src/DefaultBtInteractive.cc
  3948. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3949. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  3950. * src/Makefile.am
  3951. * src/Makefile.in
  3952. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3953. Updated README. Added html version of README and man page.
  3954. * README
  3955. * README.html
  3956. * readme2html: Shell script to generate README.html from README using
  3957. asciidoc.
  3958. * doc/aria2c.1.html
  3959. * doc/makeman: Added the line to generate aria2c.1.html
  3960. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Fixed offset calculation.
  3962. * src/LibgcryptDHKeyExchange.h (computeSecret)
  3963. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3964. Rewritten itos and uitos using template. llitos and ullitos are
  3965. replaced with itos and uitos respectively.
  3966. * src/Util.{h, cc}
  3967. * test/UtilTest.cc
  3968. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3969. Fixed the bug that DH key exchange sometimes fails due to bad handling
  3970. of the number of bytes required for storing public key and shared
  3971. secret.
  3972. * src/LibgcryptDHKeyExchange.h
  3973. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  3974. * src/MSEHandshake.cc
  3975. * test/DHKeyExchangeTest.cc
  3976. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3977. Removed since they are not used.
  3978. * src/Xml2MetalinkProcessor.{h, cc}
  3979. * src/Socket.cc
  3980. * src/SegmentSplitter.{h, cc}
  3981. * test/Xml2MetalinkProcessorTest.cc
  3982. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3983. Fixed the bug that prevents aria2 from stopping other than by pressing
  3984. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  3985. option. aria2 doesn't stop even after --seed-time is satisfied and
  3986. continues to output blank lines in the console.
  3987. * src/ReceiverMSEHandshakeCommand.cc
  3988. * src/PeerReceiveHandshakeCommand.cc
  3989. * src/PeerListenCommand.cc
  3990. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Bump up version number to 0.13.0rc
  3992. * configure.ac
  3993. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3994. Updated man page and some usage text.
  3995. * doc/aria2c.1.txt
  3996. * src/usage_text.h
  3997. * po/*.{po, gmo}
  3998. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3999. Updated translations. Added Finnish and Hebrew translations.
  4000. Great thanks to all translators!
  4001. * po/*.{po, gmo}
  4002. * po/LINGUAS
  4003. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4004. Log more detailed information about each message.
  4005. * src/DHTQueryMessage.{h, cc}
  4006. * src/DHTGetPeersMessage.{h, cc}
  4007. * src/DHTFindNodeReplyMessage.{h, cc}
  4008. * src/DHTGetPeersReplyMessage.{h, cc}
  4009. * src/DHTAnnouncePeerMessage.{h, cc}
  4010. * src/DHTResponseMessage.{h, cc}
  4011. * src/DHTFindNodeMessage.{h, cc}
  4012. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4013. Use constants defined in prefs.h
  4014. * src/option_processing.cc
  4015. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4016. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  4017. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4018. Make room for future enchancements for IPv6 addresses.
  4019. Bump up version number of dht.dat file format to 2.
  4020. Not compatible with previous version.
  4021. * src/DHTRoutingTableSerializer.cc
  4022. * src/DHTRoutingTableDeserializer.cc
  4023. * test/DHTRoutingTableSerializerTest.cc
  4024. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4025. Added handling for the return values from
  4026. PeerMessageUtil::createcompact().
  4027. * src/DefaultBtContext.cc (computeFastSet):
  4028. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4029. Fixed abort when peer's ip address is IPv4-mapped address.
  4030. * src/DefaultBtContext.cc (computeFastSet)
  4031. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  4032. cannot handle IPv4-mapped addresses.
  4033. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  4034. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4035. Proper return value handling for OpenSSL functions.
  4036. * src/LibsslDHKeyExchange.h
  4037. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4038. Random bytes generation using libgcrypt and OpenSSL.
  4039. * src/DHTUtil.{h, cc}
  4040. * test/DHTUtilTest.cc
  4041. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4042. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  4043. received.
  4044. * src/DHTMessageReceiver.cc (receiveMessage)
  4045. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4046. Fixed the bug that a return code is always 0. BUG#1897704
  4047. If error occurred during the download or there exist unfinished
  4048. downloads, aria2 returns with code 1.
  4049. * src/RequestGroupMan.{h, cc}
  4050. * src/MultiUrlRequestInfo.{h, cc}
  4051. * src/main.cc
  4052. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4053. IPv6 support for SocketCore class.
  4054. TODO: In SocketCore::establishConnection(), this is insufficient to
  4055. determin the failure of connect() here because the socket is
  4056. non-blocking state. The next addresses should be tried after select().
  4057. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  4058. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  4059. instead which address family independent.
  4060. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  4061. information in a compact peer format which is for IPv4 only.
  4062. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  4063. this is a spec of BitTorrent protocol.
  4064. * src/SocketCore.{h, cc}
  4065. * src/PeerMessageUtil.cc
  4066. * test/SocketCoreTest.cc
  4067. * test/PeerMessageUtilTest.cc
  4068. * test/DHTConnectionImplTest.cc
  4069. Handle IPv4-mapped addresses.
  4070. * src/DHTNode.cc: Now identity is determined by node id.
  4071. * src/DHTMessageTrackerEntry.cc
  4072. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  4073. should handle it.
  4074. * src/DHTRoutingTableDeserializer.cc
  4075. * src/DHTMessageFactoryImpl.cc
  4076. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. Change the unit of --stop option from a minute to a second.
  4078. * src/usage_text.h
  4079. * src/DownloadEngineFactory.cc
  4080. * src/OptionHandlerFactory.cc
  4081. * src/message.h
  4082. * src/TimedHaltCommand.cc
  4083. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4084. Make listening socket non-block mode.
  4085. * src/FtpConnection.cc
  4086. * src/FtpNegotiationCommand.{h, cc}
  4087. * src/PeerListenCommand.cc
  4088. Fixed the bug that cause slow ftp negotiation.
  4089. * src/FtpNegotiationCommand.{h, cc}
  4090. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4091. Added basic tag to --enable-dht, --dht-listen-port option.
  4092. * src/HelpItemFactory.cc (createHelpItems)
  4093. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4094. Updated text.
  4095. * src/usage_text.h
  4096. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4097. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  4098. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4099. Determin _threadtholdSpeed in each constructor for
  4100. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  4101. * src/ActivePeerConnectionCommand.{h, cc}
  4102. * src/PeerReceiveHandshakeCommand.{h, cc}
  4103. * src/BtSetup.cc
  4104. * src/BtConstants.h
  4105. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4106. Added --bt-min-crypto-level and --bt-require-crypto options.
  4107. * src/OptionHandlerFactory.cc
  4108. * src/MSEHandshake.cc
  4109. * src/HelpItemFactory.cc
  4110. * src/option_processing.cc
  4111. * src/ReceiverMSEHandshakeCommand.cc
  4112. * src/prefs.h
  4113. * src/DefaultBtAnnounce.cc
  4114. * src/InitiatorMSEHandshakeCommand.cc
  4115. * src/usage_text.h
  4116. * test/MSEHandshakeTest.cc
  4117. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4118. Bump version number to 0.13.0b
  4119. * configure.ac
  4120. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4121. Updated doc.
  4122. * src/MessageDigestHelper.h:
  4123. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4124. Use raw message digest as a token instead of its hexadecimal
  4125. representation.
  4126. * src/DHTTokenTracker.cc (generateToken)
  4127. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4128. Added Message Stream Encryption(MSE) support.
  4129. Currently, aria2 accepts incoming connections with Obfuscation Header
  4130. and legacy BitTorrent Header and establishes connections with
  4131. Obfuscation Header first and if failed then retry with legacy
  4132. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  4133. choose ARC4. The new option to change the default behavior is planned.
  4134. For tracker extension, "supportcrypto=1" is added statically.
  4135. * src/PeerInitiateConnectionCommand.{h, cc}
  4136. * src/PeerConnection.{h, cc}
  4137. * src/HandleRegistry.h
  4138. * src/SocketCore.h
  4139. * src/PeerReceiveHandshakeCommand.{h, cc}
  4140. * src/BtRegistry.{h, cc}
  4141. * src/PeerListenCommand.cc
  4142. * src/InitiatorMSEHandshakeCommand.{h, cc}
  4143. * src/ReceiverMSEHandshakeCommand.{h, cc}
  4144. * src/MSEHandshake.{h, cc}
  4145. * src/ARC4Encryptor.h
  4146. * src/ARC4Decryptor.h
  4147. * src/LibgcryptARC4Encryptor.h
  4148. * src/LibgcryptARC4Decryptor.h
  4149. * src/LibgcryptARC4Context.h
  4150. * src/LibsslARC4Encryptor.h
  4151. * src/LibsslARC4Decryptor.h
  4152. * src/LibsslARC4Context.h
  4153. * src/DHKeyExchange.h
  4154. * src/LibgcryptDHKeyExchange.h
  4155. * src/LibsslDHKeyExchange.h
  4156. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  4157. * test/DefaultBtAnnounceTest.cc
  4158. * test/ARC4Test.cc
  4159. * test/DHKeyExchangeTest.cc
  4160. Removed prepareForRetry() because it is not used.
  4161. * src/PeerAbstractCommand.{h, cc}
  4162. * src/PeerInteractionCommand.{h, cc}
  4163. * src/PeerInitiateConnectionCommand.{h, cc}
  4164. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4165. Added the ability to load nodes from torrent file. These nodes are
  4166. added to the routing table when downloading that torrent.
  4167. * src/BtContext.h
  4168. * src/DefaultBtContext.{h, cc}
  4169. * src/DHTSetup.cc
  4170. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  4171. hostname and port pair, and resolves all of them.
  4172. * src/NameResolver.{h, cc}: Added reset().
  4173. * src/RequestGroup.cc
  4174. * test/DefaultBtContextTest.cc
  4175. * test/MockBtContext.h
  4176. Removed assert() from DefaultBtContext and throw exception instead.
  4177. * src/DefaultBtContext.cc
  4178. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. Fixed segmentation fault bug when exiting if dht is disabled.
  4180. * src/RequestGroup.cc
  4181. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4182. Fixed typo in log message and define the message in message.h
  4183. * src/TimedHaltCommand.cc
  4184. * src/message.h
  4185. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4186. Included RecoverableException.h to fix compilation error.
  4187. * test/DHTMessageFactoryImplTest.cc
  4188. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4189. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  4190. * test/DHTPingMessageTest.cc
  4191. * test/DHTGetPeersMessageTest.cc
  4192. * test/DHTFindNodeMessageTest.cc
  4193. * test/DHTAnnouncePeerMessageTest.cc
  4194. * test/MockDHTMessage.h
  4195. * test/MockDHTMessageFactory.h
  4196. * test/MockDHTMessageDispatcher.h: New class.
  4197. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  4199. virtual.
  4200. * src/DHTMessageDispatcher.h
  4201. * src/DHTMessageDispatcherImpl.{h, cc}
  4202. * src/DHTSetup.cc
  4203. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4204. Adding handling of DHT error message. Just log error message and
  4205. throw exception.
  4206. * src/DHTMessageFactoryImpl.cc
  4207. * test/DHTMessageFactoryImplTest.cc
  4208. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Added handling of dynamic cast failure.
  4210. * src/DHTNodeLookupTask.cc
  4211. * src/DHTPeerLookupTask.cc
  4212. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4213. Added the ability to stop aria2 itself when given time has passed
  4214. from start. Use --stop option to specify time in minutes.
  4215. When 0 is given, this feature is disabled.
  4216. * src/OptionHandlerFactory.cc
  4217. * src/TimeBasedCommand.h: Make _interval protected scope.
  4218. * src/HelpItemFactory.cc
  4219. * src/option_processing.cc
  4220. * src/prefs.h
  4221. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  4222. before calling RequestGroupMan::fillRequestGroupFromReserver().
  4223. Without this modification, the result list shows "ERR" when aria2 is
  4224. stopped by --stop option. It should be "INPR".
  4225. * src/DownloadEngine.{h, cc}
  4226. * src/DownloadEngineFactory.cc
  4227. * src/usage_text.h
  4228. * src/TimedHaltCommand.{h, cc}: New class.
  4229. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4230. Bootstrap through node added by port message.
  4231. Currently bootstrap is executed if the number of buckets in routing
  4232. table is 1.
  4233. * src/BtPortMessage.{h, cc}
  4234. * src/DefaultBtMessageFactory.{h, cc}
  4235. * src/PeerInteractionCommand.cc
  4236. * test/BtPortMessageTest.cc
  4237. * test/MockDHTTask.h
  4238. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4239. Extract the Peer class's member variables, which are only needed after
  4240. PeerInteractionCommand, into PeerSessionResource class.
  4241. This class is instantiated in PeerInteractionCommand class's ctor and
  4242. released in its dtor.
  4243. This will make Peer class lightweight and uses less memory for peers
  4244. which are not connected and wait in the queue.
  4245. * src/PeerChokeCommand.cc
  4246. * src/PeerSessionResource.{h, cc}
  4247. * src/PeerInteractionCommand.cc
  4248. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  4249. * src/DefaultBtInteractive.cc
  4250. * src/BtPieceMessage.cc
  4251. * src/BtInterestedMessage.cc
  4252. * src/BtUnchokeMessage.cc
  4253. * src/DefaultPeerStorage.{h, cc}
  4254. * src/PeerInitiateConnectionCommand.cc
  4255. * src/ActivePeerConnectionCommand.cc
  4256. * src/BtNotInterestedMessage.cc
  4257. * src/DefaultBtMessageDispatcher.cc
  4258. * src/BtChokeMessage.cc
  4259. * src/BtRequestMessage.cc
  4260. * src/Peer.{h, cc}
  4261. * src/BtRegistry.h
  4262. * src/TrackerWatcherCommand.cc
  4263. * src/PeerReceiveHandshakeCommand.cc
  4264. * test/BtExtendedMessageTest.cc
  4265. * test/BtAllowedFastMessageTest.cc
  4266. * test/BtCancelMessageTest.cc
  4267. * test/DefaultPieceStorageTest.cc
  4268. * test/BtBitfieldMessageTest.cc
  4269. * test/BtHaveMessageTest.cc
  4270. * test/BtNotInterestedMessageTest.cc
  4271. * test/BtRequestMessageTest.cc
  4272. * test/PeerSessionResourceTest.cc
  4273. * test/DefaultBtMessageDispatcherTest.cc
  4274. * test/PeerTest.cc
  4275. * test/BtInterestedMessageTest.cc
  4276. * test/BtRejectMessageTest.cc
  4277. * test/BtChokeMessageTest.cc
  4278. * test/DefaultPeerStorageTest.cc
  4279. * test/BtHaveNoneMessageTest.cc
  4280. * test/BtHaveAllMessageTest.cc
  4281. * test/DefaultExtensionMessageFactoryTest.cc
  4282. * test/BtUnchokeMessageTest.cc
  4283. * test/DefaultBtMessageFactoryTest.cc
  4284. * test/HandshakeExtensionMessageTest.cc
  4285. * test/UTPexExtensionMessageTest.cc
  4286. * test/DefaultBtRequestFactoryTest.cc
  4287. * test/BtPieceMessageTest.cc
  4288. Removed typedef PeerStats.
  4289. * src/PeerStat.h
  4290. * src/SegmentMan.cc
  4291. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4292. Added std namespace to copy, remove_copy, back_inserter,
  4293. front_inserter.
  4294. * src/RequestGroupMan.cc
  4295. * src/DefaultPieceStorage.cc
  4296. * src/StreamFileAllocationEntry.cc
  4297. * src/BtFileAllocationEntry.cc
  4298. * src/RequestGroup.cc
  4299. * src/MetalinkEntry.cc
  4300. * src/DelegatingPeerListProcessor.cc
  4301. * src/DefaultBtRequestFactory.cc
  4302. * src/DefaultBtMessageDispatcher.cc
  4303. * src/version_usage.cc: Included <algorithm>
  4304. * src/main.cc
  4305. * src/MetalinkParserController.cc
  4306. * src/DefaultBtContext.cc
  4307. * src/DownloadEngineFactory.cc
  4308. * src/a2algo.h
  4309. Removed.
  4310. * test/StreamUriListParserTest.cc
  4311. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4312. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  4313. ActivePeerConnectionCommand when it is given and
  4314. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  4315. * src/ActivePeerConnectionCommand.{h, cc}
  4316. * src/BtSetup.cc
  4317. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4318. Only add socket to DownloadEngine's select routine when peer or
  4319. localhost is unchoked and interested. This lowers CPU usage a
  4320. little bit.
  4321. * src/PeerInteractionCommand.cc
  4322. * src/PeerAbstractCommand.{h, cc}
  4323. * src/BtInteractive.h
  4324. * src/DefaultBtInteractive.{h, cc}
  4325. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4326. Revert previous change because get_peers message is needed for
  4327. announce_peer anyway.
  4328. * src/DHTGetPeersCommand.cc
  4329. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4330. Request peers thought DHT only when download hasn't finished.
  4331. * src/DHTGetPeersCommand.cc
  4332. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4333. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  4334. * src/DHTBucketRefreshTask.{h, cc}
  4335. * src/DHTSetup.cc
  4336. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4337. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  4338. standard classes.
  4339. Included string.h where mem* function are used.
  4340. Added namespace aria2.
  4341. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4342. Create directory before saving DHT routing table.
  4343. Now ios::failure is now handled properly.
  4344. * src/DHTAutoSaveCommand.cc
  4345. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4346. Removed unnecessary cerr.
  4347. * src/DownloadEngine.cc
  4348. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4349. Catch exception inside DHTMessageReceiver::receiveMessage().
  4350. Log unknown message.
  4351. * src/DHTMessageReceiver.{h, cc}
  4352. * src/DHTMessageFactory.h
  4353. * src/DHTMessageFactoryImpl.{h, cc}
  4354. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  4355. * src/DHTInteractionCommand.cc
  4356. * src/DHTUnknownMessage.{h, cc}
  4357. * test/DHTUnknownMessageTest.cc
  4358. * test/MockDHTMessageFactory.h
  4359. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4360. Commented out ip address comparison because a host can have multiple
  4361. ip addresses and it is hard to predict the hostname is resolved into
  4362. which one.
  4363. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  4364. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4365. * po/Makefile.in: Removed since this is generated by configure.
  4366. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4367. Fixed compiler warning about redefinition of SIZE_MAX.
  4368. Use common.h instead of config.h directly here.
  4369. * src/Platform.{h, cc}
  4370. The check of ENABLE_NLS is made in gettext.h, so it is not required
  4371. here.
  4372. * common.h
  4373. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  4374. Updated gettext related files.
  4375. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  4376. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  4377. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4378. Added DHT functionality, compatible with mainline.
  4379. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  4380. You may need to specify entry point to DHT network using
  4381. --dht-entry-point. DHT uses UDP port to listen incoming message.
  4382. Use --dht-listen-port to specify port number. Make sure that your
  4383. firewall configuration can pass through UDP traffic to the port.
  4384. The routing table is saved in $HOME/.aria2/dht.dat.
  4385. * src/DHT*
  4386. * src/BNode.{h, cc}
  4387. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  4388. particular torrent.
  4389. * src/Data.cc: Rewritten ctor.
  4390. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  4391. --dht-entry-point.
  4392. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  4393. * src/RequestGroup.cc: Initialize DHT functionality. When download
  4394. ends, remove BtContext from DHTPeerAnnounceStorage.
  4395. * src/BtPortMessage.{h, cc}: Rewritten.
  4396. * src/message.h
  4397. * src/OptionHandlerImpl.cc
  4398. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  4399. --dht-entry-point.
  4400. * src/Dictionary.{h, cc} (remove): New function.
  4401. * src/prefs.h
  4402. * src/DefaultBtMessageFactory.h
  4403. * src/BtHandshakeMessage.cc
  4404. * src/ActivePeerConnectionCommand.cc
  4405. * src/SocketCore.{h, cc}: Added datagram socket support.
  4406. * src/DefaultBtMessageFactory.cc
  4407. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  4408. Create DHT commands.
  4409. * src/BtMessageFactory.h
  4410. * src/PeerMessageUtil.{h, cc}
  4411. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4412. Fixed the bug that log file is not written when configuration file doesn't exist.
  4413. This is caused by using Logger class before LogFactory is not configured.
  4414. BUG #1875079
  4415. * src/option_processing.cc
  4416. Warning message "configuration doesn't exist" is only printed when --conf is
  4417. given.
  4418. * src/option_processing.cc
  4419. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4420. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  4421. ShaVisitor is now deprecated and slated to be removed.
  4422. * src/DefaultBtContext.cc
  4423. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4424. Externalize message to message.h
  4425. * src/Platform.cc
  4426. * src/message.h
  4427. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4428. Set default domain and default path to cookie.
  4429. * src/HttpResponse.cc
  4430. * src/CookieBox.{h, cc}
  4431. * src/CookieParser.{h, cc}
  4432. * test/CookieParserTest.cc
  4433. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4434. Added --no-conf and --conf-path command-line option.
  4435. --no-conf option disables loading aria2.conf file.
  4436. --conf-path option changes the configuration file path. The default
  4437. file path is $HOME/.aria2/aria2.conf
  4438. Added a warning message when the configuration file is not found.
  4439. * src/HelpItemFactory.cc
  4440. * src/option_processing.cc
  4441. * src/prefs.h
  4442. * src/usage_text.h
  4443. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4444. Added the message to inform users that other help categories are
  4445. available in -h option.
  4446. * src/version_usage.cc
  4447. * src/TagContainer.{h, cc}
  4448. * test/TagContainerTest.cc
  4449. * src/TaggedItem.{h, cc}
  4450. * test/TaggedItemTest.cc
  4451. * src/HelpItem.h
  4452. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4453. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  4454. from PiecedSegment's ctor.
  4455. Previously Piece::getAllMissingBlockIndexes() is called from
  4456. PiecedSegment() but it is rather expensive since only first element is
  4457. used.
  4458. * src/PiecedSegment.cc
  4459. * src/Piece.{h, cc}
  4460. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4461. Rewritten get*Missing*Index functions. Now no need to allocate memory
  4462. each time these functions are called.
  4463. * src/BitfieldMan.{h, cc}
  4464. * test/BitfieldManTest.cc
  4465. * src/array_fun.h
  4466. * test/array_funTest.cc
  4467. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  4468. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  4469. filtered. Removed unnecessary cast to int32_t.
  4470. * src/BitfieldMan.{h, cc}
  4471. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4472. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  4473. payload length(4bytes) are received. This happens because lenbufLength
  4474. is not updated in this particular case and successive call of
  4475. receiveMessage() overwrites payload length with bytes recieved which
  4476. are payload body.
  4477. * src/PeerConnection.{h, cc}
  4478. * src/message.h
  4479. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4480. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  4481. peer if there are peers that have same ipaddr and port.
  4482. I've experiened segmentation fault and "pure virtual function was
  4483. called" error.
  4484. * src/Peer.h
  4485. * test/PeerTest.cc
  4486. * src/DefaultPeerStorage.cc
  4487. * test/DefaultPeerStorageTest.cc
  4488. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4489. Removed a call to isPowerOf() because it is no longer necessary here
  4490. and a request block is not always power of 2.
  4491. BUG#1866924
  4492. * src/PeerMessageUtil.cc (checkLength)
  4493. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Fixed the bug that always first found Segment is removed from
  4495. usedSegmentEntries. Removed unused functions.
  4496. * src/SegmentMan.{h, cc}
  4497. * test/SegmentManTest.cc
  4498. Fixed the bug that ServerHost is not removed.
  4499. * src/RequestGroup.cc
  4500. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4501. Fixed the bug that SegmentMan::completeSegment() is not called
  4502. even if Segment is complete when --lowest-speed-limit is enabled.
  4503. BUG#1864525
  4504. * src/DownloadCommand.{h, cc}
  4505. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Fixed: hash algorithm 'sha1' is always used.
  4507. * src/DownloadCommand.cc (validatePieceHash)
  4508. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4509. Added --enable-peer-exchange command-line option.
  4510. * src/OptionHandlerFactory.cc
  4511. * src/HelpItemFactory.cc
  4512. * src/option_processing.cc
  4513. * src/usage_text.h
  4514. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4515. Move extension from BtRuntime to ExtensionMessageFactory, because
  4516. extension can be specified per peer, not per torrent.
  4517. * src/DefaultBtInteractive.cc
  4518. * src/BtRuntime.h
  4519. * src/ExtendedMessagingAware.h
  4520. * src/ExtensionMessageFactory.h
  4521. * src/DefaultExtensionMessageFactory.cc
  4522. * test/DefaultExtensionMessageFactoryTest.cc
  4523. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4524. Added categorized option help. Specify category using --help option.
  4525. Also added the ability to search options in forward match.
  4526. * src/HelpItem.{h, cc}
  4527. * test/HelpItemTest.cc
  4528. * src/HelpItemFactory.{h, cc}
  4529. * src/TagContainer.{h, cc}
  4530. * test/TagContainerTest.cc
  4531. * src/option_processing.cc
  4532. * src/prefs.h
  4533. * src/TaggedItem.{h, cc}
  4534. * test/TaggedItemTest.cc
  4535. * src/version_usage.cc
  4536. * src/help_tags.h
  4537. * src/usage_text.h
  4538. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4539. Fixed segmentation fault when bad torrent metainfo is parsed.
  4540. Added dynamic_cast properly to detect the misconfiguration of metainfo
  4541. and then throw exception or skip it.
  4542. * src/DefaultBtContext.{h, cc}
  4543. * test/DefaultBtContextTest.cc
  4544. * src/AnnounceList.cc
  4545. * src/CompactPeerListProcessor.cc
  4546. * src/message.h
  4547. * src/DefaultBtAnnounce.{h, cc}
  4548. * test/DefaultBtAnnounceTest.cc
  4549. * src/BencodeVisitor.cc
  4550. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4551. Added missing "B"(=Byte). So now the message looks like this:
  4552. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  4553. * src/message.h (MSG_SHARE_RATIO_REPORT)
  4554. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4555. Show the seed ratio after torrent downloads.
  4556. For example, after torrent download completed and --seed-time and
  4557. --seed-ratio conditions are fulfilled, following message is printed
  4558. right after "Download complete: .....":
  4559. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  4560. * src/RequestGroupMan.cc
  4561. * src/RequestGroup.{h, cc}
  4562. * src/message.h
  4563. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4564. Remove a defunct control file. A defunct control file means that while
  4565. it exists, but the corresponding download file is missing.
  4566. After its removal, a download restarts from the beginning.
  4567. * src/RequestGroup.cc
  4568. * src/message.h
  4569. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4570. Allocate bitfield in Peer when it is really used. More specifically,
  4571. bitfield in Peer is allocated after the connection is established and
  4572. deallocated when the connection is dropped.
  4573. Since 2 parameters(piece length and total length) was removed from the
  4574. constructor of Peer class, many test classes were modified accordingly.
  4575. See svn log for more detailed information.
  4576. * src/PeerInteractionCommand.cc
  4577. * src/CompactPeerListProcessor.cc
  4578. * src/Peer.cc
  4579. * src/DefaultPeerListProcessor.cc
  4580. * src/PeerListenCommand.cc
  4581. * src/PeerReceiveHandshakeCommand.cc
  4582. Fixed memory leak
  4583. * src/Piece.cc
  4584. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4585. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  4586. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  4587. command-line options.
  4588. * src/option_processing.cc
  4589. * src/ActivePeerConnectionCommand.cc
  4590. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4591. Send have message to peer if it already has the piece.
  4592. * src/BtHaveMessage.{h, cc}
  4593. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4594. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  4595. port.
  4596. * src/DefaultPeerStorage.{h, cc}
  4597. * test/DefaultPeerStorageTest.cc
  4598. * src/HandshakeExtensionMessage.cc
  4599. * test/HandshakeExtensionMessageTest.cc
  4600. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  4601. * src/PeerStorage.h
  4602. * test/MockPeerStorage.h
  4603. * src/PeerListenCommand.cc
  4604. * src/PeerReceiveHandshakeCommand.cc
  4605. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4606. Added --metalink-enable-unique-protocol option.
  4607. * src/Metalink2RequestGroup.cc
  4608. * src/option_processing.cc
  4609. * src/prefs.h
  4610. * src/version_usage.cc
  4611. * doc/aria2c.1.txt
  4612. * doc/aria2c.1
  4613. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4614. Allow a peer in incomingPeer to be added peers.
  4615. * src/DefaultPeerStorage.cc
  4616. * test/DefaultPeerStorageTest.cc
  4617. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4618. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  4619. I could reproduce this bug in following procedure:
  4620. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  4621. 2. Restart aria2.
  4622. 3. You see the download stopped around 99%.
  4623. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  4624. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  4625. If timeout is reached, then _nextCommand is unused and it may contains
  4626. segments and they won't be canceled. Actually, timeout is not needed
  4627. here because if the server dropped connection, then retry is made.
  4628. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4629. Added uTorrent compatible Peer Exchange.
  4630. * src/BencodeVisitor.{h, cc}
  4631. * test/BencodeVisitorTest.cc
  4632. * src/BtConstants.h
  4633. * src/BtContext.h: Added 'private' flag.
  4634. * src/BtExtendedMessage.{h, cc}
  4635. * test/BtExtendedMessageTest.cc
  4636. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  4637. reserved field.
  4638. * test/BtHandshakeMessageTest.cc
  4639. * src/BtMessageFactory.h
  4640. * src/BtRegistry.h
  4641. * src/BtRuntime.h: This class holds default extension message IDs for
  4642. aria2. By default, aria2 uses ID 8 for ut_pex.
  4643. * src/DefaultBtContext.cc
  4644. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  4645. When it is true, aria2 enables ut_pex. This value is set by
  4646. PeerInteractionCommand.
  4647. * src/DefaultBtMessageFactory.{h, cc}
  4648. * test/DefaultBtMessageFactoryTest.cc
  4649. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  4650. handling to DefaultBtInteractive class.
  4651. * src/DefaultExtensionMessageFactory.{h, cc}
  4652. * test/DefaultExtensionMessageFactoryTest.cc
  4653. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  4654. the container(peers and incomingPeers. The equality is determined by
  4655. Peer::id).
  4656. * test/DefaultPeerStorageTest.cc
  4657. * src/ExtensionMessage.h
  4658. * test/MockExtensionMessage.h
  4659. * src/ExtensionMessageFactory.h
  4660. * test/MockExtensionMessageFactory.h
  4661. * src/HandshakeExtensionMessage.{h, cc}
  4662. * test/HandshakeExtensionMessageTest.cc
  4663. * src/MetaEntry.h
  4664. * src/Peer.{h, cc}
  4665. * src/PeerInteractionCommand.cc
  4666. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  4667. addIncomingPeer.
  4668. * src/PeerMessageUtil.{h, cc}
  4669. * src/PeerObject.h
  4670. * src/UTPexExtensionMessage.{h, cc}
  4671. * test/UTPexExtensionMessageTest.cc
  4672. * src/message.h
  4673. * src/prefs.h
  4674. Fixed the bug that returns incomplete data when it contains null
  4675. character. A convenient constructor was also added.
  4676. * src/Data.{h, cc}
  4677. Rewritten.
  4678. * src/CompactPeerListProcessor.cc
  4679. Fixed typos.
  4680. * src/message.h
  4681. * src/MetaFileUtil.cc
  4682. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4683. Added "Status Legend" label to the explanation text of 'stat' in
  4684. download result and moved it to the last. BUG#1848214
  4685. * src/RequestGroupMan.cc
  4686. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4687. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  4688. * src/Makefie.am
  4689. * test/Makefile.am
  4690. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4691. Fixed the bug that prevents aria2 from loading cookie file when expire
  4692. value is greater than 2^31-1. BUG#1851066
  4693. * src/CookieBoxFactory.cc
  4694. * test/CookieBoxFactoryTest.cc
  4695. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4696. Fixed possible memory leak when an exception is thrown.
  4697. * src/XML2SAXMetalinkProcessor.cc
  4698. Added Expat support. If both libxml2 and Expat are installed, then
  4699. libxml2 is used by default.
  4700. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  4701. ExpatMetalinkProcessor according to the configuration.
  4702. * src/ExpatMetalinkProcessor.{h, cc}
  4703. * src/main.cc: Removed libxml2 specific header and init/free function.
  4704. * src/MetalinkProcessorFactory.{h, cc}
  4705. * src/MetalinkHelper.cc
  4706. * src/Metalinker.h: Removed unnecessary libxml2 header.
  4707. * src/MetalinkProcessor.h
  4708. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  4709. MetalinkProcessorTest is used instead.
  4710. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  4711. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  4712. MetalinkProcessorFactory::newInstance().
  4713. * m4/libexpat.m4
  4714. * configure.ac: Added configuration options for libexpat.
  4715. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4716. Disabled -s option in metalink download.
  4717. * src/Metalink2RequestGroup.cc
  4718. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4719. If several protocols are available for a mirror in metalink file,
  4720. aria2 now use one of them. --metalink-preferred-protocol option was
  4721. added to specify the preference of protocol.
  4722. * src/AbstractCommand.cc
  4723. * src/OptionHandlerFactory.cc
  4724. * src/ServerHost.{h, cc}
  4725. * src/Metalink2RequestGroup.cc
  4726. * src/RequestGroup.{h, cc}
  4727. * test/RequestGroupTest.cc
  4728. * src/option_processing.cc
  4729. * src/prefs.h
  4730. * src/HttpResponseCommand.cc
  4731. * src/MetalinkResource.{h, cc}
  4732. * src/FtpNegotiationCommand.cc
  4733. * src/MetalinkEntry.{h, cc}
  4734. * src/MetalinkEntryTest.cc
  4735. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4736. Code cleanup and added debug log.
  4737. * src/PeerConnection.cc
  4738. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Compiler error fix: applied the patch by Tiziano Mueller
  4740. * src/RequestGroup.cc
  4741. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4742. Fixed the bug: only first announce URL is tried in AnnounceTier,
  4743. in stopped and completed event.
  4744. * src/AnnounceList.{h, cc}
  4745. * test/AnnounceListTest.cc
  4746. * src/DefaultBtAnnounce.cc
  4747. * test/DefaultBtAnnounceTest.cc
  4748. Sorted URLs.
  4749. * test/Metalink2RequestGroupTest.cc
  4750. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4751. Removed unnecessary string copy. Updated doc and corrected indentation.
  4752. * src/Base64.cc
  4753. Fixed compilation warnings
  4754. * test/DataTest.cc
  4755. * test/HttpRequestTest.cc
  4756. * test/MetaFileUtilTest.cc
  4757. * test/RequestTest.cc
  4758. * Release 0.12.0
  4759. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4760. Updated translations
  4761. * po/{de,fr,ja,nl,ru}.po
  4762. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  4763. translations. Many thanks to translators.
  4764. * po/{ca,es,it,pt_BR,sv}.po
  4765. * po/LINGUAS
  4766. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4767. Added a notice about URL
  4768. * src/version_usage.cc
  4769. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  4770. Fixed the bug#1845750; CTRL+C does not stop torrent.
  4771. aria2 repeatedly sends stopped request when tracker returns error code.
  4772. * src/AnnounceList.cc
  4773. * test/AnnounceListTest.cc
  4774. * src/AnnounceTier.h
  4775. Added a message when ctrl-c is hit.
  4776. Now second ctrl-c is also handled in signal handler.
  4777. * src/RequestGroupMan.{h, cc}
  4778. * src/RequestGroup.{h, cc}
  4779. * src/MultiUrlRequestInfo.cc
  4780. * src/DownloadEngine.cc
  4781. * src/TrackerWatcherCommand.cc
  4782. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4783. Code cleanup
  4784. * src/Base64.cc (encode)
  4785. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4786. Changed Direct/IO enable/disable procesure in file allocation routine.
  4787. * src/SingleFileAllocationIterator.cc
  4788. (SingleFileAllocationIterator):
  4789. Disable directIO if offset is not multiple of 512.
  4790. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  4791. * src/MultiFileAllocationIterator.cc (allocateChunk):
  4792. Enable created SingleFileAllocationIterator's directIO.
  4793. * src/FileAllocationEntry.cc
  4794. (FileAllocationEntry): Enable directIO here.
  4795. (~FileAllocationEntry): Disable directIO here.
  4796. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4797. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  4798. * src/Peer.{h, cc}
  4799. * src/DefaultPieceStorage.cc
  4800. * test/DefaultPieceStorageTest.cc
  4801. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4802. Rewritten direct I/O support routine
  4803. * src/SingleFileAllocationIterator.cc
  4804. * src/MultiDiskAdaptor.{h, cc}
  4805. * src/ByteArrayDiskWriter.h
  4806. * src/AbstractSingleDiskAdaptor.h
  4807. * src/AbstractDiskWriter.cc
  4808. * src/DefaultPieceStorage.cc
  4809. * src/DiskWriter.h
  4810. * src/BinaryStream.h
  4811. * src/IteratableChunkChecksumValidator.cc
  4812. * src/IteratableChecksumValidator.cc
  4813. * src/CheckIntegrityEntry.cc
  4814. * src/FileAllocationEntry.cc
  4815. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4816. Fixed typo
  4817. * src/version_usage.cc
  4818. Updated doc
  4819. * doc/aria2c.1.txt
  4820. * doc/aria2c.1
  4821. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4822. Fixed compile error without message digest support.
  4823. * src/FileMetalinkParserState.cc
  4824. * src/MetalinkParserController.{h, cc}
  4825. * test/XML2SAXMetalinkProcessorTest.cc
  4826. * test/MetalinkParserControllerTest.cc
  4827. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Enable direct I/O support in checksum checking.
  4829. * src/IteratableChunkChecksumValidator.{h, cc}
  4830. * test/IteratableChunkChecksumValidatorTest.cc
  4831. * src/CheckIntegrityEntry.cc
  4832. * src/PieceHashCheckIntegrityEntry.cc
  4833. * src/IteratableChecksumValidator.{h, cc}
  4834. * src/BtCheckIntegrityEntry.cc: Added doc.
  4835. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4836. Added --allow-piece-length-change option.
  4837. * src/DefaultBtProgressInfoFile.cc
  4838. * test/DefaultBtProgressInfoFileTest.cc
  4839. * src/OptionHandlerFactory.cc
  4840. * src/option_processing.cc
  4841. * src/prefs.h
  4842. * src/version_usage.cc
  4843. * doc/aria2c.1.txt
  4844. * doc/aria2c.1
  4845. Fixed: duplicated result entry appears when exception is thrown in
  4846. RequestGroup::createInitiateConnectionCommand().
  4847. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  4848. Add RequestGroup to _requestGroup after RequetGroup::
  4849. createInitiateConnectionCommand() succeeds.
  4850. Externalized message
  4851. * src/XML2SAXMetalinkProcessor.cc
  4852. * src/message.h
  4853. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4854. Forced download abort when received negative response from http/ftp
  4855. server.
  4856. * src/HttpResponseCommand.cc
  4857. * src/FtpNegotiationCommand.cc
  4858. * src/HttpResponse.cc
  4859. * src/FtpConnection.cc
  4860. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4861. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  4862. the predecessor, Xml2MetalinkParser class.
  4863. I tested them against 94KB metalink file with 1234 chunk checksums.
  4864. The new one parsed it in 22msec, while it took 6000msec with old one.
  4865. * src/XML2SAXMetalinkProcessor.{h, cc}
  4866. * test/XML2SAXMetalinkProcessorTest.cc
  4867. * src/MetalinkParserController.{h, cc}
  4868. * test/MetalinkParserControllerTest.cc
  4869. * src/MetalinkParserState.h: Also added 16 subclasses.
  4870. * src/main.cc
  4871. * src/Metalink2RequestGroup.cc
  4872. * src/MetalinkHelper.cc
  4873. * src/MetalinkEntry.cc
  4874. * src/ChunkChecksum.h
  4875. Rewritten Base64 class for better performance.
  4876. * src/Base64.{h, cc}
  4877. * test/Base64Test.cc
  4878. * src/HttpRequest.cc
  4879. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4880. Fixed the bug#1841757: aria2 will connect to server to only get
  4881. file size.
  4882. * src/StreamFileAllocationEntry.cc
  4883. * src/option_processing.cc
  4884. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  4885. downloads.
  4886. * src/FtpNegotiationCommand.cc
  4887. Suppressed wrong message when finding PreDownloadHandler
  4888. * src/RequestGroup.cc
  4889. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4890. Updated usage
  4891. * src/version_usage.cc
  4892. Updated man page
  4893. * doc/aria2c.1.txt
  4894. * doc/aria2c.1
  4895. Updated po files
  4896. * po/aria2c.pot
  4897. * po/*.po
  4898. * po/*.gmo
  4899. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4900. Eliminated g++-4.2 warning
  4901. * src/DownloadHandlerConstants.{h, cc}
  4902. * src/Util.cc
  4903. * test/MetaFileUtilTest.cc
  4904. * test/PStringBuildVisitorTest.cc
  4905. Fixed bug: --check-integrity doesn't work for multi file torrent.
  4906. * src/RequestGroup.cc
  4907. * src/BtCheckIntegrityEntry.cc
  4908. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4909. Fixed a2io.h
  4910. * src/a2io.h
  4911. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4912. Added direct I/O support. The current implementation uses O_DIRECT,
  4913. which is not posix standard and is tested on linux 2.6.21.
  4914. Currently only file allocation uses direct I/O.
  4915. * src/SingleFileAllocationIterator.{h, cc}
  4916. * test/SingleFileAllocationIteratorTest.cc
  4917. * src/MultiFileAllocationIterator.{h, cc}
  4918. * test/MultiFileAllocationIteratorTest.cc
  4919. * src/BinaryStream.h
  4920. * src/DiskWriter.h
  4921. * src/AbstractDiskWriter.{h, cc}
  4922. * src/ByteArrayDiskWriter.h
  4923. * src/DiskAdaptor.h
  4924. * src/AbstractSingleDiskAdaptor.{h, cc}
  4925. * src/MultiDiskAdaptor.{h, cc}
  4926. * src/FileAllocationEntry.cc
  4927. * src/Util.{h, cc}
  4928. * src/OptionHandlerFactory.cc
  4929. * src/prefs.h
  4930. * src/version_usage.cc
  4931. * src/option_processing.cc
  4932. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  4933. handleException.
  4934. * src/MultiFileAllocationIterator.cc
  4935. Added EINTR handling
  4936. * src/SocketCore.cc
  4937. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4938. Updated usage
  4939. * src/version_usage.cc
  4940. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4941. Applied Ross's patch for MinGW port.
  4942. * src/DownloadEngine.h
  4943. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4944. Set Content-Type to SingleFileDownloadContext when http response is
  4945. received.
  4946. * src/HttpResponseCommand.cc
  4947. * src/HttpResponse.{h, cc}
  4948. * test/HttpResponseTest.cc
  4949. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4950. Rewritten to add content-type support.
  4951. * src/DownloadHandler.{h, cc}
  4952. * src/BtPostDownloadHandler.{h, cc}
  4953. * test/BtPostDownloadHandlerTest.cc
  4954. * src/MetalinkPostDownloadHandler.{h, cc}
  4955. * test/MetalinkPostDownloadHandlerTest.cc
  4956. * src/PostDownloadHandler.{h, cc}
  4957. * src/DownloadHandlerConstants.{h, cc}
  4958. * src/RequestGroup.cc
  4959. * src/HttpResponseCommand.cc
  4960. * src/FtpNegotiationCommand.cc
  4961. * src/SingleFileDownloadContext.{h, cc}
  4962. * src/RequestGroup.h
  4963. * src/RequestGroupCriteria.h
  4964. * src/ContentTypeRequestGroupCriteria.h
  4965. Added 'mem' option value for --follow-metalink, --follow-torrent.
  4966. If it is give, metalink/torrent file is not written to the disk, but
  4967. just is kept in memory. Parsing is occurred on memory.
  4968. * src/MetalinkHelper.{h, cc}
  4969. * src/MetalinkProcessor.h
  4970. * src/Xml2MetalinkProcessor.{h, cc}
  4971. * test/Xml2MetalinkProcessorTest.cc
  4972. * src/DownloadHandlerFactory.{h, cc}
  4973. * test/DownloadHandlerFactoryTest.cc
  4974. * src/PreDownloadHandler.{h, cc}
  4975. * src/OptionHandlerFactory.cc
  4976. * src/DefaultBtContext.{h, cc}
  4977. * test/DefaultBtContextTest.cc
  4978. * src/version_usage.cc
  4979. * src/Metalink2RequestGroup.{h, cc}
  4980. * src/RequestGroup.{h, cc}
  4981. * src/a2functional.h
  4982. * test/a2functionalTest.cc
  4983. * src/MemoryBufferPreDownloadHandler.{h, cc}
  4984. * src/OptionHandlerImpl.h
  4985. * src/prefs.h
  4986. * src/Util.{h, cc}
  4987. * test/UtilTest.cc
  4988. Keep DownloadResult rather than RequestGroup after downloads to reduce
  4989. memory usage.
  4990. * src/RequestGroupMan.{h, cc}
  4991. * src/DownloadEngine.cc
  4992. * src/BtDependency.{h, cc}: Changed the type of dependee from
  4993. WeakHandle to SharedHandle because WeakHandle could be null.
  4994. * src/RequestGroup.{h, cc}
  4995. * src/DownloadEngineFactory.cc
  4996. * src/DownloadResult.h
  4997. Set totalLength after download finished
  4998. * src/UnknownLengthPieceStorage.{h, cc}
  4999. Keep torrent file specified in metalink in memory.
  5000. * src/Metalink2RequestGroup.cc
  5001. * src/BtDependency.cc
  5002. * src/TrueRequestGroupCriteria.h
  5003. Fixed the bug: seekg is used where seekp should be used.
  5004. * src/ByteArrayDiskWriter.cc
  5005. * test/ByteArraydiskWriterTest.cc
  5006. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5007. Fixed syntax error
  5008. * test/SequenceTest.cc
  5009. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5010. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5011. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  5012. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5013. * src/RequestGroup.cc (downloadFinishedByFileLength)
  5014. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5015. Added the check to see whether ares_host_callback accepts timeouts
  5016. with c-ares; only c-ares 1.5.0 or newer accepts it.
  5017. * src/NameResolver.{h, cc}
  5018. * m4/libcares.m4
  5019. * configure.ac: Set C++ for language choice.
  5020. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Fixed: compilation fails without c-ares/ares
  5022. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  5023. Generate http/ftp commands only when download is incomplete.
  5024. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  5025. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Corrected typo. Examples are removed since they are available in man
  5027. page.
  5028. * src/version_usage.cc
  5029. Updated man page.
  5030. * doc/aria2c.1
  5031. * doc/aria2c.1.txt
  5032. * doc/makeman: Commented out sed command.
  5033. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5034. Throw DlAbortEx when a remote file is not found.
  5035. * src/HttpResponse.cc
  5036. * src/FtpNegotiationCommand.cc
  5037. * src/message.h
  5038. Overwrite an existing file if --allow-overwrite=true is given.
  5039. * src/RequestGroup.cc
  5040. Removed unused functions
  5041. * src/AbstractCommand.h
  5042. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5043. Removed 'extern' from 'extern typedef ...' in src/*.h
  5044. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5045. Updated usage
  5046. * src/version_usage.cc
  5047. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5048. Trim announce URL
  5049. * src/DefaultBtContext.cc
  5050. * test/ShaVisitorTest.cc
  5051. Trim argument s. Give trimed s to exception constructor.
  5052. * src/Util.cc (parseInt)(parseLLInt)
  5053. * test/UtilTest.cc
  5054. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5055. Set precision back to 1.
  5056. * src/ConsoleStatCalc.cc (calculateStat)
  5057. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5058. Replaced strtol with Util::parseInt
  5059. * src/ChunkedEncoding.cc
  5060. * src/HttpConnection.cc
  5061. * src/CookieBoxFactory.cc
  5062. * src/ParameterizedStringParser.cc
  5063. * src/Util.cc
  5064. * test/UtilTest.cc
  5065. * test/OptionHandlerTest.cc
  5066. * src/Request.cc
  5067. Throw exception when empty string is given. The message for exception
  5068. changed.
  5069. * src/Util.cc (parseInt)(parseLLInt)
  5070. * src/message.h
  5071. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5072. Set precision to 2 because share ratio is rounded into 1.0 if precision
  5073. set to 1.
  5074. * src/ConsoleStatCalc.cc (calculateStat)
  5075. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5076. Preallocate non-requested file which is adjacent forward to requested
  5077. file('requested' files means the files given in --select-file option)
  5078. if they share a same piece.
  5079. This fixes long pause in the file system which doesn't support sparse
  5080. files like FAT32 while downloading.
  5081. * src/MultiFileAllocationIterator.{h, cc}
  5082. * test/MultiFileAllocationIteratorTest.cc
  5083. * src/FileEntry.{h, cc}
  5084. Removed unused _option.
  5085. * src/MultiDiskAdaptor.h
  5086. * test/MultiDiskAdaptorTest.cc
  5087. * src/DefaultPieceStorage.cc
  5088. Set the default value of --seed-ratio to 1.0.
  5089. If 0.0 is given, then seeding continues regardless of share ratio.
  5090. * src/version_usage.cc
  5091. * src/option_processing.cc
  5092. * src/BtSetup.cc
  5093. * doc/aria2c.1.txt
  5094. * doc/aria2c.1
  5095. Fixed: Selective download is not working in BitTorrent
  5096. * src/RequestGroup.cc
  5097. Introduced Sequence class. Use this instead of Util::unfoldRange()
  5098. * src/PieceStorage.h
  5099. * test/MockPieceStorage.h
  5100. * src/UnknownLengthPieceStorage.h
  5101. * src/DefaultPieceStorage.{h, cc}
  5102. * src/Metalink2RequestGroup.cc
  5103. * src/RequestGroup.cc
  5104. * src/Sequence.h
  5105. * test/SequenceTest.cc
  5106. * src/IntSequence.h
  5107. * src/message.h
  5108. * src/Util.{h, cc}
  5109. * test/UtilTest.cc
  5110. Added new function 'parse' to catch exception thrown by subclass's
  5111. parseArg
  5112. * src/OptionHandler.h
  5113. * src/OptionParser.cc
  5114. * src/NameMatchOptionHandler.h
  5115. * src/OptionHandlerImpl.h
  5116. * test/OptionHandlerTest.cc
  5117. Added IntegerRangeOptionHandler. Used for --listen-port and
  5118. --select-file. Now --listen-port accepts range of port.
  5119. * src/OptionHandlerFactory.cc
  5120. * src/version_usage.cc
  5121. * src/OptionHandlerImpl.h
  5122. * src/option_processing.cc
  5123. * src/BtSetup.cc
  5124. * src/PeerListenCommand.{h, cc}
  5125. * doc/aria2c.1.txt
  5126. * doc/aria2c.1
  5127. Implemented operator< for Exception class to provide easy way to print
  5128. exception stack trace.
  5129. * src/Exception.{h, cc}
  5130. * src/main.cc
  5131. * src/option_processing.cc
  5132. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5133. * src/version_usage.cc
  5134. (showVersion): Reworked.
  5135. (showUsage): Added examples.
  5136. Removed Hint for total length and file name.
  5137. * src/Metalink2RequestGroup.cc
  5138. * src/RequestGroup.{h, cc}
  5139. * src/HttpResponseCommand.cc
  5140. * src/FtpNegotiationCommand.cc
  5141. Now --follow-torrent and --follow-metalink option work properly.
  5142. * src/RequestGroup.cc
  5143. Updated man page
  5144. * doc/aria2c.1.txt
  5145. * doc/aria2c.1
  5146. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. Removed.
  5148. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  5149. Use Segment::operator==()
  5150. * src/HttpConnection.cc
  5151. * src/Segment.h
  5152. Updated usage
  5153. * src/version_usage.cc
  5154. Added EINTR treatment.
  5155. * src/SocketCore.cc
  5156. * src/AbstractDiskWriter.cc
  5157. Rewritten.
  5158. * src/Util.cc (rangedFileCopy)
  5159. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5160. Fixed typo.
  5161. * src/version_usage.cc
  5162. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5163. Implemented. Now -c option works fine.
  5164. * src/DefaultPieceStorage.cc (markPiecesDone)
  5165. * test/DefaultPieceStorageTest.cc
  5166. Removed.
  5167. * src/SegmentMan.{h, cc}
  5168. (markAllPiecesDone)
  5169. (markPieceDone)
  5170. Synchronized po files with
  5171. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  5172. * src/fr.po
  5173. * src/ru.po
  5174. * src/de.po
  5175. * src/ja.po
  5176. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5177. Added ifdef and some modifications to compile without BitTorrent,
  5178. Metalink, MessageDigest
  5179. support.
  5180. * src/PieceHashCheckIntegrityEntry.cc
  5181. * src/MetalinkEntry.h
  5182. * src/version_usage.cc
  5183. * src/main.cc
  5184. * src/DownloadEngine.{h, cc}
  5185. * src/Metalink2RequestGroup.cc
  5186. * src/Peer.cc
  5187. * src/RequestGroup.cc
  5188. * src/MetalinkHelper.cc
  5189. * test/DefaultPieceStorageTest.cc
  5190. * test/MetalinkPostDownloadHandlerTest.cc
  5191. * test/Metalink2RequestGroupTest.cc
  5192. Hide TOTAL SPD when all downloads complete.
  5193. * src/ConsoleStatCalc.cc
  5194. Log target system information.
  5195. * src/main.cc
  5196. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5197. Now --metalink-location accepts a comma-deliminated list of locations.
  5198. * src/MetalinkEntry.{h, cc}
  5199. * test/MetalinkEntryTest.cc
  5200. * src/version_usage.cc
  5201. * src/Metalink2RequestGroup.cc
  5202. * src/Xml2MetalinkProcessor.cc
  5203. * test/Xml2MetalinkProcessorTest.cc
  5204. * doc/aria2c.1.txt
  5205. * doc/aria2c.1
  5206. * src/Util.cc (toUpper)(toLower): Rewritten.
  5207. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5208. Added the ability to detect duplicate download entry which is about to
  5209. download the same file other RequestGroup is downloading.
  5210. * src/RequestGroup.cc
  5211. * src/HttpResponseCommand.cc
  5212. * src/FtpNegotiationCommand.cc
  5213. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. Recalculates download progress when loading a control file,
  5215. if the piece length of DownloadContext is different from the one saved
  5216. in the control file. Currently in-flight pieces are ignored.
  5217. * src/DefaultBtProgressInfoFile.cc
  5218. * test/DefaultBtProgressInfoFileTest.cc
  5219. * src/Util.{h, cc}
  5220. * test/UtilTest.cc
  5221. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5222. Do not rotate tiers in announce-list.
  5223. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  5224. AnnounceList::allTiersFailed() used instead to detect whether all
  5225. tiers are tried and failed.
  5226. * test/DefaultBtAnnounceTest.cc
  5227. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  5228. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  5229. * test/AnnounceListTest.cc
  5230. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  5231. clause. Catch RecoverableException instead of DlRetryEx instead.
  5232. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5233. Implemented checksum validation feature(1 checksum for each file)
  5234. The validation takes place after the download.
  5235. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  5236. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  5237. * src/CheckIntegrityCommand.cc: Changed log message.
  5238. * src/Metalink2RequestGroup.cc: Set checksum to
  5239. SingleFileDownloadContext.
  5240. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  5241. PieceHashCheckIntegrity class.
  5242. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  5243. PieceHashCheckIntegrity class.
  5244. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  5245. * src/IteratableValidator.h: New class.
  5246. * src/message.h
  5247. * src/CheckIntegrityEntry.{h, cc}
  5248. * src/IteratableChunkChecksumValidator.{h, cc}
  5249. * src/SingleFileDownloadContext.h
  5250. * src/DownloadCommand.cc
  5251. --allow-overwrite=true is no longer needed to check file integrity
  5252. before download in BitTorrent download.
  5253. * src/RequestGroup.cc (getInitialCommand)
  5254. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  5255. throws exception.
  5256. * src/RequestGroupMan.cc (getInitialCommands)
  5257. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5258. urlencode the given url inside Request::parseUrl(...)
  5259. * src/Request.{h, cc}
  5260. * src/Util.{h, cc}
  5261. * test/RequestTest.cc
  5262. Removed #!metalink3! notation support because it is deleted from
  5263. the metalink specification.
  5264. * src/Request.{h, cc}
  5265. * test/RequestTest.cc
  5266. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Don't connect server before checking file integrity at startup, if
  5268. filesize and output file path are known.
  5269. * src/AbstractCommand.cc
  5270. * src/StreamFileAllocationEntry.cc
  5271. * src/Metalink2RequestGroup.cc
  5272. * src/RequestGroup.{h, cc}
  5273. * src/HttpResponseCommand.cc
  5274. * src/FtpNegotiationCommand.cc
  5275. Added DownloadFailureException. If it is thrown, RequestGroup should
  5276. halt.
  5277. * src/AbstractCommand.cc
  5278. * src/DownloadFailureException.h
  5279. * src/RequestGroup.cc
  5280. Catch RecoverableException, instead of DlAbortEx.
  5281. * src/RequestGroupMan.cc
  5282. * src/FillRequestGroupCommand.cc
  5283. * src/MetaFileUtil.cc
  5284. * src/IteratableChunkChecksumValidator.cc
  5285. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  5286. getGID())
  5287. * src/CheckIntegrityCommand.cc
  5288. * src/message.h
  5289. Print gid instead of idx.
  5290. * src/RequestGroupMan.cc
  5291. Removed exception throwers declaration.
  5292. * src/DirectDiskAdaptor.{h, cc}
  5293. * src/SocketCore.{h, cc}
  5294. * src/MultiDiskAdaptor.{h, cc}
  5295. * src/HttpConnection.{h, cc}
  5296. * src/HttpResponse.{h, cc}
  5297. * src/DiskAdaptor.{h, cc}
  5298. * src/CopyDiskAdaptor.{h, cc}
  5299. * src/MultiDiskAdaptor.{h, cc}
  5300. * src/HttpHeaderProcessor.{h, cc}
  5301. * src/AbstractSingleDiskAdaptor.{h, cc}
  5302. * src/Util.{h, cc}
  5303. * test/UtilTest.cc
  5304. * src/DefaultDiskWriter.{h, cc}
  5305. * src/FtpConnection.{h, cc}
  5306. * src/AbstractDiskWriter.{h, cc}
  5307. Removed duplicate code.
  5308. * src/StreamCheckIntegrityEntry.cc
  5309. Removed unnecessary include.
  5310. * src/DiskWriter.h
  5311. Included Exception.h
  5312. * src/option_processing.cc
  5313. Included 2 files and added doc
  5314. * src/TrackerWatcherCommand.cc
  5315. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  5316. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5317. Changed CheckIntegrityEntry interface so that it can define
  5318. the action when all the chunk checksums are valid.
  5319. * src/CheckIntegrityEntry.h
  5320. * src/StreamCheckIntegrityEntry.{h, cc}
  5321. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  5322. are valid, then aira2 goes to seeding mode. Sometimes it is better
  5323. to exit rather than doing seeding. So, it would be good to toggle this
  5324. behavior.
  5325. * src/CheckIntegrityCommand.cc
  5326. * src/AbstractCommand.cc
  5327. * src/RequestGroup.cc
  5328. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Reflect the download length of in-flight pieces.
  5330. It makes the download length readout more precise.
  5331. * src/DefaultPieceStorage.{h, cc}
  5332. * test/DefaultPieceStorageTest.cc
  5333. * src/a2functional.h
  5334. * test/a2functionalTest.cc
  5335. Lower CPU load when --max-download-limit is used.
  5336. There is up and down in speed indicator when enabling
  5337. http-pipelining but a download goes well. I think the problem is that
  5338. because http-pipelining is enabled, DownloadCommand is created for
  5339. each segment and in its constructor, PeerStat::downloadStart() is
  5340. called. In PeerStat::downloadStart(), speed calculation object is
  5341. reseted, which makes download speed zero.
  5342. * src/DownloadCommand.cc
  5343. Rewritten using accumulate.
  5344. * src/RequestGroupMan.cc (calculateStat)
  5345. Code clearnup.
  5346. * src/FtpNegotiationCommand.cc
  5347. * src/HttpResponseCommand.cc
  5348. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Fixed: Can not resume: aria2 reports download already finished.
  5350. * src/AbstractCommand.{h, cc}
  5351. * src/HttpResponseCommand.cc
  5352. * src/FtpNegotiateCommand.cc
  5353. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5354. Now a file is stored in the directory specified in .metalnk file
  5355. (file[@name]).
  5356. * src/Metalink2RequestGroup.cc
  5357. Create the directory structure when opening the file if it doesn't
  5358. exist.
  5359. * src/AbstractDiskWriter.cc
  5360. * src/Util.{h, cc}
  5361. * src/File.h
  5362. * test/UtilTest.cc
  5363. Removed file name comparison
  5364. * src/Metalink2RequestGroup.cc
  5365. * src/HttpResponseCommand.cc
  5366. Rewritten using Util::mkdirs()
  5367. * src/FileEntry.cc (setupDir)
  5368. * test/FileEntryTest.cc
  5369. Updated doc
  5370. * src/SingleFileDownloadContext.h
  5371. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5372. Now SleepCommand dispatches nextCommand when halt is requested.
  5373. It avoids a possible long wait after hitting CTRL-C.
  5374. * src/SleepCommand.{h, cc}
  5375. * src/RequestGroupAware.{h, cc}
  5376. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5377. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  5378. to open listen port, then remove the port number from the tracker
  5379. request.
  5380. * src/DefaultBtAnnounce.cc
  5381. * test/DefaultBtAnnounceTest.cc
  5382. * test/MockPieceStorage.h
  5383. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  5384. them more testable.
  5385. * src/DefaultBtAnnounce.{h, cc}
  5386. * src/DefaultBtContext.{h, cc}
  5387. * src/Util.{h, cc}
  5388. * test/DefaultBtAnnounceTest.cc
  5389. * test/DefaultBtContextTest.cc
  5390. * test/UtilTest.cc
  5391. Added 'B' to upload bytes readout.
  5392. * src/ConsoleStatCalc.cc
  5393. Now the listen port for BitTorrent download is opened when it is
  5394. needed.
  5395. * src/DownloadEngineFactory.cc
  5396. * src/BtSetup.{h, cc}
  5397. * src/PeerListenCommand.{h, cc}
  5398. Now an exception thrown while parsing tracker response is now logged.
  5399. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  5400. called, which means no retry is made in this case, assuming a tracker
  5401. has a problem.
  5402. * src/TrackerWatcherCommand.cc
  5403. Fixed: downloading a file whose length is unkown fails.
  5404. * src/DownloadCommand.cc
  5405. Simplified prepareForNextSegment()
  5406. * src/DownloadCommand.cc
  5407. Updated
  5408. * po/POTFILES.in
  5409. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5410. Re-implemented a file listing for Metalink, which was dropped while
  5411. http/ftp/torrent integration was being implemented.
  5412. * src/MetalinkHelper.{h, cc}: New class.
  5413. * test/MetalinkHelperTest.cc
  5414. * src/main.cc
  5415. * src/Metalink2RequestGroup.cc
  5416. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Added the ability to display the detailed torrent file information.
  5418. Now -S option gives not only a file listing, but also total download
  5419. length, info hash, announce URI, piece length, the number of pieces,
  5420. and mode(single or multi-torrent).
  5421. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  5422. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  5423. KiB)
  5424. * test/UtilTest.cc
  5425. * src/main.cc
  5426. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. Added ftp://USER:PASSWD@Servername automatic parsing.
  5428. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  5429. _password. Recognize username and password in URI.
  5430. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  5431. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  5432. * src/RequestFactory.{h, cc}: Removed.
  5433. * src/AuthConfigFactory.{h, cc}: New class.
  5434. * src/FtpConnection.cc: Use AuthConfigFactory.
  5435. * src/HttpRequest.cc: Use AuthConfigFactory.
  5436. * test/HttpRequestTest.cc: Updated.
  5437. * test/RequestTest.cc: Updated.
  5438. * test/AuthConfigFactoryTest.cc: New class.
  5439. * test/RequestFactoryTest.cc: Removed.
  5440. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Use RequestGroup::allDownloadFinished() to decide whether the control
  5442. file should be removed or saved.
  5443. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  5444. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  5445. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5446. Use File::renameTo()
  5447. * src/DefaultBtProgressInfoFile.cc
  5448. Added --no-file-allocation-limit command-line option.
  5449. * src/version_usage.cc
  5450. * src/option_processing.cc
  5451. * src/OptionHandlerFactory.cc
  5452. * src/RequestGroup.{h, cc}
  5453. * src/BtCheckIntegrityEntry.cc
  5454. * src/StreamCheckIntegrityEntry.cc
  5455. * src/prefs.h
  5456. * doc/aria2c.1.txt
  5457. * doc/aria2c.1
  5458. Now prealloc is the default value for --file-allocation option.
  5459. * src/version_usage.cc
  5460. * src/option_processing.cc
  5461. * doc/aria2c.1.txt
  5462. * doc/aria2c.1
  5463. Don't URL-encode user-agent.
  5464. * src/HttpRequest.cc
  5465. Updated translations
  5466. * po/LINGUAS: Added nl for Dutch translation.
  5467. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  5468. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  5469. * po/POTFILES.in: Updated.
  5470. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5471. Added the ability to recognize url-list in a torrent file.
  5472. The retrieved URLs are attached to the corresponding FileEntry.
  5473. * src/DefaultBtContext.{h, cc}
  5474. * src/FileEntry.{h, cc}
  5475. * test/DefaultBtContextTest.cc
  5476. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  5478. after the download finishes.
  5479. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5480. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  5481. the data smaller than block length.
  5482. A block length can be specified by constructor's argument.
  5483. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  5484. Get a missing piece in the range of given FileEntry. This function is
  5485. not used in the program yet.
  5486. * src/Util.h: Added some macros.
  5487. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5488. Added HTTP/1.1 keep alive and pipelining support.
  5489. See --enable-http-keep-alive and --enable-http-pipelining option.
  5490. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  5491. Segment.
  5492. * src/HttpDownloadCommand.{h, cc}
  5493. * src/OptionHandlerFactory.cc
  5494. * src/HttpConnection.{h, cc}
  5495. * src/version_usage.cc
  5496. * src/HttpInitiateConnectionCommand.cc
  5497. * src/FtpInitiateConnectionCommand.cc
  5498. * src/Segment.h
  5499. * src/HttpRequestCommand.{h, cc}
  5500. * src/option_processing.cc
  5501. * src/prefs.h
  5502. * src/HttpResponseCommand.cc
  5503. * src/SegmentMan.{h, cc}
  5504. * src/FtpNegotiateCommand.cc
  5505. * src/HttpProxyResponseCommand.cc
  5506. * src/Request.cc
  5507. * src/HttpRequest.cc
  5508. * src/DownloadCommand.cc
  5509. * test/HttpRequestTest.cc
  5510. * test/RequestTest.cc
  5511. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5512. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  5513. finished.
  5514. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5515. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  5516. catching it inside the method.
  5517. When no file entry is found in a metalink without querying user
  5518. preferences, throw the exception with the error message that suggests
  5519. metalink file is probably broken.
  5520. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  5521. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5522. Fixed the bug that prevents remote Metalink/Torrent file from begin
  5523. processed.
  5524. * src/RequestGroupMan.cc (removeStoppedGroup)
  5525. Added debug message.
  5526. * src/BtPostDownloadHandler.cc
  5527. * src/MetalinkPostDownloadHandler.cc
  5528. * src/PostDownloadHandler.{h, cc}
  5529. * src/RequestGroup.cc
  5530. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  5532. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5533. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  5534. stops and there are any unfinished or in-progress downloads.
  5535. Added the legend of "stat".
  5536. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5537. Throw exception when chunck checksum verification fails.
  5538. * src/DownloadCommand.cc (validatePieceHash): New function.
  5539. * src/PiecedSegment.{h, cc} (clear): New function.
  5540. * src/GrowSegment.{h, cc} (clear): New function.
  5541. * src/Segment.h (clear): New function.
  5542. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  5543. * test/SegmentTest.cc
  5544. * test/GrowSegmentTest.cc
  5545. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5546. Do not send referer when redirected.
  5547. * src/Request.cc (redirectUrl)
  5548. * test/RequestTest.cc
  5549. * test/HttpRequestTest.cc
  5550. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5551. Implemented BitTorrent/http/ftp integrated download.
  5552. I've rewritten lots of files and now some headers have forward
  5553. class declarations to reduce compile time.
  5554. The implementation is extremely alpha stage, I recommend to use this
  5555. for testing purpose only.
  5556. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5557. Fixed the compilation error on 64bit platform.
  5558. * test/HttpHeaderProcessorTest.cc
  5559. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5560. Merged Ross's patch that fixes compilation problem in MinGW
  5561. * test/DefaultBtProgressInfoFileTest.cc
  5562. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5563. Updated fr.po by sebone
  5564. * po/fr.po
  5565. Updated man page.
  5566. * doc/aria2c.1.txt
  5567. * Release 0.11.3
  5568. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5569. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  5570. failure in Metalink.
  5571. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5572. Automatically save *.aria2 control file of http/ftp download in every
  5573. 60 seconds.
  5574. * src/AutoSaveCommand.{h, cc}: New class.
  5575. * src/TimeBasedCommand.{h, cc}: New class.
  5576. * src/DownloadEngineFactory.cc (newConsoleEngine)
  5577. Disable parameterized URI support by default. Added -P option to
  5578. enable the feature.
  5579. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  5580. * src/OptionHandlerFactory.cc
  5581. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  5582. Updated Japanese translation.
  5583. * po/ja.po
  5584. Updated man page.
  5585. * doc/aria2c.1.txt
  5586. * Release 0.11.3-rc
  5587. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5588. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  5589. it is successful, then renamed to *.aria2.
  5590. This prevents *.aria2 file from being truncated or corrupted when
  5591. file system becomes out of space.
  5592. * src/DefaultBtProgressInfoFile.cc (save)
  5593. * src/SegmentMan.cc (save)
  5594. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  5595. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5596. Reduced the fragmentation of bitfield in http/ftp download.
  5597. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  5598. * test/BitfieldManTest.cc
  5599. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5600. Added the ability to disable segmented download in .metalink.
  5601. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  5602. 'url' tag.
  5603. * src/MetalinkEntry.{h, cc}
  5604. * src/RequestResource.{h, cc}
  5605. * src/MetalinkRequestInfo.cc
  5606. * src/Xml2MetalinkProcessor.cc
  5607. * test/Xml2MetalinkProcessorTest.cc
  5608. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5609. Added parameterized URI support.
  5610. * src/main.cc: -Z option added.
  5611. * src/OptionHandlerFactory.cc
  5612. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  5613. * src/PStringDatum.h: New class.
  5614. * src/PStringSegment.{h,cc}: New class.
  5615. * src/PStringNumLoop.h: New class.
  5616. * src/PStringSelect.h: New class.
  5617. * src/NumberDecorator.h: New class.
  5618. * src/FixedWidthNumberDecorator.h: New class.
  5619. * src/AlphaNumberDecorator.h: New class.
  5620. * src/PStringVisitor.h: New class.
  5621. * src/PStringBuildVisitor.{h,cc}: New class.
  5622. * src/ParameterizedStringParser.{h,cc}: New class.
  5623. * src/Util.{h,cc}
  5624. (isNumber): New function.
  5625. (isLowercase): New function.
  5626. (isUppercase): New function.
  5627. (alphaToNum): New function.
  5628. * test/ParameterizedStringParserTest.cc: New class.
  5629. * test/AlphaNumberDecoratorTest.cc: New class.
  5630. * test/PStringBuildVisitorTest.cc: New class.
  5631. * test/UtilTest.cc
  5632. (testIsNumber): New function.
  5633. (testIsLowercase): New function.
  5634. (testIsUppercase): New function.
  5635. (testAlphaToNum): New function.
  5636. Added '\n' after the error message
  5637. * src/RequestInfo.h (printDownloadAbortMessage)
  5638. Added auto file renaming feature in http(s)/ftp download.
  5639. * src/main.cc: Added --auto-file-renaming command-line option.
  5640. * src/OptionHandlerFactory.cc
  5641. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  5642. * src/RequestGroup.{h, cc}
  5643. (shouldCancelDownloadForSafety): Rewritten
  5644. (tryAutoFileRenaming): New function.
  5645. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  5646. * src/HttpResponseCommand.cc
  5647. (executeInternal): Removed the call to RequestGroupMan::
  5648. isSameFileBeingDownloaded()
  5649. * src/FtpNegotiateCommand.cc
  5650. (recvSize): Removed the call to RequestGroupMan::
  5651. isSameFileBeingDownloaded()
  5652. * test/RequestGroupTest.cc: New class.
  5653. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5654. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  5655. IO.
  5656. * src/DefaultBtProgressInfoFile.cc
  5657. * src/MetaFileUtil.cc
  5658. * src/SimpleLogger.cc
  5659. * src/SegmentMan.cc
  5660. * src/Util.cc
  5661. * src/Platform.cc
  5662. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  5664. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5665. Avoid sparse files if possible, because VFAT32 doesn't support it.
  5666. * src/DefaultDiskWriter.cc (initAndOpenFile)
  5667. Fixed the bug that prevents file allocation is not done when
  5668. dowloading multi-torrent file.
  5669. * src/AbstractDiskWriter.cc (openFile)
  5670. Increase the maximum number of -j option from 15 to 45.
  5671. * src/OptionHandlerFactory.cc (createOptionHandlers)
  5672. Added fr.po, thanks to Charles Landemaine.
  5673. * po/fr.po
  5674. * po/LINGUAS
  5675. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5676. gcc 3.4.4 support:
  5677. * src/DefaultBtContext.cc: int32_t -> int
  5678. * src/main.cc: int -> int32_t, int32_t -> int
  5679. * src/messageDigest.h: uint32_t -> unsigned int
  5680. * src/NameResolver.h: int32_t -> int
  5681. * src/PeerConnection.cc: int -> int32_t
  5682. * src/SpeedCalc.cc: int32_t -> int
  5683. * src/TrackerUpdateCommand.h: int -> int32_t
  5684. * src/Util.cc: int32_t -> int
  5685. * src/Util.h: int32_t -> int
  5686. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  5687. * test/AnnounceListTest.cc: int -> int32_t
  5688. * test/ChunkedEncodingTest.cc: int -> int32_t
  5689. * test/DataTest.cc: int -> int32_t
  5690. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  5691. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  5692. * test/DefaultPieceStorageTest.cc: int -> int32_t
  5693. * test/FeatureConfigTest.cc: int -> int32_t
  5694. * test/MetalinkEntryTest.cc: int -> int32_t
  5695. * test/MockBtRequestFactory.h: int -> int32_t
  5696. * test/MockPieceStorage.h: int -> int32_t
  5697. * test/OptionTest.cc: int -> int32_t
  5698. * test/RequestTest.cc: int -> int32_t
  5699. * test/SegmentManTest.cc: int -> int32_t
  5700. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  5701. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  5702. Move sleep functions to Util class:
  5703. * src/Util.cc
  5704. (sleep): New function.
  5705. (usleep): New function.
  5706. * src/DownloadCommand.cc: sleep -> Util::sleep
  5707. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  5708. MinGW build enhancements. The following files are added:
  5709. * src/timegm.{c,h}
  5710. Changes to support the above new files:
  5711. * configure.ac
  5712. * src/Makefile.am
  5713. * src/a2time.h
  5714. * src/Util.cc:
  5715. * src/strptime.c: Added support for %Z option.
  5716. Fixed MinGW non-blocking bug.
  5717. * src/SocketCore.cc
  5718. * src/HttpRequestCommand.cc
  5719. Miscellenous build fixes/enhancements.
  5720. * configure.ac: Added summary report.
  5721. * src/Platform.h: Tweaked #include's.
  5722. * src/a2netcompat.h: Tweaked #include's.
  5723. * src/strptime.h: Tweaked #include's.
  5724. * src/gai_strerror.c: Tweaked #include's.
  5725. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  5726. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  5727. * src/gettimeofday.h: Added HAVE_CONFIG_H
  5728. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5729. Increased the initial connection size in BitTorrent download to 40.
  5730. * src/BtRuntime.h
  5731. Added the usage message of --peer-id-prefix option.
  5732. * src/main.cc
  5733. * Release 0.11.2
  5734. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5735. MessageDigestHelper is introduced in order to simplify the use
  5736. of message digest. Removed repeated code.
  5737. The message digest algorithm is now specified by string, like "sha1",
  5738. "md5".
  5739. * src/messageDigest.{h, cc}
  5740. * src/MessageDigestHelper.{h, cc}: New class.
  5741. * src/DefaultPieceStorage.cc
  5742. * src/DefaultBtContext.{h, cc}
  5743. (computeFastSet): New function.
  5744. (setInfoHash): Added for unit testing.
  5745. (setNumPieces): Added for unit testing.
  5746. * src/DefaultBtInteractive.cc
  5747. * src/BtPieceMessage.cc
  5748. * src/Peer.cc
  5749. * src/Checksum.h
  5750. * src/message.h
  5751. * src/IteratableChecksumValidator.h
  5752. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  5753. inside it.
  5754. * src/SegmentMan.{h, cc}
  5755. (checkIntegrity): Removed.
  5756. * src/IteratableChunkChecksumValidator.{h, cc}
  5757. * src/Util.h
  5758. (sha1Sum): Removed.
  5759. (simpleMessageDigest): Removed.
  5760. (fileChecksum): Removed.
  5761. (computeFastSet): Removed.
  5762. * src/ShaVisitor.cc
  5763. * src/ChunkChecksum.h
  5764. * src/DownloadCommand.cc
  5765. Removed messageDigest virtual functions.
  5766. * src/MultiDiskAdaptor.{h, cc}
  5767. * src/DiskAdaptor.h
  5768. * src/ByteArrayDiskWriter.h
  5769. * src/DiskWriter.h
  5770. * src/DiskAdaptorWriter.h
  5771. * src/AbstractSingleDiskAdaptor.{h, cc}
  5772. * src/AbstractDiskWriter.{h, cc}
  5773. Fixed comilation error when message digest is disabled.
  5774. * src/MetalinkEntry.{h, cc}
  5775. * src/MetalinkRequestInfo.cc
  5776. Removed srandom and random.
  5777. * src/SimpleRandomizer.h
  5778. Added size() virtual function to DiskAdaptor
  5779. * src/MultiDiskAdaptor.h
  5780. Fixed the bug that causes that files are not opened correctly in
  5781. multi-file torrent.
  5782. * src/TorrentRequestInfo.cc
  5783. * src/MultiDiskAdaptor.cc
  5784. Added SHA256 support
  5785. * src/messageDigest.cc
  5786. * src/Xml2MetalinkProcessor.cc
  5787. Show supported message digest algorithms
  5788. * src/main.cc
  5789. Updated contact info.
  5790. * src/main.cc
  5791. Applied Ross's patch
  5792. * src/a2netcompat.h
  5793. * src/main.cc
  5794. Fixed the bug that prevents a remote metalink from not being processed
  5795. even if '-o foo.metalink' is specified.
  5796. * src/MetalinkRequestInfo.cc
  5797. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5798. Merged Dan's patch:
  5799. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  5800. Use va_copy to avoid core dump on amd64:
  5801. * src/SimpleLogger.cc
  5802. Updated contact info.
  5803. * src/main.cc
  5804. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  5805. digest is not available.
  5806. * src/MetalinkEntry.h
  5807. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Make a2netcompat.h include a2io.h to fix compilation error:
  5809. * src/a2netcompat.h
  5810. * src/SocketCore.cc: Removed include of a2io.h
  5811. * src/Util.cc: Removed include of a2io.h
  5812. Gather time related functions to a2time.h:
  5813. * src/a2time.h: New file.
  5814. * src/DefaultPeerStorage.cc
  5815. * src/SimpleLogger.cc
  5816. * src/Util.{h, cc}
  5817. * src/SimpleRandomizer.h
  5818. * src/TimeA2.{h,cc}
  5819. * src/DownloadCommand.cc
  5820. * src/main.cc
  5821. Removed #ifdef __MINGW32__ since gai_strerror is included in
  5822. a2netcompat.h:
  5823. * src/NameResolver.cc
  5824. Fixed compilation error without openssl:
  5825. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  5826. Added default block to suppress compiler warnings:
  5827. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  5828. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  5829. MinGW build enhancements. The following files are added:
  5830. * src/gai_strerror.{c,h}
  5831. * src/gettimeofday.{c,h}
  5832. Changes to support the above new files:
  5833. * configure.ac
  5834. * src/Makefile.am
  5835. * src/a2netcompat.h
  5836. * src/TimeA2.cc
  5837. * src/DefaultPeerStorage.cc
  5838. * src/NameResolver.cc: removed mingw_strerror() function.
  5839. * src/SocketCore.cc: removed mingw_strerror() function.
  5840. Miscellaneous MinGW build fixes.
  5841. * src/a2io.h: Use _lseeki64() instead of lseek()
  5842. * src/common.h
  5843. * src/DefaultFileAllocator.cc
  5844. * src/GlowFileAllocator.cc
  5845. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  5846. * src/NameResolver.cc
  5847. (callback): Changed int32_t to int.
  5848. (resolve): Changed int32_t to int.
  5849. * src/Platform.cc
  5850. * src/Platform.h
  5851. * test/MultiDiskWriterTest.cc
  5852. * test/PeerMessageUtilTest.cc
  5853. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  5854. Other enhancements and fixes.
  5855. * src/HttpRequestCommand.cc
  5856. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  5857. * src/SocketCore.cc:
  5858. (error): New function to abstract errno/WSAGetLastError().
  5859. (errorMsg): New function to abstract errno/WSAGetLastError().
  5860. (initiateSecureConnection): Added more detailed error reporting.
  5861. * src/SocketCore.h: Added private variable blocking, to allow
  5862. proper handling of OpenSSL psuedo-errors.
  5863. * src/message.h
  5864. (EX_SSL_INIT_FAILURE)
  5865. (EX_SSL_IO_ERROR)
  5866. (EX_SSL_PROTOCOL_ERROR)
  5867. (EX_SSL_UNKNOWN_ERROR)
  5868. (EX_SSL_CONNECT_ERROR)
  5869. (EX_SOCKET_BLOCKING)
  5870. (EX_SOCKET_NONBLOCKING)
  5871. (EX_SOCKET_UNKNOWN_ERROR)
  5872. * src/Util.cc
  5873. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  5874. reserved name.
  5875. (httpGMT): Fixed typo.
  5876. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5877. Merged Ross's win32 patch(manually)
  5878. In the course of merging, following files are added.
  5879. * src/strptime.{h,c}
  5880. * src/libgen.{h,c}
  5881. * src/inet_aton.{h,c}
  5882. * src/Platform.{h,cc}
  5883. * src/localtime_r.{h,c}
  5884. * src/getaddrinfo.{h,c}
  5885. I've gethered network related things, and put them to following file:
  5886. * src/a2netcompat.h
  5887. Also io related things are put to following file:
  5888. * src/a2io.h
  5889. Changed %lld to %s because mingw32 doesn't recognize %lld.
  5890. * src/message.h
  5891. (MSG_ALLOCATION_COMPLETED)
  5892. (EX_TOO_LARGE_FILE)
  5893. (EX_SIZE_MISMATCH)
  5894. (EX_FILE_OFFSET_OUT_OF_RANGE)
  5895. (EX_INVALID_CHUNK_CHECKSUM)
  5896. (EX_INVALID_RANGE_HEADER)
  5897. * src/FileAllocationCommand.cc
  5898. * src/HttpResponse.cc
  5899. * src/RequestGroup.cc
  5900. * src/MultiDiskAdaptor.cc
  5901. * src/OptionHandlerImpl.h
  5902. * src/HttpResponseCommand.cc
  5903. * src/FtpNegotiateCommand.cc
  5904. * src/IteratableChecksumValidator.cc
  5905. * src/SegmentMan.cc
  5906. * src/ChunkChecksumValidator.cc
  5907. Added Randomizer::getRandomNumber(long int)
  5908. * src/Randomizer.h (getRandomNumber)
  5909. * src/SimpleRandomizer.h (getRandomNumber)
  5910. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  5911. * src/Util.cc (randomAlpha): Use this new function.
  5912. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5913. Converted int's to in32_t. long long int's are also converted to
  5914. int64_t
  5915. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5916. Fixed the bug that prevents cookies from being sent to the server
  5917. if the domain of cookie is FQDN and starts with ".".
  5918. * src/Cookie.cc (match)
  5919. To add the ability to change peer id.
  5920. * src/DefaultBtContext.h
  5921. (_peerIdPrefix): New variable
  5922. (setPeerIdPrefix): New function.
  5923. * src/torrentRequestInfo.cc
  5924. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  5925. DefaultBtContext.
  5926. * src/main.cc (main): Added peer-id-prefix command-line option.
  5927. The usage message is not added yet.
  5928. * src/DefaultBtContext.cc
  5929. (generatePeerId): Use _peerIdPrefix.
  5930. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  5931. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5932. Fixed the bug that prevents filename in content-disposition from
  5933. being retrieved when filename is not quoted.
  5934. * src/Util.cc (getContentDispositionFilename)
  5935. Fixed the bug that causes infinate loop and memory leak when file open
  5936. operation failed.
  5937. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5938. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5939. Fixed the bug that causes segfault when all URIs specified are
  5940. unsupported.
  5941. * src/RequestGroupMan.cc (getInitialCommands)
  5942. Check if RequestGroup::createNextCommand() returns empty list of
  5943. commands.
  5944. * src/RequestGroup.cc (createNextCommand)
  5945. Change log level from info to error so that users can notice that
  5946. an error occurred.
  5947. Fixed the bug that causes segfault when a zero-sized file is
  5948. downloaded.
  5949. * src/BitfieldMan.cc (isAllBitSet)
  5950. Return true if bitfieldLength is 0.
  5951. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5952. * src/main.cc
  5953. (showUsage): Added 3 usage examples for metalink download.
  5954. Replace MetalinkChunkChecksum with ChunkChecksum.
  5955. * src/MetalinkChunkChecksum.h: Removed.
  5956. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  5957. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  5958. * src/Xml2MetalinkProcessor.cc
  5959. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  5960. * src/MetalinkRequestInfo.cc (execute)
  5961. * Release 0.11.1
  5962. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5963. Reads URIs from stdin when "-i -" is specified.
  5964. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  5965. * src/UriListParser.h, src/UriListParser.cc: New class.
  5966. * src/StreamUriListParser.h: New class.
  5967. * src/FileUriListParser.h: New class.
  5968. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  5969. instead of UriFileListParser.
  5970. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5971. Made console readout more readable.
  5972. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5973. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5974. Fix the bug that causes -s option not to work.
  5975. * src/main.cc (main)
  5976. * src/a2algo.h: New file.
  5977. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5978. Create directory structure specified in metalink file.
  5979. * src/RequestGroup.h, src/RequestGroup.cc
  5980. (initAndOpenFile): Create a directory to store files if it does not
  5981. exist.
  5982. (getDir): New function.
  5983. Added ETA and download speed for an individual file to readout.
  5984. * src/ConsoleDownloadEngine.cc (sendStatistics)
  5985. * src/RequestGroup.h
  5986. (calculateDownloadSpeed): New function.
  5987. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Made -S option work with metalink file and provided selective download
  5989. to metalink.
  5990. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  5991. (filename): Removed.
  5992. (file): New variable.
  5993. (size): Removed.
  5994. (operator=): Updated.
  5995. (getPath): New function.
  5996. (getLength): New function.
  5997. (toFileEntry): New function.
  5998. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  5999. (execute): Use toStream.
  6000. (showFileEntry): Removed.
  6001. * src/MetalinkRequestInfo.h
  6002. (targetFiles): New variable.
  6003. (setTargetFiles): New variable.
  6004. * src/MetalinkRequestInfo.cc
  6005. (execute): Added the ability to print file information included in
  6006. a metalink file.
  6007. Added selective download mode to metalink.
  6008. * src/main.cc
  6009. (showUsage): Updated to denote that -S and --select-file options are
  6010. applicable to metalink.
  6011. * src/FileEntry.h
  6012. (operator=): New function.
  6013. (getBasename): New function.
  6014. (getDirname): New function.
  6015. * src/Util.h, src/Util.cc
  6016. (toStream): New function.
  6017. * src/Xml2MetalinkProcessor.cc: Updated.
  6018. Made aria2 work with metalink with directory structure.
  6019. * src/File.h, src/File.cc
  6020. (getBasename): New function.
  6021. (getDirname): New function.
  6022. * src/RequestGroup.h, src/RequestGroup.cc
  6023. (_topDir): New variable.
  6024. (setTopDir): New function.
  6025. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  6026. Rewrote HTTP header parsing with stringstream.
  6027. * src/HttpConnection.h, src/HttpConnection.cc
  6028. (HttpRequestEntry): New class.
  6029. (headerBuf): Removed.
  6030. (headerBufLength): Removed.
  6031. (outstandingHttpRequests): Now its element type is
  6032. HttpRequestEntryHandle.
  6033. (findEndOfHeader): Removed.
  6034. (receiveResponse): Rewritten.
  6035. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  6036. Updated doc for -j option to notice that it should be used with -i
  6037. option.
  6038. * src/main.cc (showUsage)
  6039. Removed unused classes.
  6040. * src/RequestInfo.h
  6041. (FileInfo): Removed.
  6042. (checksum): Removed.
  6043. (fileInfo): Removed.
  6044. (setChecksum): Removed.
  6045. (getChecksum): Removed.
  6046. (getFileInfo): Removed.
  6047. Use ISO units.
  6048. * src/ConsoleDownloadEngine.cc
  6049. * src/TorrentConsoleDownloadEngine.cc
  6050. * src/Util.cc (abbrevSize)
  6051. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6052. Added the default listening ports to the help message.
  6053. * src/main.cc (showUsage)
  6054. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6055. Reduce the number of calls to gettimeofday to lower CPU load.
  6056. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  6057. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  6058. * src/Peer.h (calculateUploadSpeed): New function.
  6059. (calculateDownloadSpeed): New function.
  6060. * src/DefaultPeerStorage.cc
  6061. (CalculateStat): Added _now variable.
  6062. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  6063. and Peer::calculateUploadSpeed(const struct timeval&)
  6064. Drop connection if no request or piece message is exchanged in
  6065. a certain interval.
  6066. * src/DefaultBtInteractive.h
  6067. (btRuntime): New variable.
  6068. (inactiveCheckPoint): New variable.
  6069. (checkActiveInteraction): New function.
  6070. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  6071. request or piece message is received.
  6072. (checkActiveInteraction): New function.
  6073. (doInteractionProcessing): Call checkActiveInteraction.
  6074. Fixed the bug that causes remote Metalink and Torrent files are not
  6075. processed.
  6076. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  6077. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6078. Changed format of log file.
  6079. * src/SimpleLogger.cc
  6080. * Release 0.11.0
  6081. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6082. * src/AbstractCommand.cc
  6083. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  6084. MSG_MAX_TRY from error to info.
  6085. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  6086. * src/message.h
  6087. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  6088. (MSG_DOWNLOAD_ABORTED): Added %s.
  6089. (MSG_RESTARTING_DOWNLOAD): Added %s.
  6090. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  6091. * src/PeerAbstractCommand.cc
  6092. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  6093. * src/Request.h
  6094. (cookieBox): Made ShardHandle.
  6095. * src/RequestGroup.h, src/RequestGroup.cc
  6096. (createNextCommandWithAdj): New function.
  6097. * src/FileAllocationCommand.cc
  6098. (executeInternal): Use createNextCommandWithAdj().
  6099. * src/CheckIntegrityCommand.cc
  6100. (executeInternal): Use createNextCommandWithAdj().
  6101. Added --load-cookies command-option.
  6102. * src/OptionHandlerFactory.cc
  6103. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  6104. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  6105. Now aria2 can handle cookie's expiration date.
  6106. * src/Cookie.h (expires): Changed its type to time_t.
  6107. * src/main.cc: Added --load-cookies command-line option.
  6108. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  6109. * src/Util.h, src/Util.cc (httpGMT): New function.
  6110. * src/Request.cc (Request): Initialize cookieBox using
  6111. CookieBoxFactory.
  6112. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  6113. * src/CookieParser.h, src/CookieParser.cc: New class.
  6114. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  6115. * src/HttpResponseCommand.cc
  6116. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  6117. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  6118. download.
  6119. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Added -j command-line option.
  6121. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6122. * src/main.cc
  6123. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  6124. Rewritten using stringstream.
  6125. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  6126. Rewritten using stringstream.
  6127. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. Make download size shown in MB, KB.
  6129. * src/ConsoleDownloadEngine.h (sendStatistics)
  6130. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  6131. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6132. Accept incoming connections if download rate is low.
  6133. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  6134. (_lowestSpeedLimit): New variable.
  6135. (setLowestSpeedLimit): New function.
  6136. (execute): Accept incoming connections if download rate is low.
  6137. MAX_PEERS is ignored in this case.
  6138. Disable PREF_OUT in multiple concurrent download:
  6139. * src/RequestGroup.h, src/RequestGroup.cc
  6140. (setUserDefinedFilename): New function.
  6141. * src/DownloadEngineFactory.cc
  6142. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  6143. concurrent download.
  6144. * src/DefaultSegmentManFactory.cc
  6145. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  6146. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. RequestGroup::getNextCommand() was renamed to createNextCommand().
  6148. Added its overloaded method.
  6149. * src/RequestGroup.h
  6150. (_numConcurrentCommand): New variable.
  6151. (setNumConcurrentCommand): New function.
  6152. * src/RequestGroup.cc
  6153. Abort download if same file is being downloaded concurrently.
  6154. * src/RequestGroup.h, src/RequestGroupMan.cc
  6155. (isSameFileBeingDownloaded): New function.
  6156. * src/HttpResponseCommand.cc (executeInternal)
  6157. * src/FtpNegotiateCommand.cc (recvSize)
  6158. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  6159. * main.cc: Added help message for -i option.
  6160. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6161. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  6162. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  6163. * src/MetalinkEntry.h
  6164. (checksum): Changed to ChecksumHandle
  6165. * src/MetalinkRequestInfo.cc
  6166. (checksum): Changed to ChecksumHandle
  6167. * src/File.cc
  6168. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  6169. * src/common.h
  6170. (DIR_OPEN_MODE): New definition
  6171. * src/RequestGroup.cc
  6172. (prepareForNextAction): Added an argument.
  6173. * src/message.h
  6174. (MSG_GOOD_CHECKSUM): New definition
  6175. (MSG_BAD_CHECKSUM): New definition
  6176. * src/HttpResponseCommand.cc
  6177. (handleDefaultEncoding): Continue download sequence in new
  6178. non-segmented download.
  6179. * src/FileAllocationEntry.h
  6180. (_nextDownloadCommand): New variable.
  6181. * src/DownloadCommand.cc
  6182. (prepareForNextSegment): Create ChecksumCommand if checksum is
  6183. available.
  6184. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  6185. * src/IteratableChecksumValidator.h,
  6186. src/IteratableChecksumValidator.cc: New class.
  6187. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  6188. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Change file mode to 666:
  6190. * src/common.h (OPEN_MODE): New definition.
  6191. * src/File.cc
  6192. * src/Util.cc
  6193. * src/Directry.cc
  6194. * src/AbstractDiskWriter.cc
  6195. Change the level of log message "download aborted" to debug:
  6196. * src/PeerAbstractCommand.cc (execute)
  6197. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  6198. * src/TrackerWatcherCommand.cc
  6199. (createCommand): Sleep some seconds after request failed.
  6200. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  6201. then abort tracker request.
  6202. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6203. * Added the simultaneous download feature.
  6204. * src/main.cc: Print "Exception caught: " when exception is caught.
  6205. Use CUIDCounter instead of BtRuntime::getNewCuid():
  6206. * src/ActivePeerConnectionCommand.cc
  6207. * src/PeerInteractionCommand.cc
  6208. * src/BtRuntime.h
  6209. (cuidCounter): Removed.
  6210. (getNewCuid): Removed.
  6211. * src/DownloadEngineFactory.cc
  6212. * src/PeerListenCommand.cc
  6213. * src/TrackerUpdateCommand.cc
  6214. * src/PeerInitiateConnectionCommand.cc
  6215. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. * src/PeerAbstractCommand.cc
  6217. (onAbort): Call PeerStorage::returnPeer()
  6218. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  6219. (incomingPeers): New variable.
  6220. (addIncomingPeer): New function.
  6221. (returnPeer): New function.
  6222. (onErasingPeer): New function.
  6223. (addPeer): push_back -> push_front
  6224. (getActivePeers): Rewritten.
  6225. (calculateStat): Rewritten.
  6226. * src/PeerStorage.h
  6227. (TransferStat::copy): New function.
  6228. (TransferStat::TransferStat): New function.
  6229. (TransferStat::operator=): New function.
  6230. (addIncomingPeer): New function.
  6231. (returnPeer): New function.
  6232. * src/PeerListenCommand.cc
  6233. (execute): Use PeerStorage::addIncomingPeer() instead of
  6234. Peer::addPeer().
  6235. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6236. Connect to a peer actively when download speed is lower than specified
  6237. speed in torrent download:
  6238. * src/ActivePeerConnectionCommand.h: New class.
  6239. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. * src/HttpRequest.cc (createRequest): url-encode user-agent
  6241. * src/main.cc: Fixed the bug that prevents download if .netrc
  6242. doesn't exist.
  6243. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6244. To cache resolved hostname:
  6245. * src/AbstractCommand.h, src/AbstractCommand.cc
  6246. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  6247. Added dns cache.
  6248. * src/FtpInitiateConnectionCommand.cc
  6249. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  6250. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  6251. NameResolver working without ares.
  6252. * src/TorrentRequestInfo.cc
  6253. (execute): Don't cache dns in torrent download.
  6254. * src/HttpInitiateConnectionCommand.cc
  6255. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  6256. * src/DNSCache.h: New class.
  6257. * src/UrlRequestInfo.cc
  6258. (execute): Use dns cache.
  6259. In http request, suppress port number in http request header if port
  6260. is 80 or 443:
  6261. * src/HttpRequest.cc (getHostText): Suppress port number in http
  6262. request header if port is 80 or 443.
  6263. (createProxyRequest): Allways send port number.
  6264. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. To add the command-line option which disables netrc support:
  6266. * src/OptionHandlerFactory.cc
  6267. (createOptionHandlers): Added PREF_NO_NETRC.
  6268. * src/main.cc: Added -n option.
  6269. * src/prefs.h (PREF_NO_NETRC): New definition.
  6270. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  6271. V_TRUE.
  6272. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  6273. is V_FALSE. This may get configurable in the future release.
  6274. To clear peer's error status by time basis:
  6275. * src/PeerAbstractCommand.cc
  6276. (onAbort): Call Peer::startBadCondition().
  6277. * src/Peer.h, src/Peer.cc
  6278. (error): Removed.
  6279. (_badConditionStartTime): New variable.
  6280. (_badConditionInterval): New variable. Initialized to 10 seconds.
  6281. (startBadCondition): New function.
  6282. (isGood): New function.
  6283. * src/DefaultPeerStorage.cc
  6284. (addPeer): Use Peer::isGood().
  6285. (FindFinePeer): Use Peer::isGood().
  6286. Always include port number in http request header:
  6287. * src/HttpRequest.cc (getHostText): Always include port number in
  6288. http request header.
  6289. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6290. To the ability to read options from a config file:
  6291. * src/main.cc: Command-line parameter validation is delegated to
  6292. OptionHandler class.
  6293. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  6294. * src/Option.h, src/Option.cc (clear): New function.
  6295. * src/OptionParser.h, src/OptionParser.cc: New class.
  6296. * src/OptionHandler.h: New class.
  6297. * src/NameMatchOptionHandler.h: New class.
  6298. * src/OptionHandlerImpl.h: New classes.
  6299. * src/prefs.h: '_' -> '-'
  6300. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  6301. (FTP_PASV): New definition.
  6302. * src/Util.h, src/Util.cc (getRealSize): New function.
  6303. To disable netrc support if .netrc file does not have correct
  6304. permissions:
  6305. * src/File.h, src/File.cc (mode): New function.
  6306. To prevent confidential information to be logged:
  6307. * src/HttpConnection.h, src/HttpConnection.cc
  6308. (eraseConfidentialInfo): New function.
  6309. (sendRequest): Call eraseConfidentialInfo().
  6310. (sendProxyRequest): Call eraseConfidentialInfo().
  6311. * src/main.cc: Validate permissions of .netrc file.
  6312. To add --user-agent command-line option:
  6313. * src/main.cc: Added new command line option: --user-agent
  6314. * src/prefs.h (PREF_USER_AGENT): New definition.
  6315. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  6316. parameter to HttpRequest object.
  6317. * src/AbstractProxyRequestCommand.cc
  6318. (executeInternal): Set user-agent option parameter to HttpRequest
  6319. object.
  6320. Marged the patches from Dan Fandrich.
  6321. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. Use filename and size from Metalink file instead of sending HEAD
  6323. request:
  6324. * src/UrlRequestInfo.h
  6325. (_filename): New variable.
  6326. (_totalLength): New variable.
  6327. (setTotalLength): New variable.
  6328. (setFilename): New variable.
  6329. * src/MetalinkRequestInfo.cc
  6330. (execute): Set filename and size to UrlRequestInfo
  6331. * src/UrlRequestInfo.cc
  6332. (execute): Use filename and size from Metalink instead of seding
  6333. HEAD request to servers.
  6334. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6335. To add the ability to resume downloading a partially downloaded file
  6336. which is downloaded from the beginning:
  6337. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  6338. takes this role.
  6339. * src/main.cc: Added -c option.
  6340. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  6341. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  6342. * src/prefs.h (PREF_CONTINUE): New definition.
  6343. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  6344. * src/DefaultDiskWriter.cc
  6345. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  6346. * src/AbstractDiskWriter.h
  6347. (glowFileAllocator): New variable.
  6348. * src/AbstractDiskWriter.cc
  6349. (openExistingFile): Now preallocate file space from the end of the
  6350. existing file if totalLength argument is specified and grater than 0.
  6351. * src/UrlRequestInfo.cc: If -c option is specified and the file
  6352. to download exists in local, continue the download of the file.
  6353. --allow-overwrite=true is assumed in this context.
  6354. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  6355. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  6356. Throw exception if --check-integrity=true is specified but chunk
  6357. checksums are not provided:
  6358. * src/UrlRequestInfo.cc
  6359. Do not print URLs to stdout:
  6360. * src/UrlRequestInfo.cc
  6361. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. * src/Request.h: Use AuthResolver to get authentication information.
  6363. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  6364. set to RequestFactory object.
  6365. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  6366. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  6367. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  6368. create Request object.
  6369. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  6370. To integrate Netrc into exsiting classes:
  6371. * src/Request.h
  6372. (_userDefinedAuthConfig): New variable.
  6373. (findNetrcAuthenticator): New function.
  6374. (segment): Removed.
  6375. (setUserDefinedAuthConfig): New function.
  6376. (resolveHttpAuthConfigItem): New function.
  6377. (resolveFtpAuthConfigItem): New function.
  6378. (resolveHttpProxyAuthConfigItem): New function.
  6379. * src/HttpRequest.h
  6380. (authConfig): Removed.
  6381. (proxyAuthConfig): Removed.
  6382. (setAuthConfig): Removed.
  6383. (setProxyAuthConfig): Removed.
  6384. * src/UrlRequest.h
  6385. (getHeadResult): Added a parameter: authConfigHandle
  6386. * src/common.h
  6387. (SingletonHolder.h): New include.
  6388. * src/main.cc
  6389. (Netrc.h): New include.
  6390. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  6391. Added initial value of PREF_NETRC_PATH.
  6392. Added the initialization of netrc.
  6393. * src/AuthConfig.h: New class.
  6394. * src/prefs.h
  6395. (PREF_NETRC_PATH): New definition.
  6396. * src/HttpAuthConfig.h: Removed.
  6397. * src/Netrc.cc
  6398. (getRequiredNextToken): New function.
  6399. (skipMacdef): New function.
  6400. (parse): Rewritten.
  6401. * src/Netrc.h
  6402. (getRequiredNextToken): New function.
  6403. (skipMacdef): New function.
  6404. * src/Util.h, src/Util.cc
  6405. (getHomeDir): New function.
  6406. * src/TrackerWatcherComand.cc
  6407. (createRequestCommand): Use AuthConfig.
  6408. * src/FtpConnection.cc
  6409. (sendUser): Use Request::resolveFtpAuthConfigItem().
  6410. (sendPass): Use Request::resolveFtpAuthConfigItem().
  6411. * src/Request.cc
  6412. (findNetrcAuthenticator): New function.
  6413. (resolveHttpAuthConfigItem): New function.
  6414. (resolveFtpAuthConfigItem): New function.
  6415. (resolveHttpProxyAuthConfigItem): New function.
  6416. * src/UrlRequestInfo.cc: Use AuthConfig.
  6417. * src/HttpRequest.cc
  6418. (createRequest): Use authConfig.
  6419. (getProxyAuthString): Use authConfig.
  6420. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  6421. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  6422. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6423. To reduce overhead to find commands whose socket is either
  6424. readable or writable in the download engine loop:
  6425. * src/Command.h, src/Command.cc
  6426. (STATUS): New enum.
  6427. (status): New variable.
  6428. (statusMatch): New function.
  6429. (setStatusActive): New function.
  6430. (setStatusInactive): New function.
  6431. * src/DownloadEngine.h, src/DownloadEngine.cc
  6432. (executeCommand): New function.
  6433. (run): Simplified.
  6434. (waitData): Call Command::setStatusActive() when command's socket is
  6435. readable or writable.
  6436. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. To handle Segment as SegmentHandle:
  6438. * src/AbstractCommand.cc (execute): Rewritten.
  6439. * src/SegmentMan.h: Segment -> SegmentHandle
  6440. Introducded HttpResponse class, HttpRequest class to improve code
  6441. extensiveness and make it clear:
  6442. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  6443. HttpResponse class.
  6444. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  6445. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  6446. * src/HttpConnection.cc: Contruction of http request were moved to
  6447. HttpRequest class.
  6448. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  6449. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  6450. * src/HttpAuthConfig.h: New class.
  6451. * src/Range.h: New class.
  6452. To make FtpTunnel{Request, Response}Command and
  6453. HttpProxy{Request, Response}Command derived from
  6454. AbstractProxy{Request, Response}Command:
  6455. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  6456. Derived from AbstractProxyRequestCommand class.
  6457. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  6458. Derived from AbstractProxyResponseCommand class.
  6459. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  6460. Derived from AbstractProxyRequestCommand class.
  6461. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  6462. Derived from AbstractProxyResponseCommand class.
  6463. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  6464. : New class.
  6465. * src/AbstractProxyResponseCommand.h,
  6466. src/AbstractProxyResponseCommand.cc: New class.
  6467. To add netrc support:
  6468. * src/Netrc.h, src/Netrc.cc: New class.
  6469. * src/Util.h, src/Util.cc (split): New function.
  6470. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  6471. "Content-Range" header instead of "Range" header.
  6472. * src/HttpHeader.h
  6473. (getStatus): Removed.
  6474. (setStatus): Removed.
  6475. * src/Segment.h
  6476. (getPositionToWrite): New function.
  6477. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6478. * src/HttpHeader.h
  6479. (Range.h): New include.
  6480. (status): New variable.
  6481. (HttpHeader): Initialized status with 0.
  6482. (getStatus): New function.
  6483. (setStatus): New function.
  6484. (getRange): New function.
  6485. (HttpHeaderHandle): New function.
  6486. * src/HttpHeader.cc
  6487. (getRange): New function.
  6488. * src/Request.h
  6489. (RequestWeakHandle): New definition.
  6490. * src/HttpConnection.h
  6491. (HttpConnectionHandle): New type definition.
  6492. * src/HttpConnection.cc
  6493. (receiveResponse): Set HTTP status to headers.
  6494. * src/main.cc
  6495. (showUsage): Fixed typo.
  6496. * src/Segment.h
  6497. (SegmentHandle): New type definition.
  6498. * src/BitfieldMan.h
  6499. (getMissingUnusedLength): New function.
  6500. * src/BitfieldMan.cc
  6501. (getMissingUnusedLength): New function.
  6502. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6503. To fix static initialization order problem:
  6504. * src/BitfieldManFactory.h
  6505. (defaultRandomizer): Removed.
  6506. (factory): New variable.
  6507. (getNewFactory): Removed.
  6508. (getFactoryInstance): New function.
  6509. (setDefaultRandomizer): Rewritten.
  6510. (getDefaultRandomizer): Rewritten.
  6511. * src/BitfieldManFactory.cc
  6512. (defaultRandomizer): Removed.
  6513. (factory): Initialized to 0.
  6514. (BitfieldManFactory): Initialized randomizer to 0.
  6515. * src/DefaultPieceStorage.cc
  6516. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  6517. * src/Peer.cc
  6518. (Peer): getNewFactory() -> getFactoryInstance()
  6519. * src/SegmentMan.cc
  6520. (initBitfield): getNewFactory() -> getFactoryInstance()
  6521. * src/Piece.cc
  6522. (Piece): getNewFactory() -> getFactoryInstance()
  6523. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. To fix the bug that causes crash on Max OS X:
  6525. * src/SimpleRandomizer.h
  6526. (getInstance): Create new instance if the static variable is null.
  6527. * src/SimpleRandomizer.cc
  6528. (randomizer): Initialized to 0.
  6529. * src/BitfieldManFactory.h
  6530. (getNewFactory): Removed the call to setRandomizer().
  6531. To fix the miscalculation of the range of checksum:
  6532. * src/BitfieldMan.h
  6533. (isBitSetOffsetRange): New function.
  6534. * src/BitfieldMan.cc
  6535. (isBitSetOffsetRange): New function.
  6536. * src/SegmentMan.cc
  6537. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  6538. Use bitfield->getBlockLength() instead of segment.segmentLength.
  6539. * Release 0.10.1
  6540. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6541. To lower CPU usage in BitTorrent download when --max-upload-limit
  6542. command-line option specified:
  6543. * src/DefaultBtMessageDispatcher.cc
  6544. (sendMessages): Calculate uploading speed only when current message
  6545. is uploading data and is not sent yet.
  6546. * src/DefaultPeerStorage.h
  6547. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  6548. * src/HttpResponseCommand.cc
  6549. (handleDefaultEncoding): Added the cast to int32_t to itos.
  6550. This fixes compile error in Soralis 10.
  6551. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6552. To fix segfault in Metalink download:
  6553. * src/UrlRequestInfo.h
  6554. (filename): Removed.
  6555. (totalLength): Removed.
  6556. (setTotalLength): Removed.
  6557. (setFilename): Removed.
  6558. * src/MetalinkRequestInfo.cc
  6559. (execute): Do not set filename and totalLength to reqInfo.
  6560. Set chunk checksum to reqInfo if it is not null.
  6561. * src/HttpResponseCommand.cc
  6562. (executeInternal): Fixed filename in log.
  6563. (handleDefaultEncoding): Removed the call to initBitfield() and
  6564. markAllPiecesDone().
  6565. (handleOtherEncoding): Added HEAD method handling.
  6566. * src/FtpNegotiateCommand.cc
  6567. (executeInternal): Added SEQ_HEAD_OK handling.
  6568. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  6569. return false.
  6570. * src/FtpNegotiateCommand.h
  6571. (SEQ_HEAD_OK): New definition.
  6572. * src/SegmentMan.cc
  6573. (initBitfield): Delete bitfield.
  6574. (isChunkChecksumValidationReady): Fixed the condition.
  6575. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  6576. works fine.
  6577. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. * src/Xml2MetalinkProcessor.h
  6579. (xpathExists): New function.
  6580. * src/Xml2MetalinkProcessor.cc
  6581. (xpathExists): New function.
  6582. Not to send HEAD request if filename and size are available in Metalink
  6583. file:
  6584. * src/UrlRequestInfo.h
  6585. (filename): New variable.
  6586. (totalLength): New variable.
  6587. (setTotalLength): New function.
  6588. (setFilename): New function.
  6589. * src/MetalinkRequestInfo.cc
  6590. (execute): Set filename and size to UrlRequestInfo.
  6591. * src/MetalinkEntry.cc
  6592. (MetalinkEntry): Initialize size with 0.
  6593. * src/UrlRequestInfo.cc
  6594. (execute): Set filename and size to SegmentMan.
  6595. Not to download rest of the files after selected files are downloaded
  6596. in BitTorrent:
  6597. * src/PieceStorage.h
  6598. (allDownloadFinished): New function.
  6599. * src/DefaultBtAnnounce.cc
  6600. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  6601. downloadFinished.
  6602. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  6603. * src/DefaultPieceStorage.cc
  6604. (completePiece): Use allDownloadFinished instead of downloadFinished.
  6605. Commented out the call to finishSelectiveDownloadingMode().
  6606. (downloadFinished): Call isFilteredAllBitSet() instead of
  6607. isAllBitSet().
  6608. (allDownloadFinished): New function.
  6609. * src/DefaultBtInteractive.cc
  6610. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  6611. downloadFinished().
  6612. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  6613. * src/TorrentDownloadEngine.cc
  6614. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  6615. * src/BitfieldMan.h
  6616. (isFilteredAllBitSet): New function.
  6617. * src/ShareRatioSeedCriteria.h
  6618. (PieceStorage.h): New include.
  6619. (pieceStorage): New variable.
  6620. (evaluate):
  6621. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  6622. * src/BitfieldMan.cc
  6623. (isFilteredAllBitSet): New function.
  6624. (isAllBitSet): Filter is not took into account.
  6625. Rename --force-truncate as --allow-overwrite:
  6626. * src/TorrentRequestInfo.cc
  6627. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  6628. * src/main.cc
  6629. (showUsage): --force-truncate -> --allow-overwrite
  6630. * src/message.h
  6631. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  6632. * src/prefs.h
  6633. (PREF_FORCE_TRUNCATE): Removed.
  6634. (PREF_ALLOW_OVERWRITE): New definition.
  6635. * src/SegmentMan.cc
  6636. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  6637. * src/MetalinkRequestInfo.cc
  6638. (execute): Queueing message are now logged in info level.
  6639. * src/common.h
  6640. (LONG_LONG_MAX): Removed.
  6641. (LONG_LONG_MIN): Removed.
  6642. * src/HttpResponseCommand.cc
  6643. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  6644. * src/FtpNegotiateCommand.cc
  6645. (recvSize): LONG_LONG_MAX -> INT64_MAX
  6646. * src/main.cc
  6647. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  6648. command-line option.
  6649. (main): Added --check-integriy and --realtime-chunk-checksum
  6650. command-line option.
  6651. --force-truncate -> --allow-overwrite
  6652. Set initial value of --check-integrity option to false.
  6653. Don't show usage when error occurs while persing command-line options.
  6654. Removed deprecated --upload-limit option.
  6655. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6656. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  6657. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  6658. * src/BtAllowedFastMessage.cc:
  6659. * src/BtBitfieldMessage.cc
  6660. * src/BtCancelMessage.cc
  6661. * src/BtChokeMessage.cc
  6662. * src/BtHaveAllMessage.cc
  6663. * src/BtHaveMessage.cc
  6664. * src/BtHaveNoneMessage.cc
  6665. * src/BtInterestedMessage.cc
  6666. * src/BtNotInterestedMessage.cc
  6667. * src/BtPieceMessage.cc
  6668. * src/BtPortMessage.cc
  6669. * src/BtRejectMessage.cc
  6670. * src/BtRequestMessage.cc
  6671. * src/BtSuggestPieceMessage.cc
  6672. * src/BtUnchokeMessage.cc
  6673. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  6674. files are affected.
  6675. * src/ChunkChecksumValidator.cc
  6676. * src/SegmentMan.cc
  6677. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6678. To add chunk checksum validation:
  6679. * src/MetalinkEntry.h
  6680. (MetalinkChunkChecksum.h): New include.
  6681. (chunkChecksum): New variable.
  6682. * src/Request.h
  6683. (method): New variable.
  6684. (setMethod): New function.
  6685. (getMethod): New function.
  6686. (METHOD_GET): New static constant.
  6687. (METHOD_HEAD): New static constant.
  6688. * src/Xml2MetalinkProcessor.h
  6689. (getPieceHash): New function.
  6690. * src/PieceStorage.h
  6691. (markAllPiecesDone): New function.
  6692. (checkIntegrity): New function.
  6693. * src/FileAllocator.h
  6694. (NullFileAllocationMonitor.h): New include.
  6695. (FileAllocator): Initialize fileAllocationMonitor with new
  6696. NullFileAllocationMonitor().
  6697. * src/MultiDiskAdaptor.h
  6698. (messageDigest.h): Remove include.
  6699. (ctx): Removed.
  6700. (hashUpdate): Added ctx.
  6701. (MultiDiskAdaptor): Removed ctx.
  6702. (sha1Sum): Renamed as messageDigest.
  6703. (messageDigest): New function.
  6704. * src/UrlRequestInfo.h
  6705. (HeadResult): New class.
  6706. (digestAlgo): New variable.
  6707. (chunkChecksumLength): New variable.
  6708. (chunkChecksums): New variable.
  6709. (getHeadResult): New function.
  6710. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  6711. (setDigestAlgo): New function.
  6712. (setChunkChecksumLength): New function.
  6713. (setChunkChecksums): New function.
  6714. * src/DefaultPieceStorage.cc
  6715. (DiskAdaptorWriter.h): New include.
  6716. (ChunkChecksumValidator.h): New include.
  6717. (markAllPiecesDone): New function.
  6718. (checkIntegrity): New function.
  6719. * src/DefaultBtContext.h
  6720. (getPieceHashes): New function.
  6721. * src/TorrentRequestInfo.cc
  6722. (execute): Try to validate chunk checksum if file already exists and
  6723. .aria2 file doesn't there and user allows aria2 to overwrite it.
  6724. * src/messageDigest.h
  6725. (~MessageDigestContext): Added digestFree().
  6726. * src/MetalinkRequestInfo.cc
  6727. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  6728. * src/DiskAdaptor.h
  6729. (messageDigest.h): New include.
  6730. (sha1Sum): Renamed as messageDigest.
  6731. (messageDigest): New function.
  6732. * src/DownloadCommand.h
  6733. (PeerStat.h): New include.
  6734. (maxDownloadSpeedLimit): New variable.
  6735. (startupIdleTime): New variable.
  6736. (lowestDownloadSpeedLimit): New variable.
  6737. (peerStat): New variable.
  6738. (setMaxDownloadSpeedLimit): New function.
  6739. (setStartupIdleTime): New function.
  6740. (setLowestDownloadSPeedLimit): New function.
  6741. * src/BtContext.h
  6742. (getPieceHashes): New function.
  6743. * src/main.cc
  6744. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  6745. option to true for testing purpose.
  6746. * src/BtPieceMessage.cc
  6747. (checkPieceHash): Use messageDigest
  6748. * src/DownloadEngine.cc
  6749. (SetDescriptor): Removed.
  6750. (AccumulateActiveCommand): Removed.
  6751. (waitData): Rewritten.
  6752. (updateFdSet): Rewritten.
  6753. * src/MultiDiskAdaptor.cc
  6754. (hashUpdate): Added ctx.
  6755. (sha1Sum): Renamed as messageDigest.
  6756. (messageDigest): New function.
  6757. * src/BitfieldMan.h
  6758. (isBitRangeSet): New function.
  6759. (unsetBitRange): New function.
  6760. * src/ByteArrayDiskWriter.h
  6761. (sha1Sum): Renamed as messageDigest.
  6762. (messageDigest): New function.
  6763. * src/ConsoleDownloadEngine.cc
  6764. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  6765. * src/DiskWriter.h
  6766. (messageDigest.h): New include.
  6767. (sha1Sum): Renamed as messageDigest.
  6768. (messageDigest): New function.
  6769. * src/ChunkChecksumValidator.h: New class.
  6770. * src/DiskAdaptorWriter.h: New class.
  6771. * src/prefs.h
  6772. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  6773. (PREF_CHECK_INTEGRITY): New definition.
  6774. * src/HttpResponseCommand.cc
  6775. (handleDefaultEncoding): Added method "HEAD" handling.
  6776. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6777. (handleOtherEncoding):
  6778. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  6779. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  6780. startupIdleTime, lowestDownloadSpeedLimit to command.
  6781. * src/SegmentMan.h
  6782. (getSegmentEntryByIndex): New function.
  6783. (getSegmentEntryByCuid): New function.
  6784. (getSegmentEntryIteratorByCuid): New function.
  6785. (diskWriter): DiskWriter -> DiskWriterHandle
  6786. (pieceHashes): New variable.
  6787. (chunkHashLength): New variable.
  6788. (digestAlgo): New variable.
  6789. (FindPeerStat): Removed.
  6790. (getPeerStat): Rewritten.
  6791. (markAllPiecesDone): New function.
  6792. (checkIntegrity): New function.
  6793. (tryChunkChecksumValidation): New function.
  6794. (isChunkChecksumValidationReady): New function.
  6795. * src/BitfieldMan.cc
  6796. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  6797. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  6798. blocks to 0.
  6799. (isBitRangeSet): New function.
  6800. (unsetBitRange): New function.
  6801. * src/FtpNegotiateCommand.cc
  6802. (executeInternal): Set maxDownloadSpeedLimit,
  6803. startupIdleTime, lowestDownloadSpeedLimit to command.
  6804. (recvSize): Added method "HEAD" handling.
  6805. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  6806. * src/AbstractSingleDiskAdaptor.cc
  6807. (sha1Sum): Renamed as messageDigest.
  6808. (messageDigest): New function.
  6809. * src/AbstractSingleDiskAdaptor.h
  6810. (sha1Sum): Renamed as messageDigest.
  6811. (messageDigest): New function.
  6812. * src/Util.h
  6813. (indexRange): New function.
  6814. * src/MetalinkEntry.cc
  6815. (MetalinkEntry): Initialized chunkChecksum to 0.
  6816. * src/ShaVisitor.cc
  6817. (~ShaVisitor): Removed the call to ctx.digestFree().
  6818. * src/SegmentMan.cc
  6819. (ChunkChecksumValidator.h): New include.
  6820. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  6821. to DIGEST_ALGO_SHA1.
  6822. (~SegmentMan): Removed diskWriter.
  6823. (FindSegmentEntryByIndex): Removed.
  6824. (FindSegmentEntryByCuid): Removed.
  6825. (checkoutSegment): Rewritten.
  6826. (findSlowerSegmentEntry): Rewritten.
  6827. (getSegment): Rewritten.
  6828. (updateSegment): Rewritten.
  6829. (completeSegment): Rewritten.
  6830. (markAllPiecesDone): New function.
  6831. (checkIntegrity): New function.
  6832. (isChunkChecksumValidationReady): New function.
  6833. (tryChunkChecksumValidation): New function.
  6834. * src/Xml2MetalinkProcessor.cc
  6835. (getEntry): Get size and set it to entry.
  6836. Get chunk checksum and set it to entry.
  6837. (getPieceHash): New function.
  6838. * src/Util.cc
  6839. (sha1Sum): Removed ctx.digestFree()
  6840. (fileChecksum): Removed ctx.digestFree()
  6841. (indexRange): New function.
  6842. * src/Request.cc
  6843. (METHOD_GET): New variable.
  6844. (METHOD_HEAD): New variable.
  6845. (Request): Added method.
  6846. * src/UrlRequestInfo.cc
  6847. (FatalException.h): New include.
  6848. (message.h): New include.
  6849. (operator<<): Added operator<< for class HeadResult.
  6850. (getHeadResult): New function.
  6851. (execute): Get filename and size in separate download engine.
  6852. * src/ChunkChecksumValidator.cc: New class.
  6853. * src/DownloadCommand.cc:
  6854. (DownloadCommand): Added peerStat.
  6855. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  6856. the value from Option.
  6857. The buffer size is now 16KB.
  6858. Use peerStat member instead of getting it from SegmentMan.
  6859. Use startupIdleTime member instead of gettingit from Option.
  6860. Added chunk checksum validation.
  6861. * src/AbstractDiskWriter.cc
  6862. (AbstractDiskWriter): Removed ctx.
  6863. (~AbstractDiskWriter): Removed ctx.digestFree()
  6864. (writeDataInternal): Returns the return value of write.
  6865. (readDataInternal): Returns the return value of read.
  6866. (sha1Sum): Renamed as messageDigest
  6867. (messageDigest): New function.
  6868. * src/AbstractDiwkWriter.h
  6869. (messageDigest.h): Removed include.
  6870. (ctx): Removed.
  6871. (sha1Sum): Renamed as messageDigest
  6872. (messageDigest): New function.
  6873. * src/DefaultPieceStorage.h
  6874. (markAllPiecesDone): New function.
  6875. (checkIntegrity): New function.
  6876. * src/NullFileAllocationMonitor.h: New class.
  6877. * src/MetalinkChunkChecksum.h: New class.
  6878. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6879. To decrease CPU usage in bittorrent download, calculation results in
  6880. BitfieldMan were cached and realtime fetching PeerObject was removed
  6881. with WeakHandle introduced. Option values are set to the objects
  6882. by setter before download begins.
  6883. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  6884. * src/DefaultBtRequestFactory.h
  6885. (dispatcher): BtMessageDispatcherHandle ->
  6886. BtMessageDispatcherWeakHandle.
  6887. (messageFactory): New variable.
  6888. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  6889. BtMessageDispatcherWeakHandle.
  6890. (setBtMessageFactory): New function.
  6891. * src/DefaultBtMessageDispatcher.cc:
  6892. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  6893. from Option.
  6894. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  6895. feating the value from Option.
  6896. Use messageFactory member.
  6897. * src/PeerInteractionCommand.cc
  6898. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  6899. Add reverse dependencies to factory object.
  6900. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  6901. dispatcher.
  6902. Set messageFactory to receiver.
  6903. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  6904. btInteractive.
  6905. Set receiver to peerObject.
  6906. Set maxDownloadSpeedLimit to this.
  6907. (executeInternal): Use maxDownloadSpeedLimit member.
  6908. * src/BtChokeMessage.cc
  6909. (doReceivedAction): Use dispatcher, requestFactory member.
  6910. (onSendComplete): Use dispatcher member.
  6911. * src/PeerInteractionCommand.h
  6912. (maxDownloadSpeedLimit): New variable.
  6913. * src/DefaultBtMessageReceiver.h
  6914. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6915. (dispatcher):
  6916. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6917. (messageFactory): New variable.
  6918. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6919. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  6920. (setDispatcher):
  6921. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  6922. (setBtMessageFactory): New function.
  6923. * src/DefaultBtInteractive.cc
  6924. (initiateHandshake): Use messageFactory member.
  6925. (addBitfieldMessageToQueue): Use messageFactory member.
  6926. (addAllowedFastMessageToQueue): Use messageFactory member.
  6927. (decideChoking): Use messageFactory member.
  6928. (checkHave): Use messageFactory member.
  6929. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  6930. (receiveMessages): Use maxDownloadSpeedLimit member.
  6931. (decideInterest): Use messageFactory member.
  6932. * src/BtRequestMessage.cc
  6933. (doReceivedAction): Use messageFactory, dispatcher member.
  6934. (onQueued): Use dispatcher member.
  6935. * src/BtPieceMessage.cc
  6936. (doReceivedAction): Use dispatcher member.
  6937. (send): Use peerConnection member.
  6938. (onWrongPiece): Use requestFactory member.
  6939. (handleChokingEvent): Use messageFactory, dispatcher member.
  6940. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  6941. * src/BtMessageDispatcher.h
  6942. (BtMessageDispatcherWeakHandle): New type definition.
  6943. * src/SimpleBtMessage.cc
  6944. (send): Use peerConnection member.
  6945. * src/BtRejectMessage.cc
  6946. (doReceivedAction): Use dispatcher member.
  6947. * src/DefaultBtMessageDispatcher.h
  6948. (Option.h): Removed include.
  6949. (messageFactory): New variable.
  6950. (option): Removed.
  6951. (maxUploadSpeedLimit): New variable.
  6952. (requestTimeout): New variable.
  6953. (DefaultBtMessageDispatcher): Removed option.
  6954. Added maxUploadSpeedLimit, requestTimeout.
  6955. (setOption): Removed.
  6956. (getOption): Removed.
  6957. (setMaxUploadSpeedLimit): New function.
  6958. (setRequestTimeout): New function.
  6959. (setBtMessageFactory): New function.
  6960. * src/DefaultBtInteractive.h
  6961. (btMessageReceiver):
  6962. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6963. (dispatcher):
  6964. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6965. (btRequestFactory):
  6966. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6967. (peerConnection):
  6968. PeerConnectionHandle -> PeerConnectionWeakHandle
  6969. (messageFactory): New variable.
  6970. (option): Removed.
  6971. (keepAliveInterval): New variable.
  6972. (maxDownloadSpeedLimit): New variable.
  6973. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  6974. (setBtMessageReceiver):
  6975. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  6976. (setDispatcher):
  6977. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  6978. (setBtRequestFactory):
  6979. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  6980. (setPeerConnection):
  6981. PeerConnectionHandle -> PeerConnectionWeakHandle
  6982. (setOption): Removed.
  6983. (setKeepAliveInterval): New function.
  6984. (setMaxDownloadSpeedLimit): New function.
  6985. (setBtMessageFactory): New function.
  6986. * src/BitfieldMan.h
  6987. (cachedNumMissingBlock): New variable.
  6988. (cachedNumFilteredBlock): New variable.
  6989. (cachedCompletedLength): New variable.
  6990. (cachedFilteredComletedLength): New variable.
  6991. (cachedFilteredTotalLength): New variable.
  6992. (countMissingBlockNow): New function.
  6993. (countFilteredBlockNow): New function.
  6994. (getFilteredTotalLengthNow): New function.
  6995. (getCompletedLengthNow): New function.
  6996. (getFilteredCompletedLengthNow): New function.
  6997. (updateCache): New function.
  6998. * src/AbstractBtMessage.h
  6999. (BtMessageDispatcher.h): New include.
  7000. (PeerConnection.h): New include.
  7001. (BtRequestFactory.h): New include
  7002. (BtMessageFactory.h): New include.
  7003. (dispatcher): New variable.
  7004. (messageFactory): New variable.
  7005. (peerConnection: New variable.
  7006. (setBtMessageDispatcher): New function.
  7007. (setPeerConnection): New function.
  7008. (setBtMessageFactory): New function.
  7009. (setBtRequestFactory): New function.
  7010. * src/DefaultBtMessageFactory.cc
  7011. (setCommonProperty): Set dispatcher, requestFactory, this,
  7012. peerConnection to msg.
  7013. * src/BtRegistry.h
  7014. (BT_MESSAGE_RECEIVER): New macro.
  7015. * src/PeerConnection.h
  7016. (PeerConnectionWeakHandle): New type definition.
  7017. * src/BtMessageFactory.h
  7018. (BtMessageFactoryWeakHandle): New type definition.
  7019. * src/BitfieldMan.cc
  7020. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  7021. cachedCompletedLength, cachedFilteredComletedLength,
  7022. cachedFilteredTotalLength.
  7023. Call updateCache().
  7024. (countMissingBlock): Return cachedNumMissingBlock.
  7025. (countMissingBlockNow): New function.
  7026. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  7027. (countFilteredBlockNow): New function.
  7028. (setBit): Call updateCache().
  7029. (unsetBit): Call updateCache().
  7030. (setBitfield): Call updateCache().
  7031. (clearAllBit): Call updateCache().
  7032. (setAllBit): Use setBitInternal instead of setBit.
  7033. Call updateCache().
  7034. (addFilter): Call updateCache().
  7035. (enableFilter): Call updateCache().
  7036. (disableFilter): Call updateCache().
  7037. (clearFilter): Call updateCache().
  7038. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  7039. (getFilteredTotalLengthNow): New function.
  7040. (getCompletedLength): Return cachedCompletedLength.
  7041. (getCompletedLengthNow): New function.
  7042. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  7043. (getFilteredCompletedLengthNow): New function.
  7044. (updateCache): New function.
  7045. * src/BtMessageReceiver.h
  7046. (BtMessageReceiverWeakHandle): New type definition.
  7047. * src/DefaultBtMessageReceiver.cc
  7048. (receiveHandshake): Use messageFactory member.
  7049. (sendHandshake): Use messageFactory member.
  7050. (receiveMessage): Use messageFactory member.
  7051. * src/DefaultBtMessageFactory.h
  7052. (dispatcher): New variable.
  7053. (requestFactory): New variable.
  7054. (peerConnection): New variablle.
  7055. (setBtMessageDispatcher): New function.
  7056. (setBtRequestFactory): New function.
  7057. (setPeerConnection): New function.
  7058. * src/SharedHandle.h
  7059. (RefCount): New class.
  7060. (WeakHandle): New class.
  7061. * src/PeerObject.h
  7062. (BtMessageReceiver.h): New include.
  7063. (PeerObject): Added btMessageReceiver.
  7064. (btMessageReceiver): New variable.
  7065. * src/Util.cc
  7066. (countBit): Simplified.
  7067. * src/BtCancelMessage.cc
  7068. (doReceivedAction): Use dispatcher member.
  7069. * src/BtRequestFactory.h
  7070. (BtRequestFactoryWeakHandle): New type definition.
  7071. * src/PeerStorage.h
  7072. (downloadSpeed): int -> uint32_t
  7073. (uploadSpeed): int -> uint32_t
  7074. (sessionDownloadLength): long long int -> uint64_t
  7075. (sessionUploadLength): long long int -> uint64_t
  7076. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7077. To add RecoverableException, FatalException:
  7078. * src/AbstractCommand.cc
  7079. (onAbort): Exception -> RecoverableException
  7080. * src/PeerAbstractCommand.h
  7081. (RecoverableException.h): New include.
  7082. (onAbort): Exception -> RecoverableException.
  7083. * src/PeerInteractionCommand.cc
  7084. (onAbort): Exception -> RecoverableException.
  7085. * src/PeerAbstractCommand.cc
  7086. (execute): Exception -> RecoverableException.
  7087. (onAbort): Exception -> RecoverableException.
  7088. * src/TorrentRequestInfo.cc
  7089. (execute): Exception -> RecoverableException.
  7090. * src/MetalinkRequestInfo.cc
  7091. (execute): Exception -> RecoverableException.
  7092. * src/MetaFileUtil.cc: RecoverableException.
  7093. * src/AbstractCommand.h
  7094. (onAbort): Exception -> RecoverableException.
  7095. * src/DlRetryEx.h: Exception -> RecoverableException.
  7096. * src/DlAbortEx.h: Exception -> RecoverableException.
  7097. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  7098. * src/Util.cc: Exception -> RecoverableException.
  7099. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  7100. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  7101. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  7102. To make ID static const int
  7103. * src/BtInterestedMessage.h
  7104. (ID_t): Removed.
  7105. (ID): New variable.
  7106. (getId): Made non-const.
  7107. * src/BtPieceMessage.h
  7108. (ID_t): Removed.
  7109. (ID): New variable.
  7110. (getId): Made non-const.
  7111. * src/BtChokeMessage.h
  7112. (ID_t): Removed.
  7113. (ID): New variable.
  7114. (getId): Made non-const.
  7115. * src/BtHaveAllMessage.h
  7116. (ID_t): Removed.
  7117. (ID): New variable.
  7118. (getId): Made non-const.
  7119. * src/BtKeepAliveMessage.h
  7120. (ID_t): Removed.
  7121. (ID): New variable.
  7122. (getId): Made non-const.
  7123. * src/BtHandshakeMessage.h
  7124. (ID): New variable.
  7125. (getId): Made non-const.
  7126. * src/BtSuggestPieceMessage.h
  7127. (ID_t): Removed.
  7128. (ID): New variable.
  7129. (getId): Made non-const.
  7130. * src/BtPortMessage.h
  7131. (ID_t): Removed.
  7132. (ID): New variable.
  7133. (getId): Made non-const.
  7134. * src/AbstractBtMessage.h
  7135. (id): Removed.
  7136. (AbstractBtMessage): Removed id.
  7137. (getId): Removed.
  7138. * src/BtHaveMessage.h
  7139. (ID_t): Removed.
  7140. (ID): New variable.
  7141. (getId): Made non-const.
  7142. * src/BtAllowedFastMessage.h
  7143. (ID_t): Removed.
  7144. (ID): New variable.
  7145. (getId): Made non-const.
  7146. * src/BtCancelMessage.h
  7147. (ID_t): Removed.
  7148. (ID): New variable.
  7149. (getId): Made non-const.
  7150. * src/BtNotInterestedMessage.h
  7151. (ID_t): Removed.
  7152. (ID): New variable.
  7153. (getId): Made non-const.
  7154. * src/BtChokeMessage.h
  7155. (ID_t): Removed.
  7156. (ID): New variable.
  7157. (getId): Made non-const.
  7158. * src/BtRejectMessage.h
  7159. (ID_t): Removed.
  7160. (ID): New variable.
  7161. (getId): Made non-const.
  7162. * src/BtBitfieldMessage.h
  7163. (ID_t): Removed.
  7164. (ID): New variable.
  7165. (getId): Made non-const.
  7166. * src/BtUnchokeMessage.h
  7167. (ID_t): Removed.
  7168. (ID): New variable.
  7169. (getId): Made non-const.
  7170. * src/BtRequestMessage.h
  7171. (ID_t): Removed.
  7172. (ID): New variable.
  7173. (getId): Made non-const.
  7174. * src/BtHaveMessage.h
  7175. (ID_t): Removed.
  7176. (ID): New variable.
  7177. (getId): Made non-const.
  7178. To add --force-truncate command-line option and a check whether
  7179. the file already exists:
  7180. * src/DirectDiskAdaptor.h
  7181. (getFilePath): Made virtual public.
  7182. * src/MultiDiskAdaptor.h
  7183. (File.h): New include.
  7184. (DiskWriterEntry::fileEntry): Made private.
  7185. (DiskWriterEntry::fileExists): New function.
  7186. (DiskWriterEntry::getFileEntry): New function.
  7187. (fileExists): New function.
  7188. (getFilePath): New function.
  7189. * src/TorrentRequestInfo.cc
  7190. (FatalException.h): New include.
  7191. (message.h): New include.
  7192. (RecoverableException.h): New include.
  7193. (execute): Added a check whether file is already exists or not.
  7194. * src/DiskAdaptor.h
  7195. (fileExists): New function.
  7196. (getFilePath): New function.
  7197. * src/main.cc
  7198. (showUsage): Added an explanation of --force-truncate command-line
  7199. option.
  7200. (main): Added --force-truncate command-line option.
  7201. * src/Exception.h
  7202. (setMsg): buf[256] -> buf[1024]
  7203. * src/CopyDiskWriter.h
  7204. (getFilePath): Made public virtual.
  7205. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  7206. (fileExists): New function.
  7207. * src/DownloadEngineFactory.cc
  7208. (newTorrentConsoleEngine): Don't open file here.
  7209. * src/message.h
  7210. (EX_FILE_ALREADY_EXISTS): New definition.
  7211. * src/prefs.h
  7212. (PREF_FOECE_TRUNCATE): New definition.
  7213. * src/HttpResponseCommand.cc
  7214. (handleDefaultEncoding): Added a check whether the file already exists.
  7215. * src/SegmentMan.h
  7216. (fileExists): New function.
  7217. (shouldCancelDownloadForSafety): New function.
  7218. * src/FtpNegotiateCommand.cc
  7219. (recvSize): Added a check whether the file already exists.
  7220. * src/AbstractSingleDiskAdaptor.cc
  7221. (File.h): New include.
  7222. (fileExists): New function.
  7223. * src/AbstractSingleDiskAdaptor.h
  7224. (getFilePath): Removed.
  7225. (fileExists): New function.
  7226. * src/SegmentMan.cc
  7227. (fileExists): New function.
  7228. (shouldCancelDownloadForSafety): New function.
  7229. To fix regression bug in torrent downloading:
  7230. * src/DefaultBtRequestFactory.cc
  7231. (doChokedAction): New function.
  7232. * src/DefaultBtRequestFactory.h
  7233. (doChokedAction): New function.
  7234. * src/DefaultBtMessageDispatcher.cc
  7235. (doChokedAction): Do not delete request if its target is in allowed
  7236. fast set.
  7237. * src/DefaultBtInteractive.cc
  7238. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  7239. (sendKeepAlive): Send keep alive message even if the outgoing message
  7240. queue is not empty.
  7241. (decideInterest): Simplified the code.
  7242. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  7243. it is already called when BtChokeMessage is received from a peer.
  7244. * src/BtRequestFactory.h
  7245. (doChokedAction): New function.
  7246. To clean up code:
  7247. * src/PeerInteractionCommand.h
  7248. (executeInternal): Added virtual keyword explicitly.
  7249. (prepareForRetry): Added virtual keyword explicitly.
  7250. (prepareForNextPeer): Added virtual keyword explicitly.
  7251. (onAbort): Added virtual keyword explicitly.
  7252. * src/RequestSlot.cc
  7253. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  7254. * src/BtPieceMessage.cc
  7255. (doReceivedAction): Added a debug log of piece's bitfield.
  7256. * src/Piece.h
  7257. (getBitfieldLength): New function.
  7258. * src/ByteArrayDiskWriter.cc
  7259. (clear): Added buf = 0 to avoid double free corruption.
  7260. * src/FileAllocator.cc
  7261. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  7262. Added cp.reset().
  7263. * src/BitfieldMan.h
  7264. (operator=): Rewritten.
  7265. * src/BitfieldMan.cc
  7266. (BitfieldMan): Initialized bitfield, useBitfield.
  7267. * src/PeerConnection.cc
  7268. (receiveMessage): Added a call to socket->readable() after getting
  7269. message length to avoid possible EOF.
  7270. * src/Util.cc
  7271. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  7272. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7273. To add an ability to pre-allocate file space:
  7274. * src/DirectDiskAdaptor.h: Rewritten.
  7275. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  7276. * src/MultiDiskAdaptor.h: Rewritten.
  7277. * src/DefaultPieceStorage.cc
  7278. (MultiDiskWriter.h): Removed include.
  7279. (PreAllocationDiskWriter.h): Removed include.
  7280. (FileAllocationMonitor.h): New include.
  7281. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  7282. (initStorage): Rewritten.
  7283. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7284. * src/FileAllocator.h: New class.
  7285. * src/FileAllocator.cc: New class.
  7286. * src/FileAllocationMonitor.h: New class.
  7287. * src/FileAllocationMonitor.cc: New class.
  7288. * src/ConsoleFileAllocationMonitor.h: New class.
  7289. * src/ConsoleFileAllocationMonitor.cc: New class.
  7290. * src/AbstractSingleDiskAdaptor.h: New class.
  7291. * src/AbstractSingleDiskAdaptor.cc: New class.
  7292. * src/DiskAdaptor.h
  7293. (Directory.h): Removed include.
  7294. (DiskWriter.h): Removed include.
  7295. (FileEntry.h): Removed include.
  7296. (diskWriter): Removed.
  7297. (DiskAdaptor): Removed diskWriter.
  7298. (openFile): Made pure virtual.
  7299. (closeFile): Made pure virtual.
  7300. (openExistingFile): Made pure virtual.
  7301. (initAndOpenFile): Made pure virtual.
  7302. (writeData): Made pure virtual.
  7303. (readData): Made pure virtual.
  7304. (sha1Sum): Made pure virtual.
  7305. (getStoreDir): Returns const reference of storeDir.
  7306. (DiskAdaptorHandle): New type definition.
  7307. * src/main.cc
  7308. (ConsoleFileAllocationMonitor.h): New include.
  7309. (showUsage): Added default value description of -s option.
  7310. Added the description of --file-allocation option.
  7311. (main): Set default value of --file-allocation option to 'none'.
  7312. Added --file-allocation command-line option.
  7313. Setup FileAllocationMonitorFactory.
  7314. * src/FtpInitiateConnectionCommand.cc
  7315. (executeInternal): Removed diskWriter related processing, which was
  7316. moved to FtpNegotiationCommand.cc.
  7317. * src/DirectDiskAdaptor.cc
  7318. (getFilePath): Made non-const.
  7319. * src/CopyDiskAdaptor.h
  7320. (DiskAdaptor.h): Removed include.
  7321. (DiskWriter.h): Removed include.
  7322. (AbstractSingleDiskAdaptor.h): New include.
  7323. (getFilePath): Made non-const. Added virtual keyword.
  7324. (CopyDiskAdaptor): Removed diskWriter.
  7325. (getTempFile): Returns const reference.
  7326. (CopyDiskAdaptorHandle): New type definition.
  7327. * src/ByteArrayDiskWriter.cc
  7328. (clear): Simplified.
  7329. (initAndOpenFile): Rewritten.
  7330. (openFile): Call initAndOpenFile()
  7331. * src/MultiDiskAdaptor.cc: Rewritten.
  7332. * src/DownloadEngineFactory.cc
  7333. (FileAllocator.h): New include.
  7334. (FileAllocationMonitor.h): New include.
  7335. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  7336. create DefaultDiskWriter with file allocator.
  7337. * src/DiskWriter.h
  7338. (initAndOpenFile): Added totalLength argument.
  7339. (openFile): Added totalLength argument.
  7340. * src/prefs.h
  7341. (PREF_FILE_ALLOCATION): New definition.
  7342. (V_PREALLOC): New definition.
  7343. (V_NONE): New definition.
  7344. * src/HttpResponseCommand.cc
  7345. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  7346. size.
  7347. * src/FtpNegotiateCommand.cc
  7348. (Util.h): New include.
  7349. (recvSize): Open file here.
  7350. * src/Util.h
  7351. (ullitos): New function.
  7352. * src/CopyDiskWriter.h
  7353. (getFilePath): Made non-const.
  7354. * src/DefaultDiskWriter.h
  7355. (Option.h): New include.
  7356. (totalLength): Removed.
  7357. (DefaultDiskWriter): Removed totalLength.
  7358. (initAndOpenFile): Added totalLength argument.
  7359. (DefaultDiskWriterHandle): New type definition.
  7360. (createNewDiskWriter): New function.
  7361. * src/Util.cc
  7362. (ullitos): New function.
  7363. * src/DefaultDiskWriter.cc
  7364. (message.h): New include.
  7365. (FileAllocator.h): New include.
  7366. (prefs.h): New include.
  7367. (Util.h): New include.
  7368. (DefaultDiskWriter): Removed totalLength.
  7369. (initAndOpenFile): Added file allocation.
  7370. (createNewDiskWriter): New function. Just for temporary solution.
  7371. It will be rewritten later.
  7372. * src/DiskAdaptor.cc
  7373. (DiskAdaptor): Removed diskWriter.
  7374. * src/AbstractDiskWriter.cc
  7375. (LogFactory.h): New include.
  7376. (AbstractDiskWriter): Added fileAllocator, logger.
  7377. (openFile): Added totalLength argument.
  7378. * src/AbstractDiskWriter.h
  7379. (FileAllocator.h): New include.
  7380. (Logger.h): New include.
  7381. (fileAllocator): New variable.
  7382. (logger): New variable.
  7383. (openFile): Added totalLength argument. Added virtual keyword
  7384. explicitly.
  7385. (openExistingFile): Added totalLength argument. Added virtual keyword
  7386. explicitly.
  7387. (closeFile): Added virtual keyword explicitly.
  7388. (sha1Sum): Added virtual keyword explicitly.
  7389. (writeData): Added virtual keyword explicitly.
  7390. (readData): Added virtual keyword explicitly.
  7391. (setFileAllocator): New function.
  7392. * src/DefaultPieceStorage.h
  7393. (FileAllocator.h): New include.
  7394. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7395. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  7396. * src/FileProgressMonitor.h: New class.
  7397. To compile aria2 on PC-BSD:
  7398. * src/DefaultBtContext.cc
  7399. (libgen.h): New include.
  7400. To fix memory leak:
  7401. * src/Exception.h
  7402. (~Exception): Delete cause. Fixed memory leak.
  7403. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7404. Rewritten a portion of bittorrent implementation:
  7405. * src/BtMessageValidator.h: New class.
  7406. * src/BtBitfieldMessageValidator.h: New class.
  7407. * src/BtHandshakeMessageValidator.h: New class.
  7408. * src/BtRequestMessageValidator.h: New class.
  7409. * src/BtSuggestPieceMessageValidator.h: New class.
  7410. * src/BtAllowedFastMessageValidator.h: New class.
  7411. * src/BtRejectMessageValidator.h: New class.
  7412. * src/BtCancelMessageValidator.h: New class.
  7413. * src/BtPieceMessageValidator.h: New class.
  7414. * src/BtHaveMessageValidator.h: New class.
  7415. * src/BtEventListener.h: New class.
  7416. * src/AbstractBtEventListener.h: New class.
  7417. * src/BtEvent.h: New class.
  7418. * src/BtChokingEvent.h: New class.
  7419. * src/BtChokedEvent.h: New class.
  7420. * src/BtCancelSendingPieceEvent.h: New class.
  7421. * src/BtAbortOutstandingRequestEvent.h: New class.
  7422. * src/Randomizer.h: New class.
  7423. * src/SimpleRandomizer.h: New class.
  7424. * src/BtMessage.h: New class.
  7425. * src/AbstractBtMessage.h: New class.
  7426. * src/SimpleBtMessage.h: New class.
  7427. * src/BtHaveMessage.h: New class.
  7428. * src/BtInterestedMessage.h: New class.
  7429. * src/BtAllowedFastMessage.h: New class.
  7430. * src/BtUnchokeMessage.h: New class.
  7431. * src/BtCancelMessage.h: New class.
  7432. * src/BtNotInterestedMessage.h: New class.
  7433. * src/BtChokeMessage.h: New class.
  7434. * src/BtHaveNoneMessage.h: New class.
  7435. * src/BtHandshakeMessage.h: New class.
  7436. * src/BtSuggestPieceMessage.h: New class.
  7437. * src/BtHaveMessage.h: New class.
  7438. * src/BtPieceMessage.h: New class.
  7439. * src/BtHaveAllMessage.h: New class.
  7440. * src/BtKeepAliveMessage.h: New class.
  7441. * src/BtPortMessage.h: New class.
  7442. * src/BtRejectMessage.h: New class.
  7443. * src/BtBitfieldMessage.h: New class.
  7444. * src/BtRequestMessage.h: New class.
  7445. * src/DefaultBtRequestFactory.h: New class.
  7446. * src/DefaultBtMessageReceiver.h: New class.
  7447. * src/BtInteractive.h: New class.
  7448. * src/BtMessageDispatcher.h: New class.
  7449. * src/DefaultBtMessageDispatcher.h: New class.
  7450. * src/DefaultBtInteractive.h: New class.
  7451. * src/BitfieldManFactory.h: New class.
  7452. * src/HandleRegistry.h: New class.
  7453. * src/BtMessageFactory.h: New class.
  7454. * src/BtMessageReceiver.h: New class.
  7455. * src/DefaultBtMessageFactory.h: New class.
  7456. * src/PeerObject.h: New class.
  7457. * src/BtRequestFactory.h: New class.
  7458. * src/SuggestPieceMessage.h: Removed.
  7459. * src/PortMessage.h: Removed.
  7460. * src/SuggestPieceMessage.h: Removed.
  7461. * src/KeepAliveMessage.h: Removed.
  7462. * src/HandshakeMessage.h: Removed.
  7463. * src/PeerInteraction.h: Removed.
  7464. * src/UnchokeMessage.h: Removed.
  7465. * src/PieceMessage.h: Removed.
  7466. * src/RequestMessage.h: Removed.
  7467. * src/InterestedMessage.h: Removed.
  7468. * src/HaveMessage.h: Removed.
  7469. * src/CancelMessage.h: Removed.
  7470. * src/RejectMessage.h: Removed.
  7471. * src/AllowedFastMessage.h: Removed.
  7472. * src/HaveNoneMessage.h: Removed.
  7473. * src/SimplePeerMessage.h: Removed.
  7474. * src/HaveAllMessage.h: Removed.
  7475. * src/BitfieldMessage.h: Removed.
  7476. * src/PeerMessageFactory.h: Removed.
  7477. * src/NotInterestedMessage.h: Removed.
  7478. * src/ChokeMessage.h: Removed.
  7479. * src/PeerMessage.h: Removed.
  7480. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7481. To know root cause of exception:
  7482. * src/Exception.h
  7483. (cause): New variable.
  7484. (Exception): Added a parameter.
  7485. (getMsg): Return const reference to msg.
  7486. (getCause): New function.
  7487. * src/DlRetryEx.h
  7488. (DlRetryEx): Added a parameter 'cause'.
  7489. Added an overloaded constructor.
  7490. (DlAbortEx): Added a parameter 'cause'.
  7491. Added an overloaded constructor.
  7492. * src/SimpleLogger.cc
  7493. (writeLog): Log nested exception messages recursively.
  7494. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7495. * src/DefaultBtProgressInfoFile.cc
  7496. (load): Fixed memory leak when the infohash doesn't match.
  7497. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. * src/DefaultPeerStorage.cc
  7499. (calculateStat): Simplified the code by combining 2 loops into 1.
  7500. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  7502. for BitTorrent download:
  7503. * src/PeerAbstractCommand.cc
  7504. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  7505. * src/main.cc:
  7506. (timeoutSpecified): Removed.
  7507. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  7508. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  7509. * src/TorrentRequestInfo.cc
  7510. (timeoutSpecified): Removed.
  7511. (torrentHandler): Removed timeoutSpecified and the adjustment of
  7512. timeout value.
  7513. * src/prefs.h
  7514. (PREF_BT_TIMEOUT): New definition.
  7515. Delete unused variables:
  7516. * src/TorrentRequestInfo.cc
  7517. (requestInfo): Removed.
  7518. Move setSignalHander to Util::setGlobalSignalHandler:
  7519. * src/TorrentRequestInfo.cc:
  7520. setSignalHander -> Util::setGlobalSignalHandler
  7521. * src/main.cc
  7522. (setSignalHander): Removed.
  7523. (main): setSignalHander -> Util::setGlobalSignalHandler
  7524. * src/Util.h
  7525. (setGlobalSignalHandler): New function.
  7526. * src/Util.cc
  7527. (setGlobalSignalHandler): New function.
  7528. * src/UrlRequestInfo.cc:
  7529. setSignalHander -> Util::setGlobalSignalHandler
  7530. Reset peer status in order to exit gracefully:
  7531. * src/PeerAbstractCommand.cc
  7532. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  7533. To fix the bug that causes the number of bytes uploaded is not saved
  7534. to .aria2 file:
  7535. * src/DefaultPeerStorage.h
  7536. (removedPeerSessionDownloadLength): New variable.
  7537. (removedPeerSessionUploadLength): New variable.
  7538. * src/DefaultPeerStorage.cc
  7539. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  7540. removedPeerSessionUploadLength(0).
  7541. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  7542. through all peers, and then add removedPeerSessionDownloadLength(
  7543. removedPeerSessionUploadLength) to it.
  7544. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  7545. (to) the peer to removedPeerSessionDownloadLength
  7546. (removedPeerSessionUploadLength).
  7547. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7548. To add Metalink location option:
  7549. * src/MetalinkRequestInfo.cc
  7550. (execute): Call MetalinkEntry::setLocationPreference()
  7551. * src/main.cc
  7552. (showUsage): Added the help message for --metalink-location option.
  7553. (main): Added --metalink-location option.
  7554. * src/prefs.h
  7555. (PREF_METALINK_LOCATION): New definition.
  7556. * src/MetalinkEntry.cc
  7557. (AddLocationPreference): New function object.
  7558. (setLocationPreference): New function.
  7559. * src/Xml2MetalinkProcessor.cc
  7560. (getResource): Set location attribute to MetalinkResource
  7561. To show URLs to download
  7562. * src/UrlRequestInfo.h
  7563. (printUrls): New function.
  7564. To add multiple <file> Metalink support:
  7565. * src/MetalinkEntry.h
  7566. (MetalinkResources): Removed.
  7567. (setLocationPreference): New function.
  7568. (MetalinkEntryHandle): New type definition.
  7569. (MetalinkEntries): New type definition.
  7570. * src/Xml2MetalinkProcessor.h
  7571. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7572. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7573. (parseFile): Metalinker* -> MetalinkerHandle
  7574. * src/UrlRequestInfo.h
  7575. (execute): RequestInfo* -> RequestInfos
  7576. * src/MetalinkRequestInfo.cc
  7577. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  7578. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  7579. (execute): RequestInfo* -> RequestInfos
  7580. Added multiple <file> support. Print filename when it is queued.
  7581. * src/MetalinkRequestInfo.h
  7582. (execute): RequestInfo* -> RequestInfos
  7583. (getDownloadEngine): Removed.
  7584. * src/RequestInfo.h
  7585. (RequestInfoHandle): New type definition.
  7586. (RequestInfos): New type definition.
  7587. (execute): RequestInfo* -> RequestInfos
  7588. (getDownloadEngine): Removed.
  7589. * src/MetalinkResource.h
  7590. (MetalinkResourceHandle): New type definition.
  7591. (MetalinkResources): New type definition.
  7592. * src/MetalinkEntry.cc
  7593. (~MetalinkEntry): Removed the deletion of the elements of resources,
  7594. because the element is now of type MetalinkResourceHandle.
  7595. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  7596. (Supported): MetalinkResource* -> MetalinkResourceHandle
  7597. (dropUnsupportedResource): Removed the deletion of the elements of
  7598. resources because the element is now of type MetalinkResourceHandle.
  7599. * src/Xml2MetalinkProcessor.cc
  7600. (parseFile): Metalinker* -> MetalinkerHandle
  7601. MetalinkEntry* -> MetalinkEntryHandle
  7602. Removed try-catch block.
  7603. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  7604. MetalinkResource* -> MetalinkResourceHandle
  7605. Removed try-catch block.
  7606. (getResource): MetalinkResource* -> MetalinkResourceHandle
  7607. Free result by using xmlXPathFreeObject()
  7608. * src/Metalinker.cc
  7609. (~Metalinker): Removed the deletion of entries.
  7610. MetalinkEntry* -> MetalinkEntryHandle
  7611. (queryEntry): Add multiple <file> Metalink support.
  7612. * src/Metalinker.h
  7613. (MetalinkEntries): Removed.
  7614. (queryEntry): MetalinkEntry* -> MetalinkEntries
  7615. * src/MetalinkProcessor.h
  7616. (parseFile): Metalinker* -> MetalinkerHandle
  7617. Bug fixes:
  7618. * src/PeerChokeCommand.cc
  7619. (execute): cat01->cat02
  7620. * src/DefaultPieceStorage.cc
  7621. (DefaultPieceStorage): Added diskAdaptor(0)
  7622. * src/TrackerWatcherComand.cc:
  7623. (execute): Use btAnnounce->noMoreAnnounce()
  7624. to determin whether the function returns true or not.
  7625. * src/TrackerUpdateCommand.cc:
  7626. (execute): Use btAnnounce->noMoreAnnounce()
  7627. to determin whether the function returns true or not.
  7628. * src/FtpConnection.cc
  7629. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  7630. This is the fix of the busy loop bug.
  7631. * src/DownloadCommand.cc
  7632. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  7633. cached PeerStat.
  7634. The value of "name" entry in torrent file is now set by
  7635. *DiskAdaptor::setTopDir(...) methods.
  7636. * src/MultiDiskAdaptor.h
  7637. (topDir): New variable.
  7638. (setTopDir): New function.
  7639. (getTopDir): New function.
  7640. * src/MultiDiskAdaptor.cc
  7641. (getFilePath): Concat storDir, "/" and topDir.
  7642. (mkdir): Use getFilePath() to get the directory path for output.
  7643. * src/DefaultPieceStorage.cc
  7644. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  7645. CopyDiskAdaptor.
  7646. * src/CopyDiskAdaptor.h
  7647. (topDir): New variable.
  7648. (setTopDir): New function.
  7649. (getTopDir): New function.
  7650. * src/CopyDiskAdaptor.cc
  7651. (fixFilename): Updated.
  7652. Misc
  7653. * src/UrlRequestInfo.h
  7654. (e): Removed.
  7655. (UrlRequestInfo): Removed e.
  7656. (getDownloadEngine): Removed.
  7657. * src/UrlRequestInfo.cc
  7658. (handler): Rewritten.
  7659. (printUrls): New function.
  7660. (execute): Call printUrls().
  7661. * src/HandshakeMessage.cc
  7662. (check): peerinteraction->getBtContext() -> btContext
  7663. * src/PeerInteraction.h
  7664. (getBtContext): Removed.
  7665. * src/TorrentRequestInfo.h
  7666. (execute): RequestInfo* -> RequestInfos
  7667. (getDownloadEngine): Removed.
  7668. * src/TorrentRequestInfo.cc
  7669. (haltRequested): Removed.
  7670. (btHaltRequested): New variable.
  7671. (torrentHandler): haltRequested -> btHaltRequested
  7672. (execute): RequestInfo* -> RequestInfos
  7673. * src/TorrentConsoleDownloadEngine.cc
  7674. (afterEachIteration): haltRequested -> btHaltRequested.
  7675. * src/ConsoleDownloadEngine.h
  7676. (initStatistics): Added virtual.
  7677. (calculateStatistics): Added virtual.
  7678. (onEndOfRun): Added virtual.
  7679. (afterEachIteration): Added virtual.
  7680. * src/ConsoleDownloadEngine.cc
  7681. (haltRequested): New variable.
  7682. (afterEachIteration): New function.
  7683. * src/main.cc
  7684. (requestInfo): Removed.
  7685. * src/SegmentMan.cc
  7686. (findSlowerSegmentEntry): Refactored.
  7687. * Release 0.9.0
  7688. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7689. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  7690. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  7691. * src/TorrentMan.h: Removed.
  7692. * src/TorrentMan.cc: Removed.
  7693. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  7694. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  7695. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  7696. * src/PeerAbstractCommand.cc: Use btRuntime.
  7697. * src/BtContextAwareCommand.h: New class.
  7698. * src/FileEntry.h: Added accessor methods for following variables.
  7699. (path): Made private.
  7700. (length): Made private.
  7701. (offset): Made private.
  7702. (extracted): Made private.
  7703. (requested): Made private.
  7704. (FileEntries): New definition.
  7705. (FileEntryHandle): New definition.
  7706. * src/FileEntry.cc: New file.
  7707. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  7708. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  7709. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  7710. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  7711. * src/PieceStorage.h: New file.
  7712. * src/PeerInteractionCommand.h: Use btContext.
  7713. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  7714. btRuntime.
  7715. * src/DefaultBtProgressInfoFile.h: New file.
  7716. * src/DefaultBtProgressInfoFile.cc: New file.
  7717. * src/File.cc
  7718. (Util.h): New include.
  7719. (mkdirs): New function.
  7720. * src/MultiDiskAdaptor.h
  7721. (mkdir): New function.
  7722. * src/PeerListProcessor.h
  7723. (Peers): Removed.
  7724. * src/PeerInteraction.h
  7725. (torrentMan): Removed.
  7726. (btContext): New variable.
  7727. (peerStorage): New variable.
  7728. (pieceStorage): New variable.
  7729. (btAnnounce): New variable.
  7730. (getTorrentMan): Removed.
  7731. (getBtContext): New function.
  7732. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  7733. btAnnounce.
  7734. * src/HandshakeMessage.h
  7735. (TorrentMan.h): Removed.
  7736. * src/HandshakeMessage.cc: Use btContext.
  7737. * src/DefaultBtAnnounce.cc: New file.
  7738. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  7739. * src/DefaultPieceStorage.cc: New file.
  7740. * src/DefaultBtContext.h: New file.
  7741. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  7742. Use the accessor methods of FileEntry.
  7743. * src/CookieBox.cc: Updated to use Util::slice().
  7744. * src/PieceMessage.cc: Use btContext, pieceStorage.
  7745. * src/common.h (SharedHandle.h): New include.
  7746. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  7747. pieceStorage.
  7748. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  7749. * src/DiskAdaptor.h
  7750. (topDir): Removed.
  7751. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  7752. (setTopDir): Removed.
  7753. (getTopDir): Removed.
  7754. * src/BtContext.h: New file.
  7755. * src/DefaultPeerStorage.h: New file.
  7756. * src/PieceMessage.h (TorrentMan.h): Removed.
  7757. * src/RequestMessage.h (TorrentMan.h): Removed.
  7758. * src/TorrentDownloadEngine.h
  7759. (uploadLength): New variable.
  7760. (btContext): New variable.
  7761. (btRuntime): New variable.
  7762. (pieceStorage): New variable.
  7763. (peerStorage): New variable.
  7764. (btAnnounce): New variable.
  7765. (btProgressInfoFile): New variable.
  7766. (torrentMan): Removed.
  7767. (setBtContext): New function.
  7768. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  7769. peerStorage, btAnnounce, btProgressInfoFile.
  7770. * src/Piece.h
  7771. (toString): New function.
  7772. (Pieces): New type definition.
  7773. * src/Peer.h
  7774. (active): New variable.
  7775. (Peer): Added active.
  7776. (activate): Set active to true.
  7777. (deactivate): Set active to false.
  7778. (isActive): New function.
  7779. (Peers): New type definition.
  7780. * src/DirectDiskAdaptor.cc
  7781. (getFilePath): Use the accessor methods of FileEntry.
  7782. * src/TorrentConsoleDownloadEngine.h
  7783. (afterEachIteration): New function.
  7784. * src/TorrentConsoleDownloadEngine.cc
  7785. (haltRequested): New variable.
  7786. (sendStatistics): Use pieceStorage, btRuntime.
  7787. (afterEachIteration): New function.
  7788. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  7789. * src/Directry.h
  7790. (Directory): New function.
  7791. (DirectoryHandle): New type definition.
  7792. * src/BtProgressInfoFile.h: New file.
  7793. * src/RequestMessage.cc: Use pieceStorage.
  7794. * src/BtRuntime.h: New file.
  7795. * src/DefaultBtContext.cc: New file.
  7796. * src/BitfieldMan.h
  7797. (getCompletedLength): New function(private).
  7798. (getCompletedLength): New function.
  7799. (getFilteredCompletedLength): New function.
  7800. * src/BitfieldMan.h
  7801. (getCompletedLength): New function(private).
  7802. (getCompletedLength): New function.
  7803. (getFilteredCompletedLength): New function.
  7804. * src/MultiDiskAdaptor.cc
  7805. (mkdir): New function.
  7806. (openFile): Call mkdir().
  7807. (initAndOpenFile): Call mkdir().
  7808. * src/CancelMessage.h
  7809. (TorrentMan.h): Removed.
  7810. * src/RejectMessage.h
  7811. (TorrentMan.h): Removed.
  7812. * src/DownloadEngineFactory.cc
  7813. (DefaultPieceStorage.h): New include.
  7814. (DefaultPeerStorage.h): New include.
  7815. (DefaultBtAnnounce.h): New include.
  7816. (DefaultBtProgressInfoFile.h): New include.
  7817. (newTorrentConsoleEngine): Rewritten.
  7818. * src/ShareRatioSeedCriteria.h
  7819. (torrentMan): Removed.
  7820. (btContext): New variable.
  7821. (peerStorage): New variable.
  7822. (btRuntime): New variable.
  7823. (evaluate): Use btContext, btRuntime, peerStorage.
  7824. * src/AnnounceTier.h: New file.
  7825. * src/BtAnnounce.h: New file.
  7826. * src/BtRegistry.h: New file.
  7827. * src/PeerInitiateConnectionCommand.h: Added btContext.
  7828. * src/PeerConnection.h (TorrentMan.h): Removed.
  7829. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  7830. * src/Util.h
  7831. (slice): Added an argument.
  7832. * src/Util.cc
  7833. (slice): Added an argument to control whether trim is made or not.
  7834. * src/PeerStorage.h: New file.
  7835. * src/BtRegistry.cc: New file.
  7836. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  7837. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  7838. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  7839. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  7840. * src/TorrentRequestInfo.h
  7841. (e): Removed.
  7842. (showFileEntry): Added an argument.
  7843. (getDownloadEngine): Return 0.
  7844. * src/DefaultBtAnnounce.h: New file.
  7845. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  7846. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  7847. * src/PeerMessageFactory.h
  7848. (btContext): New variable.
  7849. (pieceStorage): New variable.
  7850. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  7851. btAnnounce.
  7852. * src/DiskAdaptor.cc
  7853. (DiskAdaptor): Removed topDir.
  7854. (~DiskAdaptor): Removed topDir.
  7855. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  7856. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  7857. * src/File.h (mkdirs): New function.
  7858. * src/DefaultPeerStorage): New file.
  7859. * src/DownloadEngineFactory.h
  7860. (newTorrentConsoleEngine): Use btContext.
  7861. * src/BtContextAwareCommand.cc: New file.
  7862. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  7863. * src/PeerMessage.h
  7864. (btContext): New variable.
  7865. (peerStorage): New variable.
  7866. (pieceStorage): New variable.
  7867. (setBtContext): New function.
  7868. * src/Directry.cc
  7869. (Directory): New function.
  7870. (createDir): Do nothing if name.size() == 0.
  7871. * src/AnnounceList.h
  7872. (AnnounceTier): Removed.
  7873. (AnnounceTiers): Removed.
  7874. * src/DefaultPieceStorage.h: New file.
  7875. * src/Piece.cc (toString): New function.
  7876. To fix typo:
  7877. * src/main.cc (showVersion): Fixed typo.
  7878. To fix compile warning:
  7879. * src/DelegatingPeerListProcessor.cc
  7880. (canHandle): Added "return false".
  7881. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7882. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  7883. make the process of announce request testable.
  7884. * src/TrackerWatcherCommand.h
  7885. (TimeA2.h): Removed.
  7886. (interval): Removed.
  7887. (checkPoint): Removed.
  7888. (createRequestCommand): Added an argument 'url'.
  7889. (TrackerWatherCommand): Removed interval.
  7890. (createCommand): New function.
  7891. * src/DownloadEngineFactory.cc
  7892. (newTorrentConsoleEngine): Updated according to the changes in
  7893. TrackerWatherCommand.
  7894. * src/TorrentMan.cc
  7895. (DelegatingPeerListProcessor.h): New includes.
  7896. (TorrentMan): Added the initialization of announceInterval.
  7897. (isStoppedAnnounceReady): New function.
  7898. (isCompletedAnnounceReady): New function.
  7899. (isDefaultAnnounceReady): New function.
  7900. (isAnnounceReady): New function.
  7901. (getAnnounceUrl): New function.
  7902. (announceStart): New function.
  7903. (announceFailure): New function.
  7904. (announceSuccess): New function.
  7905. (isAllAnnounceFailed): New function.
  7906. (resetAnnounce): New function.
  7907. (processAnnounceResponse): New function.
  7908. (needMorePeerConnection): New function.
  7909. (noMoreAnnounce): New function.
  7910. * src/TrackerUpdateCommand.h
  7911. (getTrackerResponse): int->size_t
  7912. * src/TorrentMan.h
  7913. (isStoppedAnnounceReady): New function.
  7914. (isCompletedAnnounceReady): New function.
  7915. (isDefaultAnnounceReady): New function.
  7916. (announceInterval): New variable.
  7917. (isAnnounceReady): New function.
  7918. (getAnnounceUrl): New function.
  7919. (announceStart): New function.
  7920. (announceFailure): New function.
  7921. (announceSuccess): New function.
  7922. (isAllAnnounceFailed): New function.
  7923. (resetAnnounce): New function.
  7924. (processAnnounceResponse): New function.
  7925. (needMorePeerConnection): New function.
  7926. (noMoreAnnounce): New function.
  7927. * src/TrackerWatcherCommand.cc
  7928. (TrackerWatherCommand): Removed interval and checkPoint.
  7929. (execute): Rewritten.
  7930. (createCommand): New function.
  7931. (createRequestCommand): Rewritten.
  7932. * src/TrackerUpdateCommand.cc
  7933. (MetaFileUtil.h): Removed.
  7934. (DelegatingPeerListProcessor.h): Removed.
  7935. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  7936. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Request -> RequestHandle:
  7938. * src/HttpResponseCommand.h: Request->RequestHandle
  7939. * src/AbstractCommand.cc: Request->RequestHandle
  7940. * src/HttpDownloadCommand.cc: Request->RequestHandle
  7941. * src/HttpRequestCommand.cc: Request->RequestHandle
  7942. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  7943. * src/AbstractCommand.h: Request->RequestHandle
  7944. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  7945. * src/HttpResponseCommand.cc: Request->RequestHandle
  7946. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  7947. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  7948. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  7949. * src/HttpConnection.h: Request->RequestHandle
  7950. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  7951. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  7952. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7953. * src/DownloadCommand.h: Request->RequestHandle
  7954. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  7955. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  7956. * src/HttpRequestCommand.h: Request->RequestHandle
  7957. * src/FtpNegotiateCommand.h: Request->RequestHandle
  7958. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  7959. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  7960. * src/HttpDownloadCommand.h: Request->RequestHandle
  7961. * src/FtpConnection.cc: Request->RequestHandle
  7962. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  7963. * src/UrlRequestInfo.cc: Request->RequestHandle
  7964. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  7965. * src/HttpConnection.h: Request->RequestHandle
  7966. * src/DownloadCommand.cc: Request->RequestHandle
  7967. * src/FtpConnection.h: Request->RequestHandle
  7968. * src/FtpDowndloadCommand.h: Request->RequestHandle
  7969. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  7970. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  7971. * src/Request.h
  7972. (SharedHandle.h): New include.
  7973. (RequestHandle): New type definition.
  7974. (Requests): Redefined.
  7975. To add MULTITRACKER support:
  7976. * src/TrackerWatcherCommand.h
  7977. (createRequestCommand): New function.
  7978. * src/DownloadEngineFactory.cc
  7979. (newTorrentConsoleEngine): Removed req.
  7980. * src/prefs.h
  7981. (PREF_TRACKER_MAX_TRIES): New definition.
  7982. * src/TorrentMan.cc
  7983. (TorrentMan): Removed req. Added trackerNumTry.
  7984. (~TorrentMan): Removed req.
  7985. (setupInternal1): Added announceList.
  7986. * src/TorrentRequestInfo.cc
  7987. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  7988. announces is now specified by PREF_TRACKER_MAX_TRIES.
  7989. * src/main.cc
  7990. (main): Added PREF_TRACKER_MAX_TRIES.
  7991. * src/TorrentMan.h
  7992. (Request.h): Removed.
  7993. (AnnounceList.h): New include.
  7994. (trackerNumTry): New variable.
  7995. (req): Removed.
  7996. (announceList): New variable.
  7997. * src/TrackerWatcherCommand.cc
  7998. (execute): Rewritten.
  7999. (createRequestCommand): New function.
  8000. * src/TrackerUpdateCommand.cc
  8001. (execute): Updated with the use of AnnounceList.
  8002. * src/AnnounceList.cc: New class.
  8003. * src/AnnounceList.h: New class.
  8004. To fix typo:
  8005. * src/prefs.h
  8006. (PREF_MAX_TRIES): max_try->max_tries
  8007. To not to decode "+" as space in URL decode:
  8008. * src/Util.cc
  8009. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  8010. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. To add timeout to async name resolution:
  8012. * src/AbstractCommand.h
  8013. (nameResolveFinished): New function. This is not elegant way. It needs
  8014. to be more refined.
  8015. (nameResolverCheck): New variable.
  8016. * src/AbstractCommand.cc
  8017. (AbstractCommand): Added nameResolverCheck.
  8018. (execute): Added the check whether the name resolution has finished.
  8019. (setNameResolverCheck): Set nameResolverCheck to true.
  8020. (disableNameResolverCheck): Set nameResolverCheck to false.
  8021. (nameResolverFinished): New function.
  8022. * src/FtpInitiateConnectionCommand.h
  8023. (nameResolverFinished): New function.
  8024. * src/FtpInitiateConnectionCommand.cc
  8025. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8026. * src/HttpInitiateConnectionCommand.h
  8027. (nameResolverFinished): New function.
  8028. * src/HttpInitiateConnectionCommand.cc
  8029. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8030. * src/prefs.h
  8031. (PREF_DNS_TIMEOUT): New definition.
  8032. * src/main.cc
  8033. (main): Added PREF_DNS_TIMEOUT.
  8034. To add the support for a non-compact response from a tracker:
  8035. * src/PeerListProcessor.h: New class.
  8036. * src/DefaultPeerListProcessor.h: New class.
  8037. * src/DefaultPeerListProcessor.cc: New class.
  8038. * src/CompactPeerListProcessor.h: New class.
  8039. * src/CompactPeerListProcessor.cc: New class.
  8040. * src/DelegatingPeerListProcessor.h: New class.
  8041. * src/DelegatingPeerListProcessor.cc: New class.
  8042. * src/TorrentMan.cc
  8043. (addPeer): New function(overload).
  8044. (addPeer): Delete unused peers only when new peer is added.
  8045. * src/TorrentMan.h
  8046. (PeerListProcessor.h): Included.
  8047. (Peers): Removed.
  8048. (addPeer): New function(overload).
  8049. * src/TrackerUpdateCommand.cc
  8050. (netinet/in.h): Removed.
  8051. (DelegatingPeerListProcessor.h): Included.
  8052. (execute): Updated to use DelegatingPeerListProcessor.
  8053. To fix the memory leak in TorrentMan::peers:
  8054. * src/PeerAbstractCommand.cc
  8055. (onAbort): Added peer->resetStatus().
  8056. * src/Peer.h
  8057. (resetStatus): Made public.
  8058. To improve the precision of the speed calculation:
  8059. * src/SpeedCalc.h
  8060. (nextInterval): New variable.
  8061. * src/SpeedCalc.cc
  8062. (reset): Added nextInterval.
  8063. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  8064. (changeSw): Set nextInterval to 15 seconds relative to the current
  8065. instant time.
  8066. * src/main.cc
  8067. (showVersion): Updated.
  8068. (showUsage): Updated.
  8069. * Release 0.8.1
  8070. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8071. * src/main.cc
  8072. (showUsage): Commented out --min-segment-size option.
  8073. (main): Commented out --min-segment-size option.
  8074. * Release 0.8.0
  8075. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8076. * src/*.{h,cc}:
  8077. Added an exception to the license which allows linking with OpenSSL.
  8078. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8079. * src/AbstractCommand.cc
  8080. (execute): Check whether the download has finished before checking
  8081. socket status.
  8082. Return true if peerStat->getStatus() == REQUEST_IDLE.
  8083. Do not exit even if no segment is available.
  8084. * src/prefs.h
  8085. (PREF_STARTUP_IDLE_TIME): New definition.
  8086. * src/PeerInteractionCommand.cc
  8087. (executeInternal): Removed max speed limit. Because it performs bad.
  8088. (receiveMessages): Added max speed limit. This was better than above,
  8089. but still a little bit to be desired. Sometimes the download speed
  8090. became much faster than I specified.
  8091. * src/SpeedCalc.h
  8092. (start): New variable.
  8093. (accumulatedLength): New variable.
  8094. (getAvgSpeed): New function.
  8095. * src/SpeedCalc.cc
  8096. (reset): Added start, accumulatedLength.
  8097. (update): Added calculation of an average speed.
  8098. (getAvgSpeed): New function.
  8099. * src/DownloadCommand.h
  8100. (sw): Removed.
  8101. * src/main.cc
  8102. (main): Added PREF_STARTUP_IDLE_TIME.
  8103. * src/PeerStat.h
  8104. (STATUS): Added REQUEST_IDLE.
  8105. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  8106. (getAvgDownloadSpeed): New function
  8107. (requestIdle): New function.
  8108. * src/SegmentMan.h
  8109. (SegmentEntryHandle): New type definition.
  8110. (SegmentEntries): Now holds SegmentEntryHandle.
  8111. (findSlowerSegmentEntry): New funtion.
  8112. * src/SegmentMan.cc
  8113. (save): Updated according to the changes in SegmentEntries.
  8114. (read): Updated according to the changes in SegmentEntries.
  8115. (FindSegmentEntryByIndex): Updated according to the changes in
  8116. SegmentEntries.
  8117. (FindSegmentEntryByCuid): Updated according to the changes in
  8118. SegmentEntries.
  8119. (checkoutSegment): Updated according to the changes in SegmentEntries.
  8120. (onNullBitfield): Updated according to the changes in SegmentEntries.
  8121. Renamed uitr as itr.
  8122. (findSlowerSegmentEntry): New function.
  8123. (getSegment): Updated according to the changes in SegmentEntries.
  8124. Added the feature that cancels the segment with slow server and fast
  8125. one takes it over.
  8126. (cancelSegment): Updated according to the changes in SegmentEntries.
  8127. (getDownloadLength): Updated according to the changes in
  8128. SegmentEntries.
  8129. (init): Assigned 0 to bitfield after deleting it.
  8130. * src/DownloadCommand.cc
  8131. (STARTUP_IDLE_TIME): Removed.
  8132. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  8133. * src/PeerChokeCommand.cc
  8134. (optUnchokingPeer): Updated according to the changes in Peer.
  8135. (ResetDelta): Removed.
  8136. (UploadFaster): Updated according to the changes in Peer.
  8137. (DownloadFaster): Updated according to the changes in Peer.
  8138. (execute): I clarify the meaning of "upload" and "download" here.
  8139. "upload" means the transfer from localhost to remote host.
  8140. "download" means the transfer from remote host to localhost.
  8141. Based on this rule, I swapped orderByUploadRate and
  8142. orderByDownloadRate.
  8143. * src/PeerInteractionCommand.cc
  8144. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  8145. (executeInternal): Removed the argument of
  8146. peerInteraction->sendMessages().
  8147. (receiveMessages): Rewritten download speed limit.
  8148. (sendKeepAlive): Removed peerInteraction->sendMessages().
  8149. * src/HttpResponseCommand.cc
  8150. (handleDefaultEncoding): If file size is unknown in torrent request,
  8151. do not call segmentMan->initBitfield() here.
  8152. Disabled persistent connection feature in torrent request.
  8153. * src/UrlRequestInfo.h
  8154. (UrlRequestInfo): Removed const qualifier from option.
  8155. * src/TorrentMan.h
  8156. (TransferStat): New class.
  8157. (deltaDownloadLength): Removed.
  8158. (deltaUploadLength): Removed.
  8159. (addDeltaDownloadLength): Removed.
  8160. (getDeltaDownloadLength): Removed.
  8161. (resetDeltaDownloadLength): Removed.
  8162. (addDeltaUploadLength): Removed.
  8163. (getDeltaUploadLength): Removed.
  8164. (resetDeltaUploadLength): Removed.
  8165. (addActivePeer): Added peer->activate().
  8166. (deleteActivePeer): Added peer->deactivate().
  8167. (calculateStat): New function.
  8168. * src/TorrentMan.cc
  8169. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  8170. (calculateStat): New function.
  8171. * src/PeerInteraction.h
  8172. (uploadLimit): Removed.
  8173. (option): New variable.
  8174. (setUploadLimit): Removed.
  8175. (getUploadSpeed): Removed.
  8176. (sendMessages): Removed the argument "currentUploadSpeed".
  8177. * src/PeerInteraction.cc
  8178. (prefs.h): Included.
  8179. (PeerInteraction): Removed uploadLimit. Added option.
  8180. (sendMessages): Rewritten upload speed limit.
  8181. (sendHandshake): Removed the argument from sendMessages().
  8182. (sendBitfield): Removed the argument from sendMessages().
  8183. * src/PeerAbstractCommand.cc
  8184. (execute): Commented out the portion of upload limit.
  8185. (onAbort): Removed peer->resetStatus().
  8186. * src/TorrentRequestInfo.cc
  8187. (timeoutSpecified): Declared extern.
  8188. (execute): Set timeout to 180 if timeout is not specified by.
  8189. command-line.
  8190. * src/PieceMessage.cc
  8191. (receivedAction): Added peer->updateDownloadLength().
  8192. Removed peer->addPeerUpload().
  8193. Removed torrentMan->addDeltaDownloadLength().
  8194. (send): Added peer->updateUploadLength().
  8195. Removed peer->addPeerDownload().
  8196. Removed torrentMan->addDeltaUploadLength().
  8197. * src/main.cc
  8198. (timeoutSpecified): New variable.
  8199. (main): Set timeoutSpecified to false.
  8200. If the command-line option "--upload-limit" is specified, then
  8201. timeoutSpecified is set to true. This option will remain in the next
  8202. release, but be deprecated in the future release.
  8203. * src/TorrentRequestInfo.h
  8204. (TorrentRequestInfo): Removed const qualifier from op.
  8205. * src/PeerStat.h
  8206. (uploadSpeed): New variable.
  8207. (PeerStat): Added default value to cuid.
  8208. (calculateUploadSpeed): New function.
  8209. (updateUploadLength): New function.
  8210. (getMaxUploadSpeed): New function.
  8211. (getAvgUploadSpeed): New function.
  8212. (reset): Added uploadSpeed. Set status to IDLE.
  8213. * src/TorrentDownloadEngine.h
  8214. (cp): Declared as Time.
  8215. (sessionDownloadLengthArray): Removed.
  8216. (sessionUploadLengthArray): Removed.
  8217. (currentCp): Removed.
  8218. (lastCalcStat): New variable
  8219. (lastElapsed): Removed.
  8220. (sessionDownloadLength): Removed.
  8221. (calculateStat): New function.
  8222. * src/TorrentDownloadEngine.cc
  8223. (initStatistics): Removed lastElapsed, cp[],
  8224. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  8225. currentCp, sessionDownloadLength.
  8226. Added cp.reset() and lastCalcStat.reset().
  8227. (calculateSpeed): Changed the name of the argument.
  8228. (calculateStatistics): Rewritten.
  8229. (calculateStat): New function.
  8230. * src/Peer.h
  8231. (PeerStat.h): Included.
  8232. (peerUpload): Removed.
  8233. (peerDownload): Removed.
  8234. (peerStat): New variable.
  8235. (sessionUploadLength): New variable.
  8236. (sessionDownloadLength): New variable.
  8237. (deltaUpload): Removed.
  8238. (deltaDownload): Removed.
  8239. (resetStatus): Made private.
  8240. (Peer): Added sessionUploadLength, sessionDownloadLength.
  8241. Removed peerUpload, peerDownload.
  8242. (updateUploadLength): New function.
  8243. (addDeltaUpload): Removed.
  8244. (updateDownloadLength): New function.
  8245. (resetDeltaUpload): Removed.
  8246. (getDeltaUpload): Removed.
  8247. (addDeltaDownload): Removed.
  8248. (calculateUploadSpeed): New function.
  8249. (resetDeltaDownload): Removed.
  8250. (getDeltaDownload): Removed.
  8251. (calculateDownloadSpeed): New function.
  8252. (getSessionUploadLength): New function.
  8253. (getSessionDownloadLength): New function.
  8254. (activate): New function.
  8255. (deactivate): New function.
  8256. (addPeerUpload): Removed.
  8257. (setPeerUpload): Removed.
  8258. (getPeerUpload): Removed.
  8259. (addPeerDownload): Removed.
  8260. (setPeerDownload): Removed.
  8261. (getPeerDownload): Removed.
  8262. * src/Peer.cc
  8263. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  8264. * src/MetalinkRequestInfo.h
  8265. (MetalinkRequestInfo): Removed const qualifier from op.
  8266. * src/RequestInfo.h
  8267. (op): Removed const qualifier.
  8268. (RequestInfo): Removed const qualifier from op.
  8269. * src/prefs.h
  8270. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  8271. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  8272. * src/PeerInteractionCommand.cc
  8273. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  8274. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  8275. * src/PeerInteraction.cc
  8276. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  8277. * src/main.cc
  8278. (showUsage): Updated the description of "--lowest-speed-limit" option.
  8279. Added the description of "--max-download-limit" option.
  8280. Removed the description of "--upload-limit" option.
  8281. Added the description of "--max-upload-limit" option.
  8282. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  8283. Added "--max-download-limit" option and "--max-upload-limit" option.
  8284. Added the warning message if "--upload-limit" option is used.
  8285. * src/DownloadCommand.cc
  8286. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  8287. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8288. To rewrite segment download mechanism for HTTP/FTP download.
  8289. Use BitfieldMan to manage segment download.
  8290. * src/HttpResponseCommand.h
  8291. (executeInternal): Pass the reference of segment.
  8292. * src/AbstractCommand.cc
  8293. (prepareForRetry): Call segmentMan->cancelSegment here.
  8294. (onAbort): Call segmentMan->cancelSegment here.
  8295. * src/HttpDownloadCommand.cc
  8296. (prepareForNextSegment): New function.
  8297. * src/DownloadEngineFactory.cc
  8298. (newConsoleEngine): Removed splitter.
  8299. (newTorrentConsoleEngine): Removed splitter.
  8300. * src/Request.h
  8301. (segment): Renamed from seg.
  8302. * src/FtpInitiateConnectionCommand.h
  8303. (executeInternal): Pass the reference of segment.
  8304. * src/AbstractCommand.h
  8305. (executeInternal): Pass the reference of segment.
  8306. * src/pref.h
  8307. (PREF_SEGMENT_SIZE): New definition.
  8308. * src/HttpProxyRequestCommand.h
  8309. (executeInternal): Pass the reference of segment.
  8310. * src/HttpResponseCommand.cc
  8311. (checkResponse): Allowed status 206 when a request range starts 0.
  8312. (handleDefaultEncoding): Rewritten the code related to Segment.
  8313. (handleOtherEncoding): Rewritten the code related to Segment.
  8314. * src/SegmentMan.h
  8315. (SegmentEntry): New class.
  8316. (SegmentEntries): New type definition.
  8317. (bitfield): New variable.
  8318. (usedSegmentEntries): New variable.
  8319. (onNullBitfield): New function.
  8320. (checkoutSegment): New function.
  8321. (segments): Removed.
  8322. (splitter): Removed.
  8323. (unregisterId): Removed.
  8324. (getSegment): New function(overload)
  8325. (getDownloadedSize): Removed.
  8326. (cancelSegment): New function.
  8327. (completeSegment): New function.
  8328. (initBitfield): New function.
  8329. (hasSegment): New function.
  8330. (getDownloadLength): New function.
  8331. * src/BitfieldMan.h
  8332. (getStartIndex): New function.
  8333. (getEndIndex): New function.
  8334. (getMissingUnusedIndex): New function(overload).
  8335. (getSparseMissingUnusedIndex): New function.
  8336. * src/BitfieldMan.cc
  8337. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  8338. (getMissingUnusedIndex): New function(overload).
  8339. (Range): New class.
  8340. (getStartIndex): New function.
  8341. (getEndIndex): New function.
  8342. (getSparseMissingUnusedIndex): New function.
  8343. (isBitSetInternal): Return false if the given index is less than 0.
  8344. * src/HttpInitiateConnectionCommand.h
  8345. (executeInternal): Pass the reference of segment.
  8346. * src/FtpNegotiateCommand.h
  8347. (executeInternal): Pass the reference of segment.
  8348. * src/FtpNegotiateCommand.cc
  8349. (recvSize): Initialize bitfield here.
  8350. * src/FtpTunnelResponseCommand.h
  8351. (executeInternal): Pass the reference of segment.
  8352. * src/HttpConnection.cc
  8353. (createRequest): Rewritten range header processing.
  8354. * src/DownloadCommand.h
  8355. (executeInternal): Pass the reference of segment.
  8356. (prepareForRetry): Removed.
  8357. (prepareForNextSegment): Added an argument segment. Made it a virtual
  8358. function.
  8359. * src/main.cc
  8360. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  8361. * src/SegmentMan.cc
  8362. (SegmentMan): Added bitfield. Removed splitter.
  8363. (~SegmentMan): Added bitfield. Removed splitter.
  8364. (unregisterId): Removed.
  8365. (getSegment): Rewritten.
  8366. (updateSegment): Rewritten.
  8367. (save): Rewritten.
  8368. (read): Rewritten.
  8369. (finished): Rewritten.
  8370. (getDownloadedSize): Removed.
  8371. (initBitfield): New function.
  8372. (FindSegmentEntryByIndex): New function object.
  8373. (FindSegmentEntryByCuid): New function object.
  8374. (checkoutSegment): New function.
  8375. (onNullBitfield): New function.
  8376. (getSegment): New function(overload).
  8377. (CancelSegment): New function object.
  8378. (cancelSegment): New function.
  8379. (completeSegment): New function.
  8380. (hasSegment): New function.
  8381. (getDownloadLength): New function.
  8382. * src/FtpInitiateConnectionCommand.cc
  8383. (executeInternal): Load .aria2 file after hostname resolution finishes.
  8384. * src/Segment.h: Rewritten.
  8385. * src/Segment.cc (operator<<): New function.
  8386. * src/HttpDownloadCommand.h
  8387. (prepareForNextSegment): New function.
  8388. * src/Request.cc
  8389. (resetUrl): Made segment null.
  8390. * src/DownloadEngine.cc
  8391. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  8392. * src/HttpProxyRequestCommand.h
  8393. (executeInternal): Pass the reference of segment.
  8394. * src/DownloadCommand.cc
  8395. (executeInternal): Rewritten the code related to Segment.
  8396. (prepareForRetry): Removed.
  8397. (prepareForNextSegment): Rewritten.
  8398. * src/FtpTunnelResponseCommand.h
  8399. (executeInternal): Pass the reference of segment.
  8400. To add HTTP 1.1 persistent connection support(experimental)
  8401. * src/HttpRequestCommand.cc
  8402. (executeInternal): Disable keep alive if it is disabled by
  8403. configuration.
  8404. * src/Request.h
  8405. (keepAlive): New variable.
  8406. (isKeepAlive): New function.
  8407. (setKeepAlive): New function.
  8408. * src/pref.h
  8409. (PREF_HTTP_KEEP_ALIVE): New definition.
  8410. * src/HttpResponseCommand.cc
  8411. (executeInternal): Check the remote server supports keep alive.
  8412. * src/HttpConnection.cc
  8413. (createRequest): Send "Connection: close" only if keep alive is
  8414. disabled.
  8415. * src/main.cc
  8416. (main):
  8417. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  8418. To add max download speed limit:
  8419. * src/pref.h
  8420. (PREF_MAX_SPEED_LIMIT): New definition.
  8421. * src/PeerInteractionCommand.cc
  8422. (executeInternal): Added max download speed limit. Not tested yet.
  8423. * src/SegmentMan.h
  8424. (PeerStats): New type definition.
  8425. (peerStats): New variable.
  8426. (registerPeerStat): New function.
  8427. (FindPeerStat): New function object.
  8428. (getPeerStat): New function.
  8429. (calculateDownloadSpeed): New function.
  8430. * src/SpeedCalc.h: New class.
  8431. * src/SpeedCalc.cc: New class.
  8432. * src/main.cc
  8433. (main):
  8434. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  8435. download speed is not restricted).
  8436. * src/PeerStat.h: New class.
  8437. * src/SegmentMan.cc
  8438. (registerPeerStat): New function.
  8439. (calculateDownloadSpeed): New function.
  8440. * src/DownloadCommand.cc
  8441. (STARTUP_IDLE_TIME): New definition.
  8442. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  8443. downloadStart.
  8444. (~DownloadCommand): Call peerStat->downloadStop.
  8445. (executeInternal): Added download speed limitter. Rewritten lowest
  8446. speed limitter.
  8447. * src/HttpConnection.cc
  8448. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  8449. * src/AbstractCommand.cc
  8450. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  8451. Added hostname to the error message.
  8452. * src/ConsoleDownloadEngine.cc
  8453. (calculateStatistics): Initialize psize with dlSize.
  8454. * src/PieceMessage.cc
  8455. (receivedAction): Do not call peerInteraction->abortPiece here.
  8456. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  8457. * src/BitfieldMan.h
  8458. (clearAllUseBit): New function.
  8459. (setAllUseBit): New function.
  8460. * src/BitfieldMan.cc
  8461. (clearAllBit): Do not clear useBitfield here.
  8462. (clearAllUseBit): New function.
  8463. (setAllUseBit): New function.
  8464. * src/Piece.cc
  8465. (clearAllBlock): Call bitfield->clearAllUseBit().
  8466. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8467. To make filename URL-decoded:
  8468. * src/HttpResponseCommand.h: Updated doc.
  8469. * src/HttpResponseCommand.cc
  8470. (determinFilename): Made filename URL-decoded.
  8471. * src/FtpInitiateConnectionCommand.cc
  8472. (executeInternal): Made filename URL-decoded.
  8473. * src/Util.h (urldecode): New function.
  8474. * src/Util.cc (urldecode): New function.
  8475. To fix a bug that caused assertion failure in ares_strerror:
  8476. * src/NameResolver.cc (callback): Fixed the bug.
  8477. * Release 0.7.3
  8478. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. To add --seed-time and --seed-ratio command-line option:
  8480. * src/Option.h (getAsDouble): New function.
  8481. * src/Option.cc (getAsDouble): New function.
  8482. * src/SeedCheckCommand.h: New class.
  8483. * src/SeedCheckCommand.cc: New class.
  8484. * src/DownloadEngineFactory.cc
  8485. (SeedCheckCommand.h): Included.
  8486. (UnionSeedCriteria.h): Included.
  8487. (TimeSeedCriteria.h): Included.
  8488. (ShareRatioSeedCriteria.h): Included.
  8489. (newTorrentConsoleEngine): Added the processing of seed option.
  8490. * src/SeedCriteria.h: New class.
  8491. * src/ShareRatioSeedCriteria.h: New class.
  8492. * src/TimeSeedCriteria.h: New class.
  8493. * src/UnionSeedCriteria.h: New class.
  8494. * src/prefs.h
  8495. (PREF_SEED_TIME): New definition.
  8496. (PREF_SEED_RATIO): New definition.
  8497. * src/main.cc
  8498. (showUsage): Added --seed-time and --seed-ratio option.
  8499. (main): Added --seed-time and --seed-ratio option.
  8500. Made default log file name "/dev/null".
  8501. * src/SharedHandle.h
  8502. (SharedHandle): Copy constructor. Made it assignable from the
  8503. SharedHandle of the subclasses.
  8504. (operator=): Made it assignable from the SharedHandle of the
  8505. subclasses.
  8506. (getRefCount): New function.
  8507. To add notice log level and the switch to write log to stdout. This
  8508. switch is configurable per log level.
  8509. * src/Logger.h
  8510. (notice): New function.
  8511. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  8512. constant.
  8513. * src/LogFactory.cc
  8514. (getInstance): The use of NullLogger was removed. A log message with
  8515. notice log level was made written to stdout along with log file.
  8516. * src/NullLogger.h
  8517. (notice): New function.
  8518. * src/SimpleLogger.h
  8519. (writeHeader): Added the 'file' argument.
  8520. (writeLog): Added the 'file' argument.
  8521. (writeFile): New function.
  8522. (stdoutField): New variable.
  8523. (SimpleLogger): Removed the default constructor.
  8524. (SimpleLogger): Made the default value of logfile 0.
  8525. (debug): Added 'virtual' keyword.
  8526. (info): Added 'virtual' keyword.
  8527. (warn): Added 'virtual' keyword.
  8528. (error): Added 'virtual' keyword.
  8529. (notice): New function.
  8530. (setStdout): New function.
  8531. * src/SimpleLogger.cc
  8532. (WRITE_LOG): Replaced writeLog with writeFile.
  8533. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  8534. (SimpleLogger): Removed the default constructor.
  8535. (setStdout): New function.
  8536. (writeLog): Added the handling of NOTICE log level.
  8537. (writeFile): New function.
  8538. (notice): New function.
  8539. * src/TorrentMan.h: Updated doc.
  8540. * src/BitfieldMan.h: Updated doc.
  8541. * src/TrackerWatcherCommand.cc
  8542. (execute): Return true if error occurred in the request to the tracker
  8543. and halt is requested.
  8544. * src/TrackerUpdateCommand.cc
  8545. (execute): Return true if error occurred in the request to the tracker
  8546. and halt is requested.
  8547. To call onDownloadComplete from TorrentMan::completePiece(), not from
  8548. DownloadEngine:
  8549. * src/TorrentConsoleDownloadEngine.h
  8550. (onSelectiveDownloadingCompletes): Removed.
  8551. * src/TorrentConsoleDownloadEngine.cc
  8552. (onSelectiveDownloadingCompletes): Removed.
  8553. * src/TorrentDownloadEngine.h
  8554. (onEndOfRun): Added 'virtual' keyword.
  8555. (afterEachIteration): Removed.
  8556. (onSelectiveDownloadingCompletes): Removed.
  8557. * src/TorrentDownloadEngine.cc
  8558. (onEndOfRun): Removed filenameFixed.
  8559. (afterEachIteration): Removed.
  8560. * src/TorrentMan.cc
  8561. (completePiece): Call onDownloadComplete here.
  8562. (onDownloadComplete): Added 2 log messages.
  8563. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8564. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  8565. * src/NameResolver.h: Added the prototype declaration of callback().
  8566. To support c-ares library:
  8567. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8568. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8569. * src/FtpInitiateConnectionCommand.h:
  8570. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8571. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8572. * src/HttpInitiateConnectionCommand.h:
  8573. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8574. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  8575. Added thes upport of c-ares's ares_strerror(the idea came from patch
  8576. #1542285 by tizianomueller)
  8577. * src/HttpInitiateConnectionCommand.cc:
  8578. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8579. * src/FtpInitiateConnectionCommand.cc:
  8580. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8581. * src/DownloadEngine.h:
  8582. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8583. * src/DownloadEngine.cc:
  8584. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  8585. To fix the bug that causes compilation failure with metalink-support
  8586. disabled(bug#1543587):
  8587. * src/main.cc: Fixed with the patch by tizianomueller.
  8588. * Release 0.7.2
  8589. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8590. * src/main.cc
  8591. (main): Added a message to inform users that aria2 is starting to
  8592. verify checksum.
  8593. * src/RequestInfo.cc
  8594. (printDownloadAbortMessage): Added a message to inform users that
  8595. transfer can be resumed.
  8596. * src/FeatureConfig.cc
  8597. (FEATURE_ASYNC_DNS): New definition.
  8598. (FeatureConfig): Added aysnc DNS entry.
  8599. To replace CommandUuid with Command* in SocketEntry and
  8600. NameResolverEntry:
  8601. * src/DownloadEngine.h
  8602. (CommandUuids): Removed.
  8603. (SocketEntry::commandUuid): Removed.
  8604. (SocketEntry::command): New variable.
  8605. (SocketEntry::SocketEntry): Updated.
  8606. (SocketEntry::operator==): Updated.
  8607. (NameResolverEntry::commandUuid): Removed.
  8608. (NameResolverEntry::command): New variable.
  8609. (NameResolverEntry::NameResolverEntry): Updated.
  8610. (NameResolverEntry::operator==): Updated.
  8611. (waitData): Changed the argument type.
  8612. (addSocketForReadCheck): Changed the argument type.
  8613. (deleteSocketForReadCheck): Changed the argument type.
  8614. (addSocketForWriteCheck): Changed the argument type.
  8615. (deleteSocketForWriteCheck): Changed the argument type.
  8616. (addNameResolverCheck): Changed the argument type.
  8617. (deleteNameResolverCheck): Changed the argument type.
  8618. * src/DownloadEngine.cc
  8619. (FindCommand): Removed.
  8620. (run): Removed activeUuid. Added activeCommands instead.
  8621. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  8622. (AccumulateActiveCommand): New function object.
  8623. (waitData): Use AccumulateActiveCommand.
  8624. (addSocketForReadCheck): Use Command instead of CommandUuid.
  8625. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  8626. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  8627. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  8628. (addNameResolverCheck): Use Command instead of CommandUuid.
  8629. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  8630. * src/AbstractCommand.cc
  8631. (disableReadCheckSocket): Updated according to the changes in
  8632. DownloadEngine.
  8633. (setReadCheckSocket): Updated according to the changes in
  8634. DownloadEngine.
  8635. (disableWriteCheckSocket): Updated according to the changes in
  8636. DownloadEngine.
  8637. (setWriteCheckSocket): Updated according to the changes in
  8638. DownloadEngine.
  8639. (setNameResolverCheck): Updated according to the changes in
  8640. DownloadEngine.
  8641. (disableNameResolverCheck): Updated according to the changes in
  8642. DownloadEngine.
  8643. * src/AbstractCommand.cc
  8644. (disableReadCheckSocket): Updated according to the changes in
  8645. DownloadEngine.
  8646. (setReadCheckSocket): Updated according to the changes in
  8647. DownloadEngine.
  8648. (disableWriteCheckSocket): Updated according to the changes in
  8649. DownloadEngine.
  8650. (setWriteCheckSocket): Updated according to the changes in
  8651. DownloadEngine.
  8652. * release 0.7.1
  8653. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8654. To handle the case where some BitTorrent tracker requires all letters
  8655. except for [A-Za-z0-9] is URL encoded.
  8656. * src/Util.h
  8657. (torrentUrlencode): New function.
  8658. * src/Util.cc
  8659. (ctype.h): Included.
  8660. (torrentUrlencode): New function.
  8661. * src/TrackerWatcherCommand.cc
  8662. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  8663. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8664. To add asynchronous DNS support(libares):
  8665. * src/AbstractCommand.h
  8666. (setNameResolverCheck): New function.
  8667. (disableNameResolverCheck): New function
  8668. (resolveHostname): New function.
  8669. * src/AbstractCommand.cc
  8670. (setNameResolverCheck): New function.
  8671. (disableNameResolverCheck): New function
  8672. (resolveHostname): New function.
  8673. * src/FtpInitiateConnectionCommand.h
  8674. (nameResolver): New function.
  8675. * src/FtpInitiateConnectionCommand.cc
  8676. (Util.h): Included.
  8677. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  8678. disableWriteCheckSocket.
  8679. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  8680. (executeInternal): Added async DNS support.
  8681. * src/HttpInitiateConnectionCommand.h
  8682. (nameResolver): New function.
  8683. * src/HttpInitiateConnectionCommand.cc
  8684. (DlRetryEx.h): Included.
  8685. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  8686. disableWriteCheckSocket.
  8687. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  8688. (executeInternal): Added async DNS support.
  8689. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  8690. by extern "C" declaration.
  8691. * src/NameResolver.cc: New class.
  8692. * src/Util.h:
  8693. (isNumberAndDotsNotation): New function
  8694. * src/Util.cc
  8695. (isNumberAndDotsNotation): New function.
  8696. * src/DownloadEngine.h
  8697. (NameResolver.h): Included.
  8698. (NameResolverEntry): New class.
  8699. (NameResolverEntries): New type definition.
  8700. (addNameResolverCheck): New function.
  8701. (deleteNameResolverCheck): New function.
  8702. * src/DownloadEngine.cc
  8703. (run): Initialize cp with 0.
  8704. (SetDescriptor::operator()): Added for NameResolverEntry.
  8705. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  8706. (waitData): Check nameResolver entries.
  8707. (updateFdSet): Update fds in nameResolver entries.
  8708. (addNameResolverCheck): New function.
  8709. (deleteNameResolverCheck): new function.
  8710. * src/PeerInteractionCommand.cc
  8711. (executeInternal): Fixed wrong socket handling.
  8712. * src/main.cc
  8713. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  8714. * src/Util.cc
  8715. (fileChecksum): Removed the call to ctx.digestReset().
  8716. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8717. * po/ru.po: Azamat sent me Russian translation.
  8718. * src/FtpNegotiateCommand.cc
  8719. (recvGreeting): Call disableWriteCheckSocket just after
  8720. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  8721. (recvRetr): Recognized status code 125 as a acceptable response code.
  8722. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  8723. case-insesitive filesystem(BUG#1531057).
  8724. * src/Time.h: Renamed as TimeA2.h.
  8725. * src/Time.cc: Renamed as TimeA2.cc.
  8726. * src/TimeA2.h: New class.
  8727. * src/TimeA2.cc: New class.
  8728. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  8729. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  8730. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  8731. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  8732. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  8733. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8734. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  8735. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  8736. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  8737. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  8738. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  8739. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  8740. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  8741. * release 0.7.0
  8742. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8743. * src/PeerChokeCommand.h
  8744. (PeerChokeCommand): Rearranged the arguments.
  8745. * src/PeerChokeCommand.cc
  8746. (PeerChokeCommand): Rearranged the arguments.
  8747. * src/MetalinkEntry.h
  8748. (Checksum.h): Included.
  8749. (md5): Removed.
  8750. (sha1): Removed.
  8751. (checksum): New variable.
  8752. (operator=): Updated.
  8753. (check): Removed.
  8754. * src/prefs.h
  8755. (PREF_LOWEST_SPEED_LIMIT): New definition.
  8756. (PREF_FOLLOW_TORRENT): New definition.
  8757. (PREF_SELECT_FILE): New definition.
  8758. (PREF_FOLLOW_METALINK): New definition.
  8759. * src/MetalinkResource.h
  8760. (TYPE_HTTPS): Added to enum TYPE.
  8761. * src/TorrentMan.cc
  8762. (~TorrentMan): Rewritten.
  8763. * src/MultiDiskWriter.cc
  8764. (MultiDiskAdaptor): Updated according to the changes in
  8765. MessageDigestContext.
  8766. (~MultiDiskAdaptor): Updated according to the changes in
  8767. MessageDigestContext.
  8768. (hashUpdate): Updated according to the changes in MessageDigestContext.
  8769. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8770. * src/Util.h
  8771. (fileChecksum): Updated according to the changes in
  8772. MessageDigestContext.
  8773. * src/Util.cc
  8774. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8775. (fileChecksum): Updated according to the changes in
  8776. MessageDigestContext.
  8777. * src/messageDigest.h: Rewritten.
  8778. * src/MetalinkEntry.cc
  8779. (check): Removed.
  8780. (Supported): Updated.
  8781. (dropUnsupportedResource): Fixed a memory leak.
  8782. * src/ShaVisitor.cc
  8783. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  8784. (~ShaVisitor): Updated according to the changes in
  8785. MessageDigestContext.
  8786. (visit): Updated according to the changes in MessageDigestContext.
  8787. * src/main.cc
  8788. (main): Rewritten the portion of download loop. --lowest-speed-limit
  8789. command-line option added.
  8790. * src/DownloadEngine.h
  8791. (SocketEntry): New class.
  8792. (SocketEntries): New definition.
  8793. (PairFind): Removed.
  8794. (SockCmdMap): Removed.
  8795. * src/DownloadEngine.cc
  8796. (DownloadEngine): Rewritten.
  8797. (~DownloadEngine): Rewritten.
  8798. (run): Renamed activeCommandUuids as activeUuids.
  8799. (SetDescriptor): Rewritten.
  8800. (AccumulateActiveCommandUuid): Removed.
  8801. (AccumulateActiveUuid): New function object.
  8802. (waitData): Rewritten.
  8803. (updateFdSet): Rewritten.
  8804. (addSocket): Rewritten.
  8805. (deleteSocket): Rewritten.
  8806. (addSocketForReadCheck): Rewritten.
  8807. (deleteSocketForReadCheck): Rewritten.
  8808. (addSocketForWriteCheck): Rewritten.
  8809. (deleteSocketForWriteCheck): Rewritten.
  8810. * src/Xml2MetalinkProcessor.cc
  8811. (getEntry): Rewritten the portion of MetalinkEntry creation.
  8812. * src/DownloadCommand.cc
  8813. (executeInternal): Added the check routine for lowest speed limit.
  8814. * src/AbstractDiskWriter.cc
  8815. (AbstractDiskWriter): Updated according to the changes in
  8816. MessageDigestContext.
  8817. (~AbstractDiskWriter): Updated according to the changes in
  8818. MessageDigestContext.
  8819. (sha1Sum): Updated according to the changes in MessageDigestContext.
  8820. * src/RequestInfo.h: New class.
  8821. * src/UrlRequestInfo.h: New class.
  8822. * src/UrlRequestInfo.cc: New class.
  8823. * src/TorrentRequestInfo.h: New class.
  8824. * src/TorrentRequestInfo.cc: New class.
  8825. * src/MetalinkRequestInfo.h: New class.
  8826. * src/MetalinkRequestInfo.cc: New class.
  8827. * src/Checksum.h: New class.
  8828. * src/DownloadEngineFactory.h: New class.
  8829. * src/DownloadEngineFactory.cc: New class.
  8830. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8831. * src/Option.h
  8832. (getAsBool): New function.
  8833. * src/Option.cc
  8834. (prefs.h): Included.
  8835. (defined): 0-length value is now recognized as undefined.
  8836. (getAsInt): Rewritten.
  8837. (getAsLLInt): Rewritten.
  8838. (getAsBool): New function.
  8839. * src/FeatureConfig.h: Rewritten.
  8840. * src/FeatureConfig.cc: Rewritten.
  8841. * src/prefs.h
  8842. (PREF_STDOUT_LOG): New definition.
  8843. (PREF_LOG): New definition.
  8844. (PREF_DIR): New definition.
  8845. (PREF_OUT): New definition.
  8846. (PREF_SPLIT): New definition.
  8847. (PREF_DAEMON): New definition.
  8848. (PREF_REFERER): New definition.
  8849. (PREF_TORRENT_FILE): New definition.
  8850. (PREF_LISTEN_PORT): New definition.
  8851. (PREF_METALINK_FILE): New definition.
  8852. (PREF_METALINK_VERSION): New definition.
  8853. (PREF_METALINK_LANGUAGE): New definition.
  8854. (PREF_METALINK_OS): New definition.
  8855. (PREF_METALINK_SERVERS): New definition.
  8856. * src/main.cc
  8857. (main): Following command-line parameters are now put into Option
  8858. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  8859. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  8860. metalinkLanguage, metalinkOs, metalinkServers
  8861. To fix the bug that aria2 can not handle http response header properly.
  8862. * src/HttpHeader.cc
  8863. (put): Made name lowercased.
  8864. (defined): Made name lowercased.
  8865. (getFirst): Made name lowercased.
  8866. (get): Made name lowercased.
  8867. (getFirstAsInt): Rewritten.
  8868. (getFirstAsLLInt): Rewritten.
  8869. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8870. * src/TorrentMan.h:
  8871. (advertisePiece): Updated doc.
  8872. (getAdvertisedPieceIndexes): Updated doc.
  8873. (removeAdvertisedPiece); New function.
  8874. * src/TorrentMan.cc
  8875. (FindElapsedHave): New function object.
  8876. (removeAdvertisedPiece): New function.
  8877. * src/HaveEraseCommand.h: New class.
  8878. * src/HaveEraseCommand.cc: New class.
  8879. * src/FeatureConfig.h: New class.
  8880. * src/FeatureConfig.cc: New class.
  8881. * src/Request.h
  8882. (defaultPorts): Removed.
  8883. * src/Request.cc
  8884. (FeatureConfig.h): Included.
  8885. (Request): Removed the statements related to defaultPorts.
  8886. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  8887. A default port number is now retrieved from FeatureConfig.
  8888. * src/main.cc
  8889. (HaveEraseCommand.h): Included.
  8890. (showVersion): Added the output of feature list.
  8891. (main): Added HaveEraseCommand to command queue in BitTorrent
  8892. downloading.
  8893. * src/PeerInteractionCommand.h
  8894. (chokeCheckPoint): Commented out.
  8895. (periodicExecPoint): New variable.
  8896. * src/PeerInteractionCommand.cc
  8897. (executeInternal): Following methods are now called in at least every
  8898. 0.5 seconds to reduce CPU usage:
  8899. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  8900. checkHave(), sendKeepAlive().
  8901. (checkLongTimePeerChoking): Commented out.
  8902. * src/BitfieldMan.h
  8903. (getNthBitIndex): Changed the method signature.
  8904. (getMissingIndexRandomly): Changed the method signature.
  8905. * src/BitfieldMan.cc
  8906. (getNthBitIndex): Rewritten
  8907. (getMissingIndexRandomly): Rewritten.
  8908. (hasMissingPiece): Rewritten.
  8909. (getMissingIndex): Refactored.
  8910. (getMissingUnusedIndex); Refactored.
  8911. (getMissingIndex): Refactored.
  8912. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8913. * src/PeerMessage.h
  8914. (Piece.h): Included.
  8915. (SharedHandle.h): Included.
  8916. (invalidate): New variable.
  8917. (uploading): New variable.
  8918. (isInvalidate): New function.
  8919. (isUploading): New function.
  8920. (onPush): New function.
  8921. (onChoked): New function.
  8922. (onCanceled): New function.
  8923. (onAbortPiece): New function.
  8924. (PeerMessageHandle): New type definition.
  8925. * src/PeerMessage.cc
  8926. (PeerMessage): Added the initialization for invalidate and uploading.
  8927. * src/CancelMessage.h
  8928. (CancelMessage): Rewritten.
  8929. * src/RejectMessage.h
  8930. (RejectMessage): Rewritten.
  8931. * src/Metalinker.h
  8932. (operator=): Defined.
  8933. * src/MetaEntry.h
  8934. (operator=): Defined.
  8935. * src/MetalinkResource.h
  8936. (operator=): Defined.
  8937. * src/AllowedFastMessage.h
  8938. (AllowedFastMessage): Rewritten.
  8939. * src/HandshakeMessage.h
  8940. (HandshakeMessage): New function(overload).
  8941. * src/HandshakeMessage.cc
  8942. (HandshakeMessage): Rewritten.
  8943. (init): New function.
  8944. * src/HaveMessage.h
  8945. (HaveMessage): Rewritten.
  8946. * src/Time.h
  8947. (operator=): Defined the function body here.
  8948. * src/Time.cc
  8949. (operator=): Removed.
  8950. * src/SocketCore.h
  8951. (operator==): Defined here.
  8952. (operator!=): Defined here.
  8953. (operator<): Defined here.
  8954. * src/SocketCore.cc
  8955. (operator==): Removed.
  8956. (operator<): Removed.
  8957. * src/BitfieldMan.h
  8958. (operator=): Defined the function body here.
  8959. * src/BitfieldMan.cc
  8960. (operator=): Removed.
  8961. * src/TorrentMan.h
  8962. (deleteErrorPeer): Removed.
  8963. (deleteUnusedPeer); New function.
  8964. * src/TorrentMan.cc
  8965. (addPeer): Call deleteUnusedPeer.
  8966. (deleteErrorPeer): Removed.
  8967. (deleteUnusedPeer): New function.
  8968. * src/PeerAbstractCommand.h
  8969. (setNoCheck): New function.
  8970. (noCheck): New variable.
  8971. * src/PeerAbstractCommand.cc
  8972. (PeerAbstractCommand): Added the initialization of noCheck.
  8973. (execute): Added a check for noCheck.
  8974. (setNoCheck): New function.
  8975. * src/Util.h
  8976. (stdio.h): Included.
  8977. * src/Util.cc
  8978. (unistd.h): Included.
  8979. * src/DefaultDiskWriter.cc
  8980. (unistd.h): Included.
  8981. * src/Peer.h
  8982. (operator==): Defined the function body here.
  8983. (operator!=): Defined the function body here.
  8984. * src/Peer.cc
  8985. (operator==): Removed.
  8986. (operator!=): Removed.
  8987. * src/Piece.h
  8988. (Piece): Defined the function body here(copy constructor).
  8989. (operator=): Defined the function body here.
  8990. (operator==): Defined the function body here.
  8991. * src/Piece.cc
  8992. (Piece): Removed(copy constructor).
  8993. (operator=): Removed.
  8994. (operator==): Removed.
  8995. * src/PeerMessageUtil.h
  8996. (ChokeMessage.h): Removed.
  8997. (UnchokeMessage.h): Removed.
  8998. (InterestedMessage.h): Removed.
  8999. (NotInterestedMessage.h): Removed.
  9000. (HaveMessage.h): Removed.
  9001. (BitfieldMessage.h): Removed.
  9002. (RequestMessage.h): Removed.
  9003. (CancelMessage.h): Removed.
  9004. (PieceMessage.h): Removed.
  9005. (HandshakeMessage.h): Removed.
  9006. (KeepAliveMessage.h): Removed.
  9007. (PortMessage.h): Removed.
  9008. (HaveAllMessage.h): Removed.
  9009. (HaveNoneMessage.h): Removed.
  9010. (PeerConnection.h): Removed.
  9011. (HandshakeMessage.h): Included.
  9012. * src/BitfieldMessage.h
  9013. (init): New function.
  9014. (BitfieldMessage): Rewritten.
  9015. (BitfieldMessage): New function(overload).
  9016. * src/RequestSlot.h
  9017. (operator=): Defined the function body here.
  9018. (operator==): Defined the function body here.
  9019. * src/RequestSlot.cc
  9020. (operator=): Removed.
  9021. (operator==): Removed.
  9022. To remove the dependency on the PeerMessage subclass from
  9023. PeerInteraction:
  9024. * src/PeerMessageFactory.h: New class.
  9025. * src/PeerMessageFactory.cc: New class.
  9026. * src/SimplePeerMessage.cc
  9027. (send): If invalidate is true then do nothing.
  9028. * src/PeerInteractionCommand.cc
  9029. (HandshakeMessage.h): Included.
  9030. (KeepAliveMessage.h): Included.
  9031. (ChokeMessage.h): Included.
  9032. (UnchokeMessage.h): Included.
  9033. (HaveMessage.h): Included.
  9034. (executeInternal): Call setNoCheck().
  9035. Removed setWriteCheckSocket(socket).
  9036. * src/PeerInteraction.h
  9037. (ChokeMessage.h): Removed.
  9038. (UnchokeMessage.h): Removed.
  9039. (InterestedMessage.h): Removed.
  9040. (NotInterestedMessage.h): Removed.
  9041. (HaveMessage.h): Removed.
  9042. (BitfieldMessage.h): Removed.
  9043. (RequestMessage.h): Removed.
  9044. (CancelMessage.h): Removed.
  9045. (PieceMessage.h): Removed.
  9046. (HandshakeMessage.h): Removed.
  9047. (KeepAliveMessage.h): Removed.
  9048. (PortMessage.h): Removed.
  9049. (HaveAllMessage.h): Removed.
  9050. (HaveNoneMessage.h): Removed.
  9051. (RejectMessage.h): Removed.
  9052. (AllowedFastMessage.h): Removed.
  9053. (SuggestPieceMessage.h): Removed.
  9054. (PeerMessageFactory.h): Included.
  9055. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  9056. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  9057. (PeerMessageFactory): New variable.
  9058. (createPeerMessage): Removed.
  9059. (createHandshakeMessage): Removed.
  9060. (setPeerMessageCommonProperty): Removed.
  9061. (addRequestSlot): New function.
  9062. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9063. (getPeerMessageFactory): New function.
  9064. (createRequestMessage): Removed.
  9065. (createCancelMessage): Removed.
  9066. (createPieceMessage): Removed.
  9067. (createHaveMessage): Removed.
  9068. (createChokeMessage): Removed.
  9069. (createUnchokeMessage): Removed.
  9070. (createInterestedMessage): Removed.
  9071. (createNotInterestedMessage): Removed.
  9072. (createBitfieldMessage): Removed.
  9073. (createKeepAliveMessage): Removed.
  9074. (createHaveAllMessage): Removed.
  9075. (createHaveNoneMessage): Removed.
  9076. (createRejectMessage): Removed.
  9077. (createAllowedFastMessage): Removed.
  9078. * src/PeerInteraction.cc
  9079. (PeerInteraction): Allocate PeerMessageFactory here.
  9080. (~PeerInteraction): Deallocate PeerMessageFactory here.
  9081. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  9082. PieceMessage::ID.
  9083. (addMessage): Simplified by using PeerMessage::onPush().
  9084. (addRequestSlot): New function.
  9085. (rejectAllPieceMessageInQueue): Simplified by using
  9086. PeerMessage::onChoked().
  9087. (rejectPieceMessageInQueue): Simplified by using
  9088. PeerMessage::onCanceled().
  9089. (abortPiece): Simplified by using PeerMessage::abortPiece().
  9090. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9091. (createHandshakeMessage): Removed.
  9092. (createPeerMessage): Removed.
  9093. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  9094. (setPeerMessageCommonProperty): Removed.
  9095. (createRequestMessage): Removed.
  9096. (createCancelMessage): Removed.
  9097. (createPieceMessage): Removed.
  9098. (createHaveMessage): Removed.
  9099. (createChokeMessage): Removed.
  9100. (createUnchokeMessage): Removed.
  9101. (createInterestedMessage): Removed.
  9102. (createNotInterestedMessage): Removed.
  9103. (createBitfieldMessage): Removed.
  9104. (createKeepAliveMessage): Removed.
  9105. (createHaveAllMessage): Removed.
  9106. (createHaveNoneMessage): Removed.
  9107. (createRejectMessage): Removed.
  9108. (createAllowedFastMessage): Removed.
  9109. * src/PieceMessage.h
  9110. (createRejectMessage): New function.
  9111. (PieceMessage): Rewritten.
  9112. (onChoked): New function.
  9113. (onCanceled): New function.
  9114. * src/PieceMessage.cc
  9115. (send): If invalidate is true then do nothing, just return.
  9116. (createRejectMessage): New function.
  9117. (onChoked): New function.
  9118. (onCanceled): New function.
  9119. * src/RequestMessage.h
  9120. (RequestMessage): Rewritten.
  9121. (onPush): New function.
  9122. (onAbortPiece): New function.
  9123. * src/RequestMessage.cc
  9124. (onPush): New function.
  9125. (onAbortPiece): New function.
  9126. Update fd_set when a socket is added or deleted in order to improve
  9127. performance:
  9128. * src/DownloadEngine.h
  9129. (rfdset): New variable.
  9130. (wfdset): New variable.
  9131. (updateFdSet): New function.
  9132. * src/DownloadEngine.cc
  9133. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  9134. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  9135. (waitData): Copy rfdset and wfdset.
  9136. (updateFdSet): New function.
  9137. (addSocket): Call updateFdSet.
  9138. (deleteSocket): Call updateFdSet.
  9139. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9140. To add the support for Metalink3.0 backward compatible links:
  9141. * src/Request.h
  9142. (SAFE_CHARS): Added '#'.
  9143. (METALINK_MARK): New definition.
  9144. * src/Request.cc
  9145. (parseUrl): Added the support for Metalink3.0 backward compatible
  9146. links.
  9147. etc
  9148. * src/PeerInteraction.cc
  9149. (MsgPushBack): Removed.
  9150. (sendMessages): Use STL copy and back_inserter.
  9151. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  9152. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  9153. * src/TorrentMan.h
  9154. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  9155. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9156. * src/SharedHandle.h: New class.
  9157. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  9158. * src/HttpResponseCommand.h
  9159. (HttpResponseCommand): Wrapped Socket.
  9160. * src/SocketCore.h
  9161. (operator==): New function.
  9162. (operator!=): New function.
  9163. (operator<): New function.
  9164. (getSockfd): New function.
  9165. (isOpen): New function.
  9166. (writeData): New function.
  9167. * src/SocketCore.cc
  9168. (operator==): New function.
  9169. (operator!=): New function.
  9170. (operator<): New function.
  9171. * src/AbstractCommand.h
  9172. (socket): Changed its type to SocketHandle.
  9173. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9174. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9175. (disableReadCheckSocket): New function.
  9176. (disableWriteCheckSocket): New function.
  9177. (readCheckTarget): Changed its type to SocketHandle.
  9178. (writeCheckTarget): Changed its type to SocketHandle.
  9179. (AbstractCommand): Replaced Socket with SocketHandle.
  9180. * src/AbstractCommand.cc
  9181. (AbstractCommand): Replaced Socket with SocketHandle.
  9182. (~AbstractCommand): Removed the deallocation for Socket object.
  9183. (disableReadCheckSocket): New function.
  9184. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9185. (disableWriteCheckSocket): New function.
  9186. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9187. * src/HttpDownloadCommand.cc
  9188. (DownloadCommand): Replaced Socket with SocketHandle.
  9189. * src/PeerAbstractCommand.h
  9190. (socket): Changed its type to SocketHandle.
  9191. (peer): Changed its type to PeerHandle.
  9192. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9193. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9194. (disableReadCheckSocket): New function.
  9195. (disableWriteCheckSocket): New function.
  9196. (readCheckTarget): Changed its type to SocketHandle.
  9197. (writeCheckTarget): Changed its type to SocketHandle.
  9198. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9199. Replaced Peer with PeerHandle.
  9200. * src/HttpRequestCommand.cc
  9201. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9202. Use disableReadCheckSocket.
  9203. * src/PeerInitiateConnectionCommand.h
  9204. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9205. * src/PeerChokeCommand.cc
  9206. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  9207. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  9208. (execute): Use PeerHandle.
  9209. * src/PeerConnection.h
  9210. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  9211. (socket): Changed its type to SocketHandle.
  9212. (PeerConnection): Replaced Socket with SocketHandle.
  9213. * src/PeerConnection.cc
  9214. (PeerConnection): Replaced Socket with SocketHandle.
  9215. * src/PeerInteractionCommand.h
  9216. (PeerInteractionCommand): Replaced socket with SocketHandle.
  9217. Replaced Peer with PeerHandle.
  9218. * src/PeerInteractionCommand.cc
  9219. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  9220. Replaced Peer with PeerHandle.
  9221. (executeInternal): Use disableWriteCheckSocket.
  9222. Use HandshakeMessageHandle.
  9223. (receiveMessages): Use PeerMessageHandle.
  9224. (prepareForNextPeer): Use PeerHandle.
  9225. * src/HttpProxyRequestCommand.h
  9226. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9227. * src/HttpResponseCommand.cc
  9228. (HttpResponseCommand): Replaced Socket with SocketHandle.
  9229. * src/TorrentMan.cc
  9230. (nullPeer): Added external reference.
  9231. (~TorrentMan): Removed the deallocation of the elements of peers.
  9232. (addPeer): Rewritten.
  9233. (isPeerAvailable): Use nullPeer.
  9234. (deleteOldpeers): Replaced with deleteErrorPeer.
  9235. (deleteErrorPeer): New function.
  9236. (getPeer): Use PeerHandle and nullPeer.
  9237. (hasMissingPiece): Replaced Peer with PeerHandle.
  9238. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9239. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9240. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9241. (getMissingPiece): Replaced Peer with PeerHandle.
  9242. * src/FtpNegotiateCommand.cc
  9243. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  9244. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  9245. (recvGreeting): Use disableWriteCheckSocket.
  9246. (recvPasv): Removed the allocation of Socket.
  9247. Use disableReadCheckSocket.
  9248. (sendRestPasv): Use disableWriteCheckSocket.
  9249. (recvRetr): Changed assertion.
  9250. * src/PeerInteraction.h
  9251. (SharedHandle.h): Included SharedHandle.h.
  9252. (PeerMessageHandle): New type definition.
  9253. (HandshakeMessageHandle): New type definition.
  9254. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  9255. (peer): Changed its type to PeerHandle.
  9256. (createHandshakeMessage): Replaced HandshakeMessage with
  9257. HandshakeMessageHandle.
  9258. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  9259. (PeerInteraction): Replaced Peer with PeerHandle.
  9260. Replaced Socket with SocketHandle.
  9261. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9262. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9263. (receiveHandshake): Replaced HandshakeMessage with
  9264. HandshakeMessageHandle.
  9265. * src/PeerInteraction.cc
  9266. (PeerInteraction): Replaced Peer with PeerHandle.
  9267. Replaced Socket with SocketHandle.
  9268. (~PeerInteraction): Removed the deallocation of the elements of
  9269. messageQueue.
  9270. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  9271. (isSendingMessageInProgress): Replaced PeerMessage with
  9272. PeerMessageHandle.
  9273. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  9274. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  9275. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  9276. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  9277. (abortPiece): Use PeerMessageHandle.
  9278. (receiveHandshake): Replaced HandshakeMessage with
  9279. HandshakeMessageHandle. Removed try-catch block.
  9280. (createHandshakeMessage): Replaced HandshakeMessage with
  9281. HandshakeMessageHandle.
  9282. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  9283. Removed try-catch block.
  9284. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  9285. * src/HttpProxyResponseCommand.cc
  9286. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9287. * src/FtpTunnelResponseCommand.h
  9288. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9289. * src/HttpConnection.cc
  9290. (HttpConnection): Replaced Socket with SocketHandle.
  9291. * src/PeerAbstractCommand.cc
  9292. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  9293. (~PeerAbstractCommand): Removed the deallocation of socket.
  9294. Use disableReadCheckSocket, disableWriteCheckSocket.
  9295. (disableReadCheckSocket): New function.
  9296. (setReadCheckSocket): Replaced Socket with SocketHandle.
  9297. (disableWriteCheckSocket): New function.
  9298. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  9299. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  9300. * src/FtpTunnelRequestCommand.cc
  9301. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9302. (~FtpTunnelRequestCommand): Corrected indentation.
  9303. * src/DownloadCommand.h
  9304. (DownloadCommand): Replaced Socket with SocketHandle.
  9305. * src/PeerListenCommand.cc
  9306. (PeerListenCommand): Removed the initialization of socket.
  9307. (~PeerListenCommand): Removed the deallocation of socket.
  9308. (bindPort): Use SocketHandle.
  9309. (execute): Use SocketHandle and PeerHandle.
  9310. * src/FtpDowndloadCommand.cc
  9311. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9312. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  9313. * src/main.cc
  9314. (main): Corrected indentation.
  9315. * src/HttpInitiateConnectionCommand.cc
  9316. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  9317. (executeInternal): Removed the allocation of socket.
  9318. * src/HttpRequestCommand.h
  9319. (HttpRequestCommand): Replaced Socket with SocketHandle.
  9320. * src/FtpNegotiationCommand.h
  9321. (dataSocket): Changed its type to SocketHandle.
  9322. (serverSocket): Changed its type to SocketHandle.
  9323. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  9324. * src/TorrentMan.h
  9325. (MAX_PEER_UPDATE): Removed.
  9326. (MAX_PEERS): New definition.
  9327. (Peers): The element is now of type PeerHandle.
  9328. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  9329. (getPeer): Replaced Peer with PeerHandle.
  9330. (deleteOldErrorPeers): Removed.
  9331. (deleteErrorPeer): New function.
  9332. (hasMissingPiece): Replaced Peer with PeerHandle.
  9333. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  9334. (getMissingPiece): Replaced Peer with PeerHandle.
  9335. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  9336. (getMissingFastPiece): Replaced Peer with PeerHandle.
  9337. (addActivePeer): Replaced Peer with PeerHandle.
  9338. (deleteActivePeer): Replaced Peer with PeerHandle.
  9339. Added a check for the return value of find.
  9340. * src/FtpTunnelResponseCommand.cc
  9341. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  9342. * src/FtpInitiateConnectionCommand.cc
  9343. (executeInternal): Removed the allocation of socket.
  9344. * src/DownloadEngine.h
  9345. (Sockets): An element is now of type SocketHandle.
  9346. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  9347. (CommandUuids): New type definition.
  9348. (rsockets): Changed its type to SockCmdMap.
  9349. (wsockets): Changed its type to SockCmdMap.
  9350. (addSocket): Rewritten.
  9351. (deleteSocket): Rewritten.
  9352. (addSocketForReadCheck): Rewritten.
  9353. (deleteSocketForReadCheck): Rewritten.
  9354. (addSocketForWriteCheck): Rewritten.
  9355. (deleteSocketForWriteCheck): Rewritten.
  9356. (PairFind): New template class.
  9357. * src/HttpDownloadCommand.h
  9358. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  9359. * src/FtpConnection.cc
  9360. (FtpConnection): Replaced Socket with SocketHandle.
  9361. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  9362. block.
  9363. * src/InitiateConnectionCommandFactory.cc
  9364. (DlAbortEx.h): Included DlAbortEx.h.
  9365. (createInitiateConnectionCommand): Throw exception if the protocol of
  9366. requested URI is not supported.
  9367. * src/Peer.cc
  9368. (nullPeer): Changed its type to PeerHandle.
  9369. (operator==): New function.
  9370. (operator!=): New function.
  9371. * src/Peer.h
  9372. (SharedHandle.h): Included SharedHandle.h.
  9373. (operator==): New function.
  9374. (operator!=): New function.
  9375. (Peer): Added the default constructor.
  9376. Use resetStatus() to initialize member variables.
  9377. (nullPeer): Removed.
  9378. * src/TrackerUpdateCommand.cc
  9379. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  9380. with MIN_PEERS.
  9381. * src/PeerListenCommand.h
  9382. (socket): Changed its type to SocketHandle.
  9383. * src/Command.h
  9384. (CommandUuid): New type definition.
  9385. (uuid): New variable.
  9386. (uuidGen): New variable.
  9387. (Command): Added the initialization of uuid.
  9388. (getUuid): New function.
  9389. * src/Socket.h
  9390. (Socket): Removed.
  9391. (SocketHandle): New type definition.
  9392. * src/DownloadEngine.h
  9393. (FindCommand): New function object.
  9394. (run): The portion of socket check was rewritten.
  9395. (SetDescriptor): New function object.
  9396. (AccumulateActiveCommandUuid): New function object.
  9397. (waitData): Rewritten.
  9398. (addSocket): Rewritten.
  9399. (deleteSocket): Rewritten.
  9400. (addSocketForReadCheck): Rewritten.
  9401. (addSocketForWriteCheck): Rewritten.
  9402. (deleteSocketForReadCheck): Rewritten.
  9403. (deleteSocketForWriteCheck): Rewritten.
  9404. * src/HttpProxyResponseCommand.h
  9405. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  9406. * src/HttpConnection.h
  9407. (socket): Changed its type to SocketHandle.
  9408. (HttpConnection): Replaced Socket with SocketHandle.
  9409. * src/PeerInitiateConnectionCommand.cc
  9410. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  9411. (executeInternal): Removed the allocation of socket.
  9412. (prepareForNextPeer): Use PeerHandle.
  9413. * src/PeerMessage.h
  9414. (peer): Changed its type to PeerHandle.
  9415. (getPeer): Replaced Peer with PeerHandle.
  9416. (setPeer): Replaced Peer with PeerHandle.
  9417. * src/DownloadCommand.cc
  9418. (DownloadCommand): Replaced Socket with SocketHandle.
  9419. * src/FtpConnection.h
  9420. (socket): Changed its type to SocketHandle.
  9421. (FtpConnection): Replaced Socket with SocketHandle.
  9422. (sendPort); Replaced Socket with SocketHandle.
  9423. * src/FtpDowndloadCommand.h
  9424. (ctrlSocket): Changed its type to SocketHandle.
  9425. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  9426. * src/HttpProxyRequestCommand.cc
  9427. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  9428. * src/FtpTunnelRequestCommand.h
  9429. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  9430. etc
  9431. * src/PeerChokeCommand.h
  9432. (setAllPeerChoked): Removed.
  9433. (setAllPeerResetDelta): Removed.
  9434. * src/PeerChokeCommand.cc
  9435. (setAllPeerChoked): Removed.
  9436. (ChokePeer): New function object.
  9437. (setAllPeerResetDelta): Removed.
  9438. (ResetDelta): New function object.
  9439. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  9440. (execute): Show download speed when the local node is a seeder.
  9441. setAllPeerChoked and setAllPeerResetDelta were rewritten
  9442. using STL.
  9443. * src/TrackerWatcherCommand.h
  9444. (MIN_PEERS): Removed.
  9445. * src/TorrentMan.cc
  9446. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  9447. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9448. To fix the bug that .aria2 file is not saved if downloading is stopped
  9449. by the errors:it results that aria2 can not resume downloading:
  9450. * src/main.cc
  9451. (normalDownload): Added the call to save().
  9452. (main): Added the deletion of the elements in 'reserved'.
  9453. To fix log:
  9454. * src/PeerInteraction.cc
  9455. (receiveHandshake): Fixed log.
  9456. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9457. To improve download performance in BitTorrent:
  9458. * src/TorrentMan.cc
  9459. (getPeer): Check the number of connections. Return nullPeer if
  9460. it is greater than MAX_PEER_UPDATE.
  9461. This code was originally here, but was removed in 0.5.1.
  9462. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9463. To improve the conditional compilation:
  9464. * src/MultiDiskWriter.h:
  9465. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9466. * src/MultiDiskWriter.cc:
  9467. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9468. * src/Util.h:
  9469. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9470. Added ENABLE_BITTORRENT around computeFastSet().
  9471. * src/Util.cc:
  9472. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9473. Added ENABLE_BITTORRENT around computeFastSet().
  9474. * src/messageDigest.h:
  9475. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  9476. * src/ShaVisitor.h:
  9477. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9478. * src/ShaVisitor.cc:
  9479. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9480. * src/main.cc:
  9481. Added ENABLE_BITTORRENT around includes and blocks related to
  9482. BitTorrent.
  9483. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  9484. digest support is not available.
  9485. * src/AbstractDiskWriter.h:
  9486. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9487. * src/AbstractDiskWriter.cc:
  9488. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  9489. * src/MetalinkEntry.cc
  9490. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  9491. support is not available.
  9492. To add command-line options for Metalink:
  9493. * src/main.cc:
  9494. Added metalink-version, metalink-language, metalink-os,
  9495. follow-metalink.
  9496. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  9497. * src/main.cc: Use these definition.
  9498. * Release 0.6.0
  9499. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9500. To add Metalink support(http/ftp only):
  9501. * src/AbstractCommand.h
  9502. (tryReserved): New function.
  9503. * src/AbstractCommand.cc
  9504. (execute): Call tryReserved().
  9505. (tryReserved): New function.
  9506. * src/Request.h
  9507. (Requests): New type definition.
  9508. * src/SegmentMan.h
  9509. (reserved): New variable.
  9510. * src/Util.h
  9511. (fileChecksum): New function.
  9512. (toUpper): New function.
  9513. (toLower): New function.
  9514. * src/Util.cc
  9515. (messageDigest.h): Included.
  9516. (trim): Trim \r\n\t.
  9517. (fileChecksum): New function.
  9518. (toUpper): New function.
  9519. (toLower): New function.
  9520. * src/main.cc
  9521. (normalDownload): New function.
  9522. (main): Added 2 command-line options: metalink-file,
  9523. metalink-connection. Their usage has not been written yet.
  9524. * src/MetalinkProcessor.h: New class.
  9525. * src/Xml2MetalinkProcessor.h: New class.
  9526. * src/Xml2MetalinkProcessor.cc: New class.
  9527. * src/MetalinkEntry.h: New class.
  9528. * src/MetalinkEntry.cc: New class.
  9529. * src/MetalinkResource.h: New class.
  9530. * src/MetalinkResource.cc: New class.
  9531. To add md5 message digest checking:
  9532. * src/messageDigest.h: Rewritten.
  9533. * src/MultiDiskWriter.cc: Updated according to the changes in
  9534. messageDigest.h.
  9535. * src/ShaVisitor.cc: Updated according to the changes in
  9536. messageDigest.h.
  9537. * src/Util.cc: Updated according to the changes in messageDigest.h.
  9538. * src/AbstractDiskWriter.cc: Updated according to the changes in
  9539. messageDigest.h.
  9540. To fix a bug that causes segfault when the payload length in peer
  9541. message is less than 0:
  9542. * src/PeerConnection.cc:
  9543. (receiveMessage): Fixed the bug.
  9544. * src/PeerMessageUtil.cc
  9545. (checkLength): Throw an exception if length is less than or equals to
  9546. 0.
  9547. To add new interfaces to Base64 encoding/decoding:
  9548. * src/Base64.h
  9549. (part_encode): Changed the method signature.
  9550. (encode): New function(overload).
  9551. (decode): New function(overload).
  9552. * src/Base64.cc
  9553. (part_encode): Rewritten.
  9554. (encode): Rewritten.
  9555. (encode): New function(overload).
  9556. To prevent a peer to download same piece if there is an error in
  9557. checksum:
  9558. * src/PieceMessage.cc
  9559. (receivedAction): Call peerInteraction->abortPiece().
  9560. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9561. To fix the bug that causes same have message is sent many times to
  9562. a single peer.
  9563. * src/Time.cc
  9564. (isNewer): Use Util::difftv().
  9565. * src/Util.cc
  9566. (difftv): Added a cast to (long long int).
  9567. * src/TorrentMan.cc
  9568. (advertisePiece): Use push_front.
  9569. (getAdvertisedPieceIndexes): A performance improvement was made.
  9570. To fix the bug that sends tracker requests without a sleep interval
  9571. when the number of connections is less than 15.
  9572. * src/TrackerWatcherCommand.cc
  9573. (execute): Now the number of connections is not a factor to decide
  9574. whether or not a tracker request should be sent or not.
  9575. * src/Time.h
  9576. (setTimeInSec): New function.
  9577. * src/Time.cc
  9578. (setTimeInSec): New function.
  9579. etc.
  9580. * src/ChokeMessage.cc
  9581. (receivedAction): Removed peer->snubbing = false
  9582. * src/PeerConnection.h
  9583. (receiveHandshake): Updated doc.
  9584. * src/TorrentMan.h
  9585. (getAdvertisedPieceIndexes): Updated the method signature.
  9586. * src/TorrentMan.cc
  9587. (getAdvertisedPieceIndexes): Updated the method signature.
  9588. * src/Time.h
  9589. (getTimeInMicros): Added a cast to (long long int).
  9590. (getTimeInMillis): Added a cast to (long long int).
  9591. * Release 0.5.2
  9592. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9593. To make a listening socket non-block:
  9594. * src/SocketCore.h
  9595. (setNonBlockingMode): New function.
  9596. * src/SocketCore.cc
  9597. (setNonBlockingMode): New function.
  9598. (beginListen): Added a call to setNonBlockingMode().
  9599. (acceptConnection): Call setNonBlockingMode().
  9600. (setBlockingMode): Updated.
  9601. To handle tracker's NAT-checking:
  9602. * src/PeerConnection.cc
  9603. (receiveHandshake): 'msg' param is filled with received data and
  9604. its length is assigned to 'length' param, even if all handshake
  9605. message is not yet received.
  9606. * src/PeerInteractionCommand.cc
  9607. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  9608. a new peer connects to localhost.
  9609. A call to peerInteraction->sendHandshake() was removed because
  9610. it is called from peerInteraction->receiveHandshake(true).
  9611. * src/PeerInteraction.h
  9612. (quickReplied): New variable.
  9613. (receiveHandshake): Added an argument.
  9614. * src/PeerInteraction.cc
  9615. (PeerInteraction): Added the initialization of quickReplied.
  9616. (receiveHandshake): Send handshake message as soon as the info hash
  9617. in a handshake message from a peer is correct.
  9618. To change the random part of peer id and key parameter:
  9619. * src/TorrentMan.h
  9620. (key): New variable.
  9621. * src/TorrentMan.cc
  9622. (setupInternal1): Use Util::randomAlpha() to generate random part
  9623. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  9624. key is also generated by Util::randomAlpha() and it is now 8 character
  9625. long.
  9626. * src/Util.h
  9627. (randomAlpha): New function.
  9628. * src/Util.cc
  9629. (randomAlpha): New function.
  9630. * src/TrackerWatcherCommand.cc
  9631. (execute): In a tracker request: Use torrentMan->key as key parameter.
  9632. Added no_peer_id=1.
  9633. Set snubbing flag to false when a choke message is received from a
  9634. snubbed peer.
  9635. * src/ChokeMessage.cc
  9636. (receivedAction): Set snubbing flag to false.
  9637. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  9639. * src/SimpleLogger.h (writeHeader): New function.
  9640. * src/SimpleLogger.cc (writeHeader): New function.
  9641. (writeLog): Fixed the bug that causes segfaults if exception message
  9642. contains an unescaped "%" character.
  9643. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  9644. when a tracker request fails.
  9645. * src/Request.cc (parseUrl): Query string is now handled properly.
  9646. * Release 0.5.1
  9647. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9648. To add Time class which represents a specific instant in time and
  9649. its precision is microseconds. Time checking procedures were rewritten
  9650. using this object.
  9651. * src/Time.h: New class.
  9652. * src/Time.cc: New class.
  9653. * src/AbstractCommand.h
  9654. (updateCheckPoint): Removed.
  9655. (isTimeoutDetected): Removed.
  9656. (checkPoint): Changed the type to Time.
  9657. (timeout): New variable.
  9658. (setTimeout): New function.
  9659. * src/AbstractCommand.cc
  9660. (AbstractCommand): Removed the initialization of checkPoint.
  9661. Added the initialization of timeout.
  9662. (updateCheckPoint): Removed.
  9663. (isTimeoutDetected): Removed.
  9664. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9665. * src/PeerChokeCommand.h
  9666. (checkPoint): Changed the type to Time.
  9667. * src/PeerChokeCommand.cc
  9668. (PeerChokeCommand): Removed the initialization of checkPoint.
  9669. (execute): Rewritten using Time object.
  9670. * src/TrackerWatcherCommand.h
  9671. (checkPoint): Changed the type to Time.
  9672. * src/TrackerWatcherCommand.cc
  9673. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  9674. (execute): Rewritten.
  9675. * src/ConsoleDownloadEngine.h
  9676. (cp): Changed the type to Time.
  9677. (startup): Changed the type to Time.
  9678. * src/ConsoleDownloadEngine.cc
  9679. (initStatistics): Use cp.reset(), startup.reset().
  9680. (calculateStatistics): Rewritten using Time object.
  9681. * src/PeerAbstractCommand.h
  9682. (updateCheckPoint): Removed.
  9683. (isTimeoutDetected): Removed.
  9684. (checkPoint): Changed the type to Time.
  9685. * src/PeerAbstractCommand.cc
  9686. (PeerAbstractCommand): Removed the initialization of checkPoint.
  9687. (updateCheckPoint): Removed.
  9688. (isTimeoutDetected): Removed.
  9689. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  9690. * src/PeerInteractionCommand.cc
  9691. (PeerInteractionCommand): Removed the initializations of struct
  9692. timeval variables.
  9693. * src/PeerInteractionCommand.h
  9694. (keepAliveCheckPoint): Changed the type to Time.
  9695. (chokeCheckPoint): Changed the type to Time.
  9696. (freqCheckPoint): Changed the type to Time.
  9697. (haveCheckTime): Changed the type to Time.
  9698. * src/PeerInteractionCommand.cc
  9699. (executeInternal): Rewritten using Time object.
  9700. (detectMessageFlooding): Rewritten using Time object.
  9701. (checkLongTimePeerChoking): Rewritten using Time object.
  9702. (sendKeepAlive): Rewritten using Time object.
  9703. (checkHave): Rewritten using Time object.
  9704. * src/SleepCommand.h
  9705. (checkPoint): Changed the type to Time.
  9706. * src/SleepCommand.cc
  9707. (SleepCommand): Removed the initialization of checkPoint.
  9708. (execute): Rewritten using Time object.
  9709. * src/TorrentAutoSaveCommand.h
  9710. (checkPoint): Changed the type to Time.
  9711. * src/TorrentAutoSaveCommand.cc
  9712. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  9713. (execute): Rewritten.
  9714. * src/DownloadCommand.h
  9715. (sw): Changed the type to Time.
  9716. * src/DownloadCommand.cc
  9717. (DownloadCommand): Removed the initialization of sw.
  9718. (executeInternal): Rewritten.
  9719. * src/RequestSlot.h
  9720. (dispatchedTime): Changed the type to Time.
  9721. * src/RequestSlot.cc
  9722. (RequestSlot): Removed the call to setDispatchedTime().
  9723. (setDispatchedTime): Rewirtten.
  9724. (isTimeout): Rewritten.
  9725. (getLatencyInMillis): Rewritten.
  9726. * src/TorrentDownloadEngine.h
  9727. (cp): Changed the type to Time[2].
  9728. (startup): Changed the type to Time.
  9729. * src/TorrentDownloadEngine.cc
  9730. (initStatistics): Rewritten.
  9731. (calculateStatistics): Rewritten.
  9732. * src/DownloadEngine.cc
  9733. (run): Rewritten.
  9734. To detect all attempts to connect to the tracker are failed:
  9735. * src/AbstractCommand.cc
  9736. (execute): Increment e->segmentMan->errors if a command aborted.
  9737. * src/SegmentMan.h
  9738. (errors): New variable.
  9739. * src/SegmentMan.cc
  9740. (SegmentMan): Added the initialization of errors.
  9741. (init): Added the initialization of errors.
  9742. * src/TrackerWatcherCommand.cc
  9743. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  9744. request was failed.
  9745. To handle snubbed peers:
  9746. * src/PeerChokeCommand.cc
  9747. (optUnchokingPeer): Snubbed peers don't get unchoked.
  9748. (execute): Snubbed peers don't get unchoked.
  9749. * src/PeerInteraction.h
  9750. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  9751. * src/PeerInteraction.cc
  9752. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  9753. back the requested 16k block in 60 seconds.
  9754. * src/PieceMessage.cc
  9755. (receivedAction): A peer's snubbed state is cleard if it sends
  9756. the requested 16k block in 60 seconds.
  9757. * src/Peer.h
  9758. (snubbing): New variable.
  9759. * src/Peer.cc
  9760. (resetStatus): Added snubbed = false.
  9761. To fix the bug that causes have message is not sent:
  9762. * src/PeerInteractionCommand.cc
  9763. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  9764. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  9765. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  9766. * src/TorrentMan.h
  9767. (HaveEntry): New class.
  9768. (advertisePiece): Rewritten.
  9769. (getAdvertisedPieceIndexes): Rewritten.
  9770. (Haves): Changed the type.
  9771. (getAdvertisedPieceIndexes): Added an argument.
  9772. Others:
  9773. * src/TorrentMan.h
  9774. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  9775. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  9776. * src/TorrentMan.cc
  9777. (getPeer): Don't check the number of connections here.
  9778. (setupInternal1): Changed peerId.
  9779. * src/PeerInteractionCommand.h
  9780. (KEEP_ALIVE_INTERVAL): New definition.
  9781. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  9782. * src/main.cc
  9783. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  9784. * src/DownloadEngine.h: Removed unnecessary header includes.
  9785. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9786. To fix the bug that causes segfaults if a tracker returns a zero-length
  9787. list as "peers":
  9788. * src/TrackerUpdateCommand.cc
  9789. (execute): Added a check to see wether the type of peers is Data*.
  9790. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9791. * Release 0.5.0
  9792. To fix compile issue with gcc3:
  9793. * src/CancelMessage.h
  9794. (ID): Renamed as ID_t
  9795. (ID_t): New enum.
  9796. * src/RejectMessage.h
  9797. (ID): Renamed as ID_t
  9798. (ID_t): New enum.
  9799. * src/SuggestPieceMessage.h
  9800. (ID): Renamed as ID_t
  9801. (ID_t): New enum.
  9802. * src/AllowedFastMessage.h
  9803. (ID): Renamed as ID_t
  9804. (ID_t): New enum.
  9805. * src/PortMessage.h
  9806. (ID): Renamed as ID_t
  9807. (ID_t): New enum.
  9808. * src/HaveNoneMessage.h
  9809. (ID): Renamed as ID_t
  9810. (ID_t): New enum.
  9811. * src/KeepAliveMessage.h
  9812. (ID): Renamed as ID_t
  9813. (ID_t): New enum.
  9814. * src/HaveAllMessage.h
  9815. (ID): Renamed as ID_t
  9816. (ID_t): New enum.
  9817. * src/UnchokeMessage.h
  9818. (ID): Renamed as ID_t
  9819. (ID_t): New enum.
  9820. * src/BitfieldMessage.h
  9821. (ID): Renamed as ID_t
  9822. (ID_t): New enum.
  9823. * src/PieceMessage.h
  9824. (ID): Renamed as ID_t
  9825. (ID_t): New enum.
  9826. * src/RequestMessage.h
  9827. (ID): Renamed as ID_t
  9828. (ID_t): New enum.
  9829. * src/NotInterestedMessage.h
  9830. (ID): Renamed as ID_t
  9831. (ID_t): New enum.
  9832. * src/ChokeMessage.h
  9833. (ID): Renamed as ID_t
  9834. (ID_t): New enum.
  9835. * src/InterestedMessage.h
  9836. (ID): Renamed as ID_t
  9837. (ID_t): New enum.
  9838. * src/HaveMessage.h
  9839. (ID): Renamed as ID_t
  9840. (ID_t): New enum.
  9841. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9842. * src/PeerAbstractCommand.h
  9843. (beforeSocketCheck): Removed.
  9844. * src/PeerAbstractCommand.cc
  9845. Modified in order to call executeInternal() even if socket check
  9846. and upload limit check fail.
  9847. * src/PeerInteractionCommand.h
  9848. (keepAlive): Removed.
  9849. (sendKeepAlive): New function.
  9850. (checkHave): New function.
  9851. (beforeSocketCheck): Removed.
  9852. * src/PeerInteractionCommand.cc
  9853. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  9854. calls to checkHave() and sendKeepAlive().
  9855. (keepAlive): Renamed to sendKeepAlive().
  9856. (sendKeepAlive): New function.
  9857. (beforeSocketCheck): Removed.
  9858. (checkHave): New function.
  9859. * src/BitfieldMan.cc
  9860. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  9861. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  9862. 0.
  9863. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  9864. * src/TorrentMan.h
  9865. (UsedPieces): Removed.
  9866. (Pieces): New type definition.
  9867. * src/Piece.h: Updated doc.
  9868. * src/Peer.h
  9869. (totalLength): Removed.
  9870. * src/Peer.cc
  9871. (updateLatency): Fixed the latency calculation.
  9872. * src/TorrentMan.cc
  9873. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  9874. than or equal to MAX_PEER_LIST_SIZE.
  9875. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  9876. then return false.
  9877. (deleteOldErrorPeers): Rewritten.
  9878. (deleteUsedPiece): Fixed the miss use of STL remove.
  9879. * src/PeerInteraction.h
  9880. (Pieces): Removed.
  9881. (deleteTimeoutRequestSlot): Removed.
  9882. (deleteCompletedRequestSlot): Removed.
  9883. (checkRequestSlot): New function.
  9884. * src/PeerInteraction.cc
  9885. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  9886. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  9887. (checkRequestSlot): New function.
  9888. * src/DownloadEngine.cc
  9889. (run): Clear activeSockets before calling waitData().
  9890. (waitData): Removed a call to activeSockets.clear().
  9891. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9892. To attempt to handle EINTR:
  9893. * src/SocketCore.cc
  9894. (isReadable): Added EINTR handling.
  9895. (isWritable): Added EINTR handling.
  9896. To improve the performance:
  9897. * src/AbstractCommand.cc
  9898. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9899. * src/PeerInteractionCommand.h
  9900. (receiveMessage): Renamed as receiveMessages().
  9901. (receiveMessages): New function.
  9902. * src/PeerInteractionCommand.cc
  9903. (executeInternal): receiveMessage loop is moved to new receiveMessages
  9904. () function. detectMessageFlooding() is moved here.
  9905. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  9906. (). The flooding detection for have message is comment out.
  9907. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  9908. Util::difftv().
  9909. (receiveMessage): Renamed as receiveMessages().
  9910. (receiveMessages): New function.
  9911. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  9912. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  9913. * src/SleepCommand.cc
  9914. (execute): Use Util::difftvsec() instead of Util::difftv().
  9915. * src/BitfieldMan.h
  9916. (getNthBitIndex): New function.
  9917. (hasMissingPiece): New function.
  9918. (getAllMissingIndexes): New function.
  9919. * src/BitfieldMan.cc
  9920. (countSetBit): Rewritten.
  9921. (getNthBitIndex): New function.
  9922. (getMissingIndexRandomly): Rewritten.
  9923. (hasMissingPiece): New function.
  9924. (getAllMissingIndexes): New function.
  9925. * src/TorrentMan.cc
  9926. (hasMissingPiece): New function.
  9927. (deleteUsedPiece): Rewritten using STL.
  9928. * src/PeerInteraction.cc
  9929. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  9930. is a little bit faster then TorrentMan::getMissingPieceIndex().
  9931. (addRequests): Updated the number of pending requests.
  9932. * src/PeerAbstractCommand.cc
  9933. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  9934. (execute): Returns true if TorrentMan::isHalt() is true.
  9935. Corrected the condition of upload limit checking.
  9936. * src/Util.h
  9937. (countBit): New function.
  9938. * src/Util.cc
  9939. (nbits): New variable.
  9940. (countBit): New function.
  9941. * src/DownloadEngine.h
  9942. (SockCmdMap): New type definition.
  9943. (waitData): Added an argument.
  9944. (addSocket): Added an argument.
  9945. (addSocketForReadCheck): Added an argument.
  9946. (addSocketForWriteCheck): Added an argument.
  9947. * src/DownloadEngine.cc
  9948. (run): Executes only commands whose sockets are ready to read or write.
  9949. All commands are executed in every 1 second.
  9950. (waitData): Calls select() again if it returned
  9951. EINTR.
  9952. (addSocket): Saves socket and command object pair to the map.
  9953. (deleteSocket): Deletes socket and command object pair from the map.
  9954. (addSocketForReadCheck): Added an argument.
  9955. (addSocketForWriteCheck): Added an argument.
  9956. * src/DownloadCommand.cc
  9957. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  9958. To send "event=stopped" to the tracker when the application finishes:
  9959. * src/PeerChokeCommand.h
  9960. (checkPoint): New variable.
  9961. * src/PeerChokeCommand.cc
  9962. (PeerChokeCommand): Added the initialization of checkPoint.
  9963. (execute): The interval check is now done by checkPoint, not
  9964. SleepCommand. Return true if TorrentMan::isHalt() is true.
  9965. * src/TorrentMan.h
  9966. (halt): New function.
  9967. (hasMissingPiece): New function.
  9968. (isHalt): New function.
  9969. (setHalt): New function.
  9970. * src/TorrentMan.cc
  9971. (TorrentMan): Added the initialization of halt.
  9972. * src/TorrentAutoSaveCommand.h
  9973. (checkPoint): New variable.
  9974. * src/PeerListenCommand.cc
  9975. (execute): Returns true if TorrentMan::isHalt() is true.
  9976. * src/main.cc
  9977. (setSignalHander): Added flags argument.
  9978. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  9979. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  9980. Removed printDownloadAbortMessage() after torrent downloading loop.
  9981. * src/TorrentAutoSaveCommand.cc
  9982. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  9983. (execute): Returns true if TorrentMan::isHalt() is true.
  9984. The interval check is now done by checkPoint, not SleepCommand.
  9985. * src/TrackerWatcherCommand.cc
  9986. (execute): If TorrentMan::isHalt(), then create a tracker request with
  9987. event=stopped.
  9988. * src/TrackerUpdateCommand.cc
  9989. (prepareForRetry): Do not use SleepCommand here.
  9990. (execute): Returns true if TorrentMan::isHalt() is true.
  9991. Others:
  9992. * src/TorrentMan.cc
  9993. (getMissingPieceIndex): Updated log message.
  9994. * src/PeerInteraction.cc
  9995. (createPeerMessag): Updated log message.
  9996. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9997. To add the ability to download several pieces in mix in a command and
  9998. increase the number of request slots according to request-cancel
  9999. latency:
  10000. * src/PeerInteractionCommand.cc
  10001. (executeInternal): The number of messages to be received at a time
  10002. is increased from 10 to 50.
  10003. * src/LogFactory
  10004. (getInstance): Added NullLogger.
  10005. * src/NullLogger.h: New class.
  10006. * src/BitfieldMan.h
  10007. (getMissingIndex): New function.
  10008. * src/BitfieldMan.cc
  10009. (getMissingIndex): New function.
  10010. * src/TorrentMan.h
  10011. (checkOutPiece): New function.
  10012. (getMissingPieceIndex): New function.
  10013. (getMissingFastPieceIndex): New function.
  10014. (getMissingFastPiece): New function.
  10015. * src/TorrentMan.cc
  10016. (updatePiece): Rewritten using STL.
  10017. (syncPiece): Rewritten using STL.
  10018. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  10019. checkOutPiece().
  10020. (getMissingPieceIndex): New function.
  10021. (getMissingFastPieceIndex): New function.
  10022. (getMissingFastPiece): New function.
  10023. (checkOutPiece): New function.
  10024. * src/PeerInteraction.h
  10025. (Pieces): New type definition.
  10026. (piece): Removed.
  10027. (pieces): New variable.
  10028. (getNewPieceAndSendInterest): Added the "piece" argument.
  10029. (abortPiece): Added the "piece" argument.
  10030. (abortAllPieces): New function.
  10031. (isInRequestSlot): New function.
  10032. (hasDownloadPiece): Added the "index" argument.
  10033. (setDownloadPiece): Removed.
  10034. (getDownloadPiece): Added the "index" argument.
  10035. (updatePiece): New function.
  10036. (createRequestMessage): Added the "index" argument.
  10037. * src/PeerInteraction.cc
  10038. (onChoked): Rewritten.
  10039. (abortPiece): Rewirtten.
  10040. (abortAllPieces): New function.
  10041. (deleteTimeoutRequestSlot): Rewritten.
  10042. Clarified code a little bit.
  10043. (deleteCompletedRequestSlot): Rewritten.
  10044. (isInRequestSlot): New function.
  10045. (syncPiece): Rewritten.
  10046. (updatePiece): New function.
  10047. (getNewPieceAndSendInterest): Rewritten.
  10048. (addRequests): Rewritten.
  10049. (getDownloadPiece): Rewritten.
  10050. (hasDownloadPiece): Rewritten.
  10051. (createRequestMessage): Added the "index" argument.
  10052. * src/common.h
  10053. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  10054. (DIV_FLOOR): New definition.
  10055. * src/PieceMessage.cc
  10056. (receivedAction): Update request-piece latency here.
  10057. * src/RequestSlot.h
  10058. (getLatencyInMillis): New function.
  10059. * src/RequestSlot.cc
  10060. (isTimeout): Rewritten using getLatencyInMillis.
  10061. (getLatencyInMillis): New function.
  10062. * src/Piece.h
  10063. (operator==): New function.
  10064. (getMissingBlockIndex): New function.
  10065. * src/Piece.cc
  10066. (operator==): New function.
  10067. (getMissingBlockIndex): New function.
  10068. * src/Peer.h
  10069. (DEFAULT_LATENCY): New definition.
  10070. (latency): New variable.
  10071. (updateLatency): New function.
  10072. (getLatency): New function.
  10073. * src/Peer.cc
  10074. (resetStatus): Reset latecy.
  10075. (updateLatency): New function.
  10076. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10077. * src/SocketCore.cc
  10078. (isReadable): Added secure to the condition.
  10079. * src/HttpConnection.cc
  10080. (receiveResponse): Fixed a bug that causes no response header
  10081. exception.
  10082. * src/Peer.h
  10083. (getFastSet): Fixed the return value type.
  10084. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10085. To remove a wait from download loop:
  10086. * src/DownloadEngine.cc
  10087. (run): Comment out shortSleep.
  10088. To rewrite the message handling:
  10089. * src/SimplePeerMessage.h: New class.
  10090. * src/SimplePeerMessage.cc: New class.
  10091. * src/CancelMessage.h: Derived from SimplePeerMessage.
  10092. (msg): New variable.
  10093. (create): New function.
  10094. (send): Removed.
  10095. (getMessage): New function.
  10096. (getMessageLength): New function.
  10097. * src/CancelMessage.cc
  10098. (create): New function.
  10099. (receivedAction): Replaced deleteRequestMessageInQueue with
  10100. rejectPieceMessageInQueue.
  10101. (send): Removed.
  10102. (getMessage): New function.
  10103. (getMessageLength): New function.
  10104. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  10105. (msg): New variable.
  10106. (msgLength): New variable.
  10107. (~BitfieldMessage): Deleted msg.
  10108. (send): Removed.
  10109. (getMessage): New function.
  10110. (getMessageLength): New function.
  10111. * src/BitfieldMessage.cc
  10112. (create): New function.
  10113. (send): Removed.
  10114. (getMessage): New function.
  10115. (getMessageLength): New function.
  10116. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  10117. (msg): New variable.
  10118. (sendPredicate): New function.
  10119. (onSendComplete): New function.
  10120. (send): Removed.
  10121. (getMessage): New function.
  10122. (getMessageLength): New function.
  10123. (create): New function.
  10124. * src/ChokeMessage.cc
  10125. (create): New function.
  10126. (send): Removed.
  10127. (sendPredicate): New function.
  10128. (getMessage): New function.
  10129. (getMessageLength): New function.
  10130. (onSendComplete): New function.
  10131. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  10132. (msg): New variable.
  10133. (send): Removed.
  10134. (getMessage): New function.
  10135. (getMessageLength): New function.
  10136. * src/KeepAliveMessage.cc
  10137. (send): Removed.
  10138. (getMessage): New function.
  10139. (getMessageLength): New function.
  10140. * src/PortMessage.h
  10141. (create): New function.
  10142. (receivedAction): Updated log message.
  10143. * src/PortMessage.cc: New file.
  10144. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  10145. (msg): New variable.
  10146. (sendPredicate): New function.
  10147. (onSendComplete): New function.
  10148. (create): New function.
  10149. (send): Removed.
  10150. (getMessage): New function.
  10151. (getMessageLength): New function.
  10152. * src/UnchokeMessage.cc
  10153. (create): New function.
  10154. (send): Removed.
  10155. (sendPredicate): New function.
  10156. (getMessage): New function.
  10157. (getMessageLength): New function.
  10158. (onSendComplete): New function.
  10159. * src/PieceMessage.h
  10160. (leftPieceDataLength): Removed.
  10161. (leftDataLength): New variable.
  10162. (headerSend): New variable.
  10163. (pendingCount): New variable.
  10164. (msgHeader): New variable.
  10165. (sendPieceData): New function.
  10166. (incrementPendingCount): New function.
  10167. (isPendingCountMax): New function.
  10168. (create): New function.
  10169. (getMessageHeader): New function.
  10170. (getMessageHeaderLength): New function.
  10171. * src/PieceMessage.cc
  10172. (create): New function.
  10173. (getMessageHeader): New function.
  10174. (getMessageHeaderLength): New function.
  10175. (send): Rewritten.
  10176. (sendPieceData): New function.
  10177. * src/HaveMessage.h: Derived from SimplePeerMessage.
  10178. (msg): New variable.
  10179. (create): New function.
  10180. (getMessage): New function.
  10181. (getMessageLength): New function.
  10182. * src/HaveMessage.cc
  10183. (create): New function.
  10184. (send): Removed.
  10185. (sendPieceData): New function.
  10186. (getMessage): New function.
  10187. (getMessageLength): New function.
  10188. * src/RequestMessage.h: Derived from SimplePeerMessage.
  10189. (msg): New variable.
  10190. (create): New function.
  10191. (send): Removed.
  10192. (getMessage): New function.
  10193. (getMessageLength): New function.
  10194. * src/RequestMessage.cc
  10195. (create): New function.
  10196. (receivedAction): Added the handling of fast extension.
  10197. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  10198. (send): Removed.
  10199. (getMessage): New function.
  10200. (getMessageLength): New function.
  10201. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  10202. (msg): New variable.
  10203. (sendPredicate): New function.
  10204. (onSendComplete): New function.
  10205. (create): New function.
  10206. (getMessage): New function.
  10207. (getMessageLength): New function.
  10208. * src/InterestedMessage.cc
  10209. (create): New function.
  10210. (send): Removed.
  10211. (sendPieceData): New function.
  10212. (getMessage): New function.
  10213. (getMessageLength): New function.
  10214. (onSendComplete): New function.
  10215. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  10216. (msg): New variable.
  10217. (sendPieceData): New function.
  10218. (onSendComplete): New function.
  10219. (create): New function.
  10220. (send): Removed.
  10221. (getMessage): New function.
  10222. (getMessageLength): New function.
  10223. * src/NotInterestedMessage.cc
  10224. (create): New function.
  10225. (send): Removed.
  10226. (sendPredicate): New function.
  10227. (getMessage): New function.
  10228. (getMessageLength): New function.
  10229. (onSendComplete): New function.
  10230. * src/AllowedFastMessage.h: New class.
  10231. * src/AllowedFastMessage.cc: New class.
  10232. * src/RejectMessage.h: New class.
  10233. * src/RejectMessage.cc: New class.
  10234. * src/SuggestPieceMessage.h: New class.
  10235. * src/SuggestPieceMessage.cc: New class.
  10236. * src/HaveAllMessage.h: New class.
  10237. * src/HaveAllMessage.cc: New class.
  10238. * src/HaveNoneMessage.h: New class.
  10239. * src/HaveNoneMessage.cc: New class.
  10240. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  10241. (msg): New variable.
  10242. (reserved): New variable.
  10243. (create): New function.
  10244. (getId): New function.
  10245. (receivedAction): New function.
  10246. (getMessage): New function.
  10247. (getMessageLength): New function.
  10248. (isFastExtensionSupported): New function.
  10249. * src/HandshakeMessage.cc
  10250. (HandshakeMessage): Moved here from HandshakeMessage.h.
  10251. (create): New function.
  10252. (getMessage): New function.
  10253. (getMessageLength): New function.
  10254. (toString): Added the output of reserved field.
  10255. (check): Added const qualifier.
  10256. (isFastExtensionSupported): New function.
  10257. * src/PeerMessageUtil.h
  10258. (createChokeMessage): Removed.
  10259. (createUnchokeMessage): Removed.
  10260. (createInterestedMessage): Removed.
  10261. (createNotInterestedMessage): Removed.
  10262. (createHaveMessage): Removed.
  10263. (createBitfieldMessage): Removed.
  10264. (createRequestMessage): Removed.
  10265. (createCancelMessage): Removed.
  10266. (createPieceMessage): Removed.
  10267. (createPortMessage): Removed.
  10268. (createChokeMessage): Removed.
  10269. (createUnchokeMessage): Removed.
  10270. (createInterestedMessage): Removed.
  10271. (createNotInterestedMessage): Removed.
  10272. (createHaveMessage): Removed.
  10273. (createBitfieldMessage): Removed.
  10274. (createRequestMessage): Removed.
  10275. (createCancelMessage): Removed.
  10276. (createPieceMessage): Removed.
  10277. (createKeepAliveMessage): Removed.
  10278. (createHandshakeMessage): Removed.
  10279. (setIntParam): New function.
  10280. (createPeerMessageString): New function.
  10281. * src/PeerMessageUtil.cc
  10282. (createChokeMessage): Removed.
  10283. (createUnchokeMessage): Removed.
  10284. (createInterestedMessage): Removed.
  10285. (createNotInterestedMessage): Removed.
  10286. (createHaveMessage): Removed.
  10287. (createBitfieldMessage): Removed.
  10288. (createRequestMessage): Removed.
  10289. (createCancelMessage): Removed.
  10290. (createPieceMessage): Removed.
  10291. (createPortMessage): Removed.
  10292. (createRequestMessage): Removed.
  10293. (createCancelMessage): Removed.
  10294. (createPieceMessage): Removed.
  10295. (createHaveMessage): Removed.
  10296. (createChokeMessage): Removed.
  10297. (createUnchokeMessage): Removed.
  10298. (createInterestedMessage): Removed.
  10299. (createNotInterestedMessage): Removed.
  10300. (createBitfieldMessage): Removed.
  10301. (createKeepAliveMessage): Removed.
  10302. (createHandshakeMessage): Removed.
  10303. (setIntParam): New function.
  10304. (createPeerMessageString): New function.
  10305. * src/PeerConnection.h
  10306. (peer): Removed.
  10307. (torrentMan): Removed.
  10308. (createNLengthMessage): Removed.
  10309. (setIntParam): Removed.
  10310. (writeOutgoingMessageLog): Removed all overloaded functions.
  10311. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10312. (sendMessage): New function.
  10313. (sendHandshake): Removed.
  10314. (sendKeepAlive): Removed.
  10315. (sendChoke): Removed.
  10316. (sendUnchoke): Removed.
  10317. (sendInterested): Removed.
  10318. (sendNotInterested): Removed.
  10319. (sendHave): Removed.
  10320. (sendBitfield): Removed.
  10321. (sendRequest): Removed.
  10322. (sendPiece): Removed.
  10323. (sendPieceHeader): Removed.
  10324. (sendPieceData): Removed.
  10325. (sendCancel): Removed.
  10326. (getPeer): Removed.
  10327. * src/PeerConnection.cc
  10328. (PeerConnection): Deleted peer and torrentMan from its arguments.
  10329. (sendHandshake): Removed.
  10330. (sendKeepAlive): Removed.
  10331. (createNLengthMessage): Removed.
  10332. (setIntParam): Removed.
  10333. (writeOutgoingMessageLog): Removed all overloaded functions.
  10334. (sendChoke): Removed.
  10335. (sendUnchoke): Removed.
  10336. (sendInterested): Removed.
  10337. (sendNotInterested): Removed.
  10338. (sendHave): Removed.
  10339. (sendBitfield): Removed.
  10340. (sendRequest): Removed.
  10341. (sendPiece): Removed.
  10342. (sendPieceHeader): Removed.
  10343. (sendPieceData): Removed.
  10344. (sendMessage): New function.
  10345. (sendCancel): Removed.
  10346. * src/PeerInteractionCommand.cc
  10347. (PeerInteractionCommand): Call setUploadLimit.
  10348. (executeInternal): Call setUploadLimit.
  10349. Added the handling of "inProgress" state of handshake message.
  10350. Call sendBitfield() or sendAllowdFast() instead of deprecated
  10351. sendNow().
  10352. (keepAlive): Call addMessage and sendMessage instead of deprecated
  10353. sendNow().
  10354. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  10355. * src/TorrentMan.h
  10356. (PEER_ID_LENGTH): New definition.
  10357. (hasAllPieces): New function.
  10358. * src/TorrentMan.cc
  10359. (getMissingPiece): Added the handling of fast extension.
  10360. (cancelPiece): Call updatePiece().
  10361. (hasAllPieces): New function.
  10362. * src/PeerInteraction.h
  10363. (fastSet): New variable.
  10364. (getNewPieceAndSendInterest): Changed the return type to void.
  10365. (send): Renamed as sendMessages.
  10366. (deleteAllRequestSlot): Removed.
  10367. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10368. (cancelAllRequest): Removed all overloaded functions.
  10369. (deleteAllRequestSlot): Removed.
  10370. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10371. (rejectPieceMessageInQueue): New function.
  10372. (rejectAllPieceMessageInQueue): New function.
  10373. (onChoked): New function.
  10374. (isSendingMessageInProgress): New function.
  10375. (getCorrespondingRequestSlot): Changed its arguments.
  10376. (isInFastSet): New function.
  10377. (addFastSetIndex): New function.
  10378. (addRequests): New function.
  10379. (sendNow): Removed.
  10380. (trySendNow): Removed.
  10381. (sendBitfield): New function.
  10382. (sendAllowdFast): New function.
  10383. (createHaveAllMessage): New function.
  10384. (createHaveNoneMessage): New function.
  10385. (createRejectMessage): New function.
  10386. (createAllowedFastMessage): New function.
  10387. * src/PeerInteraction.cc
  10388. (send): Renamed as sendMessages.
  10389. (sendMessages): New function.
  10390. (MsgPushBack): New class.
  10391. (isSendingMessageInProgress): New function.
  10392. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  10393. (rejectAllPieceMessageInQueue): New function.
  10394. Added the handling of fast extension.
  10395. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  10396. (rejectPieceMessageInQueue): New function.
  10397. Added the handling of fast extension.
  10398. (deleteRequestSlot): Replaced for loop with std::find.
  10399. (onChoked): New function.
  10400. (deleteAllRequestSlot): Removed.
  10401. (abortPiece): Rewirtten.
  10402. (deleteTimeoutRequestSlot): Updated log messages.
  10403. (getCorrespondingRequestSlot): Changed its arguments.
  10404. (cancelAllRequest): Removed all overloaded functions.
  10405. (receiveHandshake): Added the check to see whether an incoming peer
  10406. supports fast extension.
  10407. (createHandshakeMessage): Use HandshakeMessage::create instead of
  10408. PeerMessageUtil.
  10409. (createPeerMessage): Use create() of each message class instead of
  10410. PeerMessageUtil.
  10411. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  10412. AllowedFastMessage were added.
  10413. (getNewPieceAndSendInterest): Changed its return value type to void.
  10414. Added the handling of fast extension.
  10415. (addRequests): New function.
  10416. (sendNow): Removed.
  10417. (sendHandshake): Rewritten.
  10418. (trySendNow): Removed.
  10419. (sendBitfield): New function.
  10420. (sendAllowdFast): New function.
  10421. (isInFastSet): New function.
  10422. (addFastSetIndex): New function.
  10423. (createRequestMessage): Use RequestMessage::create instead of
  10424. PeerMessageUtil.
  10425. (createCancelMessage): Use CancelMessage::create instead of
  10426. PeerMessageUtil.
  10427. (createPieceMessage): Use PieceMessage::create instead of
  10428. PeerMessageUtil.
  10429. (createHaveMessage): Use HaveMessage::create instead of
  10430. PeerMessageUtil.
  10431. (createChokeMessage): Use ChokeMessage::create instead of
  10432. PeerMessageUtil.
  10433. (createUnchokeMessage): Use UnchokeMessage::create instead of
  10434. PeerMessageUtil.
  10435. (createInterestedMessage): Use InterestedMessage::create instead of
  10436. PeerMessageUtil.
  10437. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  10438. of PeerMessageUtil.
  10439. (createBitfieldMessage): Use BitfieldMessage::create instead of
  10440. PeerMessageUtil.
  10441. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  10442. PeerMessageUtil.
  10443. (createHaveAllMessage): New function.
  10444. (createHaveNoneMessage): New function.
  10445. (createRejectMessage): New function.
  10446. (createAllowedFastMessage: New function.
  10447. * src/Util.h
  10448. (sha1Sum): New function.
  10449. (computeFastSet): New function.
  10450. * src/Util.cc
  10451. (sha1Sum): New function.
  10452. (computeFastSet): New function.
  10453. * src/Peer.h
  10454. (fastExtensionEnabled): New variable.
  10455. (fastSet): New variable.
  10456. (setAllBitfield): New function.
  10457. (setFastExtensionEnabled): New function.
  10458. (isFastExtensionEnabled): New function.
  10459. (addFastSetIndex): New function.
  10460. (getFastSet): New function.
  10461. (isInFastSet): New function.
  10462. (countFastSet): New function.
  10463. * src/Peer.cc
  10464. (isInFastSet): New function.
  10465. (addFastSetIndex): New function.
  10466. (setAllBitfield): New function.
  10467. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  10468. sockets.
  10469. * src/PeerAbstractCommand.cc
  10470. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  10471. and uploadLimit.
  10472. (execute): Changed the procedure of checking sockets. The upload speed
  10473. checking were added.
  10474. (setUploadLimit): New function.
  10475. (setUploadLimitCheck): New function.
  10476. * src/PeerAbstractCommand.h
  10477. (setUploadLimit): New function.
  10478. (setUploadLimitCheck): New function.
  10479. (uploadLimit): New variable.
  10480. (uploadLimitCheck): New variable.
  10481. To contact a tracker regularly:
  10482. * src/TrackerWatcherCommand.h (interval): New variable.
  10483. (checkPoint): New variable.
  10484. (TrackerWatcherCommand): Added interval argument.
  10485. * src/TrackerWatcherCommand.cc
  10486. (TrackerWatcherCommand): Initialized checkPoint.
  10487. (execute): Now a tracker is contacted in every specified period.
  10488. If peer list is not needed, send request with numwant=0.
  10489. * src/TrackerUpdateCommand.cc
  10490. (execute): Updated log messages.
  10491. * src/DownloadEngine.cc
  10492. (~DownloadEngine): Removed two asserts.
  10493. (waitData): Uncommented wfds. May be a bug fix.
  10494. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10495. * src/PeerInteractionCommand.h
  10496. (checkInactiveConnection): Removed.
  10497. * src/PeerInteractionCommand.cc
  10498. (executeInternal): Removed following function calls:
  10499. detectMessageFlooding(), checkLongTimePeerChoking and
  10500. checkInactiveConnection().
  10501. (checkInactiveConnection): Removed.
  10502. (detectMessageFlooding): Removed function call to
  10503. checkInactiveConnection().
  10504. * src/PeerMessageUtil.h
  10505. (createChokeMessage): New function. Overload.
  10506. (createUnchokeMessage): New function. Overload.
  10507. (createInterestedMessage): New function. Overload.
  10508. (createNotInterestedMessage): New function. Overload.
  10509. (createHaveMessage): New function. Overload.
  10510. (createBitfieldMessage): New function. Overload.
  10511. (createRequestMessage): New function. Overload.
  10512. (createCancelMessage): New function. Overload.
  10513. (createPieceMessage): New function. Overload.
  10514. (createKeepAliveMessage): New function. Overload.
  10515. * src/PeerMessageUtil.cc
  10516. (createChokeMessage): New function. Overload.
  10517. (createUnchokeMessage): New function. Overload.
  10518. (createInterestedMessage): New function. Overload.
  10519. (createNotInterestedMessage): New function. Overload.
  10520. (createHaveMessage): New function. Overload.
  10521. (createBitfieldMessage): New function. Overload.
  10522. (createRequestMessage): New function. Overload.
  10523. (createCancelMessage): New function. Overload.
  10524. (createPieceMessage): New function. Overload.
  10525. (createKeepAliveMessage): New function. Overload.
  10526. * src/SendMessageQueue.cc
  10527. (createRequestMessage): Use PeerMessageUtil.
  10528. (createCancelMessage): Use PeerMessageUtil.
  10529. (createPieceMessage): Use PeerMessageUtil.
  10530. (createHaveMessage): Use PeerMessageUtil.
  10531. (createChokeMessage): Use PeerMessageUtil.
  10532. (createUnchokeMessage): Use PeerMessageUtil.
  10533. (createInterestedMessage): Use PeerMessageUtil.
  10534. (createNotInterestedMessage): Use PeerMessageUtil.
  10535. (createBitfieldMessage): Use PeerMessageUtil.
  10536. (createKeepAliveMessage): Use PeerMessageUtil.
  10537. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  10538. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  10539. * src/PeerInteraction.h: New class.
  10540. * src/PeerInteraction.cc: New class.
  10541. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10542. Each peer message has its own class.
  10543. * src/PendingMessages.h: Removed.
  10544. * src/PendingMessages.cc: Removed. The sending process was moved to
  10545. each message class.
  10546. * src/RequestSlotMan.h: Removed.
  10547. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  10548. SendMessageQueue.
  10549. * src/RequestMessage.h: New class.
  10550. * src/RequestMessage.cc: New class.
  10551. * src/CancelMessage.h: New class.
  10552. * src/CancelMessage.cc: New class.
  10553. * src/BitfieldMessage.h: New class.
  10554. * src/BitfieldMessage.cc: New class.
  10555. * src/ChokeMessage.h: New class.
  10556. * src/ChokeMessage.cc: New class.
  10557. * src/KeepAliveMessage.h: New class.
  10558. * src/KeepAliveMessage.cc: New class.
  10559. * src/PortMessage.h: New class.
  10560. * src/UnchokeMessage.h: New class.
  10561. * src/UnchokeMessage.cc: New class.
  10562. * src/PieceMessage.h: New class.
  10563. * src/PieceMessage.cc: New class.
  10564. * src/HaveMessage.h: New class.
  10565. * src/HaveMessage.cc: New class.
  10566. * src/BitfieldMessage.h: New class.
  10567. * src/BitfieldMessage.cc: New class.
  10568. * src/NotInterestedMessage.h: New class.
  10569. * src/NotInterestedMessage.cc: New class.
  10570. * src/InterestedMessage.h: New class.
  10571. * src/InterestedMessage.cc: New class.
  10572. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  10573. (getSendMessageQueue): New function.
  10574. (setSendMessageQueue): New function.
  10575. * src/HandshakeMessage.cc: New class.
  10576. * src/PeerConnection.h (receiveMessage): Changed return value and
  10577. arguments.
  10578. (receiveHandshake): Changed return value and arguments.
  10579. * src/PeerConnection.cc (receiveMessage): Do not create message class
  10580. here.
  10581. (receiveHandshake): Do not create handshake class here.
  10582. * src/PeerInteractionCommand.h (peerConnection): Removed.
  10583. (piece): Removed.
  10584. (syncPiece): Removed.
  10585. (sendInterest): Removed.
  10586. (sendMessages): Removed.
  10587. (createRequestPendingMessage): Removed.
  10588. (checkPieceHash): Removed.
  10589. (erasePieceOnDisk): Removed.
  10590. (getNewPieceAndSendInterest): Removed.
  10591. (onGotNewPice): Removed.
  10592. (onGotWrongPiece): Removed.
  10593. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  10594. Removed peerConnection, piece.
  10595. (~PeerInteractionCommand): Removed peerConnection.
  10596. (executeInternal): Use sendMessageQueue instead of peerConnection.
  10597. (syncPiece): Moved to SendMessageQueue.
  10598. (decideChoking): Removed PendingMessage.
  10599. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  10600. The action after receiving peer message was moved to each message
  10601. class.
  10602. (onGotNewPice): Moved to SendMessageQueue.
  10603. (onGotWrongPiece): Moved to SendMessageQueue.
  10604. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  10605. (sendInterest): Moved to SendMessageQueue.
  10606. (createRequestPendingMessage): Removed.
  10607. (sendMessages): Moved to SendMessageQueue.
  10608. (onAbort): Use SendMessageQueue::abortPiece()
  10609. (keepAlive): Use sendMessageQueue instead of peerConnection.
  10610. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  10611. (checkPieceHash): Moved to SendMessageQueue.
  10612. (erasePieceOnDisk): Moved to SendMessageQueue.
  10613. * src/PeerMessageUtil.h
  10614. (createBitfieldMessage): Removed.
  10615. (createHaveMessage): Changed return value and arguments.
  10616. (createBitfieldMessage): Changed return value and arguments.
  10617. (createRequestCancelMessage): Removed.
  10618. (createPieceMessage): Changed return value and arguments.
  10619. (getShortIntParam): New function.
  10620. (checkIndex): Changed arguments.
  10621. (checkBegin): Changed arguments.
  10622. (checkLength): Changed arguments.
  10623. (checkPieceOffset): Removed.
  10624. (checkRange): New function.
  10625. (checkBitfield): Changed arguments.
  10626. (createPeerMessage): Removed.
  10627. (checkIntegrity): Removed.
  10628. (createHandshakeMessage): Changed arguments.
  10629. (createChokeMessage): New function.
  10630. (createUnchokeMessage): New function.
  10631. (createInterestedMessage): New function.
  10632. (createNotInterestedMessage): New function.
  10633. (createRequestMessage): New function.
  10634. (createCancelMessage): New function.
  10635. (createPortMessage): New function.
  10636. * src/PeerMessageUtil.cc
  10637. (createBitfieldMessage): Removed.
  10638. (createHaveMessage): Changed return value and arguments.
  10639. (createBitfieldMessage): Changed return value and arguments.
  10640. (createRequestCancelMessage): Removed.
  10641. (createPieceMessage): Changed return value and arguments.
  10642. (getShortIntParam): New function.
  10643. (checkIndex): Changed arguments.
  10644. (checkBegin): Changed arguments.
  10645. (checkLength): Changed arguments.
  10646. (checkPieceOffset): Removed.
  10647. (checkRange): New function.
  10648. (checkBitfield): Changed arguments.
  10649. (createPeerMessage): Removed.
  10650. (checkIntegrity): Removed.
  10651. (createHandshakeMessage): Changed arguments.
  10652. (createChokeMessage): New function.
  10653. (createUnchokeMessage): New function.
  10654. (createInterestedMessage): New function.
  10655. (createNotInterestedMessage): New function.
  10656. (createRequestMessage): New function.
  10657. (createCancelMessage): New function.
  10658. (createPortMessage): New function.
  10659. * src/PeerMessage.h
  10660. (id): Removed.
  10661. (index): Removed.
  10662. (begin): Removed.
  10663. (length): Removed.
  10664. (bitfield): Removed.
  10665. (bitfieldLength): Removed.
  10666. (block): Removed.
  10667. (blockLength): Removed.
  10668. (inProgress): New variable.
  10669. (cuid): New variable.
  10670. (peer): New variable.
  10671. (sendMessageQueue): New variable.
  10672. (logger): New variable.
  10673. (setBitfield): Removed.
  10674. (getBitfield): Removed.
  10675. (setBlock): Removed.
  10676. (getBlock): Removed.
  10677. (getBitfieldLength): Removed.
  10678. (getBlockLength): Removed.
  10679. (isInProgress): New function.
  10680. (toString): Made pure virtual.
  10681. (check): New function.
  10682. (send): New function.
  10683. (receivedAction): New function.
  10684. (getId): Made pure virtual.
  10685. (setId): Removed.
  10686. (getIndex): Removed.
  10687. (setIndex): Removed.
  10688. (getBegin): Removed.
  10689. (setBegin): Removed.
  10690. (getLength): Removed.
  10691. (setLength): Removed.
  10692. (getCuid): New function.
  10693. (setCuid): New function.
  10694. (getPeer): New function.
  10695. (setPeer): New function.
  10696. (getSendMessageQueue): New function.
  10697. (setSendMessageQueue): New function.
  10698. (ID): Removed.
  10699. * src/PeerMessage.cc
  10700. (setBitfield): Removed.
  10701. (setBlock): Removed.
  10702. (toString): Removed.
  10703. * src/TorrentMan.h
  10704. (getPieceLength): New function.
  10705. (getPieceLength): New function.
  10706. * src/SendMessageQueue.h
  10707. (REQUEST_TIME_OUT): New definition.
  10708. (RequestSlots): New definition.
  10709. (MessageQueue): New definition.
  10710. (requestSlotMan): Removed.
  10711. (pendingMessages): Removed.
  10712. (requestSlots): New variable.
  10713. (messageQueue): New variable.
  10714. (torrentMan): New variable.
  10715. (peerConnection): New variable.
  10716. (peer): New variable.
  10717. (piece): New variable.
  10718. (getNewPieceAndSendInterest): New function.
  10719. (createPeerMessage): New function.
  10720. (createHandshakeMessage): New function.
  10721. (send): Made private.
  10722. (setPeerMessageCommonProperty): New function.
  10723. (deleteAllRequestSlot): New function.
  10724. (deleteRequestMessageInQueue): New function.
  10725. (cancelAllRequest): Made private.
  10726. (cancelAllRequest): Made private.
  10727. (countRequestSlot): Made private.
  10728. (addPendingMessage): Removed.
  10729. (deletePendingPieceMessage): Removed.
  10730. (deletePendingRequestMessage): Removed.
  10731. (addMessage): New function.
  10732. (deletePieceMessageInQueue): New function.
  10733. (deleteTimeoutRequestSlot): Changed argument.
  10734. (deleteCompletedRequestSlot): Changed argument.
  10735. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  10736. (getCorrespondingRequestSlot): New function.
  10737. (countPendingMessage): Removed.
  10738. (countMessageInQueue): New function.
  10739. (getTorrentMan): New function.
  10740. (getPeerConnection): New function.
  10741. (hasDownloadPiece): New function.
  10742. (getDownloadPiece): New function.
  10743. (setDownloadPiece): New function.
  10744. (syncPiece): New function.
  10745. (sendMessages): New function.
  10746. (sendNow): New function.
  10747. (trySendNow): New function.
  10748. (abortPiece): New function.
  10749. (sendHandshake): New function.
  10750. (receiveMessage): New function.
  10751. (receiveHandshake): New function.
  10752. (createRequestMessage): New function.
  10753. (createCancelMessage): New function.
  10754. (createPieceMessage): New function.
  10755. (createHaveMessage): New function.
  10756. (createChokeMessage): New function.
  10757. (createUnchokeMessage): New function.
  10758. (createInterestedMessage): New function.
  10759. (createNotInterestedMessage): New function.
  10760. (createBitfieldMessage): New function.
  10761. (createKeepAliveMessage): New function.
  10762. * src/SendMessageQueue.cc
  10763. (SendMessageQueue): Removed requestSlotMan.
  10764. Instantiated peerConnection here.
  10765. (~SendMessageQueue): Removed requestSlotMan.
  10766. Added deletion of peerConnection and the contents of messageQueue.
  10767. (send): Updated according to the change of messageQueue.
  10768. (addPendingMessage): Renamed to addMessage.
  10769. (addMessage): New function.
  10770. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  10771. (deletePieceMessageInQueue): New function.
  10772. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  10773. (deleteRequestMessageInQueue): New function.
  10774. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  10775. here.
  10776. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  10777. (...) was moved here.
  10778. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  10779. moved here.
  10780. (deleteCompletedRequestSlot):
  10781. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  10782. (getCorrespondingRequestSlot):
  10783. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  10784. And renamed to getCorrespondingRequestSlot, correcting a typo.
  10785. (countPendingMessage): Renamed to countMessageInQueue.
  10786. (countMessageInQueue): New function.
  10787. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  10788. (receiveHandshake): New function.
  10789. (createHandshakeMessage): New function.
  10790. (receiveMessage): New function.
  10791. (createPeerMessage): New function.
  10792. (syncPiece): New function.
  10793. (getNewPieceAndSendInterest): New function.
  10794. (sendMessages): New function.
  10795. (sendNow): New function.
  10796. (trySendNow): New function.
  10797. (sendHandshake): New function.
  10798. (abortPiece): New function.
  10799. (getDownloadPiece): New function.
  10800. (getPeerMessageCommonProperty): New function.
  10801. (createRequestMessage): New function.
  10802. (createCancelMessage): New function.
  10803. (createPieceMessage): New function.
  10804. (createHaveMessage): New function.
  10805. (createChokeMessage): New function.
  10806. (createUnchokeMessage): New function.
  10807. (createInterestedMessage): New function.
  10808. (createNotInterestedMessage): New function.
  10809. (createBitfieldMessage): New function.
  10810. (createKeepAliveMessage): New function.
  10811. To add simple Content-Disposition support:
  10812. * src/HttpResponseCommand.h (determinFilename): New function.
  10813. * src/HttpResponseCommand.cc (executeInternal):
  10814. Use determinFilename(headers) instead of req->getFile() when comparing
  10815. filename.
  10816. (determinFilename): New function.
  10817. (handleDefaultEncoding): Use determinFilename(headers) instead of
  10818. req->getFile().
  10819. (handleOtherEncoding): Use determinFilename(headers) instead of
  10820. req->getFile().
  10821. * src/Util.h (getContentDispositionFilename): New function.
  10822. * src/Util.cc (getContentDispositionFilename): New function.
  10823. * src/LogFactory.h (release): New function.
  10824. * src/LogFactory.cc (release): New function.
  10825. To fix a bug that causes out-of-bound exception when HTTP status
  10826. line is wrong:
  10827. * src/HttpConnection.cc (receiveResponse): Added a check for header
  10828. size.
  10829. * src/common.h (Deleter): New class.
  10830. * src/SegmentMan.cc
  10831. (~SegmentMan): Added deletion of splitter and diskWriter.
  10832. * src/DownloadEngine.h
  10833. (Commands): Use deque.
  10834. (clearQueue): New function.
  10835. * src/DownloadEngine.cc
  10836. (~DownloadEngine): Added deletion of segmentMan.
  10837. (cleanQueue): New function.
  10838. * src/TorrentDownloadEngine.h
  10839. (TorrentDownloadEngine): The implementation was moved to
  10840. TorrentDownloadEngine.cc.
  10841. (~TorrentDownloadEngine): The implementation was moved to
  10842. TorrentDownloadEngine.cc.
  10843. * src/TorrentDownloadEngine.cc
  10844. (~TorrentDownloadEngine): Added deletion of torrentMan.
  10845. * src/main.cc
  10846. (clearRequest): Removed.
  10847. (handler): Added deletion of e.
  10848. (torrentHandler): Added deletion of te.
  10849. (main): Do not share splitter.
  10850. Use Deleter instead of clearRequest.
  10851. Deletion of classes were updated.
  10852. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10853. * src/main.cc (main): Fixed typo.
  10854. * src/message.h: Fixed typo.
  10855. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  10856. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10857. To add --select-file command-line option:
  10858. * src/Util.cc
  10859. (unfoldRange): New function.
  10860. (getNum): New function.
  10861. (unfoldSubRange): New function
  10862. * src/main.cc
  10863. (showUsage): Added help message.
  10864. (main): Added --select-file command-line option. Updated the layout of
  10865. file listing.
  10866. * src/common.h
  10867. (Integers): New definition.
  10868. * src/SocketCore.cc
  10869. (writeData): Removed timeout argument.
  10870. (readData): Removed timeout argument.
  10871. (peekData): Removed timeout argument.
  10872. * src/Socket.cc
  10873. (writeData): Removed timeout argument.
  10874. (readData): Removed timeout argument.
  10875. (peekData): Removed timeout argument.
  10876. * Release 0.4.1
  10877. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10878. To deploy upload rate based choking algorithm:
  10879. * src/PeerInteractionCommand.cc
  10880. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  10881. peer currently used.
  10882. (decideChoking): Deleted the choke/unchoke decision algorithm when
  10883. download completes. Simplified.
  10884. (receiveMessage): Updated.
  10885. * src/TorrentMan.h
  10886. (activePeers): New variable.
  10887. (addActivePeer): New function.
  10888. (getActivePeers): New function.
  10889. (deleteActivePeer): New function.
  10890. * src/TorrentMan.cc
  10891. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  10892. * src/PeerAbstractCommand.cc
  10893. (onAbort): Use peer->resetStatus().
  10894. * src/main.cc
  10895. (PeerChokeCommand.h): Included.
  10896. (main): Added the instance of ChokingCommand to the command queue.
  10897. * src/Peer.h
  10898. (amChoking): Renamed from amChocking
  10899. (chokingRequired): New variable.
  10900. (optUnchoking): New variable.
  10901. (deltaUpload): New variable.
  10902. (deltaDownload): New variable.
  10903. (addDeltaUpload): New function.
  10904. (resetDeltaUpload): New function.
  10905. (addDeltaDownload): New function.
  10906. (resetDeltaDownload): New function.
  10907. (addPeerUpload): Added a call to addDeltaUpload.
  10908. (addPeerDownload): Added a call to addDeltaDownload.
  10909. * src/Peer.cc
  10910. (shouldBeChoking): Renamed from shouldChoke.
  10911. (resetStatus): New function.
  10912. * src/PeerChokeCommand.h: New class.
  10913. * src/PeerChokeCommand.cc: New class.
  10914. To add lazy upload speed limiter:
  10915. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  10916. statistics calculation to TorrentDownloadEngine.
  10917. * src/TorrentConsoleDownloadEngine.cc
  10918. (sendStatistics): Renamed from printStatistics.
  10919. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  10920. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  10921. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  10922. * src/TorrentDownloadEngine.h: Added the variables for statistics
  10923. calculation.
  10924. (sendStatistics): New function as pure virtual function.
  10925. (getUploadSpeed): New function.
  10926. * src/TorrentDownloadEngine.cc
  10927. (initStatistics): New function.
  10928. (calculateSpeed): New function.
  10929. (calculateStatistics): New function.
  10930. * src/SendMessageQueue.h
  10931. (uploadLength): New variable.
  10932. (send): Added an argument.
  10933. (setUploadLimit): New function.
  10934. (getUploadLimit): New function.
  10935. * src/SendMessageQueue.cc
  10936. (send): Added upload speed limiter.
  10937. * src/prefs.h
  10938. (PREF_UPLOAD_LIMIT): New definition.
  10939. * src/PeerInteractionCommand.cc
  10940. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  10941. * src/main.cc
  10942. (main): Added --upload-limit option
  10943. For bug fixes:
  10944. * src/main.cc
  10945. (showUsage): Corrected --listen-port help
  10946. Other changes:
  10947. * src/TorrentMan.cc
  10948. (getPeer): Return nullPeer if connection is grather than
  10949. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  10950. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10951. To add some useful information to the exception message:
  10952. * src/SocketCore.cc : Updated messages.
  10953. * src/SegmentMan.cc :
  10954. * src/TorrentMan.cc : Updated messages.
  10955. * src/MultiDiskWriter.cc : Updated messages.
  10956. * src/Util.cc : Updated messages.
  10957. * src/AbstractDiskWriter.cc : Updated messages.
  10958. * src/PreAllocationDiskWriter.cc : Updated messages.
  10959. * src/message.cc : Added new messages. Updated some messages.
  10960. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  10961. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  10962. Updated threshold from 30 to 15.
  10963. * src/AbstractDiskWriter.h (filename): New variable.
  10964. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  10965. (createFile): Assigned filename.
  10966. * src/main.cc: Updated the help message for http-auth-scheme.
  10967. * Release 0.4.0
  10968. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10969. To add TrackerUpdateCommand with which replaces
  10970. CompactTrackerResponseProcessor:
  10971. * src/TrackerWatcherCommand.h (req): Removed.
  10972. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  10973. if the number of peer connections are less than 30.
  10974. * src/ByteArrayDiskWriter.h (readData): Implemented.
  10975. * src/SegmentMan.h (diskWriter): New function.
  10976. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  10977. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  10978. (main): Use TrackerUpdateCommand.
  10979. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  10980. (req): New variable.
  10981. (setTrackerResponseProcessor): Removed.
  10982. (getTrackerResponseProcessor): Removed.
  10983. (processTrackerResponse): Removed.
  10984. * src/DownloadEngine.h (diskWriter): Removed.
  10985. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  10986. to torrentMan->processTrackerResponse().
  10987. To add Util::expandBuffer:
  10988. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  10989. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  10990. * src/Util.h (expandBuffer): New function.
  10991. To fix the bug that causes segmentation fault when "-l ." is specified
  10992. in command-line option:
  10993. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  10994. (openFile): New function.
  10995. (closeFile): New function.
  10996. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  10997. (~SimpleLogger): Call closeFile();
  10998. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  10999. * src/main.cc (main): Added a check to see logger is configured
  11000. properly.
  11001. To enable HTTP authentication without specifying "--http-auth-scheme"
  11002. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  11003. * src/HttpConnection.cc (createRequest): Send Authorization header
  11004. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  11005. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  11006. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  11007. * src/Peer.cc (shouldChoke): Updated algorithm.
  11008. * src/message.h (EX_AUTH_FAILED): New definition.
  11009. (EX_FILE_OPEN): New definition.
  11010. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  11011. if status == 401.
  11012. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  11013. if req->isTorrent == true.
  11014. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  11015. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  11016. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  11017. (createFile): Updated message.
  11018. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11019. To add a readout of estimated remaining time to normal HTTP/FTP
  11020. downloads:
  11021. * src/ConsoleDownloadEngine.h (startup): New variable.
  11022. (startupLength): New variable.
  11023. (isStartupLengthSet): New variable.
  11024. (avgSpeed): New variable.
  11025. (eta): New variable.
  11026. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  11027. estimated remaining time.
  11028. (initStatistics): Initialized newly added variables.
  11029. (calculateStatistics): Calculate average speed and estimated remaining
  11030. time.
  11031. To decouple TorrentDownloadEngine from HttpResponseCommand:
  11032. * src/TrackerDownloadCommand.h: Removed.
  11033. * src/TrackerDownloadCommand.cc: Removed.
  11034. * src/TrackerInitCommand.h: Removed.
  11035. * src/TrackerInitCommand.cc: Removed.
  11036. * src/TrackerUpdateCommand.h: Removed.
  11037. * src/TrackerUpdateCommand.cc: Removed.
  11038. * src/TrackerWatcherCommand.cc (execute): The construction of request
  11039. url written in TrackerInitCommand was moved here. Do not create
  11040. tracker request command if torrentMan->trackers != 0.
  11041. * src/CompactTrackerResponseProcessor.h: New class.
  11042. * src/CompactTrackerResponseProcessor.cc: New class.
  11043. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  11044. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  11045. Decoupled TorrentDownloadEngine from this.
  11046. * src/SegmentMan.h (init): New function.
  11047. * src/SegmentMan.cc (init): New function.
  11048. * src/TorrentMan.h (responseProcessor): New variable.
  11049. (trackers): New variable.
  11050. (setTrackerResponseProcessor): New function.
  11051. (getTrackerResponseProcessor): New function.
  11052. (processTrackerResponse): New function.
  11053. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  11054. (processTrackerResponse): New function.
  11055. * src/main.cc (main): Use ByteArrayDiskWriter and
  11056. CompactTrackerResponseProcessor.
  11057. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  11058. processTrackerResponse().
  11059. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  11060. readout.
  11061. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  11062. which indicates download has completed.
  11063. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  11064. (closeFile): fd >= 0, not fd > 0
  11065. * src/main.cc (main): Added short cut for show-files.
  11066. Added short cut for torrent-file.
  11067. Added new command-line option listen-port.
  11068. Updated i18n messages.
  11069. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11070. To add LogFactory which creates singleton logger:
  11071. * src/LogFactory.h: New class.
  11072. * src/LogFactory.cc: New class.
  11073. * src/Command.h (logger): New variable.
  11074. (Constructor): Use LogFactory.
  11075. * src/AbstractCommand.cc: Use Command::logger
  11076. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  11077. Use LogFactory.
  11078. * src/SegmentSplitter.h : Made logger protected.
  11079. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  11080. * src/SegmentMan.cc (Constructor): Use LogFactory.
  11081. * src/DownloadEngine.h : Made logger protected.
  11082. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  11083. * src/PeerInteractionCommand.cc : Use Command::logger.
  11084. * src/HttpResponseCommand.cc : Use Command::logger.
  11085. * src/SegmentMan.h : Made logger private.
  11086. * src/TorrentMan.h : Made logger private.
  11087. * src/TorrentMan.cc : Use LogFactory.
  11088. * src/FtpNegotiateCommand.cc : Use Command::logger.
  11089. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  11090. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  11091. Use LogFactory.
  11092. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  11093. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  11094. Use LogFactory.
  11095. * src/DownloadCommand.cc : Use Command::logger.
  11096. * src/PeerAbstractCommand.cc : Use Command::logger.
  11097. * src/PeerListenCommand.cc : Use Command::logger.
  11098. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  11099. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  11100. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  11101. * src/TrackerWatcherCommand.cc : Use Command::logger.
  11102. * src/TrackerUpdateCommand.cc : Use Command::logger.
  11103. * src/TrackerDownloadCommand.cc : Use Command::logger.
  11104. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  11105. Use LogFactory.
  11106. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  11107. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  11108. Use LogFactory.
  11109. * src/main.cc (main): Use LogFactory.
  11110. * src/DiskAdaptor.h (logger): New variable.
  11111. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  11112. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  11113. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11114. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  11115. parameter to a tracker request.
  11116. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  11117. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  11118. * src/main.cc (setSignalHander): New function.
  11119. (main): Added a handler for SIGTERM.
  11120. (handler): Updated message.
  11121. (torrentHandler): Updated message.
  11122. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11123. * src/TorrentConsoleDownloadEngine.cc
  11124. (onPartialDownloadingCompletes): Renamed as
  11125. onSelectiveDownloadingCompletes.
  11126. (onSelectiveDownloadingCompletes): Updated message.
  11127. To add DiskAdaptor which abstract DiskWriter family:
  11128. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  11129. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  11130. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  11131. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  11132. MultiDiskAdaptor.h.
  11133. (readFileEntry): Changed its arguments.
  11134. (setup): setupDiskWriter is merged into this function.
  11135. (setupDiskWriter): Removed.
  11136. (setFileFilter): New function.
  11137. (readFileEntryFromMetaInfoFile): Updated according to the changes
  11138. made in readFileEntry.
  11139. (getFilePath): Removed.
  11140. (getTempFilePath): Removed.
  11141. (getSegmentFilePath): Updated due to the removal of getFilePath.
  11142. (fixFilename): Removed.
  11143. (copySingleFile): Removed.
  11144. (splitMultiFile): Removed.
  11145. (deleteTempFile): Removed.
  11146. (setFileEntriesToDownload): Removed.
  11147. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  11148. (isSelectiveDownloadingMode): New function.
  11149. (setAllMultiFileRequestedState): Removed.
  11150. (finishPartialDownloadingMode): Renamed as
  11151. finishSelectiveDownloadingMode.
  11152. (finishSelectiveDownloadingMode): New function.
  11153. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  11154. (getSelectedTotalLength): New function.
  11155. (onDownloadComplete): Use diskAdaptor.
  11156. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  11157. (Range): Removed.
  11158. (setMultiFileEntries): Renamed as setFileEntries.
  11159. (setFileEntries): New function.
  11160. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  11161. (pieceLength): New variable.
  11162. * src/main.cc (printDownloadCompeleteMessage): New function.
  11163. (torrentHandler): Use diskAdaptor instead of diskWriter.
  11164. (main): Renamed torrent-show-files to show-files.
  11165. Rewritten file contents listing.
  11166. * src/TorrentMan.h (FileEntry): Removed.
  11167. (multiFileTopDir): Removed.
  11168. (multiFileEntries): Removed.
  11169. (diskWriter): Removed.
  11170. (diskAdaptor): New variable.
  11171. * src/DefaultDiskWriter.h (totalLength): New variable.
  11172. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  11173. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  11174. diskWriter.
  11175. * src/TorrentConsoleDownloadEngine.h
  11176. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  11177. (partialTotalLength): Renamed as selectedTotalLength.
  11178. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  11179. openExistingFile, otherwise call initAndOpenFile.
  11180. (closeFile): fd > 0, not fd != 0.
  11181. * src/DirectDiskAdaptor.h: New class.
  11182. * src/DirectDiskAdaptor.cc: New class.
  11183. * src/MultiDiskAdaptor.h: New class.
  11184. * src/MultiDiskAdaptor.cc: New class.
  11185. * src/CopyDiskAdaptor.h: New class.
  11186. * src/CopyDiskAdaptor.cc: New class.
  11187. * src/DiskAdaptor.h: New class.
  11188. * src/DiskAdaptor.cc: New class.
  11189. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  11190. (PREF_SHOW_FILES): New definition.
  11191. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11192. To add the ability to download multi torrent into respective files
  11193. directly:
  11194. * src/DiskWriter.h (openFile): New function.
  11195. (seek): Removed.
  11196. * src/MultiDiskWriter.h: New class.
  11197. * src/MultiDiskWriter.cc: New class.
  11198. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  11199. protected.
  11200. (openFile): New function.
  11201. * src/AbstractDiskWriter.cc (openFile): New function.
  11202. * src/prefs.h (V_FALSE): New definition.
  11203. (PREF_DIRECT_FILE_MAPPING): New definition.
  11204. * src/TorrentMan.h (setupDiskWriter): New function.
  11205. (setAllMultiFileRequestedState): New function.
  11206. (onDownloadComplete): New function.
  11207. * src/TorrentMan.cc : Included MultiDiskWriter.h
  11208. (setupDiskWriter): New function.
  11209. (getFilePath): Updated.
  11210. (getTempFilePath): Updated.
  11211. (getSegmentFilePath): Updated.
  11212. (fixFilename): Updated.
  11213. (deleteTempFile): Updated.
  11214. (setAllMultiFileRequestedState): New function.
  11215. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  11216. (finishPartialDownloadingMode): Reset requested flags.
  11217. (onDownloadComplete): New function.
  11218. * src/main.cc: Added --direct-file-mapping option.
  11219. Use TorrentMan::setupDiskWriter().
  11220. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  11221. onDownloadComplete().
  11222. To fix ETA bug:
  11223. * src/Util.h (difftvsec): New function.
  11224. * src/Util.cc (difftvsec): New function.
  11225. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  11226. type of "elapsed" instead of long long int.
  11227. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  11228. The updates of statistics takes place every 1 seconds.
  11229. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  11230. (calculateSpeed): Changed its argument signature.
  11231. * src/PeerMessage.cc (toString): Fixed message.
  11232. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11233. To print ETA:
  11234. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  11235. completion handling when dealing with
  11236. TorrentMan::isPartialDownloadingMode() == true.
  11237. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  11238. New function.
  11239. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  11240. (sessionDownloadLength): New variable.
  11241. (avgSpeed): New variable.
  11242. (eta): New variable.
  11243. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  11244. new variables: eta, avgSpeed, startup.
  11245. (calculateSpeed): Calculate average speed and ETA.
  11246. (printStatistics): Added ETA.
  11247. * src/Util.h (secfmt): New function.
  11248. * src/Util.cc (secfmt): New function.
  11249. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11250. To detect "keep alive" flooding:
  11251. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  11252. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  11253. variable: keepAliveCount.
  11254. (detectMessageFlooding): Added "keep alive" flooding detection.
  11255. (receiveMessage): Increase keepAliveCount when "keep alive" message
  11256. received.
  11257. To add the ability to download only specified files in multi-file
  11258. torrent:
  11259. * src/BitfieldMan.h (filterBitfield): New variable.
  11260. (filterEnabled): New variable.
  11261. (setFilterBit): New function.
  11262. (enableFilter): New function.
  11263. (disableFilter): New function.
  11264. (isFilterEnabled): New function.
  11265. (getFilteredTotalLength): New function.
  11266. (getCompletedLength): New function.
  11267. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  11268. filterBitfield, filterEnabled.
  11269. (CopyConstructor): Added filterBitfield and filterEnabled.
  11270. (operator==): Added filterBitfield and filterEnabled.
  11271. (Destructor): Added filterBitfield.
  11272. (getMissingIndex): Use filterBitfield.
  11273. (getMissingUnusedIndex): Use filterBitfield.
  11274. (getFirstMissingUnusedIndex): Use filterBitfield.
  11275. (getFirstMissingUnusedIndex): Use filterBitfield.
  11276. (getAllMissingIndexes): Use filterBitfield.
  11277. (countMissingBlock): Use filterBitfield.
  11278. (countBlock): Use filterBitfield.
  11279. (setBitInternal): Added new argument on.
  11280. (setUseBit): Use setBitInternal.
  11281. (unsetUseBit): Use setBitInternal.
  11282. (setBit): Use setBitInternal.
  11283. (unsetBit): Use setBitInternal.
  11284. (isAllBitSet): Use filterBitfield.
  11285. (setFilterBit): New function.
  11286. (addFilter): New function.
  11287. (enableFilter): New function.
  11288. (disableFilter): New function.
  11289. (clearFilter): New function.
  11290. (isFilterEnabled): New function.
  11291. (getFilteredTotalLength): New function.
  11292. (getCompletedLength): New function.
  11293. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  11294. Initalized newly added variables.
  11295. [FileEntry](offset): New variable.
  11296. [FileEntry](extracted): New variable.
  11297. [FileEntry](requested): New variable.
  11298. (readFileEntry): New function.
  11299. (option): New variable.
  11300. (splitMultiFile): Removed const qualifier.
  11301. (fixFilename): Removed const qualifier.
  11302. (readFileEntryFromMetaInfoFile): New function.
  11303. (finishPartialDownloadingMode): New function.
  11304. (isPartialDownloadingMode): New function.
  11305. (setFileEntriesToDownload): New function.
  11306. (getCompletedLength): New function.
  11307. (getPartialTotalLength): New function.
  11308. * src/TorrentMan.cc (readFileEntry): New function.
  11309. (setup): Use readFileEntry. If no-preallocation option is specified,
  11310. use DefaultDiskWriter.
  11311. (readFileEntryFromMetaInfoFile): New function.
  11312. (fixFilename): Removed const qualifier.
  11313. (splitMultiFile): Removed const qualifier.
  11314. (setFileEntriesToDownload): New function.
  11315. (isPartialDownloadingMode): New function.
  11316. (finishPartialDownloadingMode): New function.
  11317. (getCompletedLength): New function.
  11318. (getPartialTotalLength): New function.
  11319. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  11320. New variable.
  11321. (partialTotalLength): New variable.
  11322. (downloadLength): New variable.
  11323. (totalLength): New variable.
  11324. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  11325. Added log.
  11326. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  11327. partialTotalLength, downloadLength, totalLength.
  11328. (calculate): Calculate downloadLength and totalLength.
  11329. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  11330. * src/main.cc (addCommand): Changed argument signature.
  11331. (main): Added new variable: args. Added new option "torrent-show-files"
  11332. "no-preallocation". Usage is not updated yet.
  11333. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11334. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  11335. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11336. Attempt to add the ability to listing file entries in a .torrent file.
  11337. This feature is not yet complete.
  11338. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  11339. * src/TorrentMan.cc (getMultiFileEntries): New function.
  11340. (getName): New function.
  11341. * src/TorrentMan.h (getMultiFileEntries): New function.
  11342. (getName): New function.
  11343. * src/main.cc (main): Use above 2 funtion.
  11344. * Release 0.3.2
  11345. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11346. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  11347. (detectMessageFlooding): Updated threshold value.
  11348. (checkLongTimePeerChoking): Updated timeout value.
  11349. (getNewPieceAndSendInterest): Added debug log.
  11350. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  11351. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  11352. (getPeer): Updated.
  11353. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  11354. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  11355. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  11356. is localhost.
  11357. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  11358. * src/PendingMessage.cc (processMessage): Not to send piece message
  11359. if peer is not interested in the pieces localhost has.
  11360. * src/Peer.cc (shouldChoke): Updated.
  11361. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  11362. * src/Util.cc (isPowerOf): New function.
  11363. * src/Util.h (isPowerOf): New function.
  11364. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  11365. whether or not it is power of 2.
  11366. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11367. Added new class SendMessageQueue that includes PendingMessages and
  11368. RequestSlotMan.
  11369. * src/SendMessageQueue.h: New class.
  11370. * src/SendMessageQueue.cc: New class.
  11371. * src/PendingMessage.h: Added new member variable blockIndex and its
  11372. accessors.
  11373. (createRequestMessage): Updated.
  11374. * src/PendingMessage.cc (createRequestMessage): Updated.
  11375. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  11376. SendMessageQueue.
  11377. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  11378. (receiveMessage): Updated with SendMessageQueue.
  11379. (deletePendingPieceMessage): Removed.
  11380. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  11381. (sendInterest): Updated with SendMessageQueue.
  11382. (createRequestPendingMessage): Updated with SendMessageQueue.
  11383. (sendMessages): Updated with SendMessageQueue.
  11384. (onAbort): Updated with SendMessageQueue.
  11385. (keepAlive): Updated with SendMessageQueue.
  11386. (beforeSocketCheck): Updated SendMessageQueue.
  11387. * src/PeerInteractionCommand (sendMessages): Shuffle
  11388. missingBLockIndexes before using it.
  11389. Added its own timeout for peer connection.
  11390. * src/PeerAbstractCommand.h: Added member variable timeout and its
  11391. setter.
  11392. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  11393. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11394. Added setTimeout() call.
  11395. (executeInternal): Added setTimeout() call.
  11396. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  11397. Added timeout.
  11398. (isTimeoutDetected): Updated.
  11399. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  11400. option.
  11401. Added *simple* message flooding checker.
  11402. * src/PeerInteractionCommand.cc (executeInternal):
  11403. Added detectMessageFlooding() call.
  11404. (detectMessageFlooding): New function.
  11405. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  11406. (beforeSocketCheck): Added detectMessageFlooding() call.
  11407. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  11408. chokeUnchokeCount, haveCount, detectMessageFlooding().
  11409. Removed deletePendingPieceMessage(), getRequestSlot(),
  11410. deleteRequestSlot(), deleteAllRequestSlot().
  11411. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  11412. Added checkLongTimePeerChoking() call.
  11413. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  11414. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  11415. if duplicate == false.
  11416. The parameter "uploaded" and "downloaded" in the tracker request are
  11417. the size since the client sent the "started" event to the tracker.
  11418. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  11419. uploaded size to preDownloadedSize, preUploadedSize respectively.
  11420. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  11421. getSessionDownloadedSize(), getSessionUploadedSize().
  11422. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  11423. getSessionUploadedSize() instead of getDownloadedSize(),
  11424. getUploadedSize().
  11425. * src/PendingMessage.cc (processMessage): Do not send request message
  11426. if the peer is choking the client.
  11427. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  11428. less than interval.
  11429. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11430. * configure.in: Added gnutls support. Added several CPP macros.
  11431. * m4/openssl.m4: Added.
  11432. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  11433. readData(), peekData(). Added gnutls support.
  11434. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  11435. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  11436. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  11437. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  11438. Instead, added a check for whether setup method has executed
  11439. successfully.
  11440. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  11441. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  11442. * src/Makefile.am: Updated.
  11443. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  11444. using whether OpenSSL or gcrypt, depending on the result of configure
  11445. script.
  11446. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  11447. messageDigest.h.
  11448. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  11449. * src/PeerListenCommand.cc: Added log about port binded successfully.
  11450. Fixed memory leak.
  11451. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  11452. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  11453. Removed instantiation of TrackerInitCommand. Instead,
  11454. TrackerWatcherCommand is instantiated and pushed to the command queue.
  11455. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  11456. ENABLE_SSL.
  11457. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  11458. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  11459. If a piece is already acquired by another command, delete the request
  11460. slots for the piece.
  11461. * src/TrackerUpdateCommand.cc (execute):
  11462. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  11463. Added a check whether peer list is null.
  11464. Fixed the bug that causes sending completed event to the tracker
  11465. several times.
  11466. * src/TrackerInitCommand.cc (execute):
  11467. Fixed the bug that causes sending completed event to the tracker
  11468. several times.
  11469. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  11470. by using messageDigest.h.
  11471. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11472. * PeerConnection.cc: Replaced log message "keep-alive" with
  11473. "keep alive".
  11474. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  11475. localhost long time.
  11476. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  11477. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  11478. at most 100 failure entry from the list. If with duplicate = false,
  11479. MAX_PEER_LIST is not checked.
  11480. * PeerListenCommand.cc: Fixed the argument order of log message.
  11481. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11482. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  11483. Added warn().
  11484. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  11485. Implemented warn().
  11486. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  11487. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11488. * Request.h: Added AFTER_COMPLETED event.
  11489. * TorrentDownloadEngine.cc: Prints "Download complete" message
  11490. instead of downloaded size and progress(%) after download completes.
  11491. * PeerInteractionCommand.cc: After download completes, sends unchoke
  11492. message to the peer if it is interested in what localhost has
  11493. downloaded.
  11494. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  11495. destination instead of just renaming it.
  11496. * TorrentMan.cc: Added deleteTempFile().
  11497. * PeerAbstractCommand.cc: do not stop execution after download
  11498. completes. This makes localhost a seeder.
  11499. * Util.{h,cc}: Added fileCopy().
  11500. * PeerListenCommand.cc: do not stop execution after download completes.
  11501. This makes localhost a seeder.
  11502. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  11503. Added TorrentMan::deleteTempFile() to torrentHandler.
  11504. Initialized the variable dir as ".".
  11505. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  11506. Deleted renameSingleFile().
  11507. Added copySingleFile(), deleteTempFile().
  11508. * DownloadEngine.h: Added virtual function afterEachIteration().
  11509. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  11510. in onEndOfRun() to afterEachIteration().
  11511. In onEndOfRun(), changed if condition to check whether filenameFixed is
  11512. true.
  11513. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  11514. In rangedFileCopy(), added try-catch block to properly close file
  11515. descriptors.
  11516. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  11517. Added afterEachIteration(), isFilenameFixed().
  11518. * Peer.cc: Changed choking strategy.
  11519. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  11520. * TrackerInitCommand.cc: Send completed event only once.
  11521. * DownloadEngine.cc: Added a call to afterEachIteration().
  11522. * TrackerUpdateCommand.cc: Do not stop execution after download
  11523. completes.
  11524. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  11525. connect the peers at most MAX_PEER_UPDATE when a peer list is
  11526. received from a tracker.
  11527. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  11528. Decreased the number of failure peers to delete to 0(just comment out
  11529. the line).
  11530. * Release 0.3.1
  11531. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11532. * PeerInteractionCommand.cc: added a call to
  11533. TorrentMan::unadvertisePiece in Destructor.
  11534. * PeerInteractionCommand.cc: make have message sent immediately
  11535. if the size of pending message queue is zero.
  11536. * TorrentMan.cc: set the maximum size of peer list to 250.
  11537. * TorrentMan.h: changed the container type of Peers and UsedPieces
  11538. to deque.
  11539. * Util.cc: fixed rangedFileCopy.
  11540. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  11541. to Constructor. Also, moved digest cleanup to Destructor.
  11542. * MetaFileUtil.cc: fixed memory leak
  11543. * replaced std::vector with std::deque.
  11544. * AbstractCommand.cc: casted timeout value to long long int.
  11545. * ChunkedEncoding.cc: fixed memory leak.
  11546. * PeerInteractionCommand.cc: casted timeout value to long long int.
  11547. * SleepCommand.cc: casted timeout value to long long int.
  11548. * Data.cc: fixed memory leak.
  11549. * Data.cc: fixed toLLInt().
  11550. * BitfieldMan.cc: fixed memory leak.
  11551. * TorrentMan.cc: initialized storeDir to ".".
  11552. * TorrentMan.cc: fixed memory leak.
  11553. * TorrentMan.cc: corrected file paths of splitted files.
  11554. * PeerAbstractCommand.cc: casted timeout to long long int.
  11555. * main.cc: added delete(req) and delete(te->diskWriter).
  11556. * RequestSlot.cc: casted timeout value to long long int.
  11557. * Request.cc: fixed memory leak.
  11558. * PendingMessage.cc: make HAVE messages sent only when peer does not
  11559. have the piece.
  11560. * Peer.{h,cc}: added hasPiece(int index).
  11561. * main.cc: corrected addCommand.
  11562. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11563. * BitTorrent protocol support added.
  11564. * Release 0.3.0
  11565. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11566. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  11567. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11568. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  11569. decoding did not work properly.
  11570. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11571. * DownloadEngine.h: included sys/time.h
  11572. * DownloadEngine.cc: remove sys/time.h
  11573. * Makefile.am (SUBDIRS): Add intl.
  11574. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  11575. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11576. * main.cc: correct help message for --http-auth-scheme.
  11577. * main.cc: changed e-mail address for bug reports.
  11578. * ja.po: added japanese translation.
  11579. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11580. * SimpleLogger.cc: flush log file instead of stdout.
  11581. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11582. * main.cc: Fixed command-line option: max-tries
  11583. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  11584. does not equal to seg.sp.
  11585. * DownloadCommand.cc: If EOF is got from the server and the total size
  11586. of file is not zero, then throw DlRetryEx.
  11587. * main.cc: Set the minium value of min-segment-size to 1024.
  11588. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  11589. fails because of a regression since 0.2.0 release.
  11590. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11591. * HttpConnection.cc:
  11592. * common.h: defined the user agent name as macro
  11593. * DownloadEngine.{h, cc}:
  11594. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  11595. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  11596. * main.cc: Download complete/abort message is now generated by main.
  11597. * Makefile.am (SUBDIRS): Add m4.
  11598. (ACLOCAL_AMFLAGS): New variable.
  11599. (EXTRA_DIST): New variable.
  11600. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  11601. * gettext: added gettext functionality
  11602. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11603. * AbstractCommand.cc:
  11604. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  11605. unregister its cuid from SegmentMan.
  11606. * DownloadEngine.cc: .aria2 file was written when a downloading
  11607. failed with errors.
  11608. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  11609. Added "User-Agent" header to CONNECT proxy request.
  11610. Fixed "Proxy-Authorization" header. Now proxy authorization works
  11611. properly.
  11612. * Logger.h:
  11613. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  11614. * ChunkedEncoding.cc: Added #include directive for strings.h
  11615. * Release 0.2.1
  11616. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11617. * Util.{h,cc}: added startsWith().
  11618. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  11619. Util::endsWith().
  11620. * SocketCore.cc: struct addrinfo is now zero-initialized.
  11621. * common.h: added #include directive of limit.h.
  11622. * DownloadEngine.cc: added #include directive of sys/time.h and
  11623. algorithm.
  11624. * Exception.h: added #include directive of stdio.h.
  11625. * AbstractCommand.h: added #include directive of sys/time.h.
  11626. * DownloadCommand.h: added #include directive of sys/time.h.
  11627. * *.h: added #include directive of common.h to all base classes.
  11628. subclasses' one was removed.
  11629. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  11630. does not define these macros.
  11631. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11632. * Release 0.2.0
  11633. * main.cc:
  11634. * HttpInitiateConnectionCommand.{h,cc}:
  11635. * prefs.h:
  11636. * HttpConnection.{h,cc}: added --http-proxy-method option.
  11637. We can now use GET command in http proxy.
  11638. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11639. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  11640. that splits slowest segment of SegmentMan::commands vector.
  11641. This is the default split algorithm of aria2.
  11642. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  11643. that splits first segment of SegmentMan::commands vector.
  11644. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  11645. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  11646. * Segment.h:
  11647. * SegmentMan.cc: Added speed field to Segment.h
  11648. * main.cc: -s option now affects all URLs in command-line arguemtns.
  11649. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  11650. * message.h: Change file size related %d to %lld.
  11651. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11652. * FtpInitiateConnectionCommand.{h,cc}:
  11653. * FtpNegotiationCommand.{h,cc}:
  11654. * FtpDownloadCommand.{h,cc}:
  11655. * FtpConnection.{h,cc}: Added FTP support
  11656. * SimpleLogger.cc: Log message now includes time information.
  11657. * main.cc: The value of --http-auth-scheme option is chagned from
  11658. 'BASIC' to 'basic'
  11659. * main.cc: Added --timeout command-line option.
  11660. * main.cc: Added --min-segment-size command-line option.
  11661. * main.cc: Added --max-retries command-line option.
  11662. * prefs.h: option string constants are now defined in prefs.h
  11663. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11664. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  11665. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  11666. with version 0.1.0's one.
  11667. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11668. * configure.in: Added --enable-ssl option to configure script.
  11669. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  11670. cannot permit absoluteURI as Request-URI.
  11671. * HttpConnection.cc: Added Referer support.
  11672. * main.cc: Added referer command-line option.
  11673. * main.cc: Added rety-wait command-line option.
  11674. * Exception.h: Fixed formating bug in Exception::setMsg()
  11675. * SocketCore.{h,cc}:
  11676. * Socket.{h, cc}:
  11677. * Request.cc:
  11678. * InitiateConnectionCommandFactory.cc:
  11679. * HttpRequestCommand.cc: Added HTTPS support.
  11680. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  11681. for SocketCore.
  11682. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  11683. size is wrong
  11684. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  11685. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  11686. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  11687. * Release 0.1.0