ChangeLog 512 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130
  1. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Updated README
  3. * README
  4. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  5. Bump up version number to 1.3.0
  6. * configure.ac
  7. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  8. Updated doc
  9. * src/DefaultBtContext.h
  10. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Slice/joinPath for name of single torrent.
  12. * src/DefaultBtContext.cc
  13. * test/DefaultBtContextTest.cc
  14. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  15. Updated man page: Documented --dry-run and --index-out
  16. options. Changed the default value of --uri-selector and
  17. --http-auth-challenge options. Removed --direct-file-mapping
  18. option. Added example for --index-out
  19. * doc/aria2c.1.txt
  20. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  21. Updated TEXT_DRY_RUN
  22. * src/usage_text.h
  23. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Changed the default value of --uri-selector option from 'inorder'
  25. to 'feedback'
  26. * src/OptionHandlerFactory.cc
  27. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  28. Included current URI in exception message.
  29. * src/AbstractCommand.cc
  30. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  31. Renamed ServerStatURISelector as FeedbackURISelector.
  32. * src/FeedbackURISelector.cc
  33. * src/FeedbackURISelector.h
  34. * src/Makefile.am
  35. * src/RequestGroupMan.cc
  36. * src/ServerStatURISelector.cc
  37. * src/ServerStatURISelector.h
  38. * test/FeedbackURISelectorTest.cc
  39. * test/Makefile.am
  40. * test/ServerStatURISelectorTest.cc
  41. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  43. all URIs are tested and their timeout is not reached.
  44. * src/AdaptiveURISelector.cc
  45. * src/AdaptiveURISelector.h
  46. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  47. Changed the default value of --http-auth-challenge option to false.
  48. * src/OptionHandlerFactory.cc
  49. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  50. Reuse URIs when all unused URIs run out.
  51. * src/OptionHandlerFactory.cc
  52. * src/RequestGroup.cc
  53. * src/prefs.cc
  54. * src/prefs.h
  55. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  56. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  57. and BtRejectMessage are derived from RangeBtMessage class.
  58. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  59. derived from IndexBtMessage class. BtChokeMessage,
  60. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  61. BtNotInterestedMessage and BtUnchokeMessage are derived from
  62. ZeroBtMessage class.
  63. * src/AbstractBtMessage.cc
  64. * src/AbstractBtMessage.h
  65. * src/BtAllowedFastMessage.cc
  66. * src/BtAllowedFastMessage.h
  67. * src/BtAllowedFastMessageValidator.h: Removed
  68. * src/BtBitfieldMessage.cc
  69. * src/BtBitfieldMessage.h
  70. * src/BtCancelMessage.cc
  71. * src/BtCancelMessage.h
  72. * src/BtCancelMessageValidator.h: Removed
  73. * src/BtChokeMessage.cc
  74. * src/BtChokeMessage.h
  75. * src/BtExtendedMessage.cc
  76. * src/BtExtendedMessage.h
  77. * src/BtHandshakeMessage.cc
  78. * src/BtHandshakeMessage.h
  79. * src/BtHaveAllMessage.cc
  80. * src/BtHaveAllMessage.h
  81. * src/BtHaveMessage.cc
  82. * src/BtHaveMessage.h
  83. * src/BtHaveMessageValidator.h: Removed
  84. * src/BtHaveNoneMessage.cc
  85. * src/BtHaveNoneMessage.h
  86. * src/BtInterestedMessage.cc
  87. * src/BtInterestedMessage.h
  88. * src/BtKeepAliveMessage.cc
  89. * src/BtKeepAliveMessage.h
  90. * src/BtNotInterestedMessage.cc
  91. * src/BtNotInterestedMessage.h
  92. * src/BtPieceMessage.cc
  93. * src/BtPieceMessage.h
  94. * src/BtPortMessage.cc
  95. * src/BtPortMessage.h
  96. * src/BtRejectMessage.cc
  97. * src/BtRejectMessage.h
  98. * src/BtRejectMessageValidator.h: Removed
  99. * src/BtRequestMessage.cc
  100. * src/BtRequestMessage.h
  101. * src/BtRequestMessageValidator.h: Removed
  102. * src/BtSuggestPieceMessage.cc
  103. * src/BtSuggestPieceMessage.h
  104. * src/BtSuggestPieceMessageValidator.h: Removed
  105. * src/BtUnchokeMessage.cc
  106. * src/BtUnchokeMessage.h
  107. * src/DefaultBtMessageFactory.cc
  108. * src/IndexBtMessage.cc
  109. * src/IndexBtMessage.h
  110. * src/IndexBtMessageValidator.h
  111. * src/Makefile.am
  112. * src/PeerMessageUtil.cc
  113. * src/PeerMessageUtil.h
  114. * src/RangeBtMessage.cc
  115. * src/RangeBtMessage.h
  116. * src/RangeBtMessageValidator.h
  117. * src/SimpleBtMessage.cc
  118. * src/SimpleBtMessage.h
  119. * src/ZeroBtMessage.cc
  120. * src/ZeroBtMessage.h
  121. * test/BtRequestMessageTest.cc
  122. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Reverted usage_text.h to r1093 to avoid to lose translated
  124. messages.
  125. * src/usage_text.h
  126. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  127. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  128. declared as non-const previously is now const and defined in class
  129. definition.
  130. * src/AbstractBtMessage.cc
  131. * src/AbstractBtMessage.h
  132. * src/BtAllowedFastMessage.cc
  133. * src/BtAllowedFastMessage.h
  134. * src/BtBitfieldMessage.h
  135. * src/BtCancelMessage.cc
  136. * src/BtCancelMessage.h
  137. * src/BtChokeMessage.cc
  138. * src/BtChokeMessage.h
  139. * src/BtExtendedMessage.cc
  140. * src/BtExtendedMessage.h
  141. * src/BtHandshakeMessage.cc
  142. * src/BtHandshakeMessage.h
  143. * src/BtHaveAllMessage.cc
  144. * src/BtHaveAllMessage.h
  145. * src/BtHaveMessage.cc
  146. * src/BtHaveMessage.h
  147. * src/BtHaveNoneMessage.cc
  148. * src/BtHaveNoneMessage.h
  149. * src/BtInterestedMessage.cc
  150. * src/BtInterestedMessage.h
  151. * src/BtKeepAliveMessage.cc
  152. * src/BtKeepAliveMessage.h
  153. * src/BtMessage.h
  154. * src/BtNotInterestedMessage.cc
  155. * src/BtNotInterestedMessage.h
  156. * src/BtPieceMessage.h
  157. * src/BtPortMessage.cc
  158. * src/BtPortMessage.h
  159. * src/BtRejectMessage.cc
  160. * src/BtRejectMessage.h
  161. * src/BtRequestMessage.cc
  162. * src/BtRequestMessage.h
  163. * src/BtSuggestPieceMessage.cc
  164. * src/BtSuggestPieceMessage.h
  165. * src/BtUnchokeMessage.cc
  166. * src/BtUnchokeMessage.h
  167. * src/SimpleBtMessage.cc
  168. * src/SimpleBtMessage.h
  169. * test/MockBtMessage.h
  170. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  171. Use FileEntry::exists()
  172. * src/MultiDiskAdaptor.cc
  173. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  174. Added exists()
  175. * src/FileEntry.cc
  176. * src/FileEntry.h
  177. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  178. Added missing prefix dir.
  179. * src/download_helper.cc
  180. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  181. Removed --direct-file-mapping option and CopyDiskAdaptor.
  182. * src/CopyDiskAdaptor.cc: Removed
  183. * src/CopyDiskAdaptor.h: Removed
  184. * src/DefaultPieceStorage.cc
  185. * src/Makefile.am
  186. * src/OptionHandlerFactory.cc
  187. * src/prefs.cc
  188. * src/prefs.h
  189. * src/usage_text.h
  190. * test/CopyDiskAdaptorTest.cc: Removed
  191. * test/Makefile.am
  192. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  193. Rewritten isSameFileBeingDownloaded()
  194. * src/RequestGroupMan.cc
  195. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  196. Removed getName() from DownloadContext. getName() is declared in
  197. BtContext.
  198. * src/BtContext.h
  199. * src/DownloadContext.h
  200. * src/SingleFileDownloadContext.cc
  201. * src/SingleFileDownloadContext.h
  202. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  203. in AbstractSingleDiskAdaptor.
  204. * src/AbstractSingleDiskAdaptor.h
  205. * src/DiskAdaptor.h
  206. * src/MultiDiskAdaptor.h
  207. * src/RequestGroup.cc
  208. Removed setTopDir() and getTopDir() and getTopDirPath() from
  209. MultiDiskAdaptor.
  210. * src/DefaultPieceStorage.cc
  211. * src/MultiDiskAdaptor.cc
  212. * src/MultiDiskAdaptor.h
  213. * test/MultiDiskAdaptorTest.cc
  214. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. FileEntry::getPath() contains store(top level) directory to
  216. simplify path handling operation. In the previous implementation,
  217. store directory is concatenated to FileEntry::getPath() in
  218. DownloadContext.
  219. * src/BtDependency.cc
  220. * src/BtPostDownloadHandler.cc
  221. * src/CopyDiskAdaptor.cc
  222. * src/DefaultBtContext.cc
  223. * src/DirectDiskAdaptor.cc
  224. * src/FileEntry.cc
  225. * src/FileEntry.h
  226. * src/FtpNegotiationCommand.cc
  227. * src/HttpResponse.cc
  228. * src/HttpResponseCommand.cc
  229. * src/Metalink2RequestGroup.cc
  230. * src/MultiDiskAdaptor.cc
  231. * src/MultiDiskAdaptor.h
  232. * src/MultiFileAllocationIterator.cc
  233. * src/RequestGroup.cc
  234. * src/SingleFileDownloadContext.cc
  235. * src/SingleFileDownloadContext.h
  236. * src/download_helper.cc
  237. * test/BtDependencyTest.cc
  238. * test/CopyDiskAdaptorTest.cc
  239. * test/DefaultBtContextTest.cc
  240. * test/DefaultBtProgressInfoFileTest.cc
  241. * test/DirectDiskAdaptorTest.cc
  242. * test/DownloadHelperTest.cc
  243. * test/FileEntryTest.cc
  244. * test/MultiDiskAdaptorTest.cc
  245. * test/MultiFileAllocationIteratorTest.cc
  246. * test/RequestGroupTest.cc
  247. * test/SingleFileDownloadContextTest.cc
  248. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  249. Fixed compiler warning
  250. * src/download_helper.cc
  251. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  252. Throw exception if same infohash torrent is now downloading.
  253. * src/RequestGroup.cc
  254. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  255. Added --dry-run option. In this mode, aria2 just checks whether
  256. the remote file is available and doesn't download data. This
  257. option has effect on HTTP/FTP downloads and BitTorrent downloads
  258. are canceled in this mode.
  259. * src/FtpNegotiationCommand.cc
  260. * src/HttpResponseCommand.cc
  261. * src/HttpResponseCommand.h
  262. * src/OptionHandlerFactory.cc
  263. * src/RequestGroup.cc
  264. * src/RequestGroupMan.cc
  265. * src/prefs.cc
  266. * src/prefs.h
  267. * src/usage_text.h
  268. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  269. Fixed compiler waring
  270. * test/UriListParserTest.cc
  271. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  272. Parse options in -i list using OptionParser.
  273. * src/UriListParser.cc
  274. * src/UriListParser.h
  275. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Don't reset URI in retry to avoid additional round trips because
  277. of redirects.
  278. * src/AbstractCommand.cc
  279. * src/OptionHandlerFactory.cc
  280. * src/prefs.cc
  281. * src/prefs.h
  282. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  283. Declared hide() in OptionHandler.
  284. * src/NameMatchOptionHandler.h
  285. * src/OptionHandler.h
  286. * src/OptionHandlerImpl.h
  287. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  288. Updated doc
  289. * src/Peer.h
  290. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Added log message in setStatusInternal()
  292. * src/ServerStat.cc
  293. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Call ServerStat::setError() in AbstractCommand::onAbort() to
  295. effectively exclude failed server.
  296. * src/AbstractCommand.cc
  297. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  298. Added --index-out option to specify each file path for torrent.
  299. Here index shown in --show-files option is used to specify which
  300. file path should be altered. For example, to change the file path
  301. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  302. option multiple times: --index-out=1=aria2.tar.bz2
  303. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  304. available. This option can be specified in -i list.
  305. * src/DefaultBtContext.cc
  306. * src/DefaultBtContext.h
  307. * src/MultiDiskAdaptor.cc
  308. * src/MultiDiskAdaptor.h
  309. * src/MultiFileAllocationIterator.cc
  310. * src/OptionHandlerFactory.cc
  311. * src/OptionHandlerImpl.h
  312. * src/Util.cc
  313. * src/Util.h
  314. * src/download_helper.cc
  315. * src/prefs.cc
  316. * src/prefs.h
  317. * src/usage_text.h
  318. * test/DefaultBtContextTest.cc
  319. * test/MultiDiskAdaptorTest.cc
  320. * test/MultiFileAllocationIteratorTest.cc
  321. * test/UtilTest.cc
  322. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  323. Use Util::pathJoin()
  324. * src/MetalinkParserController.cc
  325. * test/test.xml
  326. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  327. Use Util::pathJoin()
  328. * src/DefaultBtContext.cc
  329. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  330. Added Util::pathJoin()
  331. * src/Util.h
  332. * test/UtilTest.cc
  333. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  334. Applied basename function to remove directory element in
  335. content-disposition value.
  336. Return empty string if content-disposition value is ".." or ".".
  337. * src/Util.cc
  338. * test/UtilTest.cc
  339. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  340. Added --max-overall-download-limit in man page.
  341. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  342. * doc/aria2c.1.txt
  343. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  344. Added --max-overall-download-limit option. Now --max-upload-limit
  345. option is not ignored when --max-overall-upload-limit option has
  346. non-zero value. aria2 checks download(upload) speed in the order:
  347. first checks overall speed limit and if it is not exceeded, then
  348. checks speed limit per download. Thus you can specify both
  349. value. For example, set --max-overall-download-limit=1M and
  350. --max-download-limit=500K to prevent from one download from eating
  351. all overall speed limit.
  352. * src/DefaultBtInteractive.cc
  353. * src/DefaultBtInteractive.h
  354. * src/DefaultBtMessageDispatcher.cc
  355. * src/DefaultBtMessageDispatcher.h
  356. * src/DownloadCommand.cc
  357. * src/DownloadCommand.h
  358. * src/FtpNegotiationCommand.cc
  359. * src/HttpResponseCommand.cc
  360. * src/OptionHandlerFactory.cc
  361. * src/PeerInteractionCommand.cc
  362. * src/RequestGroup.cc
  363. * src/RequestGroup.h
  364. * src/RequestGroupMan.cc
  365. * src/RequestGroupMan.h
  366. * src/prefs.cc
  367. * src/prefs.h
  368. * src/usage_text.h
  369. * test/DefaultBtMessageDispatcherTest.cc
  370. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  371. Documented select-file option in Input File section.
  372. Documented --http-auth-challenge option.
  373. * doc/aria2c.1.txt
  374. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Now select-file can be specified in the uri list(-i list).
  376. * src/BtContext.cc
  377. * src/BtContext.h
  378. * src/RequestGroup.cc
  379. * src/Sequence.h
  380. * src/download_helper.cc
  381. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  382. Made the upper value of --max-concurrent-downloads options unlimited.
  383. * src/OptionHandlerFactory.cc
  384. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  385. Fixed the bug that disk writer is not created even if it shares
  386. same piece with the preceding file if the length of previous file
  387. is 0.
  388. * src/MultiDiskAdaptor.cc
  389. * test/MultiDiskAdaptorTest.cc
  390. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. In BitTorrent, Open files in read-only mode for hash check. After
  392. that, re-open file in read/write mode only when the download is
  393. not finished.
  394. * src/AbstractDiskWriter.cc
  395. * src/AbstractDiskWriter.h
  396. * src/AbstractSingleDiskAdaptor.cc
  397. * src/AbstractSingleDiskAdaptor.h
  398. * src/BtCheckIntegrityEntry.cc
  399. * src/DiskAdaptor.h
  400. * src/DiskWriter.h
  401. * src/MultiDiskAdaptor.cc
  402. * src/MultiDiskAdaptor.h
  403. * src/RequestGroup.cc
  404. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  405. Added --http-auth-challenge option. If it is set to true(by
  406. default), aria2 sends HTTP authorization header only when it is
  407. requested by the server. If false is set, then authorization
  408. header is always sent to the server. This is useful for servers
  409. that don't respond 401 code when authentication is required.
  410. There is an exception: if username and password are embedded in
  411. URI, authorization header is always sent to the server regardless
  412. of this option.
  413. * src/AuthConfigFactory.cc
  414. * src/HttpSkipResponseCommand.cc
  415. * src/OptionHandlerFactory.cc
  416. * src/prefs.cc
  417. * src/prefs.h
  418. * src/usage_text.h
  419. * test/AuthConfigFactoryTest.cc
  420. * test/HttpRequestTest.cc
  421. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. * Release 1.2.0
  423. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  424. Updated Spanish, Ukrainian, Russian and Japanese translations.
  425. Thanks to all translators.
  426. * po/es.po
  427. * po/ja.po
  428. * po/ru.po
  429. * po/uk.po
  430. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Call deleteSocketForReadCheck() before socket is closed.
  432. * src/HttpListenCommand.cc
  433. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  434. Defined virtual destructor for BObject.
  435. * src/bencode.h
  436. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  437. Rewritten BDE to make it efficient.
  438. * src/bencode.cc
  439. * src/bencode.h
  440. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  441. Removed function throw list.
  442. * src/bencode.cc
  443. * src/bencode.h
  444. * test/BencodeTest.cc
  445. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  446. Enclosed all URLs in double quotes in command-line examples.
  447. * doc/aria2c.1.txt
  448. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Updated reference/see also section.
  450. * README
  451. * doc/aria2c.1.txt
  452. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  453. Reorganized man page based on man man-pages.
  454. * doc/aria2c.1.txt
  455. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  456. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  457. because same documents are available in man page. Added
  458. References section.
  459. * README
  460. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  461. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  462. PERFORMANCE PROFILE section.
  463. * doc/aria2c.1.txt
  464. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  465. Rewritten the section for configuration file.
  466. * README
  467. * doc/aria2c.1.txt
  468. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  469. Fixed the segmentation fault during execution of choking algorithm
  470. in leecher state because of broken compare operator
  471. implementation.
  472. * src/BtLeecherStateChoke.cc
  473. * src/BtLeecherStateChoke.h
  474. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  475. Open file in binary mode.
  476. * src/CookieStorage.cc
  477. * src/DHTSetup.cc
  478. * src/DHTUtil.cc
  479. * src/Netrc.cc
  480. * src/NsCookieParser.cc
  481. * src/ProtocolDetector.cc
  482. * src/RequestGroupMan.cc
  483. * src/Signature.cc
  484. * src/bencode.cc
  485. * src/download_helper.cc
  486. * src/option_processing.cc
  487. * test/CookieParserTest.cc
  488. * test/DefaultBtProgressInfoFileTest.cc
  489. * test/FileTest.cc
  490. * test/GZipDecoderTest.cc
  491. * test/RequestGroupManTest.cc
  492. * test/SignatureTest.cc
  493. * test/SingleFileAllocationIteratorTest.cc
  494. * test/UriListParserTest.cc
  495. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Removed operator[] because it is ambiguous with built-in []
  497. operator.
  498. * src/array_fun.h
  499. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  500. Fixed compile error
  501. * src/OptionParser.cc
  502. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Added missing call to arrayWrapperConst
  504. * test/array_funTest.cc
  505. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Use array_wrapper instead of array_ptr.
  507. * src/DHTRoutingTableDeserializer.cc
  508. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  510. * src/array_fun.h
  511. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  512. Added array_wrapper template.
  513. * src/array_fun.h
  514. * test/array_funTest.cc
  515. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  516. Use operator T* of array_ptr.
  517. * src/OptionParser.cc
  518. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  519. Use localhost instead of 127.0.0.1
  520. * test/FtpConnectionTest.cc
  521. * test/MSEHandshakeTest.cc
  522. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Added operator T*
  524. * src/array_fun.h
  525. * test/array_funTest.cc
  526. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  527. Use dynamically allocated char array to detect memory access
  528. violation.
  529. * src/DHTRoutingTableDeserializer.cc
  530. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  531. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  532. defined.
  533. * src/PeerMessageUtil.cc
  534. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  535. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  536. * configure.ac
  537. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  538. Added a check to see struct sockaddr_in has sin_len member.
  539. * configure.ac
  540. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  541. Fixed buffer overrun.
  542. * src/DHTRoutingTableDeserializer.cc
  543. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  544. Added LL for long long int constant.
  545. * test/FtpConnectionTest.cc
  546. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  547. Casted to unsigned int to suppress compiler warning on netbsd.
  548. * src/BtRuntime.h
  549. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  550. Assign the value of tv.tv_sec to time_t timesec instead of giving
  551. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  552. type time_t.
  553. * src/SimpleLogger.cc
  554. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  555. Added test for FtpConnection::receiveSizeResponse().
  556. * test/FtpConnectionTest.cc
  557. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  558. Fix epoll error on the old kernel 2.6.8 or ealier.
  559. * src/EpollEventPoll.cc
  560. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  561. Use Util::parseLLInt instead of sscanf for portability. The
  562. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  563. * src/FtpConnection.cc
  564. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  565. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  566. block. It should not filter anything.
  567. * src/BitfieldMan.cc
  568. * src/ConsoleStatCalc.cc
  569. * test/BitfieldManTest.cc
  570. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Fixed the bug that the boolean options that don't take arguments
  572. don't work.
  573. * src/OptionHandlerImpl.h
  574. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  575. Fixed broken selected file BitTorrent download.
  576. * src/MultiDiskAdaptor.cc
  577. * test/MultiDiskAdaptorTest.cc
  578. * test/MultiFileAllocationIteratorTest.cc
  579. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  580. Fixed #define guard for EpollEventPoll
  581. * src/EpollEventPoll.h
  582. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  583. Wait 2 seconds. 1 second is sometimes not enough.
  584. * test/TimeSeedCriteriaTest.cc
  585. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  586. Use localhost instead of 127.0.0.1.
  587. * test/DHTConnectionImplTest.cc
  588. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  589. Suppressed compiler warning.
  590. * src/AdaptiveURISelector.cc
  591. * src/DefaultPieceStorage.cc
  592. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  593. Defined virtual destructor.
  594. * src/MetalinkParserState.h
  595. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  596. Give NULL for second argument of getaddrinfo instead of "0".
  597. * src/NameResolver.cc
  598. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  600. included strptime doesn't parse data for this format.
  601. * src/FtpConnection.cc
  602. * test/FtpConnectionTest.cc
  603. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  604. Removed tests giving -1 for unsigned argument.
  605. * test/SingleFileDownloadContextTest.cc
  606. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Don't use sha256 in tests because it might not be supported by the
  608. SSL library.
  609. * test/MetalinkProcessorTest.cc
  610. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  611. Removed tests giving -1 for unsigned argument.
  612. * test/AlphaNumberDecoratorTest
  613. * test/BitfieldManTest.cc
  614. * test/DefaultBtContextTest.cc
  615. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  616. Fixed compile error without libcares when epoll is available.
  617. * src/EpollEventPoll.cc
  618. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. Included fstream instead of iostream.
  620. * test/SignatureTest.cc
  621. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Removed #include <algorithm>
  623. * test/RequestGroupTest.cc
  624. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  625. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  626. using RequestGroup::extractURIResult().
  627. * src/AdaptiveURISelector.cc
  628. * src/RequestGroup.cc
  629. * src/RequestGroup.h
  630. * test/RequestGroupTest.cc
  631. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  632. Added tests for array_ptr.
  633. * test/array_funTest.cc
  634. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  635. Don't send ip parameter to a tracker if ip parameter is empty
  636. string.
  637. * src/DefaultBtAnnounce.cc
  638. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  639. Adjusted line feed.
  640. * src/version_usage.cc
  641. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  642. Print tags, possible values when OptionHandlerException is caught.
  643. * src/option_processing.cc
  644. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  645. Changed the message for FatalException.
  646. * src/OptionParser.cc
  647. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Documented --bt-external-ip option in man page. Updated man pages
  649. for --proxy-method option.
  650. * doc/aria2c.1.txt
  651. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  652. Use GET method for FTP via HTTP proxy.
  653. * src/FtpInitiateConnectionCommand.cc
  654. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  655. Changed the default value of --proxy-method option from 'tunnel'
  656. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  657. option.
  658. * src/AbstractCommand.cc
  659. * src/AbstractCommand.h
  660. * src/FtpInitiateConnectionCommand.cc
  661. * src/HttpDownloadCommand.cc
  662. * src/HttpInitiateConnectionCommand.cc
  663. * src/HttpInitiateConnectionCommand.h
  664. * src/OptionHandlerFactory.cc
  665. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  666. Initialized _logger
  667. * src/SelectEventPoll.cc
  668. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  669. Defined a copy constructor for the same type.
  670. * src/SharedHandle.h
  671. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Added OptionParser::parseArg() which internally uses getopt_long
  673. to parse command-line options. All command-line options are now
  674. configured by OptionHandler. No manual editing of struct option*
  675. is required any more.
  676. * src/NameMatchOptionHandler.h
  677. * src/OptionHandler.h
  678. * src/OptionHandlerFactory.cc
  679. * src/OptionHandlerImpl.h
  680. * src/OptionParser.cc
  681. * src/OptionParser.h
  682. * src/array_fun.h
  683. * src/main.cc
  684. * src/option_processing.cc
  685. * test/OptionHandlerTest.cc
  686. * test/OptionParserTest.cc
  687. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  688. Fixed configure error with --disable-epoll
  689. * configure.ac
  690. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Fixed compile error when HAVE_EPOLL is not defined.
  692. Fixed linker error on bigendian systems.
  693. * src/SocketCore.cc
  694. * src/SocketCore.h
  695. * test/DefaultBtProgressInfoFileTest.cc
  696. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  697. Added --bt-external-ip option. You can specify the external IP
  698. address to report to a BitTorrent tracker. Although this function
  699. is named 'external', it can accept any kind of IP addresses.
  700. * src/DefaultBtAnnounce.cc
  701. * src/OptionHandlerFactory.cc
  702. * src/option_processing.cc
  703. * src/prefs.cc
  704. * src/prefs.h
  705. * src/usage_text.h
  706. * test/DefaultBtAnnounceTest.cc
  707. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  708. Extracted the algorithm to find the longest incremental sequence
  709. as max_sequence template.
  710. * src/LongestSequencePieceSelector.cc
  711. * src/a2algo.h
  712. * test/Makefile.am
  713. * test/a2algoTest.cc
  714. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  715. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  716. * src/usage_text.h
  717. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  718. Updated doc for --uri-selector, --http-server-listen-port and
  719. --enable-http-server option. Documented --event-poll option.
  720. * doc/aria2c.1.txt
  721. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. Updated doc for --enable-http-server.
  723. * src/usage_text.h
  724. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  725. Documented --http-server-listen-port and --enable-http-server in
  726. man page.
  727. * doc/aria2c.1.txt
  728. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  729. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  730. translations. Thanks to all translators.
  731. * po/es.po
  732. * po/id.po
  733. * po/it.po
  734. * po/ru.po
  735. * po/uk.po
  736. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Bump up version number to 1.2.0
  738. * configure.ac
  739. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  740. BtContext::getAnnounceTiers() now returns const reference.
  741. * src/BtContext.h
  742. * src/DefaultBtContext.cc
  743. * src/DefaultBtContext.h
  744. * test/MockBtContext.h
  745. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  746. Change the number of retries for tracker request based on the
  747. number of available tracker in a torrent file.
  748. * src/TrackerWatcherCommand.cc
  749. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  750. Added _maxTries property to RequestGroup and assign the option
  751. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  752. RequestGroup::getMaxTries() instead of
  753. Option::getAsInt(PREF_MAX_TRIES).
  754. * src/AbstractCommand.cc
  755. * src/RequestGroup.cc
  756. * src/RequestGroup.h
  757. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  758. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  759. Mandriva. I modified the patch: make RequestGroup have the
  760. timeout value and AdaptiveURISelector directly modifies that
  761. value.
  762. * src/AbstractCommand.cc
  763. * src/AdaptiveURISelector.cc
  764. * src/AdaptiveURISelector.h
  765. * src/FtpNegotiationCommand.cc
  766. * src/RequestGroup.cc
  767. * src/RequestGroup.h
  768. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  769. Fixed compiler warning
  770. * test/IteratableChecksumValidatorTest.cc
  771. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  772. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  773. integrated downloads. This PieceSelector subclass finds the
  774. longest continuous sequence in the available missing pieces and
  775. selects the last index of such sequence. This makes HTTP/FTP
  776. connections less interrupted by the pieces obtained by BitTorrent
  777. peers.
  778. * src/DefaultPieceStorage.cc
  779. * src/DefaultPieceStorage.h
  780. * src/LongestSequencePieceSelector.cc
  781. * src/LongestSequencePieceSelector.h
  782. * src/Makefile.am
  783. * src/PieceSelector.h
  784. * src/RarestPieceSelector.h
  785. * src/RequestGroup.cc
  786. * test/BtDependencyTest.cc
  787. * test/DefaultPieceStorageTest.cc
  788. * test/IteratableChecksumValidatorTest.cc
  789. * test/LongestSequencePieceSelectorTest.cc
  790. * test/Makefile.am
  791. * test/SegmentManTest.cc
  792. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. Fixed the bug that the average speed is wrong in
  794. http/ftp/BitTorrent integrated download. Only the download bytes
  795. in BitTorrent were considered.
  796. * src/RequestGroup.cc
  797. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  798. Choose port for BitTorrent/DHT randomly from the specified range.
  799. * src/DHTConnectionImpl.cc
  800. * src/PeerListenCommand.cc
  801. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. Send HTTP Authorization header only if it is requested by the
  803. server(response 401). There are some exceptions. The authorization
  804. header for proxy is always sent if it is available without request
  805. by the server. If username/password is specified in the URI, it
  806. is immediately sent to the server without request by the server.
  807. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  808. SharedHandle<AuthConfig>().
  809. NetrcAuthResolver::resolveAuthConfig() returns
  810. SharedHandle<AuthConfig>() if no AuthConfig is available.
  811. * src/AbstractAuthResolver.cc
  812. * src/AbstractProxyRequestCommand.cc
  813. * src/AuthConfigFactory.cc
  814. * src/AuthConfigFactory.h
  815. * src/HttpConnection.cc
  816. * src/HttpRequest.cc
  817. * src/HttpRequest.h
  818. * src/HttpResponse.cc
  819. * src/HttpResponseCommand.cc
  820. * src/HttpSkipResponseCommand.cc
  821. * test/AuthConfigFactoryTest.cc
  822. * test/HttpRequestTest.cc
  823. * test/HttpResponseTest.cc
  824. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  825. Remove leading "--" from help keyword and a substring after "="
  826. from help keyword, so that one can query options by '-h--max-' or
  827. '-hmax-peers=10'.
  828. * src/option_processing.cc
  829. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  830. Rewritten PStringVisitor and its implementation.
  831. * src/PStringBuildVisitor.cc
  832. * src/PStringBuildVisitor.h
  833. * src/PStringDatum.h
  834. * src/PStringNumLoop.h
  835. * src/PStringSegment.cc
  836. * src/PStringSegment.h
  837. * src/PStringSelect.h
  838. * src/PStringVisitor.h
  839. * src/download_helper.cc
  840. * test/PStringBuildVisitorTest.cc
  841. * test/ParameterizedStringParserTest.cc
  842. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  843. Persist connection between the built-in HTTP server and a client
  844. if a client supports keep-alive. Fixed the bug that aria2 exits
  845. when the HTTP server receives EOF from a client.
  846. * src/HttpServer.cc
  847. * src/HttpServer.h
  848. * src/HttpServerCommand.cc
  849. * src/HttpServerCommand.h
  850. * src/HttpServerResponseCommand.cc
  851. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Added experimental built-in HTTP server. Currently, when a client
  853. accesses to the server, it responds with the current download
  854. progress. By default, it is disabled. To enable the server, give
  855. --enable-http-server option. To change the default port number
  856. for the server to listen to, use --http-server-listen-port option.
  857. The response HTML is very simple and refreshes it self each 1
  858. second. Because of this refresh, you see flicker in normal web
  859. browser such as Firefox. I recommend to use console-based browser
  860. such as elinks, w3m. To connect to the server, run 'elinks
  861. http://localhost:6800/' while running aria2. Please replace port
  862. number '6800'(which is default) with your preference.
  863. * src/DownloadEngineFactory.cc
  864. * src/HttpHeader.cc
  865. * src/HttpHeader.h
  866. * src/HttpHeaderProcessor.cc
  867. * src/HttpHeaderProcessor.h
  868. * src/HttpListenCommand.cc
  869. * src/HttpListenCommand.h
  870. * src/HttpServer.cc
  871. * src/HttpServer.h
  872. * src/HttpServerCommand.cc
  873. * src/HttpServerCommand.h
  874. * src/HttpServerResponseCommand.cc
  875. * src/HttpServerResponseCommand.h
  876. * src/Makefile.am
  877. * src/OptionHandlerFactory.cc
  878. * src/Util.cc
  879. * src/Util.h
  880. * src/help_tags.h
  881. * src/option_processing.cc
  882. * src/prefs.cc
  883. * src/prefs.h
  884. * src/usage_text.h
  885. * test/HttpHeaderProcessorTest.cc
  886. * test/UtilTest.cc
  887. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  888. Removed.
  889. * src/CheckIntegrityMan.cc
  890. * src/FileAllocationMan.cc
  891. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  892. Made (piece) hash check sequential for each RequestGroup because
  893. simultaneous hash check is slower than sequential execution.
  894. * src/CheckIntegrityCommand.cc
  895. * src/CheckIntegrityDispatcherCommand.cc
  896. * src/CheckIntegrityDispatcherCommand.h
  897. * src/CheckIntegrityMan.h
  898. * src/ConsoleStatCalc.cc
  899. * src/DownloadCommand.cc
  900. * src/DownloadEngine.cc
  901. * src/DownloadEngine.h
  902. * src/DownloadEngineFactory.cc
  903. * src/Makefile.am
  904. * src/Makefile.in
  905. * src/RequestGroup.cc
  906. * src/StatCalc.h
  907. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  908. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  909. SequentialDispatcherCommand.
  910. * src/FileAllocationDispatcherCommand.cc
  911. * src/SequentialDispatcherCommand.h
  912. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  913. Rewritten FileAllocationDispatcherCommand using brand new
  914. SequentialDispatcherCommand.
  915. * src/DownloadEngineFactory.cc
  916. * src/FileAllocationCommand.cc
  917. * src/FileAllocationDispatcherCommand.cc
  918. * src/FileAllocationDispatcherCommand.h
  919. * src/Makefile.am
  920. * src/SequentialDispatcherCommand.h
  921. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  922. Replaced FileAllocationMan with
  923. SequentialPicker<FileAllocationEntry>.
  924. * src/BtCheckIntegrityEntry.cc
  925. * src/ConsoleStatCalc.cc
  926. * src/DownloadEngine.cc
  927. * src/DownloadEngine.h
  928. * src/DownloadEngineFactory.cc
  929. * src/FileAllocationCommand.cc
  930. * src/FileAllocationDispatcherCommand.cc
  931. * src/FileAllocationMan.h
  932. * src/Makefile.am
  933. * src/SequentialPicker.h
  934. * src/StatCalc.h
  935. * src/StreamCheckIntegrityEntry.cc
  936. * test/Makefile.am
  937. * test/SequentialPickerTest.cc
  938. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Added doc for adaptive URI selector.
  940. * doc/aria2c.1.txt
  941. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  942. Added doc for adaptive URI selector.
  943. * src/usage_text.h
  944. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Added doc for --bt-max-peers option.
  946. * doc/aria2c.1.txt
  947. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Added doc for --bt-hash-check-seed option.
  949. * doc/aria2c.1.txt
  950. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  951. Documented exit codes.
  952. * doc/aria2c.1.txt
  953. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  954. Added --bt-max-peers option to specify the maximum number of peers
  955. per torrent. 0 means unlimited number of peers.
  956. * src/ActivePeerConnectionCommand.cc
  957. * src/BtRuntime.h
  958. * src/DefaultPeerStorage.cc
  959. * src/DefaultPeerStorage.h
  960. * src/OptionHandlerFactory.cc
  961. * src/RequestGroup.cc
  962. * src/option_processing.cc
  963. * src/prefs.cc
  964. * src/prefs.h
  965. * src/usage_text.h
  966. * test/DefaultPeerStorageTest.cc
  967. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Added --bt-hash-check-seed option. If true is given to this
  969. option, after hash check using --check-integrity option and file
  970. is complete, continue to seed file. If you want to check file and
  971. download it only when it is damaged or incomplete, set this option
  972. to false. This option has effect only on BitTorrent download.
  973. The default value is true(This is the same behavior with the
  974. previous release).
  975. * src/BtCheckIntegrityEntry.cc
  976. * src/OptionHandlerFactory.cc
  977. * src/option_processing.cc
  978. * src/prefs.cc
  979. * src/prefs.h
  980. * src/usage_text.h
  981. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. Updated copyright year.
  983. * src/version_usage.cc
  984. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  985. Rewritten the usage text for --bt-request-peer-speed-limit option.
  986. * doc/aria2c.1.txt
  987. * src/usage_text.h
  988. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  989. Made the max value of split option unlimited.
  990. * doc/aria2c.1.txt
  991. * src/OptionHandlerFactory.cc
  992. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Fixed compile warning/error.
  994. * src/DownloadResult.h
  995. * src/HttpDownloadCommand.cc
  996. * src/ServerStat.cc
  997. * test/RequestGroupTest.cc
  998. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  999. Added --event-poll option to select the method for polling events.
  1000. The available methods are "select" and "epoll". "epoll" is
  1001. available on Linux only. The earlier release has the compile
  1002. option to choose from these methods.
  1003. * configure.ac
  1004. * src/RequestGroupMan.cc
  1005. * src/OptionHandlerFactory.cc
  1006. * src/EpollEventPoll.h
  1007. * src/StreamFileAllocationEntry.cc
  1008. * src/a2io.h
  1009. * src/SelectEventPoll.h
  1010. * src/option_processing.cc
  1011. * src/prefs.h
  1012. * src/EpollEventPoll.cc
  1013. * src/EventPoll.h
  1014. * src/SocketCore.h
  1015. * src/Makefile.am
  1016. * src/main.cc
  1017. * src/DownloadEngine.h
  1018. * src/SelectEventPoll.cc
  1019. * src/DownloadEngine.cc
  1020. * src/SocketCore.cc
  1021. * src/DownloadEngineFactory.cc
  1022. * src/Makefile.in
  1023. * src/prefs.cc
  1024. * src/usage_text.h
  1025. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1026. Included RecoverableException.h from main.cc
  1027. * src/main.cc
  1028. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1029. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1030. now returns last error encountered in the HTTP/FTP downloads as a
  1031. exit status value. If all downloads finished successfully, aria2
  1032. returns 0. The error code is defined in src/DownloadResult.h.
  1033. The error occurred in the download currently in progress is not
  1034. reported as a last error. If no error has encountered but there
  1035. are in progress or waiting downloads, aria2 returns 7.
  1036. * src/AbstractCommand.cc
  1037. * src/DlAbortEx.h
  1038. * src/DlRetryEx.h
  1039. * src/DownloadCommand.cc
  1040. * src/DownloadFailureException.h
  1041. * src/DownloadResult.h
  1042. * src/FtpNegotiationCommand.cc
  1043. * src/HttpSkipResponseCommand.cc
  1044. * src/Makefile.am
  1045. * src/MultiUrlRequestInfo.cc
  1046. * src/MultiUrlRequestInfo.h
  1047. * src/RecoverableException.h
  1048. * src/RequestGroup.cc
  1049. * src/RequestGroup.h
  1050. * src/RequestGroupMan.cc
  1051. * src/RequestGroupMan.h
  1052. * src/URIResult.cc
  1053. * src/URIResult.h
  1054. * src/main.cc
  1055. * src/option_processing.cc
  1056. * test/RequestGroupTest.cc
  1057. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1058. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1059. patch adds AdaptiveURISelector, which selects one of the bests
  1060. mirrors for first and reserved connections. For supplementary
  1061. ones, it returns mirrors which has not been tested yet, and if
  1062. each of them already tested, returns mirrors which has to be
  1063. tested again. Otherwise, it doesn't return anymore mirrors.
  1064. * src/AdaptiveURISelector.cc
  1065. * src/AdaptiveURISelector.h
  1066. * src/FtpNegotiationCommand.cc
  1067. * src/HttpResponseCommand.cc
  1068. * src/Makefile.am
  1069. * src/Makefile.in
  1070. * src/OptionHandlerFactory.cc
  1071. * src/RequestGroup.cc
  1072. * src/RequestGroup.h
  1073. * src/RequestGroupMan.cc
  1074. * src/ServerStat.cc
  1075. * src/ServerStat.h
  1076. * src/ServerStatMan.cc
  1077. * src/SpeedCalc.cc
  1078. * src/URISelector.h
  1079. * src/prefs.cc
  1080. * src/prefs.h
  1081. * test/RequestGroupManTest.cc
  1082. * test/ServerStatManTest.cc
  1083. * test/ServerStatTest.cc
  1084. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Fixed unit test error.
  1086. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1087. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1088. * Release 1.1.2
  1089. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1090. Updated Russian translation. Thanks to the translators.
  1091. * po/ru.po
  1092. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1093. Added the description of --use-head option to man page.
  1094. * doc/aria2c.1.txt
  1095. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1096. Bump up version number to 1.1.2
  1097. * configure.ac
  1098. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1099. Added --use-head option to toggle whether HEAD method should be
  1100. used in the first HTTP request. By default aria2 uses HEAD method
  1101. as the first request. When the server doesn't recognize HEAD, then
  1102. give aria2 --use-head=false to force aria2 to use GET method
  1103. instead.
  1104. * src/OptionHandlerFactory.cc
  1105. * src/RequestGroupMan.cc
  1106. * src/option_processing.cc
  1107. * src/prefs.cc
  1108. * src/prefs.h
  1109. * src/usage_text.h
  1110. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1112. message is received before CHOKE message. The old implementation
  1113. doen't clear the use-bit of the piece when recieved REJECT
  1114. message.
  1115. * src/DefaultBtMessageDispatcher.cc
  1116. * test/DefaultBtMessageDispatcherTest.cc
  1117. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. * Release 1.1.1
  1119. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1120. Bump up version number to 1.1.1.
  1121. * configure.ac
  1122. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1123. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1124. is printed repeatedly.
  1125. * src/ConsoleStatCalc.cc
  1126. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1127. * Release 1.1.0
  1128. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1129. Added ifdef clause for conditional compilation.
  1130. * src/main.cc
  1131. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1132. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1133. translations. Thanks to all translators.
  1134. * po/ja.po
  1135. * po/ru.po
  1136. * po/uk.po
  1137. * po/zh_CN.po
  1138. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1139. Added the preceding ">>> " before the message "Printing the
  1140. contents of file..." to make the output more readable.
  1141. * src/main.cc
  1142. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1143. Added try-catch block in the loop in showFiles() to continue the
  1144. operation even if the exception occurred in one file.
  1145. * src/main.cc (showFiles)
  1146. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1147. Made messages in showFiles() translatable.
  1148. * po/aria2.pot
  1149. * src/main.cc
  1150. * src/message.h
  1151. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. Print the contents of Torrent/Metalink files are printed without
  1153. -T/-M options.
  1154. * src/main.cc
  1155. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1156. Escaped '--' with '\--'
  1157. * README
  1158. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1159. Updated "How to build" section in README. Mentioned about
  1160. --with-ca-bundle compile option.
  1161. * README
  1162. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1163. Bump up version number to 1.1.0.
  1164. * configure.ac
  1165. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1166. Added a note for --dht-listen-port option.
  1167. * doc/aria2c.1.txt
  1168. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1169. Update doc for --realtime-chunk-checksum option.
  1170. * doc/aria2c.1.txt
  1171. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1172. Update doc for --realtime-chunk-checksum option.
  1173. * src/usage_text.h
  1174. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1175. Updated French, Japanese, Russian and Ukrainian translations.
  1176. Thanks to all translators.
  1177. * po/fr.po
  1178. * po/ja.po
  1179. * po/ru.po
  1180. * po/uk.po
  1181. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1182. Renamed aria2c.pot to aria2.pot
  1183. * po/aria2.pot
  1184. * po/aria2c.pot: Removed.
  1185. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Removed MetaEntry.h
  1187. * src/Makefile.am
  1188. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1189. Rename file by appending digits if a local file exists and its
  1190. file size is larger than that of remote file with --continue
  1191. option. The old implementation just throws exception in such case.
  1192. * src/RequestGroup.cc
  1193. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1194. Fixed the bug that download progress summary is not printed in the
  1195. interval specified by the option.
  1196. * src/ConsoleStatCalc.cc
  1197. * src/ConsoleStatCalc.h
  1198. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1199. Fixed compiler warning
  1200. * src/Cookie.cc
  1201. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1202. Fixed the cookie implementation based on RFC2965.
  1203. Now if a value in domain field is not started with dot, then
  1204. prepend dot. That means a cookie with domain=sf.net is sent to
  1205. wiki.sf.net.
  1206. * src/Cookie.cc
  1207. * test/CookieParserTest.cc
  1208. * test/CookieStorageTest.cc
  1209. * test/CookieTest.cc
  1210. * test/NsCookieParserTest.cc
  1211. * test/Sqlite3MozCookieParserTest.cc
  1212. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1214. is enabled and the server doesn't support keep-alive.
  1215. * src/AbstractCommand.cc
  1216. * src/DownloadCommand.cc
  1217. * src/HttpDownloadCommand.cc
  1218. * src/HttpDownloadCommand.h
  1219. * src/HttpResponseCommand.cc
  1220. * src/Request.cc
  1221. * src/Request.h
  1222. * test/RequestTest.cc
  1223. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1224. Removed Dictionary/List/Data and its related classes.
  1225. * src/BencodeVisitor.cc: Removed.
  1226. * src/BencodeVisitor.h: Removed.
  1227. * src/Data.cc: Removed.
  1228. * src/Data.h: Removed.
  1229. * src/Dictionary.cc: Removed.
  1230. * src/Dictionary.h: Removed.
  1231. * src/List.cc: Removed.
  1232. * src/List.h: Removed.
  1233. * src/Makefile.am
  1234. * src/MetaEntry.h: Removed.
  1235. * src/MetaEntryVisitor.h: Removed.
  1236. * src/MetaFileUtil.cc: Removed.
  1237. * src/MetaFileUtil.h: Removed.
  1238. * test/BencodeVisitorTest.cc: Removed.
  1239. * test/DataTest.cc: Removed.
  1240. * test/DictionaryTest.cc: Removed.
  1241. * test/ListTest.cc: Removed.
  1242. * test/Makefile.am
  1243. * test/MetaFileUtilTest.cc: Removed.
  1244. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1245. Removed include of MetaEntry.h
  1246. * test/DHTMessageTrackerEntryTest.cc
  1247. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1248. Use BDE instead of Dictionary/List/Data.
  1249. * src/AnnounceList.cc
  1250. * src/AnnounceList.h
  1251. * test/AnnounceListTest.cc
  1252. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1253. Use BDE instead of Dictionary/List/Data.
  1254. * src/DHTAbstractMessage.cc
  1255. * src/DHTAbstractMessage.h
  1256. * src/DHTAnnouncePeerMessage.cc
  1257. * src/DHTAnnouncePeerMessage.h
  1258. * src/DHTAnnouncePeerReplyMessage.cc
  1259. * src/DHTAnnouncePeerReplyMessage.h
  1260. * src/DHTFindNodeMessage.cc
  1261. * src/DHTFindNodeMessage.h
  1262. * src/DHTFindNodeReplyMessage.cc
  1263. * src/DHTFindNodeReplyMessage.h
  1264. * src/DHTGetPeersMessage.cc
  1265. * src/DHTGetPeersMessage.h
  1266. * src/DHTGetPeersReplyMessage.cc
  1267. * src/DHTGetPeersReplyMessage.h
  1268. * src/DHTMessageFactory.h
  1269. * src/DHTMessageFactoryImpl.cc
  1270. * src/DHTMessageFactoryImpl.h
  1271. * src/DHTMessageReceiver.cc
  1272. * src/DHTMessageTracker.cc
  1273. * src/DHTMessageTracker.h
  1274. * src/DHTPingMessage.cc
  1275. * src/DHTPingMessage.h
  1276. * src/DHTPingReplyMessage.cc
  1277. * src/DHTPingReplyMessage.h
  1278. * src/DHTQueryMessage.cc
  1279. * src/DHTQueryMessage.h
  1280. * src/DHTResponseMessage.cc
  1281. * src/DHTResponseMessage.h
  1282. * test/DHTAnnouncePeerMessageTest.cc
  1283. * test/DHTAnnouncePeerReplyMessageTest.cc
  1284. * test/DHTFindNodeMessageTest.cc
  1285. * test/DHTFindNodeReplyMessageTest.cc
  1286. * test/DHTGetPeersMessageTest.cc
  1287. * test/DHTGetPeersReplyMessageTest.cc
  1288. * test/DHTMessageFactoryImplTest.cc
  1289. * test/DHTMessageTrackerTest.cc
  1290. * test/DHTPingMessageTest.cc
  1291. * test/DHTPingReplyMessageTest.cc
  1292. * test/MockDHTMessageFactory.h
  1293. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1294. Added tests the case where length < 0 is specified.
  1295. * test/BencodeTest.cc
  1296. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1297. Fixed memory leak in decoderawstring()
  1298. * src/bencode.cc
  1299. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1300. Added missing #ifdef guard. Added uc() function for String and
  1301. removeKey() for Dict.
  1302. * src/bencode.cc
  1303. * src/bencode.h
  1304. * test/BencodeTest.cc
  1305. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1306. Use BDE instead of Dictionary/List/Data.
  1307. * src/HandshakeExtensionMessage.cc
  1308. * src/HandshakeExtensionMessage.h
  1309. * test/HandshakeExtensionMessageTest.cc
  1310. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1311. Added --max-overall-upload-limit option. This option limits the
  1312. overall upload speed. Stated in help message that the existing
  1313. --max-upload-limit option limits the upload speed per each
  1314. torrent. Man page is also updated.
  1315. * doc/aria2c.1.txt
  1316. * src/DefaultBtMessageDispatcher.cc
  1317. * src/DefaultBtMessageDispatcher.h
  1318. * src/OptionHandlerFactory.cc
  1319. * src/PeerInteractionCommand.cc
  1320. * src/option_processing.cc
  1321. * src/prefs.cc
  1322. * src/prefs.h
  1323. * src/usage_text.h
  1324. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1325. Use BDE instead of Dictionary/List/Data classes.
  1326. * src/CompactPeerListProcessor.cc
  1327. * src/CompactPeerListProcessor.h
  1328. * src/DefaultBtAnnounce.cc
  1329. * src/DefaultBtContext.cc
  1330. * src/DefaultBtContext.h
  1331. * src/DefaultPeerListProcessor.cc
  1332. * src/DefaultPeerListProcessor.h
  1333. * src/DelegatingPeerListProcessor.cc
  1334. * src/DelegatingPeerListProcessor.h
  1335. * src/PeerListProcessor.h
  1336. * src/UTPexExtensionMessage.cc
  1337. * src/Util.h
  1338. * src/message.h
  1339. * test/DefaultBtContextTest.cc
  1340. * test/DefaultPeerListProcessorTest.cc
  1341. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Added bencode helper functions and BDE class.
  1343. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1344. * src/Makefile.am
  1345. * src/bencode.cc
  1346. * src/bencode.h
  1347. * test/BencodeTest.cc
  1348. * test/Makefile.am
  1349. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1350. Fixed the bug that bad URI is sent to the tracker when the announe
  1351. URI in torrent file includes query.
  1352. * src/DefaultBtAnnounce.cc
  1353. * test/DefaultBtAnnounceTest.cc
  1354. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1355. Added Option::blank().
  1356. Use !Option::blank(name) instead of Option::defined(name) for
  1357. the options that take filename.
  1358. * src/MultiUrlRequestInfo.cc
  1359. * src/Option.cc
  1360. * src/Option.h
  1361. * src/main.cc
  1362. * src/option_processing.cc
  1363. * test/OptionTest.cc
  1364. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1365. Documented the default value of --check-certificate option in man
  1366. page.
  1367. * doc/aria2c.1.txt
  1368. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1369. Enabled --check-certificate by default. Added compile
  1370. time(configure) option --with-ca-bundle to specify CA bundle.
  1371. Warn if --check-certificate=true and --ca-certificate is not
  1372. specified or loading CA certificate is failed.
  1373. * configure.ac
  1374. * src/MultiUrlRequestInfo.cc
  1375. * src/OptionHandlerFactory.cc
  1376. * src/message.h
  1377. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Mentioned https tag in help option.
  1379. * doc/aria2c.1.txt
  1380. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1381. Added `https' tag to help option category. Added https tag to
  1382. --ca-certificate, --certificate, --check-certificate and
  1383. --private-key option.
  1384. * src/OptionHandlerFactory.cc
  1385. * src/help_tags.h
  1386. * src/option_processing.cc
  1387. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1388. Changed the package name from `aria2c' to `aria2' in order to fix
  1389. the packaging issue in Debian and Fedora. The name of the
  1390. executable is not changed.
  1391. * configure.ac
  1392. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Fixed typos
  1394. * src/usage_text.h
  1395. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1396. Fixed typos and updated doc.
  1397. * README
  1398. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1399. Fixed typos
  1400. * doc/aria2c.1.txt
  1401. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. Fixed typos
  1403. * src/usage_text.h
  1404. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1405. Print a message when no files to download.
  1406. * src/download_helper.cc
  1407. * src/main.cc
  1408. * src/message.h
  1409. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1410. RFC3986 complied Percent-Encoding(urlencode).
  1411. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1412. ones.
  1413. * src/Request.cc
  1414. * src/Util.cc
  1415. * src/Util.h
  1416. * test/BtHandshakeMessageTest.cc
  1417. * test/DefaultBtAnnounceTest.cc
  1418. * test/DefaultBtContextTest.cc
  1419. * test/RequestTest.cc
  1420. * test/UtilTest.cc
  1421. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1422. Fixed the bug that prevents aria2 from downloading 0-length files
  1423. via HTTP/FTP.
  1424. * src/DefaultBtContext.cc
  1425. * src/DefaultBtContext.h
  1426. * src/DownloadContext.h
  1427. * src/FtpNegotiationCommand.cc
  1428. * src/HttpResponseCommand.cc
  1429. * src/HttpResponseCommand.h
  1430. * src/RequestGroup.cc
  1431. * src/SingleFileDownloadContext.cc
  1432. * src/SingleFileDownloadContext.h
  1433. * test/BtPostDownloadHandlerTest.cc
  1434. * test/MetalinkPostDownloadHandlerTest.cc
  1435. * test/MockBtContext.h
  1436. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1438. * src/option_processing.cc
  1439. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1440. Applied aria2-1.0.1-mingw.patch.
  1441. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1442. mingw.
  1443. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1444. * src/SocketCore.cc
  1445. * src/a2netcompat.h
  1446. * test/SocketCoreTest.cc
  1447. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1448. * Release 1.0.1
  1449. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1450. Updated Ukrainian and Norwegian Nynorsk translations.
  1451. Thanks to all translators.
  1452. * po/nn.po
  1453. * po/uk.po
  1454. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1455. Don't show download result when -S option is used.
  1456. * src/main.cc
  1457. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1458. Bump up version number to 1.0.1
  1459. * configure.ac
  1460. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1461. Closed files after the test cases in MultiDiskWriterTest::
  1462. testResetDiskWriterEntries(). This will fix the unit test error
  1463. in mingw32 build.
  1464. * test/MultiDiskWriterTest.cc
  1465. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1466. Use HEAD method to get file size from HTTP server for segmented
  1467. downloading.
  1468. The request to the BitTorrent Tracker always uses GET method because
  1469. the response of the tracker is small and it doesn't need segmented
  1470. download.
  1471. * src/FtpNegotiationCommand.cc
  1472. * src/HttpRequest.cc
  1473. * src/HttpResponseCommand.cc
  1474. * src/HttpSkipResponseCommand.cc
  1475. * src/RequestGroup.cc
  1476. * src/RequestGroup.h
  1477. * src/TrackerWatcherCommand.cc
  1478. * test/HttpRequestTest.cc
  1479. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1480. Fixed the bug that causes floating exception when -T option is used and
  1481. no URIs are given.
  1482. * src/download_helper.cc
  1483. * test/DownloadHelperTest.cc
  1484. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1485. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1486. errors in MinGW:
  1487. Closed file after saving server stats (RequestGroupMan.cc)
  1488. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1489. Ignored case & handled 2-digit years (strptime.c)
  1490. Added missing suseconds_t definition (a2time.h)
  1491. Fixed socket CLOSE() define (SocketCore.cc)
  1492. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  1493. Changed utime() test values from x000 to x00000 as MinGW failed on
  1494. values less than timezone offset from Unix epoch
  1495. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  1496. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  1497. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  1498. handle negative dates (CookieParserTest.cc)
  1499. * src/a2time.h
  1500. * src/FtpConnection.cc
  1501. * src/RequestGroupMan.cc
  1502. * src/SocketCore.cc
  1503. * src/strptime.c
  1504. * test/CookieParserTest.cc
  1505. * test/CopyDiskAdaptorTest.cc
  1506. * test/FileTest.cc
  1507. * test/FtpConnectionTest.cc
  1508. * test/MultiDiskAdaptorTest.cc
  1509. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1510. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  1511. * doc/aria2c.1.txt
  1512. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1513. * Release 1.0.0
  1514. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1515. Added '~' to reserved characters.
  1516. * src/Util.cc
  1517. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1518. Do not urlencode Request::url in setUrl() because we want unmodified
  1519. URL using Request::getUrl()
  1520. * src/Request.cc
  1521. * src/Request.h
  1522. * test/RequestTest.cc
  1523. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1524. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  1525. Thanks to all translators.
  1526. * po/bg.po
  1527. * po/fr.po
  1528. * po/ja.po
  1529. * po/ru.po
  1530. * po/uk.po
  1531. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1532. Bump up version number to 1.0.0
  1533. * configure.ac
  1534. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1535. Added nosqlite3 build to build_test.sh.
  1536. Renamed noxml as expat.
  1537. * build_test.sh
  1538. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1539. Updated INPUT FILE section.
  1540. * doc/aria2c.1.txt
  1541. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1542. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  1543. on big endian systems because test .aria2 files are made for little
  1544. endian systems.
  1545. * test/DefaultBtProgressInfoFileTest.cc
  1546. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1547. Dropped ares support.
  1548. * README
  1549. * configure.ac
  1550. * m4/libares.m4: Removed.
  1551. * src/AsyncNameResolver.cc
  1552. * src/Makefile.am
  1553. * test/Makefile.am
  1554. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1555. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  1556. Removed const qualifier from DiskWriter::size().
  1557. * src/AbstractDiskWriter.cc
  1558. * src/AbstractDiskWriter.h
  1559. * src/ByteArrayDiskWriter.cc
  1560. * src/ByteArrayDiskWriter.h
  1561. * src/DiskWriter.h
  1562. * test/ByteArrayDiskWriterTest.cc
  1563. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1564. Fixed the bug that causes segmentation fault/bus error during executing
  1565. choking algorithm while seeding. This is caused by improper
  1566. implementation of compare function which returns inconsistent results
  1567. depending on the timing of last unchoke.
  1568. * src/BtSeederStateChoke.cc
  1569. * src/BtSeederStateChoke.h
  1570. * src/DefaultPeerStorage.cc
  1571. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1572. Removed TODO
  1573. * TODO
  1574. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1575. Added a section that explains how to pass argument to options that
  1576. takes optional arguments with its short form.
  1577. * doc/aria2c.1.txt
  1578. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Added -u for the short form of --max-upload-limit option.
  1580. * doc/aria2c.1.txt
  1581. * src/option_processing.cc
  1582. * src/usage_text.h
  1583. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1584. Added -V for the short form of --check-integrity option.
  1585. Now the argument of --check-integrity option is optional:
  1586. if it is omitted, it is evaluated as true.
  1587. * doc/aria2c.1.txt
  1588. * src/option_processing.cc
  1589. * src/usage_text.h
  1590. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1591. Made the default value of --ftp-pasv option set to true and it can take
  1592. true/false values.
  1593. * src/OptionHandlerFactory.cc
  1594. * src/option_processing.cc
  1595. * src/usage_text.h
  1596. * doc/aria2c.1.txt
  1597. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1598. Given custom random number generator to std::random_shuffle.
  1599. * src/AnnounceList.cc
  1600. * src/BtLeecherStateChoke.cc
  1601. * src/BtSeederStateChoke.cc
  1602. * src/DefaultBtRequestFactory.cc
  1603. * src/MetalinkEntry.cc
  1604. * src/RarestPieceSelector.cc
  1605. * src/SimpleRandomizer.cc
  1606. * src/SimpleRandomizer.h
  1607. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1608. Now the default value of --enable-direct-io is true.
  1609. * src/OptionHandlerFactory.cc
  1610. * doc/aria2c.1.txt
  1611. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1612. Erase peer before executing onReturningPeer and onErasingPeer
  1613. because choking algorithm called from onReturningPeer doesn't
  1614. like erasing peer in the active peer list.
  1615. * src/DefaultPeerStorage.cc
  1616. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1617. Instead of creating special filename in createDownloadResult() if
  1618. inMemoryDownload() is true, now it is done in getFilePath().
  1619. * src/RequestGroup.cc
  1620. * test/RequestGroupTest.cc
  1621. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1622. Print "[MEMORY]" and filename if a file is not saved in disk and just
  1623. processed in memory. This is the fix for previous comment out.
  1624. * src/MemoryBufferPreDownloadHandler.cc
  1625. * src/RequestGroup.cc
  1626. * src/RequestGroup.h
  1627. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Commented out the code which sets virtual directory path "[MEMORY]"
  1629. propagate directory to store to following RequestGroup.
  1630. * src/MemoryBufferPreDownloadHandler.cc
  1631. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1632. Bump up version number to 1.0.0b
  1633. * configure.ac
  1634. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1635. Added input_uris.txt to EXTRA_DIST
  1636. * test/Makefile.am
  1637. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1638. Removed PeerObject.h from Makefile.am
  1639. * src/Makefile.am
  1640. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1641. Avoid slow seeding
  1642. * src/PeerInteractionCommand.cc
  1643. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1644. Updated usage for -i option.
  1645. * src/usage_text.h (TEXT_INPUT_FILE)
  1646. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1647. Added INPUT FILE section to man page.
  1648. Escaped fake URLs.
  1649. * doc/aria2c.1.txt
  1650. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1651. Fixed wrong note position for -o option.
  1652. * doc/aria2c.1.txt
  1653. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1654. Fixed compile error without SSL/XML library.
  1655. * src/DefaultBtProgressInfoFile.cc
  1656. * src/DefaultBtProgressInfoFile.h
  1657. * src/FileMetalinkParserState.cc
  1658. * src/RequestGroup.h
  1659. * src/SocketCore.cc
  1660. * src/SocketCore.h
  1661. * src/VerificationMetalinkParserState.cc
  1662. * src/download_helper.h
  1663. * src/main.cc
  1664. * test/DefaultBtProgressInfoFileTest.cc
  1665. * test/DownloadHelperTest.cc
  1666. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1667. Rewritten URI handling functions. They are now provided as a testable
  1668. functions.
  1669. * src/Makefile.am
  1670. * src/RequestGroup.cc
  1671. * src/RequestGroup.h
  1672. * src/download_helper.cc
  1673. * src/download_helper.h
  1674. * src/main.cc
  1675. * test/DownloadHelperTest.cc
  1676. * test/Makefile.am
  1677. * test/input_uris.txt
  1678. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1679. Quickly terminate commands when ctrl-c is pressed.
  1680. * src/DownloadEngine.cc
  1681. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1682. Quickly terminate idle commands when download finished.
  1683. * src/AbstractCommand.cc
  1684. * src/DownloadCommand.cc
  1685. * src/DownloadEngine.cc
  1686. * src/DownloadEngine.h
  1687. * src/SleepCommand.cc
  1688. * src/SleepCommand.h
  1689. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1690. Added the ability to specify output filename and directory in input
  1691. file.
  1692. Additional parameters are added in the following line of URIs
  1693. with proceeding white space(s), 1 parameter in 1 line.
  1694. The parameter names are the same with the command-line option name
  1695. without proceeding "--". Not all the options are available here:
  1696. at the moment, 'dir' and 'out' options are avialable.
  1697. Please note that out option has no effect against Metalink or BitTorrent
  1698. downloads.
  1699. Example input file:
  1700. http://host/foo-1.1.tar.bz2
  1701. out=foo.tar.bz2
  1702. dir=/tmp/downloads
  1703. http://host/thundermonkey-2.0.tar.bz2
  1704. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1705. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1706. thundermonkey-2.0.tar.bz2 is saved as
  1707. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1708. * src/BtPostDownloadHandler.cc
  1709. * src/Metalink2RequestGroup.cc
  1710. * src/Metalink2RequestGroup.h
  1711. * src/MetalinkPostDownloadHandler.cc
  1712. * src/UriListParser.cc
  1713. * src/UriListParser.h
  1714. * src/main.cc
  1715. * test/Metalink2RequestGroupTest.cc
  1716. * test/UriListParserTest.cc
  1717. * test/filelist1.txt
  1718. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1719. Fixed error when SSL library is not found.
  1720. * configure.ac
  1721. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1722. Cross referenced among -s, -C and -j options.
  1723. Updated usage of -C and -s options.
  1724. * src/usage_text.h
  1725. * doc/aria2c.1.txt
  1726. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1727. Fixed bad cast in 32bit platforms.
  1728. * test/DefaultPieceStorageTest.cc
  1729. (DefaultPieceStorageTest::testGetCompletedLength)
  1730. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1731. Fixed unit test fails on 32bit platforms.
  1732. * test/CookieParserTest.cc
  1733. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1734. Show an average download speed in Download results.
  1735. * src/BtFileAllocationEntry.cc
  1736. * src/DefaultPieceStorage.cc
  1737. * src/DownloadContext.cc
  1738. * src/DownloadContext.h
  1739. * src/DownloadResult.h
  1740. * src/RequestGroup.cc
  1741. * src/RequestGroupMan.cc
  1742. * src/StreamFileAllocationEntry.cc
  1743. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1744. Fixed the bug that metalink file is not processed if Content-Type
  1745. field has a paramter.
  1746. * src/HttpResponse.cc
  1747. * src/HttpResponse.h
  1748. * test/HttpResponseTest.cc
  1749. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1750. Removed unused code.
  1751. * src/DefaultBtAnnounce.cc
  1752. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1753. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  1754. the value larger than DefaultPieceStorage::getTotalLength() when
  1755. in flight pieces are involved.
  1756. * src/DefaultPieceStorage.cc
  1757. * test/DefaultPieceStorageTest.cc
  1758. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1759. Bump up version number to 1.0.0a.
  1760. * configure.ac
  1761. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Updated configure.ac
  1763. * configure.ac
  1764. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1765. Added usege for proxy.
  1766. * doc/aria2c.1.txt
  1767. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1768. Added usage for --ca-certificate, --certificate, --private-key and
  1769. --check-certificate options.
  1770. * doc/aria2c.1.txt
  1771. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1772. Updated man page
  1773. * doc/aria2c.1.txt
  1774. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1775. Added --no-proxy option. It receives comman separated hostname or
  1776. domains to which proxy should not be used.
  1777. aria2 honors the environment variable no_proxy to override no-proxy
  1778. value in configuration file. The user can override the environment
  1779. variable no_proxy with --no-proxy command-line option.
  1780. * src/AbstractCommand.cc
  1781. * src/OptionHandlerFactory.cc
  1782. * src/option_processing.cc
  1783. * src/prefs.cc
  1784. * src/prefs.h
  1785. * src/usage_text.h
  1786. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1787. Added the ability to verify peer in SSL/TLS using given CA certificates.
  1788. The CA certificates are specified in --ca-certificate option.
  1789. By default, the verification is disabled. Use --check-certificate
  1790. option to enable it.
  1791. * src/HttpRequestCommand.cc
  1792. * src/LibgnutlsTLSContext.cc
  1793. * src/LibgnutlsTLSContext.h
  1794. * src/LibsslTLSContext.cc
  1795. * src/LibsslTLSContext.h
  1796. * src/MultiUrlRequestInfo.cc
  1797. * src/OptionHandlerFactory.cc
  1798. * src/SocketCore.cc
  1799. * src/SocketCore.h
  1800. * src/a2functional.h
  1801. * src/message.h
  1802. * src/option_processing.cc
  1803. * src/prefs.cc
  1804. * src/prefs.h
  1805. * src/usage_text.h
  1806. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1807. Added client certificate authentication for SSL/TLS.
  1808. Currently a private key must be decrypted for use with aria2.
  1809. If a user accidentally gives encrypted file to aria2 then following
  1810. thing happens:
  1811. If encrypted private key is given to aria2, it behaves differently
  1812. depending on the ssl library it uses. If aria2 built with openssl then
  1813. openssl prompts the user for password. If aria2 build with gnutls then
  1814. aria2 exists with error at start up.
  1815. * src/DownloadEngineFactory.cc
  1816. * src/MultiUrlRequestInfo.cc
  1817. * src/OptionHandlerFactory.cc
  1818. * src/option_processing.cc
  1819. * src/prefs.cc
  1820. * src/prefs.h
  1821. * src/usage_text.h
  1822. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1823. Introduced TLSContext that holds TLS related data that can be shared
  1824. with multiple SSL connections.
  1825. * src/DownloadEngineFactory.cc
  1826. * src/LibgnutlsTLSContext.cc
  1827. * src/LibgnutlsTLSContext.h
  1828. * src/LibsslTLSContext.cc
  1829. * src/LibsslTLSContext.h
  1830. * src/Makefile.am
  1831. * src/SocketCore.cc
  1832. * src/SocketCore.h
  1833. * src/TLSContext.h
  1834. * src/message.h
  1835. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1836. Fixed the bug that the DiskWriter of the first FileEntry whose
  1837. `needsFileAllocation' property is false is not created
  1838. even if it shares a piece with next FileEntry which `requested' property
  1839. is true.
  1840. Fixed the bug that zero-length file is not created if pre file
  1841. allocation is not done.
  1842. * src/MultiDiskAdaptor.cc
  1843. * src/MultiDiskAdaptor.h
  1844. * test/MultiDiskAdaptorTest.cc
  1845. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1846. Added the ability to pool proxy connection.
  1847. The conneciton in FTP with proxy-method=GET is not pooled.
  1848. Proxy-Connection header will not be sent when sending CONNECT method.
  1849. * src/DownloadEngine.cc
  1850. * src/DownloadEngine.h
  1851. * src/FtpFinishDownloadCommand.cc
  1852. * src/FtpInitiateConnectionCommand.cc
  1853. * src/FtpNegotiationCommand.cc
  1854. * src/HttpDownloadCommand.cc
  1855. * src/HttpInitiateConnectionCommand.cc
  1856. * src/HttpRequest.cc
  1857. * src/HttpRequest.h
  1858. * src/HttpResponse.cc
  1859. * src/HttpSkipResponseCommand.cc
  1860. * test/HttpRequestTest.cc
  1861. * test/HttpResponseTest.cc
  1862. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1863. Handle date before epoch.
  1864. To create *bad* Time object, call Time::null().
  1865. * src/CookieParser.cc
  1866. * src/FtpConnection.cc
  1867. * src/FtpConnection.h
  1868. * src/FtpNegotiationCommand.cc
  1869. * src/RequestGroup.cc
  1870. * src/TimeA2.cc
  1871. * src/TimeA2.h
  1872. * test/CookieParserTest.cc
  1873. * test/FtpConnectionTest.cc
  1874. * test/TimeTest.cc
  1875. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1876. Added support for following envrionment variables: http_proxy,
  1877. https_proxy, ftp_proxy and all_proxy.
  1878. Each variable is equivalent to the aria2 option whose name is the
  1879. variable name with '_' replaced with '-'.
  1880. They overrides options specified in aria2.conf file.
  1881. The envrionment variables can be overrode using command-line option.
  1882. * src/option_processing.cc
  1883. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1884. Renamed --http-proxy-method as --proxy-method.
  1885. * src/AbstractCommand.cc
  1886. * src/FtpInitiateConnectionCommand.cc
  1887. * src/HttpInitiateConnectionCommand.cc
  1888. * src/OptionHandlerFactory.cc
  1889. * src/option_processing.cc
  1890. * src/prefs.cc
  1891. * src/prefs.h
  1892. * src/usage_text.h
  1893. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1894. Deprecated --http-proxy-user and --http-proxy-passwd options.
  1895. Added --https-proxy, --ftp-proxy and --all-proxy options.
  1896. Above 3 options and --http-proxy option can handle proxy in URL format
  1897. like: http://user:passwd@host:port.
  1898. If a proxy requires user/password, they must be specified in a URL.
  1899. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  1900. instead.
  1901. * src/AbstractCommand.cc
  1902. * src/AbstractCommand.h
  1903. * src/AbstractProxyRequestCommand.cc
  1904. * src/AbstractProxyRequestCommand.h
  1905. * src/AuthConfigFactory.cc
  1906. * src/AuthConfigFactory.h
  1907. * src/FtpFinishDownloadCommand.cc
  1908. * src/FtpInitiateConnectionCommand.cc
  1909. * src/FtpInitiateConnectionCommand.h
  1910. * src/FtpNegotiationCommand.cc
  1911. * src/FtpTunnelRequestCommand.cc
  1912. * src/FtpTunnelRequestCommand.h
  1913. * src/HttpDownloadCommand.cc
  1914. * src/HttpInitiateConnectionCommand.cc
  1915. * src/HttpInitiateConnectionCommand.h
  1916. * src/HttpProxyRequestCommand.cc
  1917. * src/HttpProxyRequestCommand.h
  1918. * src/HttpRequest.cc
  1919. * src/HttpRequest.h
  1920. * src/HttpRequestCommand.cc
  1921. * src/HttpRequestCommand.h
  1922. * src/HttpSkipResponseCommand.cc
  1923. * src/InitiateConnectionCommand.cc
  1924. * src/InitiateConnectionCommand.h
  1925. * src/OptionHandlerFactory.cc
  1926. * src/OptionHandlerImpl.h
  1927. * src/Request.cc
  1928. * src/option_processing.cc
  1929. * src/prefs.cc
  1930. * src/prefs.h
  1931. * src/usage_text.h
  1932. * test/AuthConfigFactoryTest.cc
  1933. * test/HttpRequestTest.cc
  1934. * test/OptionHandlerTest.cc
  1935. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1936. Execute choking algorithm when unchoked and interested peer is
  1937. disconected.
  1938. * src/DefaultPeerStorage.cc
  1939. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1940. Added testcase for BtNotInterestedMessage from unchoked peer.
  1941. * test/BtNotInterestedMessageTest.cc
  1942. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1943. Execute choking algorithm when BtInterestedMessage arrives from
  1944. unchoked peer.
  1945. * src/BtInterestedMessage.cc
  1946. * src/BtInterestedMessage.h
  1947. * src/DefaultBtMessageFactory.cc
  1948. * test/BtInterestedMessageTest.cc
  1949. * test/MockPeerStorage.h
  1950. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1951. AuthConfigFactory is now part of DownloadEngine.
  1952. * src/AbstractProxyRequestCommand.cc
  1953. * src/AuthConfigFactory.h
  1954. * src/DownloadEngine.cc
  1955. * src/DownloadEngine.h
  1956. * src/FtpConnection.cc
  1957. * src/FtpConnection.h
  1958. * src/FtpNegotiationCommand.cc
  1959. * src/HttpConnection.cc
  1960. * src/HttpRequest.cc
  1961. * src/HttpRequest.h
  1962. * src/HttpRequestCommand.cc
  1963. * src/HttpResponse.cc
  1964. * src/HttpResponseCommand.cc
  1965. * src/HttpSkipResponseCommand.cc
  1966. * src/MultiUrlRequestInfo.cc
  1967. * src/main.cc
  1968. * test/FtpConnectionTest.cc
  1969. * test/HttpRequestTest.cc
  1970. * test/HttpResponseTest.cc
  1971. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1972. Corrected catched exception type.
  1973. * src/ServerStatMan.cc
  1974. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1975. DNSCache is now part of DownloadEngine.
  1976. * src/DNSCache.h
  1977. * src/DownloadEngine.cc
  1978. * src/DownloadEngine.h
  1979. * src/InitiateConnectionCommand.cc
  1980. * src/MultiUrlRequestInfo.cc
  1981. * test/Makefile.am
  1982. * test/Makefile.in
  1983. * test/SimpleDNSCacheTest.cc
  1984. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1985. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  1986. DownloadEngine.
  1987. * src/ActivePeerConnectionCommand.cc
  1988. * src/BtSetup.cc
  1989. * src/CUIDCounter.h
  1990. * src/DHTSetup.cc
  1991. * src/DownloadCommand.cc
  1992. * src/DownloadEngine.cc
  1993. * src/DownloadEngine.h
  1994. * src/DownloadEngineFactory.cc
  1995. * src/FileAllocationDispatcherCommand.cc
  1996. * src/InitiatorMSEHandshakeCommand.cc
  1997. * src/PeerInitiateConnectionCommand.cc
  1998. * src/PeerInteractionCommand.cc
  1999. * src/PeerListenCommand.cc
  2000. * src/RequestGroup.cc
  2001. * src/StreamFileAllocationEntry.cc
  2002. * src/TrackerWatcherCommand.cc
  2003. * src/main.cc
  2004. * test/RequestGroupManTest.cc
  2005. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2006. Implemented commented code in BtSeederStateChoke
  2007. * src/BtSeederStateChoke.cc
  2008. * src/Peer.cc
  2009. * src/Peer.h
  2010. * src/PeerInteractionCommand.cc
  2011. * src/PeerSessionResource.cc
  2012. * src/PeerSessionResource.h
  2013. * test/MockBtMessageDispatcher.h
  2014. * test/PeerSessionResourceTest.cc
  2015. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2016. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2017. its object.
  2018. * src/AbstractBtMessage.cc
  2019. * src/ActivePeerConnectionCommand.cc
  2020. * src/ActivePeerConnectionCommand.h
  2021. * src/BtContextAwareCommand.cc
  2022. * src/BtContextAwareCommand.h
  2023. * src/BtExtendedMessage.cc
  2024. * src/BtExtendedMessage.h
  2025. * src/BtInterestedMessage.cc
  2026. * src/BtInterestedMessage.h
  2027. * src/BtNotInterestedMessage.cc
  2028. * src/BtNotInterestedMessage.h
  2029. * src/BtRegistry.cc
  2030. * src/BtRegistry.h
  2031. * src/BtSeederStateChoke.cc
  2032. * src/BtSetup.cc
  2033. * src/DHTGetPeersCommand.cc
  2034. * src/DHTGetPeersCommand.h
  2035. * src/DHTPeerAnnounceEntry.cc
  2036. * src/DHTPeerAnnounceEntry.h
  2037. * src/DHTPeerAnnounceStorage.cc
  2038. * src/DHTPeerAnnounceStorage.h
  2039. * src/DHTPeerLookupTask.cc
  2040. * src/DHTPeerLookupTask.h
  2041. * src/DHTSetup.cc
  2042. * src/DHTSetup.h
  2043. * src/DHTTaskFactory.h
  2044. * src/DHTTaskFactoryImpl.cc
  2045. * src/DHTTaskFactoryImpl.h
  2046. * src/DefaultBtAnnounce.cc
  2047. * src/DefaultBtInteractive.cc
  2048. * src/DefaultBtInteractive.h
  2049. * src/DefaultBtMessageDispatcher.cc
  2050. * src/DefaultBtMessageDispatcher.h
  2051. * src/DefaultBtMessageFactory.cc
  2052. * src/DefaultBtMessageFactory.h
  2053. * src/DefaultBtMessageReceiver.cc
  2054. * src/DefaultBtProgressInfoFile.cc
  2055. * src/DefaultBtProgressInfoFile.h
  2056. * src/DefaultBtRequestFactory.cc
  2057. * src/DefaultBtRequestFactory.h
  2058. * src/DefaultExtensionMessageFactory.cc
  2059. * src/DefaultExtensionMessageFactory.h
  2060. * src/DefaultPeerStorage.cc
  2061. * src/DefaultPeerStorage.h
  2062. * src/DownloadEngine.cc
  2063. * src/DownloadEngine.h
  2064. * src/InitiatorMSEHandshakeCommand.cc
  2065. * src/InitiatorMSEHandshakeCommand.h
  2066. * src/MSEHandshake.cc
  2067. * src/MSEHandshake.h
  2068. * src/Makefile.am
  2069. * src/Makefile.in
  2070. * src/PeerChokeCommand.cc
  2071. * src/PeerChokeCommand.h
  2072. * src/PeerInitiateConnectionCommand.cc
  2073. * src/PeerInitiateConnectionCommand.h
  2074. * src/PeerInteractionCommand.cc
  2075. * src/PeerInteractionCommand.h
  2076. * src/PeerObject.h
  2077. * src/PeerReceiveHandshakeCommand.cc
  2078. * src/PeerReceiveHandshakeCommand.h
  2079. * src/ReceiverMSEHandshakeCommand.cc
  2080. * src/RequestGroup.cc
  2081. * src/RequestGroup.h
  2082. * src/RequestGroupMan.cc
  2083. * src/RequestGroupMan.h
  2084. * src/SeedCheckCommand.cc
  2085. * src/SeedCheckCommand.h
  2086. * src/ShareRatioSeedCriteria.h
  2087. * src/SimpleBtMessage.cc
  2088. * src/TrackerWatcherCommand.cc
  2089. * src/TrackerWatcherCommand.h
  2090. * src/UTPexExtensionMessage.cc
  2091. * src/UTPexExtensionMessage.h
  2092. * test/BtCancelMessageTest.cc
  2093. * test/BtChokeMessageTest.cc
  2094. * test/BtExtendedMessageTest.cc
  2095. * test/BtInterestedMessageTest.cc
  2096. * test/BtNotInterestedMessageTest.cc
  2097. * test/BtPieceMessageTest.cc
  2098. * test/BtPortMessageTest.cc
  2099. * test/BtRegistryTest.cc
  2100. * test/BtRejectMessageTest.cc
  2101. * test/BtRequestMessageTest.cc
  2102. * test/DHTPeerAnnounceEntryTest.cc
  2103. * test/DHTPeerAnnounceStorageTest.cc
  2104. * test/DefaultBtMessageDispatcherTest.cc
  2105. * test/DefaultBtMessageFactoryTest.cc
  2106. * test/DefaultBtProgressInfoFileTest.cc
  2107. * test/DefaultBtRequestFactoryTest.cc
  2108. * test/DefaultExtensionMessageFactoryTest.cc
  2109. * test/MSEHandshakeTest.cc
  2110. * test/MockDHTTaskFactory.h
  2111. * test/ShareRatioSeedCriteriaTest.cc
  2112. * test/UTPexExtensionMessageTest.cc
  2113. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2114. Fixed compiler warning.
  2115. * test/UtilTest.cc
  2116. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2117. Treat Cookie object as session cookie if expiry = 0 is given.
  2118. With this change, you can specify session scoped cookies in an external
  2119. file setting expiry value to 0.
  2120. * src/Cookie.cc
  2121. * src/Cookie.h
  2122. * test/CookieParserTest.cc
  2123. * test/CookieStorageTest.cc
  2124. * test/CookieTest.cc
  2125. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2126. Changed signature of DHTMessageFactory::createResponseMessage().
  2127. Removed unused validateIDMatch.
  2128. * src/DHTMessageFactory.h
  2129. * src/DHTMessageFactoryImpl.cc
  2130. * src/DHTMessageFactoryImpl.h
  2131. * src/DHTMessageTracker.cc
  2132. * test/DHTMessageFactoryImplTest.cc
  2133. * test/MockDHTMessageFactory.h
  2134. Dropped DHT message coming from same ID of localhost.
  2135. * src/DHTMessageReceiver.cc
  2136. Rejected adding node whose ID is the same as localhost's.
  2137. * src/DHTRoutingTable.cc
  2138. * test/BtPortMessageTest.cc
  2139. * test/DHTRoutingTableTest.cc
  2140. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2141. Pool connection when redirection occurs with Content-Length = 0.
  2142. * src/HttpSkipResponseCommand.cc
  2143. * src/HttpSkipResponseCommand.h
  2144. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2145. Fixed the bug that causes time out when redirection occurs with
  2146. content-length 0.
  2147. * src/HttpResponseCommand.cc
  2148. * src/HttpSkipResponseCommand.cc
  2149. * src/HttpSkipResponseCommand.h
  2150. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2151. Now each status legends is shown only when it appears in Download
  2152. Result. If Download Result has no item, then status legend will not
  2153. be printed.
  2154. * src/RequestGroupMan.cc
  2155. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2156. Removed duplicate creation of OptionHandlers.
  2157. * src/option_processing.cc
  2158. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2159. Fixed the bug that causes segmentation fault when accessing files which
  2160. don't exist or are not included in --select-file option while
  2161. validating chunk checksum.
  2162. * src/MultiDiskAdaptor.cc
  2163. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2164. Fixed compiler warning.
  2165. * test/UtilTest.cc
  2166. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2167. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2168. * src/IteratableChecksumValidator.cc
  2169. * src/IteratableChunkChecksumValidator.cc
  2170. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2171. * Release 0.16.2
  2172. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2173. Added Serbian translation. Updated Ukrainian translation.
  2174. Thanks to all translators.
  2175. * po/sr.po
  2176. * po/uk.po
  2177. * po/LINGUAS
  2178. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2179. Bump up version number to 0.16.2
  2180. * configure.ac
  2181. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2182. Added length equality test to operator== to drop a piece message
  2183. whose length does not match to the requested one.
  2184. * src/RequestSlot.cc
  2185. * test/DefaultBtMessageDispatcherTest.cc
  2186. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2187. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2188. recieved.
  2189. In this fix, if a request larger than 16KiB length is received, aria2
  2190. disconnects the peer.
  2191. * src/BtConstants.h
  2192. * src/PeerMessageUtil.cc
  2193. * src/PeerMessageUtil.h
  2194. * test/BtRequestMessageTest.cc
  2195. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2196. * Release 0.16.1
  2197. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2198. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2199. * doc/aria2c.1.txt
  2200. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2201. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2202. Updated French, Simplified Chinese and Japanese translations.
  2203. Thanks to all translators.
  2204. en@quot and en@boldquot are also added.
  2205. * po/LINGUAS
  2206. * po/fr.po
  2207. * po/ja.po
  2208. * po/uk.po
  2209. * po/vi.po
  2210. * po/zh_CN.po
  2211. * po/zh_TW.po
  2212. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2213. Bump up version number to 0.16.1.
  2214. * configure.ac
  2215. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2216. Updated README.
  2217. * README
  2218. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2219. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2220. not to replace '--' with em dash character.
  2221. * doc/aria2c.1.txt
  2222. * doc/makeman
  2223. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2224. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2225. every SEC seconds.
  2226. * src/DownloadEngineFactory.cc
  2227. * src/OptionHandlerFactory.cc
  2228. * src/option_processing.cc
  2229. * src/usage_text.h
  2230. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2231. Fixed compile warning on linux-amd64
  2232. * src/FtpConnection.cc
  2233. * src/IteratableChunkChecksumValidator.cc
  2234. * src/MultiDiskAdaptor.cc
  2235. Fixed the bug that unit test fails on linux-amd64
  2236. * test/UtilTest.cc
  2237. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2238. Added --dht-file-path option to change the path to dht.dat, which is a
  2239. serialized DHT routing table.
  2240. * src/OptionHandlerFactory.cc
  2241. * src/option_processing.cc
  2242. * src/usage_text.h
  2243. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2244. Fixed possible underflow.
  2245. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2246. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2247. Fixed the bug that last character in URI is not encoded.
  2248. * src/Request.cc
  2249. * test/RequestTest.cc
  2250. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2251. Fixed the bug that referer header field contains fragment.
  2252. Now Request class removes fragment part of URI and encodes it
  2253. in Request::setUri() and setReferer().
  2254. * src/Request.h
  2255. * src/Request.cc
  2256. * test/RequestTest.cc
  2257. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2258. Added missing m4 macros.
  2259. * m4/cppunit.m4
  2260. * m4/libgcrypt.m4
  2261. * m4/libgnutls-extra.m4
  2262. * m4/libgnutls.m4
  2263. * m4/libxml2.m4
  2264. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2265. Fixed compile error with gcc-4.4(snapshot)
  2266. * src/File.cc
  2267. * src/FtpConnection.cc
  2268. * src/OptionHandlerImpl.h
  2269. * src/Util.cc
  2270. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2271. Removed assert()
  2272. * src/SocketBuffer.cc (SocketBuffer::send)
  2273. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2274. Changed the type of _numNewConnection to unsigned int.
  2275. * src/ActivePeerConnectionCommand.cc
  2276. * src/ActivePeerConnectionCommand.h
  2277. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2278. * Release 0.16.0
  2279. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2280. Updated doc
  2281. * README
  2282. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2283. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  2284. translations. Thanks to all translators.
  2285. * po/bg.po
  2286. * po/de.po
  2287. * po/fr.po
  2288. * po/ja.po
  2289. * po/zh_CN.po
  2290. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2291. Bump up version number to 0.16.0.
  2292. * configure.ac
  2293. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2294. Casted entry->maxConnections to int32_t for std::min<T> with T =
  2295. int32_t.
  2296. Changed the type of count to int32_t.
  2297. * src/Metalink2RequestGroup.cc
  2298. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2299. Added test for Time::elapsed(time_t).
  2300. * test/TimeTest.cc
  2301. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2302. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  2303. Util::difftv() should be used instead.
  2304. * src/TimeA2.cc
  2305. * src/TimeA2.h
  2306. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2307. Made socket for dht connections non-blocking
  2308. * src/DHTAbstractMessage.cc
  2309. * src/DHTAbstractMessage.h
  2310. * src/DHTConnection.h
  2311. * src/DHTConnectionImpl.cc
  2312. * src/DHTConnectionImpl.h
  2313. * src/DHTMessage.h
  2314. * src/DHTMessageDispatcherImpl.cc
  2315. * src/DHTMessageDispatcherImpl.h
  2316. * src/DHTUnknownMessage.cc
  2317. * src/DHTUnknownMessage.h
  2318. * src/SocketCore.cc
  2319. * src/SocketCore.h
  2320. * test/MockDHTMessage.h
  2321. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2322. Changed the type of offset to int.
  2323. * src/ParameterizedStringParser.cc
  2324. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2325. Made getAsInt() return int32_t
  2326. * src/Option.h
  2327. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2328. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  2329. build.
  2330. * configure.ac
  2331. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2332. Use sqlite3_open if sqlite3_open_v2 is not available.
  2333. * src/Sqlite3MozCookieParser.cc
  2334. * src/Sqlite3MozCookieParser.h
  2335. * m4/sqlite3.m4
  2336. * test/Sqlite3MozCookieParserTest.cc
  2337. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2338. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  2339. * src/BtPieceMessage.cc
  2340. * src/DHTPeerAnnounceStorage.cc
  2341. * src/DefaultPieceStorage.cc
  2342. * src/DownloadCommand.cc
  2343. * src/DownloadEngine.cc
  2344. * src/FtpConnection.cc
  2345. * src/PeerConnection.cc
  2346. * src/PeerMessageUtil.cc
  2347. * src/RequestGroup.cc
  2348. * src/RequestGroupMan.cc
  2349. * src/SimpleBtMessage.cc
  2350. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2351. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2352. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2353. * src/AbstractDiskWriter.cc
  2354. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2355. Don't set Request::supportsPersistentConnection() in HttpConnection
  2356. since this code is also used in AbstractProxyResponseCommand.
  2357. Moved those code to HttpResponse.
  2358. * src/HttpResponse.cc
  2359. * src/HttpResponse.h
  2360. * src/HttpConnection.cc
  2361. * src/HttpConnection.h
  2362. * src/HttpResponseCommand.cc
  2363. * test/HttpResponseTest.cc
  2364. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2365. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2366. The configuration is minimum: no torrent, no metalink, so there may be
  2367. other compile error on their code.
  2368. * src/a2netcompat.h
  2369. * src/File.cc
  2370. * src/File.h
  2371. * src/SocketCore.cc
  2372. * src/SocketCore.h
  2373. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2374. Made a socket of incoming peer non-blocking.
  2375. * src/PeerListenCommand.cc
  2376. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2377. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2378. whole message data is not sent in one send() call.
  2379. * src/BtPieceMessage.cc
  2380. * src/BtPieceMessage.h
  2381. * src/PeerConnection.cc
  2382. * src/PeerConnection.h
  2383. * src/SimpleBtMessage.cc
  2384. * src/SimpleBtMessage.h
  2385. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2386. Fixed the bug that aria2 downloads faster than max-download-limit when
  2387. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2388. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2389. , instead of sum of them.
  2390. * src/ActivePeerConnectionCommand.cc
  2391. * src/DefaultBtInteractive.cc
  2392. * src/DownloadCommand.cc
  2393. * src/PeerInteractionCommand.cc
  2394. * src/PeerReceiveHandshakeCommand.cc
  2395. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2396. Fixed the bug that HTTPS download fails.
  2397. * src/AbstractCommand.cc
  2398. * src/AbstractCommand.h
  2399. * src/DownloadCommand.cc
  2400. * src/FtpConnection.cc
  2401. * src/HttpConnection.cc
  2402. * src/HttpRequestCommand.cc
  2403. * src/HttpResponseCommand.cc
  2404. * src/HttpSkipResponseCommand.cc
  2405. * src/MSEHandshake.cc
  2406. * src/PeerConnection.cc
  2407. * src/SocketCore.cc
  2408. * src/SocketCore.h
  2409. Fixed the bug that aria2 doesn't download whole content body and cannot
  2410. reuse connection if chunked transfer encoding and gzip content encoding
  2411. are set.
  2412. * src/DownloadCommand.cc
  2413. * src/HttpSkipResponseCommand.cc
  2414. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2415. Updated man page.
  2416. * doc/aria2c.1.txt
  2417. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2418. When error occurred while aria2 was parsing an .aria2.conf file, print
  2419. the usage of the option that caused error.
  2420. * src/option_processing.cc
  2421. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2422. Fixed compile error on OptionHandlerException
  2423. * src/Makefile.am
  2424. * src/OptionHandlerException.cc
  2425. * src/OptionHandlerException.h
  2426. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2427. Moved message of the error to OptionHandlerException.h
  2428. * src/NameMatchOptionHandler.h
  2429. * src/OptionHandlerException.h
  2430. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2431. When error occurs while aria2 is parsing an command-line option, print
  2432. the usage of the option.
  2433. * src/Makefile.am
  2434. * src/NameMatchOptionHandler.h
  2435. * src/OptionHandlerException.h
  2436. * src/option_processing.cc
  2437. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2438. Reverted previous change.
  2439. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2440. username is not in URI.
  2441. * src/HttpRequest.cc
  2442. * src/Request.cc
  2443. * test/HttpRequestTest.cc
  2444. * test/RequestTest.cc
  2445. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2446. Now colon is required for username and password in FTP URL, like:
  2447. ftp://username:password@host.
  2448. If colon is not there, aria2 don't parse it as a username. For example,
  2449. aria2 don't retrieve username from ftp://username@host.
  2450. This fix was made in order to login FTP server via non-transparent ftp
  2451. proxy.
  2452. * src/Request.cc
  2453. * test/RequestTest.cc
  2454. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2455. Use netrc for HTTP.
  2456. Now FTP user/password is sent in Authorization header when
  2457. --ftp-via-http-proxy=get is given.
  2458. * src/AuthConfigFactory.cc
  2459. * src/HttpRequest.cc
  2460. * src/HttpRequest.h
  2461. * src/NetrcAuthResolver.cc
  2462. * src/NetrcAuthResolver.h
  2463. * src/OptionHandlerFactory.cc
  2464. * src/option_processing.cc
  2465. * src/prefs.cc
  2466. * src/prefs.h
  2467. * test/AuthConfigFactoryTest.cc
  2468. * test/HttpRequestTest.cc
  2469. * test/NetrcAuthResolverTest.cc
  2470. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2471. Issue PWD command first and get working directory and use it as a prefix
  2472. for CWD command.
  2473. * src/DownloadEngine.cc
  2474. * src/DownloadEngine.h
  2475. * src/FtpConnection.cc
  2476. * src/FtpConnection.h
  2477. * src/FtpFinishDownloadCommand.cc
  2478. * src/FtpInitiateConnectionCommand.cc
  2479. * src/FtpNegotiationCommand.cc
  2480. * src/FtpNegotiationCommand.h
  2481. * test/FtpConnectionTest.cc
  2482. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2483. Removed default user/pass for FTP user/pass, since it should not have
  2484. precedence over netrc configuration by default.
  2485. * src/OptionHandlerFactory.cc
  2486. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2487. Added debug log for socket event.
  2488. * src/AbstractCommand.cc
  2489. * src/PeerAbstractCommand.cc
  2490. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2491. Log microseconds.
  2492. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  2493. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2494. Replaced HelpItem.cc with OptionHandler.cc.
  2495. * po/POTFILES.in
  2496. Updated po files with 'make update-po'
  2497. * po/aria2c.pot
  2498. * po/*.po
  2499. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2500. Removed possible values from the text.
  2501. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  2502. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2503. Removed unused preferences:
  2504. PREF_NO_PREALLOCATION
  2505. PREF_STDOUT_LOG
  2506. PREF_TRACKER_MAX_TRIES
  2507. PREF_DIRECT_DOWNLOAD_TIMEOUT
  2508. PREF_MIN_SEGMENT_SIZE
  2509. * src/option_processing.cc
  2510. * src/prefs.cc
  2511. * src/prefs.h
  2512. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2513. Integrated HelpItem into OptionParser to ease the workload for adding
  2514. new options. Removed default value from usage text.
  2515. * src/HelpItem.cc: Removed.
  2516. * src/HelpItem.h: Removed.
  2517. * src/HelpItemFactory.cc: Removed.
  2518. * src/HelpItemFactory.h: Removed.
  2519. * src/Makefile.am
  2520. * src/Makefile.in
  2521. * src/NameMatchOptionHandler.h
  2522. * src/OptionHandler.cc
  2523. * src/OptionHandler.h
  2524. * src/OptionHandlerFactory.cc
  2525. * src/OptionHandlerImpl.h
  2526. * src/OptionParser.cc
  2527. * src/OptionParser.h
  2528. * src/TagContainer.cc: Removed.
  2529. * src/TagContainer.h: Removed.
  2530. * src/TaggedItem.cc: Removed.
  2531. * src/TaggedItem.h: Removed.
  2532. * src/main.cc
  2533. * src/option_processing.cc
  2534. * src/usage_text.h
  2535. * src/version_usage.cc
  2536. * test/HelpItemTest.cc: Removed.
  2537. * test/Makefile.am
  2538. * test/Makefile.in
  2539. * test/OptionHandlerTest.cc
  2540. * test/OptionParserTest.cc
  2541. * test/TagContainerTest.cc: Removed.
  2542. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2543. Moved `TransferStat stat = ...' to inside the `if' clause.
  2544. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  2545. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2546. Fixed the bug that a block in a piece is requested when same block is
  2547. already requested to the same peer in end game mode.
  2548. * src/BtRequestFactory.h
  2549. * src/DefaultBtInteractive.cc
  2550. * src/DefaultBtRequestFactory.cc
  2551. * src/DefaultBtRequestFactory.h
  2552. * src/DefaultPieceStorage.cc
  2553. * src/DefaultPieceStorage.h
  2554. * src/PieceStorage.h
  2555. * src/UnknownLengthPieceStorage.cc
  2556. * src/UnknownLengthPieceStorage.h
  2557. * test/DefaultBtRequestFactoryTest.cc
  2558. * test/DefaultPieceStorageTest.cc
  2559. * test/MockBtRequestFactory.h
  2560. * test/MockPieceStorage.h
  2561. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2562. Removed _uploadLength and _downloadLength from PeerSessionResource
  2563. and use PeerStat::_sessionUploadLength and
  2564. PeerStat::_sessionDownloadLength.
  2565. * src/PeerSessionResource.cc
  2566. * src/PeerSessionResource.h
  2567. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2568. Fixed the bug that prefixLength of split bucket which doesn't include
  2569. local node ID is incremented.
  2570. * src/DHTBucket.cc
  2571. * src/DHTBucket.h
  2572. * test/DHTBucketTest.cc
  2573. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2574. Added cookies.sqlite to EXTRA_DIST
  2575. * test/Makefile.am
  2576. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2577. Added Turkish translation. Updated French, German, Russian and
  2578. Simplified Chinese translations. Thanks to all translators.
  2579. * po/LINGUAS
  2580. * po/de.po
  2581. * po/fr.po
  2582. * po/ru.po
  2583. * po/tr.po
  2584. * po/zh_CN.po
  2585. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2586. Added deliminating text to the beginning of the log so that one can find
  2587. where the log starts easily.
  2588. * src/main.cc
  2589. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2590. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  2591. to fix compile error when async DNS is not enabled by configuration.
  2592. * src/AbstractCommand.cc
  2593. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2594. If establishing conneciton to a server is failed, then mark error on
  2595. its ServerStat.
  2596. Added the cause of error to log when error event occurred.
  2597. Moved message string to message.h for translation.
  2598. * src/AbstractCommand.cc
  2599. * src/AbstractCommand.h
  2600. * src/FtpNegotiationCommand.cc
  2601. * src/HttpRequestCommand.cc
  2602. * src/PeerAbstractCommand.cc
  2603. * src/message.h
  2604. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2605. Added the function to get error message from socket.
  2606. * src/SocketCore.cc
  2607. * src/SocketCore.h
  2608. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2609. Added convenient method RequestGroupMan::getOrCreateServerStat()
  2610. * src/RequestGroupMan.cc
  2611. * src/RequestGroupMan.h
  2612. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2613. If error event is received in epoll, then abort download immediately.
  2614. * src/AbstractCommand.cc
  2615. * src/Command.cc
  2616. * src/Command.h
  2617. * src/DownloadEngine.cc
  2618. * src/PeerAbstractCommand.cc
  2619. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2620. Added usage message for --uri-selector, --server-stat-of,
  2621. --server-stat-in, --server-stat-timeout options.
  2622. * src/HelpItemFactory.cc
  2623. * src/usage_text.h
  2624. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2625. Added upper limit of FTP response buffer. The current implementation
  2626. uses 4096bytes as a limit.
  2627. * src/FtpConnection.cc
  2628. * src/FtpConnection.h
  2629. * test/FtpConnectionTest.cc
  2630. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2631. Use non-blocking socket for TCP communication to avoid possible
  2632. blocking due to buffer full.
  2633. * src/AbstractProxyRequestCommand.cc
  2634. * src/FtpConnection.cc
  2635. * src/FtpConnection.h
  2636. * src/FtpNegotiationCommand.cc
  2637. * src/FtpNegotiationCommand.h
  2638. * src/HttpConnection.cc
  2639. * src/HttpConnection.h
  2640. * src/HttpRequestCommand.cc
  2641. * src/InitiatorMSEHandshakeCommand.cc
  2642. * src/InitiatorMSEHandshakeCommand.h
  2643. * src/MSEHandshake.cc
  2644. * src/MSEHandshake.h
  2645. * src/Makefile.am
  2646. * src/PeerConnection.cc
  2647. * src/PeerConnection.h
  2648. * src/PeerInteractionCommand.cc
  2649. * src/PeerListenCommand.cc
  2650. * src/ReceiverMSEHandshakeCommand.cc
  2651. * src/ReceiverMSEHandshakeCommand.h
  2652. * src/SocketBuffer.cc
  2653. * src/SocketBuffer.h
  2654. * src/SocketCore.cc
  2655. * src/SocketCore.h
  2656. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2657. Call setStatusRealtime() in constructor.
  2658. * src/RealtimeCommand.cc
  2659. * src/RealtimeCommand.h
  2660. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2661. Call Download::setNoWait(true) to execute newly created command without
  2662. a pause.
  2663. * src/AbstractCommand.cc
  2664. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2665. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2666. found' error from HTTP/FTP server NUM times without getting single
  2667. bytes of data, then force the download to fail.
  2668. Basically aria2 tris all URIs available. So if long list of URIs are
  2669. specified in Metalink, then aria2 will take a long time to fail
  2670. eventually if all URIs are outdated. This option eases this situation
  2671. to limit the number of servers to try.
  2672. * src/FtpNegotiationCommand.cc
  2673. * src/HelpItemFactory.cc
  2674. * src/HttpResponseCommand.cc
  2675. * src/OptionHandlerFactory.cc
  2676. * src/PeerStat.h
  2677. * src/RequestGroup.cc
  2678. * src/RequestGroup.h
  2679. * src/SegmentMan.cc
  2680. * src/SegmentMan.h
  2681. * src/option_processing.cc
  2682. * src/prefs.cc
  2683. * src/prefs.h
  2684. * src/usage_text.h
  2685. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2686. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2687. response even if more than one response is in it.
  2688. * src/FtpConnection.cc
  2689. * src/FtpConnection.h
  2690. * test/FtpConnectionTest.cc
  2691. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2692. Merged from stable-0.15
  2693. * m4/libcares.m4
  2694. Use pkg-config
  2695. * m4/sqlite3.m4
  2696. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2697. Removed unnecessary if statement.
  2698. * src/DefaultPieceStorage.cc (initPieceStorage)
  2699. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2700. Added --connect-timeout option to specify connect timeout in seconds.
  2701. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2702. connecting to BitTorrent peer is not controlled by this option.
  2703. * src/AbstractProxyRequestCommand.cc
  2704. * src/FtpNegotiationCommand.cc
  2705. * src/HelpItemFactory.cc
  2706. * src/HttpRequestCommand.cc
  2707. * src/OptionHandlerFactory.cc
  2708. * src/option_processing.cc
  2709. * src/prefs.cc
  2710. * src/prefs.h
  2711. * src/usage_text.h
  2712. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2713. Added help message for -R option.
  2714. * src/HelpItemFactory.cc
  2715. * src/usage_text.h
  2716. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2717. Added the message that the time is in local time zone.
  2718. * src/RequestGroup.cc
  2719. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2720. Implemented the ability to get timestamp from remote FTP server using
  2721. MDTM command described in RFC3659.
  2722. * src/FtpConnection.cc
  2723. * src/FtpConnection.h
  2724. * src/FtpNegotiationCommand.cc
  2725. * src/FtpNegotiationCommand.h
  2726. * test/FtpConnectionTest.cc
  2727. * test/Makefile.am
  2728. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2729. Implemented the ability to get timestamp from remote HTTP server and
  2730. apply it to local file. To enable this feature, --remote-time option
  2731. is added. No usage text has been written yet.
  2732. If several servers returns difference timestamp, then aria2 uses latest
  2733. one.
  2734. * src/CopyDiskAdaptor.cc
  2735. * src/CopyDiskAdaptor.h
  2736. * src/DirectDiskAdaptor.cc
  2737. * src/DirectDiskAdaptor.h
  2738. * src/DiskAdaptor.h
  2739. * src/File.cc
  2740. * src/File.h
  2741. * src/HttpHeader.cc
  2742. * src/HttpHeader.h
  2743. * src/HttpResponse.cc
  2744. * src/HttpResponse.h
  2745. * src/HttpResponseCommand.cc
  2746. * src/HttpResponseCommand.h
  2747. * src/MultiDiskAdaptor.cc
  2748. * src/MultiDiskAdaptor.h
  2749. * src/OptionHandlerFactory.cc
  2750. * src/RequestGroup.cc
  2751. * src/RequestGroup.h
  2752. * src/RequestGroupMan.cc
  2753. * src/option_processing.cc
  2754. * src/prefs.cc
  2755. * src/prefs.h
  2756. * test/CopyDiskAdaptorTest.cc
  2757. * test/FileTest.cc
  2758. * test/Makefile.am
  2759. * test/Makefile.in
  2760. * test/MultiDiskAdaptorTest.cc
  2761. * test/TestUtil.cc
  2762. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2763. Fixed the bug that DiskWriterEntry is not created when its
  2764. FileEntry.isRequested() is false and it doesn't share a piece with
  2765. other FileEntries that are requested. This bug causes segmentation fault
  2766. in the end.
  2767. * src/MultiDiskAdaptor.cc
  2768. * src/MultiDiskAdaptor.h
  2769. * src/MultiFileAllocationIterator.cc
  2770. * test/MultiDiskAdaptorTest.cc
  2771. * test/MultiFileAllocationIteratorTest.cc
  2772. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2773. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  2774. called if the number of file entries are greater than max open files.
  2775. * src/AbstractSingleDiskAdaptor.cc
  2776. * src/AbstractSingleDiskAdaptor.h
  2777. * src/DiskAdaptor.h
  2778. * src/MultiDiskAdaptor.cc
  2779. * src/MultiDiskAdaptor.h
  2780. * test/MultiDiskAdaptorTest.cc
  2781. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2782. Added a constuctor that receives struct timeval.
  2783. Added operator<.
  2784. * src/TimeA2.cc
  2785. * src/TimeA2.h
  2786. * test/TimeTest.cc
  2787. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2788. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  2789. * src/CookieParser.cc
  2790. * test/CookieParserTest.cc
  2791. * test/HttpResponseTest.cc
  2792. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2793. Implmented the functions to parse date.
  2794. * src/TimeA2.cc
  2795. * src/TimeA2.h
  2796. * test/TimeTest.cc
  2797. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2798. Added "Firefox3 Cookie" feature to FeatureConfig
  2799. * src/FeatureConfig.cc
  2800. * src/FeatureConfig.h
  2801. * test/FeatureConfigTest.cc
  2802. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2803. Bump up version number to 0.16.0b
  2804. * configure.ac
  2805. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2806. Use pkg-config if is is available.
  2807. * m4/openssl.m4
  2808. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2809. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  2810. * src/BtAnnounce.h
  2811. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2812. If an error occurred with a URI, remove identical URI from remaining
  2813. URI list because it is likely that same error occurred in the end and it
  2814. is waste of time.
  2815. * src/AbstractCommand.cc
  2816. * src/RequestGroup.cc
  2817. * src/RequestGroup.h
  2818. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2819. Removed wrong comment.
  2820. * src/DefaultPeerStorage.cc
  2821. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2822. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  2823. Added return value of getpid() to argument of srand() to achieve more
  2824. randomized value.
  2825. * src/SimpleRandomizer.cc
  2826. * src/SimpleRandomizer.h
  2827. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2828. Contact tracker frequently when the number of connections are 0 and
  2829. download is not finished yet.
  2830. * src/ActivePeerConnectionCommand.cc
  2831. * src/BtAnnounce.h
  2832. * src/DefaultBtAnnounce.cc
  2833. * src/DefaultBtAnnounce.h
  2834. * test/MockBtAnnounce.h
  2835. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2836. Moved threshold values to UTPexExtensionMessage.
  2837. * src/DefaultBtInteractive.cc
  2838. * src/Peer.cc
  2839. * src/Peer.h
  2840. * src/UTPexExtensionMessage.cc
  2841. * src/UTPexExtensionMessage.h
  2842. * test/UTPexExtensionMessageTest.cc
  2843. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2844. Added _incoming member to Peer class and made it true if the peer
  2845. initiated connection. Don't add those peer to UTPex message.
  2846. If extended handshake is received, assign _incoming to false.
  2847. * src/DefaultBtInteractive.cc
  2848. * src/HandshakeExtensionMessage.cc
  2849. * src/Peer.cc
  2850. * src/Peer.h
  2851. * src/PeerListenCommand.cc
  2852. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2853. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  2854. Encoding Decoder. Removed size threshold for turning off on the fly
  2855. inflation because resulting file may or may not be inflated depending
  2856. on the file size and I think it is not expected by users.
  2857. This change fixes segmentation fault when Metalink file contains gzipped
  2858. file and its filesize is provided.
  2859. * src/HttpResponseCommand.cc
  2860. * src/HttpResponseCommand.h
  2861. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2862. Made Cookie immutable.
  2863. * src/Cookie.cc
  2864. * src/Cookie.h
  2865. * src/CookieParser.cc
  2866. * src/CookieParser.h
  2867. * src/CookieStorage.cc
  2868. * test/CookieParserTest.cc
  2869. * test/CookieStorageTest.cc
  2870. * test/NsCookieParserTest.cc
  2871. * test/Sqlite3MozCookieParserTest.cc
  2872. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2873. Removed CookieBox, CookieBoxFactory.
  2874. * src/CookieBox.cc
  2875. * src/CookieBox.h
  2876. * src/CookieBoxFactory.cc
  2877. * src/CookieBoxFactory.h
  2878. * src/Makefile.am
  2879. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2880. Use CookieStorage class instead of CookieBox class.
  2881. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  2882. * src/AbstractProxyRequestCommand.cc
  2883. * src/CookieStorage.cc
  2884. * src/DownloadEngine.cc
  2885. * src/DownloadEngine.h
  2886. * src/HttpConnection.cc
  2887. * src/HttpConnection.h
  2888. * src/HttpRequest.cc
  2889. * src/HttpRequest.h
  2890. * src/HttpRequestCommand.cc
  2891. * src/HttpResponse.cc
  2892. * src/HttpResponseCommand.cc
  2893. * src/HttpSkipResponseCommand.cc
  2894. * src/Makefile.am
  2895. * src/MultiUrlRequestInfo.cc
  2896. * src/Request.cc
  2897. * src/Request.h
  2898. * src/main.cc
  2899. * test/AllTest.cc
  2900. * test/CookieStorageTest.cc
  2901. * test/CookieTest.cc
  2902. * test/HttpRequestTest.cc
  2903. * test/HttpResponseTest.cc
  2904. * test/Makefile.am
  2905. * test/NsCookieParserTest.cc
  2906. * test/Sqlite3MozCookieParserTest.cc
  2907. * test/nscookietest.txt
  2908. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2909. Updated
  2910. * test/Cookies.sqlite
  2911. * test/nscookietest.txt
  2912. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2913. Added tests for CookieStorage::load()
  2914. * test/CookieStorageTest.cc
  2915. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2916. Added CookieStorage class which is based on RFC2109 and manages cookies
  2917. more strictly than CookieBox and CookieBoxFactory class.
  2918. * src/CookieStorage.cc
  2919. * src/CookieStorage.h
  2920. * src/Cookie.cc
  2921. * src/Cookie.h
  2922. * test/CookieStorageTest.cc
  2923. * test/CookieTest.cc
  2924. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2925. Fixed the bug that commands are created more than the number of pieces.
  2926. * src/RequestGroup.cc
  2927. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2928. Fixed infinite loop bug in FTP when SIZE command failed.
  2929. * src/FtpNegotiationCommand.cc
  2930. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2931. Removed DirectDiskAdaptorTest.h
  2932. * test/Makefile.am
  2933. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2934. Fixed chunk checksum validation cannot detect trailing garbage data.
  2935. BUG#2074141
  2936. * src/AbstractSingleDiskAdaptor.cc
  2937. * src/AbstractSingleDiskAdaptor.h
  2938. * src/CheckIntegrityEntry.cc
  2939. * src/CheckIntegrityEntry.h
  2940. * src/DiskAdaptor.h
  2941. * src/MultiDiskAdaptor.cc
  2942. * src/MultiDiskAdaptor.h
  2943. * src/RequestGroup.cc
  2944. * test/DirectDiskAdaptorTest.cc
  2945. * test/MultiDiskAdaptorTest.cc
  2946. * test/TestUtil.cc
  2947. * test/TestUtil.h
  2948. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2949. Bump up version number of dht.dat file to 3. In version 3 format, time
  2950. is stored in 64bit, network byte order.
  2951. New build can load old format(version 2) but it saves the file in new
  2952. format. It means once you used new build, your dht.dat becomes
  2953. incompatible with older build.
  2954. * src/DHTRoutingTableDeserializer.cc
  2955. * src/DHTRoutingTableSerializer.cc
  2956. * test/DHTRoutingTableSerializerTest.cc
  2957. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2958. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  2959. * test/Makefile.am
  2960. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2961. Bump up version number of .aria2 control file to 0001.
  2962. New aria2 can still load version 0000 file but it saves the file in
  2963. version 0001 format. It means that new aria2 can resume download
  2964. started by old aria2 but the opposite is not true.
  2965. * src/DefaultBtProgressInfoFile.cc
  2966. * src/DefaultBtProgressInfoFile.h
  2967. * test/DefaultBtProgressInfoFileTest.cc
  2968. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2969. Added ntoh64 and hton64 as inline functions.
  2970. * src/Util.cc
  2971. * test/UtilTest.cc
  2972. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2973. Added sqlite3 depenency and Firefox3 cookie support.
  2974. * README
  2975. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2976. State that firefox3 cookie is supported explicitly in the usage.
  2977. * src/usage_text.h
  2978. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2979. Externalized message.
  2980. * src/RequestGroupMan.cc
  2981. * src/message.h
  2982. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2983. Save temporary file first and rename to the destination on success.
  2984. Added test cases.
  2985. * src/RequestGroupMan.cc
  2986. * test/RequestGroupManTest.cc
  2987. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2988. Fixed the bug that the number of connected peer is exceeding the limit
  2989. (55 by default) in seeding mode.
  2990. Multiplied 0.8 to _maxUploadSpeedLimit.
  2991. * src/ActivePeerConnectionCommand.cc
  2992. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2993. Clear table item.
  2994. * src/Dictionary.cc
  2995. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2996. Fixed error handling of lseek.
  2997. * src/AbstractDiskWriter.cc
  2998. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2999. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3000. style cookie file.
  3001. * src/usage_text.h
  3002. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3003. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3004. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3005. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3006. * src/Util.cc
  3007. * src/Util.h
  3008. * src/CookieParser.cc
  3009. * test/UtilTest.cc
  3010. * test/CookieParserTest.cc
  3011. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3012. Separate the implementation to load old mozilla format of cookie to
  3013. NsCookieParser class.
  3014. * src/CookieBoxFactory.cc
  3015. * src/CookieBoxFactory.h
  3016. * src/NsCookieParser.cc
  3017. * src/NsCookieParser.h
  3018. * test/NsCookieParserTest.cc
  3019. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3020. Made parse() const
  3021. * src/Sqlite3MozCookieParser.cc
  3022. * src/Sqlite3MozCookieParser.h
  3023. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3024. Added firefox3 cookie support based on the patch submitted by
  3025. tizianomueller.
  3026. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3027. this functionality.
  3028. * configure.ac
  3029. * m4/sqlite3.m4
  3030. * src/CookieBoxFactory.cc
  3031. * src/CookieBoxFactory.h
  3032. * src/Makefile.am
  3033. * src/Makefile.in
  3034. * src/Sqlite3MozCookieParser.cc
  3035. * src/Sqlite3MozCookieParser.h
  3036. * src/main.cc
  3037. * test/CookieBoxFactoryTest.cc
  3038. * test/Makefile.am
  3039. * test/Makefile.in
  3040. * test/Sqlite3MozCookieParserTest.cc
  3041. * test/badcookies.sqlite
  3042. * test/cookies.sqlite
  3043. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3044. Added Danish and Greek translations.
  3045. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3046. Great thanks to all translators.
  3047. * po/LINGUAS
  3048. * po/el.po
  3049. * po/da.po
  3050. * po/es.po
  3051. * po/ca.po
  3052. * po/nn.po
  3053. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3054. Fixed man page: --follow-bittorrent should be --follow-torrent
  3055. * doc/aria2c.1.txt
  3056. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3057. Fixed: numCommand is less than the value specified in -C option.
  3058. * src/RequestGroup.cc
  3059. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3060. Fixed occasional assertion failure in PieceSegment.
  3061. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3062. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3063. creation of duplicate segments and one of the segment was finished then
  3064. assertion failure was caused.
  3065. * src/SegmentMan.cc
  3066. * test/SegmentManTest.cc
  3067. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3068. Added options to load/save the server's performance/status to a file
  3069. and the timeout to drop their data.
  3070. --server-stat-of=FILE specifies the file to which performance data
  3071. is saved.
  3072. --server-stat-if=FILE specifies the file to read previously saved
  3073. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3074. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3075. TIMEOUT is specified in seconds and the default value is 24hours.
  3076. * src/MultiUrlRequestInfo.cc
  3077. * src/OptionHandlerFactory.cc
  3078. * src/RequestGroupMan.cc
  3079. * src/RequestGroupMan.h
  3080. * src/ServerStatMan.cc
  3081. * src/ServerStatMan.h
  3082. * src/option_processing.cc
  3083. * src/prefs.cc
  3084. * src/prefs.h
  3085. * test/ServerStatManTest.cc
  3086. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3087. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3088. * src/ServerStatMan.cc
  3089. * src/ServerStatMan.h
  3090. * test/ServerStatManTest.cc
  3091. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3092. Implemented ServerStatMan::load(...) function and its test case.
  3093. * src/ServerStat.cc
  3094. * src/ServerStat.h
  3095. * src/ServerStatMan.cc
  3096. * test/ServerStatManTest.cc
  3097. * test/ServerStatTest.cc
  3098. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3099. Use time_t instead of int32_t. Use int64_t where milli second is
  3100. expected.
  3101. * src/TimeA2.cc
  3102. * src/TimeA2.h
  3103. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3104. Implemented ServerStatMan::save(...) function and its test case.
  3105. * src/ServerStat.cc
  3106. * src/ServerStat.h
  3107. * src/ServerStatMan.cc
  3108. * src/ServerStatMan.h
  3109. * test/ServerStatManTest.cc
  3110. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3111. Now aria2 uses name attribute in Metalink as local filename in
  3112. BitTorrent downloads. BUG#2033999
  3113. * src/BtContext.h
  3114. * src/BtDependency.cc
  3115. * src/DefaultBtContext.cc
  3116. * src/DefaultBtContext.h
  3117. * src/SingleFileDownloadContext.cc
  3118. * src/SingleFileDownloadContext.h
  3119. * test/BtDependencyTest.cc
  3120. * test/DefaultBtContextTest.cc
  3121. * test/MockBtContext.h
  3122. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3123. Added AC_C_BIGENDIAN
  3124. * src/configure.ac
  3125. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3126. Limited numCommand less than or equal to the number of piece.
  3127. * src/RequestGroup.cc
  3128. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3129. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3130. directive.
  3131. * test/DefaultPieceStorageTest.cc
  3132. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3133. Fixed memory leak in test code
  3134. * test/AnnounceListTest.cc
  3135. * test/DefaultPeerListProcessorTest.cc
  3136. * test/DefaultPeerStorageTest.cc
  3137. * test/MetaFileUtilTest.cc
  3138. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3139. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3140. * src/DefaultPieceStorage.cc
  3141. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3142. Initialized _directIOAllowed
  3143. * src/MultiDiskAdaptor.cc
  3144. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3145. Fixed memory leak
  3146. * src/GZipDecoder.cc
  3147. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3148. Fixed memory leak
  3149. * src/MetalinkParserStateMachine.cc
  3150. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3151. Fixed memory leak
  3152. * src/Dictionary.cc
  3153. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3154. Fixed memory leak
  3155. * src/IteratableChunkChecksumValidator.h
  3156. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3157. Fixed unmatched malloc/free.
  3158. * src/IteratableChunkChecksumValidator.cc
  3159. * src/IteratableChecksumValidator.cc
  3160. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3161. Removed max chunk size check. This change fixes BUG#2040169
  3162. * src/ChunkedDecoder.cc
  3163. * src/ChunkedDecoder.h
  3164. * test/ChunkedDecoderTest.cc
  3165. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3166. Implemented download speed based URI selection algorithm.
  3167. Introduced new option --uri-selector.
  3168. If --uri-selector=feedback is given, aria2 uses download speed observed
  3169. in the previous downloads and chooses fastest server in the URI list.
  3170. Currently at most 10 URIs are considered to introduce randomeness for
  3171. finding better servers. The speed is average download speed in the
  3172. downloads.
  3173. On the other hand, if --uri-selector=inorder is given, which is default,
  3174. URI is tried in order in URI list.
  3175. The usage text for the new option has not been written yet.
  3176. * src/AbstractCommand.cc
  3177. * src/DownloadCommand.cc
  3178. * src/DownloadEngine.cc
  3179. * src/DownloadEngineFactory.cc
  3180. * src/InOrderURISelector.cc
  3181. * src/InOrderURISelector.h
  3182. * src/OptionHandlerFactory.cc
  3183. * src/PeerStat.h
  3184. * src/RequestGroup.cc
  3185. * src/RequestGroup.h
  3186. * src/RequestGroupMan.cc
  3187. * src/RequestGroupMan.h
  3188. * src/SegmentMan.cc
  3189. * src/SegmentMan.h
  3190. * src/ServerStat.cc
  3191. * src/ServerStat.h
  3192. * src/ServerStatMan.cc
  3193. * src/ServerStatMan.h
  3194. * src/ServerStatURISelector.cc
  3195. * src/ServerStatURISelector.h
  3196. * src/URISelector.h
  3197. * src/option_processing.cc
  3198. * src/prefs.cc
  3199. * src/prefs.h
  3200. * test/InOrderURISelectorTest.cc
  3201. * test/RequestGroupManTest.cc
  3202. * test/ServerStatManTest.cc
  3203. * test/ServerStatURISelectorTest.cc
  3204. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3205. * Release 0.15.1+2
  3206. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3207. Bump up version number to 0.15.1+2
  3208. * configure.ac
  3209. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3210. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3211. * m4/aria2_arg.m4
  3212. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3213. * Release 0.15.1+1
  3214. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3215. Bump up version number to 0.15.1+1
  3216. * configure.ac
  3217. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3218. Fixed the bug that causes segmentaion fault when resuming download
  3219. using metalink without size tag. Reproducible only using HTTP URI.
  3220. * src/HttpResponseCommand.cc
  3221. * src/FtpNegotiationCommand.cc
  3222. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3223. * Release 0.15.1
  3224. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3225. Updated Bulgarian and French translations, thanks to all translators.
  3226. * po/bg.po
  3227. * po/fr.po
  3228. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3229. Bump up version number to 0.15.1
  3230. * configure.ac
  3231. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3232. Avoid repeated call of gettimeofday() when calculating speed.
  3233. * src/SpeedCalc.cc
  3234. * src/SpeedCalc.h
  3235. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3236. Removed writable check when socket's send buffer is full in BitTorrent
  3237. downloads to lower CPU usage.
  3238. * src/PeerInteractionCommand.cc
  3239. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3240. Fixed broken gzip inflation.
  3241. Turn off segmented downloading if gzip content is smaller than or equal
  3242. to 1MiB and inflate the data on the fly, because HTTP response header
  3243. doesn't contain the length of inflated file we can't determin where
  3244. the chunk of data should be written.
  3245. On the other hand, if gzip content is larger than 1MB, then turn off
  3246. on the fly inflation, because some servers returns "content-type: gzip"
  3247. for *.tgz, *.gz files.
  3248. * src/DownloadCommand.cc
  3249. * src/HttpResponseCommand.cc
  3250. * src/HttpResponseCommand.h
  3251. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3252. Applied tizianomueller's patch to fix compile error.
  3253. * test/BitfieldManTest.cc
  3254. * test/BtRequestMessageTest.cc
  3255. * test/DefaultBtContextTest.cc
  3256. * test/DefaultDiskWriterTest.cc
  3257. * test/DefaultPieceStorageTest.cc
  3258. * test/HttpHeaderProcessorTest.cc
  3259. * test/HttpResponseTest.cc
  3260. * test/Metalink2RequestGroupTest.cc
  3261. * test/MetalinkParserControllerTest.cc
  3262. * test/MetalinkProcessorTest.cc
  3263. * test/PeerSessionResourceTest.cc
  3264. * test/UtilTest.cc
  3265. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3266. * Release 0.15.0
  3267. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3268. Reordered src files in POTFILES.in so that usage text appears first.
  3269. * po/POTFILES.in
  3270. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Bump up version number to 0.15.0
  3272. * configure.ac
  3273. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3274. Added Bulgarian translation.
  3275. Updated Catalan, Spanish, French and Japanese translations.
  3276. Thanks to all translators.
  3277. * po/LINGUAS
  3278. * po/bg.po
  3279. * po/ca.po
  3280. * po/es.po
  3281. * po/fr.po
  3282. * po/ja.po
  3283. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3284. Updated feature list. Added libz for dependency section.
  3285. Added a description about unit testing using CppUnit.
  3286. * README
  3287. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3288. Added a test for libz. Quoted where it is necessary.
  3289. * build_test.sh
  3290. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3291. Added GZip to `Enabled Features' list.
  3292. * src/FeatureConfig.cc
  3293. * src/FeatureConfig.h
  3294. * test/FeatureConfigTest.cc
  3295. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3296. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  3297. the transfer has not yet started.
  3298. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  3299. * src/SegmentMan.cc
  3300. * src/SegmentMan.h
  3301. * test/SegmentManTest.cc
  3302. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3303. Cache last calculated average download/upload speed.
  3304. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  3305. cached value.
  3306. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  3307. * src/PeerStat.h
  3308. * src/SpeedCalc.cc
  3309. * src/SpeedCalc.h
  3310. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3311. Call parseUrl directly.
  3312. * src/Request.cc (resetUrl)
  3313. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3314. Supported absolute/relative path in Location header field.
  3315. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  3316. * src/HttpHeader.cc
  3317. * src/HttpHeader.h
  3318. * src/HttpResponse.cc
  3319. * src/HttpSkipResponseCommand.cc
  3320. * src/Request.cc
  3321. * test/HttpHeaderTest.cc
  3322. * test/HttpResponseTest.cc
  3323. * test/RequestTest.cc
  3324. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3325. Changed help text for --load-cookie option.
  3326. * doc/aria2c.1.txt
  3327. * src/usage_text.h
  3328. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3329. Regenerated test/Makefile.in to remove stale ChangeLog.
  3330. * test/Makefile.in
  3331. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3332. Updated po files.
  3333. * po/aria2c.pot
  3334. * po/*.po
  3335. * po/*.gmo
  3336. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3337. Bump up version number to 0.15.0b
  3338. * configure.ac
  3339. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3340. Externalize messages.
  3341. * src/RequestGroupMan.cc
  3342. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3343. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3344. Use File::exists() instead of File::isFile() to allow non-regular file
  3345. such as block special files.
  3346. * src/AbstractDiskWriter.cc
  3347. * src/MultiDiskWriter.cc
  3348. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3349. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3350. * src/gai_strerror.h
  3351. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Fixed compile error. Thanks gknauf for the patch.
  3353. * src/asctime_r.c
  3354. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. Included asctime_r.h from a2time.h.
  3356. * src/a2time.h
  3357. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3358. Added a message "aria2 doesn't verify signature" to log message when
  3359. signature file is saved.
  3360. * src/RequestGroupMan.cc
  3361. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3362. Added the ability to save signature when download is completed if
  3363. signature is available. The filename of signature file is the path to
  3364. download file followed by ".sig". If it already exists, then signature
  3365. will not be saved.
  3366. * src/RequestGroupMan.cc
  3367. * src/Signature.cc
  3368. * test/SignatureTest.cc
  3369. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3370. Updated the descriptions for --bt-seed-unverified.
  3371. * doc/aria2c.1
  3372. * doc/aria2c.1.html
  3373. * doc/aria2c.1.txt
  3374. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3375. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3376. that this is not going to verify files using piece hashes.
  3377. * src/HelpItemFactory.cc
  3378. * src/OptionHandlerFactory.cc
  3379. * src/RequestGroup.cc
  3380. * src/option_processing.cc
  3381. * src/prefs.cc
  3382. * src/prefs.h
  3383. * src/usage_text.h
  3384. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3385. Added the ability to retrieve signature from Metalink file.
  3386. A retrieved signature is stored in Signature class and it is held by
  3387. DownloadContext class. Note that aria2 doesn't verify signature.
  3388. * src/DownloadContext.cc
  3389. * src/DownloadContext.h
  3390. * src/Makefile.am
  3391. * src/Makefile.in
  3392. * src/Metalink2RequestGroup.cc
  3393. * src/MetalinkEntry.cc
  3394. * src/MetalinkEntry.h
  3395. * src/MetalinkParserController.cc
  3396. * src/MetalinkParserController.h
  3397. * src/MetalinkParserStateMachine.cc
  3398. * src/MetalinkParserStateMachine.h
  3399. * src/Signature.cc
  3400. * src/Signature.h
  3401. * src/SignatureMetalinkParserState.cc
  3402. * src/SignatureMetalinkParserState.h
  3403. * src/VerificationMetalinkParserState.cc
  3404. * src/VerificationMetalinkParserState.h
  3405. * test/Metalink2RequestGroupTest.cc
  3406. * test/MetalinkParserControllerTest.cc
  3407. * test/MetalinkProcessorTest.cc
  3408. * test/test.xml
  3409. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3410. Close DiskAdaptor after renaming file.
  3411. * src/RequestGroup.cc
  3412. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3413. Corrected indentation
  3414. * src/DefaultBtProgressInfoFile.cc
  3415. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3416. Moved the calls of std::ios::exceptions() inside of try-catch block
  3417. because if an error occurred in constructor of std::fstream, then
  3418. exception is thrown immediately when std::ios::exceptions() is called
  3419. which results unhandled exception and aria2c aborts.
  3420. * src/DefaultBtProgressInfoFile.cc
  3421. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3422. Added the test for the previous change in DefaultBtContext.cc
  3423. * test/DefaultBtContextTest.cc
  3424. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3425. Fixed the bug that causes infinite loop when the number of pieces are
  3426. fewer than allowed fast set size which is 10 by default.
  3427. * src/DefaultBtContext.cc
  3428. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3429. Updated the descriptions for -j, -s. Added --bt-seed.
  3430. * doc/aria2c.1
  3431. * doc/aria2c.1.html
  3432. * doc/aria2c.1.txt
  3433. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3434. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3435. aria2 seeds previously downloaded files without validating piece hashs.
  3436. * src/HelpItemFactory.cc
  3437. * src/OptionHandlerFactory.cc
  3438. * src/RequestGroup.cc
  3439. * src/option_processing.cc
  3440. * src/prefs.cc
  3441. * src/prefs.h
  3442. * src/usage_text.h
  3443. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3444. Updated DESCRIPTION of man page.
  3445. * doc/aria2c.1
  3446. * doc/aria2c.1.html
  3447. * doc/aria2c.1.txt
  3448. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3449. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3450. Don't define `struct addrinfo' when __sun is defined.
  3451. * src/getaddrinfo.h
  3452. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3453. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3454. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3455. second argument is of type `struct _stati64'. Otherwise it is defined as
  3456. `struct stat'.
  3457. * src/AbstractDiskWriter.cc
  3458. * src/File.cc
  3459. * src/File.h
  3460. * src/a2io.h
  3461. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3462. Fixed the compile error in hurd-i386
  3463. See the original bug report:
  3464. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3465. * src/a2io.h
  3466. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3467. Code cleanup.
  3468. * src/PeerAbstractCommand.cc
  3469. * src/PeerAbstractCommand.h
  3470. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3471. Removed TransferEncoding.
  3472. * src/DownloadCommand.cc
  3473. * src/DownloadCommand.h
  3474. * src/HttpResponseCommand.cc
  3475. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3476. Updated po files.
  3477. * po/aria2c.pot
  3478. * po/*.po
  3479. * po/*.gmo
  3480. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3481. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3482. * src/A2STR.cc
  3483. * src/A2STR.h
  3484. * src/ChunkedDecoder.cc
  3485. * src/ChunkedDecoder.h
  3486. * src/ChunkedEncoding.cc: Removed
  3487. * src/ChunkedEncoding.h: Removed
  3488. * src/DownloadCommand.cc
  3489. * src/DownloadCommand.h
  3490. * src/HttpDownloadCommand.cc
  3491. * src/HttpResponse.cc
  3492. * src/HttpResponse.h
  3493. * src/HttpResponseCommand.cc
  3494. * src/HttpSkipResponseCommand.cc
  3495. * src/HttpSkipResponseCommand.h
  3496. * src/Makefile.am
  3497. * src/TransferEncoding.h: Removed
  3498. * test/ChunkedDecoderTest.cc
  3499. * test/ChunkedEncodingTest.cc: Removed
  3500. * test/HttpResponseTest.cc
  3501. * test/Makefile.am
  3502. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3503. Use append instead of insert.
  3504. * src/GZipDecoder.cc
  3505. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3506. Updated doc
  3507. * src/Decoder.h
  3508. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3509. Updated usage text for -s option.
  3510. * src/usage_text.h
  3511. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3512. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  3513. * src/Request.cc
  3514. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3515. Cleaned up configure.ac.
  3516. * configure.ac
  3517. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3518. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  3519. AC_ARG_ENABLE.
  3520. * configure.ac
  3521. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3522. Added gzip, deflate decoding support in HTTP using libz. If compiled
  3523. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  3524. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  3525. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  3526. fly and writes decoded data to a local disk.
  3527. * README
  3528. * README.html
  3529. * configure.ac
  3530. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  3531. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  3532. * m4/libz.m4
  3533. * src/Decoder.h
  3534. * src/DownloadCommand.cc
  3535. * src/DownloadCommand.h
  3536. * src/Exception.h
  3537. * src/GZipDecoder.cc
  3538. * src/GZipDecoder.h
  3539. * src/HttpHeader.cc
  3540. * src/HttpHeader.h
  3541. * src/HttpRequest.cc
  3542. * src/HttpRequest.h
  3543. * src/HttpResponse.cc
  3544. * src/HttpResponse.h
  3545. * src/HttpResponseCommand.cc
  3546. * src/Makefile.am
  3547. * test/GZipDecoderTest.cc
  3548. * test/HttpRequestTest.cc
  3549. * test/HttpResponseTest.cc
  3550. * test/Makefile.am
  3551. * test/Makefile.in
  3552. * test/gzip_decode_test.gz
  3553. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3554. Clarified usage of -j option.
  3555. * src/usage_text.h
  3556. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3557. Disabled getting size from the response of RETR.
  3558. If SIZE command failed, then disable resuming and segmented downloading.
  3559. * src/FtpConnection.cc
  3560. * src/FtpConnection.h
  3561. * src/FtpNegotiationCommand.cc
  3562. * src/FtpNegotiationCommand.h
  3563. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3564. Use digits to find first byte of file size, which makes the intention
  3565. of the code clearer.
  3566. * src/FtpConnection.cc
  3567. Don't call validateTotalLength() when size is 0.
  3568. * src/FtpNegotiationCommand.cc
  3569. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3570. Updated po files.
  3571. * po/aria2c.pot
  3572. * po/*.gmo
  3573. * po/*.po
  3574. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Clarified usage text for --split option.
  3576. * src/usage_text.h
  3577. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3578. Bump up version number to 0.15.0dev. "dev" means "development"
  3579. version, which means I started the development of the next release!
  3580. * src/configure.ac
  3581. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3582. If FTP server returns negative response with REST raw command and
  3583. requested range is not 0, throw exception. If requested range is 0,
  3584. continue download a file from 0 byte.
  3585. * src/FtpNegotiationCommand.cc
  3586. * src/FtpNegotiationCommand.h
  3587. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3588. Supported FTP server which don't recognize SIZE raw command.
  3589. If SIZE raw command is failed, aria2 will try to get file size
  3590. from the response of RETR raw command. If both attempts are failed,
  3591. then resuming and segmented downloading are disabled.
  3592. * src/FtpConnection.cc
  3593. * src/FtpConnection.h
  3594. * src/FtpNegotiationCommand.cc
  3595. * src/FtpNegotiationCommand.h
  3596. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3597. * Release 0.14.0+1
  3598. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3599. Bump up version number to 0.14.0+1
  3600. * src/configure.ac
  3601. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3602. Fixed the code that refers static member variable from non-static
  3603. context.
  3604. * src/DefaultPeerStorage.cc
  3605. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3606. * Release 0.14.0
  3607. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3608. Added build test script
  3609. * build_test.sh
  3610. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3611. Updated ja.po
  3612. * src/ja.po
  3613. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3614. Bump up version number to 0.14.0
  3615. * src/configure.ac
  3616. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3617. Updated ja.po and fr.po. Great thanks for french translators and
  3618. Sebastien WILLEMIJNS.
  3619. * po/fr.po
  3620. * po/ja.po
  3621. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3622. Added configure option to enable/disable epoll support.
  3623. * configure.ac
  3624. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3625. Updated man page.
  3626. * doc/aria2c.1.txt
  3627. * doc/aria2c.1
  3628. * doc/aria2c.1.html
  3629. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3630. Added missing default value '5' to the usage of --split option.
  3631. * src/HelpItemFactory.cc
  3632. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3633. Filled up pieces based on the number of missing blocks, rather than
  3634. simplay the number of piece * block length.
  3635. * src/BtRequestFactory.h
  3636. * src/DefaultBtInteractive.cc
  3637. * src/DefaultBtInteractive.h
  3638. * src/DefaultBtRequestFactory.cc
  3639. * src/DefaultBtRequestFactory.h
  3640. * src/Piece.cc
  3641. * src/Piece.h
  3642. * test/BitfieldManTest.cc
  3643. * test/DefaultBtRequestFactoryTest.cc
  3644. * test/MockBtRequestFactory.h
  3645. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3646. Made _epEvents a member variable.
  3647. * src/DownloadEngine.cc
  3648. * src/DownloadEngine.h
  3649. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3650. Cancel download if http redirect is bounded more than 20 times.
  3651. * src/AbstractCommand.cc
  3652. * src/HttpSkipResponseCommand.cc
  3653. * src/Request.cc
  3654. * src/Request.h
  3655. * test/RequestTest.cc
  3656. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3657. Fixed unhandled exception(removed keyword `new').
  3658. * src/SocketCore.cc (initEPOLL)
  3659. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3660. Removed visit(const MetaEntry*)
  3661. * src/MetaEntryVisitor.h:
  3662. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3663. and made them virtual.
  3664. * src/BencodeVisitor.h
  3665. * src/BencodeVisitor.cc
  3666. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3667. Updated po files.
  3668. * po/aria2c.pot
  3669. * po/*.po
  3670. * po/*.gmo
  3671. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3672. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3673. the number of socket to watch out.
  3674. * src/PeerInteractionCommand.cc
  3675. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3676. When there is not enough space in disk when writing a chunk of data,
  3677. aria2 now prints the message to the console to warn user and aborts
  3678. its download. Not all downloads are canceled because some downloads
  3679. may use another disk or partition. BUG#1640332
  3680. * src/AbstractDiskWriter.cc
  3681. * src/PeerAbstractCommand.cc
  3682. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3683. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3684. setHaltRequested(true) to cancel download.
  3685. * src/PeerInteractionCommand.h
  3686. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3687. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3688. socket from int to sock_t as sockets are unsigned in Windows.
  3689. For AsyncNameResolver, DownloadEngine, I did additional modification
  3690. for the portion of the code changed according to epoll support.
  3691. I defined sock_t in a2netcompat.h to use sock_t without including
  3692. SocketCore.h.
  3693. * src/AsyncNameResolver.cc
  3694. * src/AsyncNameResolver.h
  3695. * src/DownloadEngine.cc
  3696. * src/DownloadEngine.h
  3697. * src/SocketCore.cc
  3698. * src/SocketCore.h
  3699. * src/a2netcompat.h
  3700. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3701. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3702. changes in the patch were applied.
  3703. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3704. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3705. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3706. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3707. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3708. a2io.h and common.h were modified.
  3709. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3710. MinGW.
  3711. * src/common.h: Changed off_t to 64 bit in MinGW.
  3712. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3713. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3714. only a2netcompat.h is modified.
  3715. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3716. directives.
  3717. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3718. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3719. only gai_strerror.h is modified.
  3720. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3721. winsock errors in MinGW.
  3722. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3723. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3724. follow sources are applied.
  3725. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3726. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3727. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3728. I included locale.h from Platform.cc.
  3729. * src/main.cc: Moved common setup/teardown code to Platform class.
  3730. * test/AllTest.cc: Use Platform class.
  3731. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3732. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3733. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3734. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3735. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3736. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3737. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3738. aria2-0.13.2+1-mingw-2.patch.
  3739. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3740. systems which don't have termious.h. I moved the directive inside of
  3741. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3742. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3743. anyway.
  3744. * src/asctime_r.h
  3745. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3746. I added 2nd argument to the prototype declaration.
  3747. * src/StringFormat.cc: Get rid of vasprintf.
  3748. * src/getaddrinfo.h: Fixed constants.
  3749. * configure.ac: Added the check for asctime_r function.
  3750. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3751. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3752. Added writable test for Socket when the sending message is in progress.
  3753. Usually the sending message is piece message. Without wriable check,
  3754. upload latency is dropped to more than 1sec.
  3755. * src/PeerInteractionCommand.cc
  3756. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3757. Create only requested files and files which shares a piece with
  3758. requested file in multi-torrent downloads. Directory structures are
  3759. also created in the same rule.
  3760. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  3761. DiskWriterEntry as in the previous implementation.
  3762. * src/MultiDiskWriter.cc
  3763. * src/MultiFileAllocationIterator.cc
  3764. * src/MultiFileAllocationIterator.h
  3765. * test/MultiFileAllocationIteratorTest.cc
  3766. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3767. Commented out -lprofiler
  3768. * src/Makefile.am
  3769. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3770. Bump up version number to 0.14.0b.
  3771. * src/configure.ac
  3772. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3773. Actively establish connection to peers in seeding, when peer cache
  3774. is not full and max upload speed limit is not reached.
  3775. * src/ActivePeerConnectionCommand.cc
  3776. * src/ActivePeerConnectionCommand.h
  3777. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3778. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  3779. to make room more fleshy, recently found peers.
  3780. Peer::_badConditionStartTime is not used anymore. Consider to remove
  3781. it.
  3782. * src/DefaultPeerStorage.cc
  3783. * test/DefaultPeerStorageTest.cc
  3784. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3785. Returns cached data only when the previous receiveHandshake() is called
  3786. with peek = true.
  3787. * src/PeerConnection.cc (receiveHandshake)
  3788. * src/PeerConnection.h (receiveHandshake)
  3789. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3790. Changed default value of -s option from 1 to 5.
  3791. Also max value of -s option is changed from 5 to 16.
  3792. * src/HelpItemFactory.cc
  3793. * src/OptionHandlerFactory.cc
  3794. * src/option_processing.cc
  3795. * src/usage_text.h
  3796. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3797. Changed -s options behavior. Now it means the number of connections
  3798. made simultaneously in each http/ftp download.
  3799. If 1 URL is specified, the behavior is the same with old implementation.
  3800. If -s N is given and more than N URLs are specified, first N URLs are
  3801. used and remaining URLs are used for backup. If less than N URLs are
  3802. specified, some of URLs are used more than once so that totally N
  3803. connections are made simultaneously.
  3804. * src/main.cc
  3805. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3806. Included missing iosfwd or ostream header.
  3807. * src/RequestGroupMan.cc
  3808. * src/TaggedItem.cc
  3809. * src/TaggedItem.h
  3810. * src/Util.cc
  3811. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3812. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  3813. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  3814. * src/HttpConnection.cc: Included missing sstream.
  3815. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3816. Added --bt-max-open-files option.
  3817. * src/DefaultPieceStorage.cc
  3818. * src/HelpItemFactory.cc
  3819. * src/MultiDiskAdaptor.cc
  3820. * src/MultiDiskAdaptor.h
  3821. * src/OptionHandlerFactory.cc
  3822. * src/option_processing.cc
  3823. * src/prefs.cc
  3824. * src/prefs.h
  3825. * src/usage_text.h
  3826. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3827. Fixed the bug that aria2 aborts when a path to a directory is given
  3828. in command-line.
  3829. * src/ProtocolDetector.cc
  3830. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3831. Limited the number files opened in each BitTorrent download. The default
  3832. value is 100. The option to change this value will be added.
  3833. * src/MultiDiskAdaptor.cc
  3834. * src/MultiDiskAdaptor.h
  3835. * src/MultiFileAllocationIterator.cc
  3836. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3837. Fixed the bug that HTTP downloads don't start with old libraries.
  3838. * src/HttpHeaderProcessor.cc
  3839. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3840. Use empty() instead of size() > 0.
  3841. * src/HttpConnection.cc
  3842. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3843. Drop connection if the incoming peer ID is the same with localhost's
  3844. one. The previous implementation drops connection when incoming peer's
  3845. IP address is the same with localhost's one.
  3846. * src/PeerListenCommand.cc
  3847. * src/DefaultBtInteractive.cc
  3848. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3849. Returns cached data without checking whether socket is readable
  3850. if the cache is available.
  3851. * src/PeerConnection.cc (receiveHandshake)
  3852. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3853. Included stdint.h
  3854. * src/common.h
  3855. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3856. Removed duplicate HAVE_GETTIMEOFDAY
  3857. * src/Makefile.am
  3858. * src/Makefile.in
  3859. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3860. Use interval as a minInterval when minInterval is not supplied.
  3861. * src/DefaultBtAnnounce.cc
  3862. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3863. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  3864. attempt is failed, then 2nd attempt get kicked out more quickly.
  3865. And it is now static const member of DefaultBtAnnounce.
  3866. * src/DefaultBtAnnounce.h
  3867. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3868. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  3869. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  3870. * src/ActivePeerConnectionCommand.cc
  3871. * src/BtConstants.h
  3872. * src/BtRuntime.h
  3873. * src/DHTGetPeersCommand.cc
  3874. * src/DefaultBtAnnounce.cc
  3875. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  3876. BtRuntime::MAX_PEERS.
  3877. * src/DefaultPeerStorage.h
  3878. * src/InitiatorMSEHandshakeCommand.cc
  3879. * src/PeerInitiateConnectionCommand.cc
  3880. * src/PeerInteractionCommand.cc
  3881. * src/PeerReceiveHandshakeCommand.cc
  3882. * src/TrackerWatcherCommand.cc
  3883. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3884. Always Connect to _numNewConnection
  3885. * src/ActivePeerConnectionCommand.cc
  3886. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3887. Made `begin' unsigned int.
  3888. * src/GrowSegment.h
  3889. * src/Piece.cc
  3890. * src/Piece.h
  3891. * src/PiecedSegment.cc
  3892. * src/PiecedSegment.h
  3893. * src/Segment.h
  3894. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3895. Calculate piece hash when data is arrived if the data is arrived in
  3896. order. This removes additional read operation for hash calculation.
  3897. If the data is arrived in out of order, the hash is calucated when the
  3898. piece is completed. This is the same behavior as the old implementation.
  3899. * src/BtPieceMessage.cc
  3900. * src/DefaultBtProgressInfoFile.cc
  3901. * src/DefaultPieceStorage.cc
  3902. * src/DownloadCommand.cc
  3903. * src/DownloadCommand.h
  3904. * src/DownloadEngine.cc
  3905. * src/GrowSegment.cc
  3906. * src/GrowSegment.h
  3907. * src/Piece.cc
  3908. * src/Piece.h
  3909. * src/PiecedSegment.cc
  3910. * src/PiecedSegment.h
  3911. * src/Segment.h
  3912. * test/PieceTest.cc
  3913. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3914. Try to keep the ordering of outgoing piece message.
  3915. * src/DefaultBtMessageDispatcher.cc
  3916. (DefaultBtMessageDispatcher::sendMessages)
  3917. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3918. Fixed busy loop when error/hup epoll events occur.
  3919. * src/AbstractCommand.cc
  3920. * src/PeerAbstractCommand.cc
  3921. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3922. Added --bt-request-peer-speed-limit option, which was a constant
  3923. SLOW_SPEED_THRESHOLD.
  3924. * src/ActivePeerConnectionCommand.cc
  3925. * src/ActivePeerConnectionCommand.h
  3926. * src/BtConstants.h
  3927. * src/HelpItemFactory.cc
  3928. * src/OptionHandlerFactory.cc
  3929. * src/PeerReceiveHandshakeCommand.cc
  3930. * src/option_processing.cc
  3931. * src/prefs.cc
  3932. * src/prefs.h
  3933. * src/usage_text.h
  3934. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3935. Removed repeated call of getTopDirPath(). Instead, call it once and
  3936. cache the result.
  3937. * src/MultiDiskAdaptor.cc
  3938. * src/MultiDiskAdaptor.h
  3939. (mkdir, openFile, initAndOpenFile, openExistingFile)
  3940. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3941. Fixed compile error on debian etch.
  3942. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  3943. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  3944. it is undefined.
  3945. * src/Util.cc (ULLONG_MAX)
  3946. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3947. Added epoll support. Use epoll if it is available. If not, use select.
  3948. When async dns is enabled in compile time, epoll support is enabled
  3949. only when aria2 is built with c-ares. This condition statement is
  3950. defined in a2io.h.
  3951. Currently aria2 supports both c-ares and ares, but ares is maintained
  3952. for quite a while and debian already has c-ares package, ares support
  3953. will be dropped in the future version.
  3954. * configure.ac
  3955. * src/AbstractCommand.cc
  3956. * src/AsyncNameResolver.cc
  3957. * src/AsyncNameResolver.h
  3958. * src/Command.cc
  3959. * src/Command.h
  3960. * src/DownloadEngine.cc
  3961. * src/DownloadEngine.h
  3962. * src/PeerAbstractCommand.cc
  3963. * src/SocketCore.cc
  3964. * src/SocketCore.h
  3965. * src/a2io.h
  3966. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3967. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  3968. directive.
  3969. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3970. Do not do write operation to /dev/null file.
  3971. * src/LogFactory.cc
  3972. * src/SimpleLogger.cc
  3973. Replaced vasprintf with vsnprintf
  3974. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3975. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3976. * src/BtRequestMessage.cc
  3977. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  3978. for segmentation fault caused by previous commit.
  3979. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3980. Reduced the usage of gettimeofday().
  3981. * src/DefaultBtMessageDispatcher.cc
  3982. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  3983. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3984. * src/RequestSlot.cc
  3985. * src/RequestSlot.h
  3986. (RequestSlot::isTimeout)
  3987. Made RequestSlot have a reference to Piece object to avoid find
  3988. Piece repeatedly.
  3989. * src/DefaultBtMessageDispatcher.cc
  3990. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3991. * src/RequestSlot.cc
  3992. * src/RequestSlot.h
  3993. (RequestSlot::getPiece)
  3994. * test/DefaultBtMessageDispatcherTest.cc
  3995. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3996. * src/TimeA2.cc
  3997. * src/TimeA2.h
  3998. (Time::difference): New function.
  3999. (Time::elapsed): Done optimization.
  4000. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4001. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4002. directive.
  4003. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4004. * src/option_processing.cc: Added missing `defined' keyword to #if
  4005. directive.
  4006. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4007. Bump up version number to 0.13.2+1
  4008. * src/configure.ac
  4009. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4010. Refactored broken outstanding piece handling.
  4011. * src/DefaultPieceStorage.cc
  4012. * src/DefaultPieceStorage.h
  4013. * src/Piece.cc
  4014. * src/Piece.h
  4015. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4016. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4017. name collision of static variable and predefined macro.
  4018. * src/BtContext.cc
  4019. * src/BtContext.h
  4020. * src/CookieBoxFactory.cc
  4021. * src/CookieBoxFactory.h
  4022. * src/CookieParser.cc
  4023. * src/CookieParser.h
  4024. * src/DefaultBtContext.cc
  4025. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. * src/RequestGroup.cc
  4027. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4028. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4029. * Release 0.13.2
  4030. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4031. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4032. * po/fr.po
  4033. * po/ja.po
  4034. * po/aria2c.pot
  4035. * po/*.po
  4036. * po/*.gmo
  4037. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4038. Bump up version number to 0.13.2
  4039. * src/configure.ac
  4040. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4041. Refactord.
  4042. * src/RequestGroupMan.cc
  4043. (removeStoppedGroup)
  4044. (fillRequestGroupFromReserver)
  4045. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4046. Fixed compile error on Ubuntu.
  4047. * src/BtPieceMessage.cc
  4048. * src/MessageDigestHelper.cc
  4049. * src/Util.cc
  4050. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4051. Fixed compile error when configured with --disable-bittorrent
  4052. * test/DownloadHandlerFactoryTest.cc
  4053. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4054. Done make update-po
  4055. * po/aria2c.pot
  4056. * po/*.po
  4057. * po/*.gmo
  4058. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4059. Bump up version number to 0.13.2rc.
  4060. * src/configure.ac
  4061. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4062. Made option name bold. Updated SYNOPSIS to make it more readable.
  4063. * doc/aria2c.1.txt
  4064. * doc/aria2c.1
  4065. * doc/aria2c.1.html
  4066. * src/version_usage.cc
  4067. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4068. Refactored. Use std::string instead of size and char*.
  4069. * Data.cc
  4070. * Data.h
  4071. * test/Data.cc
  4072. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4073. Added trimSelf(). Rewritten trim() to use trimSelf().
  4074. * Util.cc
  4075. * Util.h
  4076. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4077. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4078. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4079. Fixed compile error when configured with --disable-metalink.
  4080. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4081. * test/FeatureConfigTest.cc
  4082. * test/DownloadHandlerFactoryTest.cc
  4083. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4084. Fixed compile error when configured with --without-gnutls
  4085. --without-openssl
  4086. * src/main.cc
  4087. * test/DefaultBtProgressInfoFileTest.cc
  4088. * test/SegmentManTest.cc
  4089. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4090. Fixed compile error with OpenSSL.
  4091. * src/IteratableChunkChecksumValidator.cc
  4092. * src/LibsslDHKeyExchange.h
  4093. * src/MessageDigestHelper.cc
  4094. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4095. Revert the default value of --max-concurrent-downloads to 5.
  4096. Revert the default value of --metalink-servers to 5.
  4097. Man pages was also updated.
  4098. * src/option_processing.cc
  4099. * doc/aria2c.1.txt
  4100. * doc/aria2c.1.html
  4101. * doc/aria2c.1
  4102. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4103. Returns const reference:
  4104. DownloadContext::getPieceHash, DownloadContext::getName,
  4105. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4106. BtContext::getInfoHashAsString,
  4107. * src/BtContext.h
  4108. * src/DefaultBtContext.cc
  4109. * src/DefaultBtContext.h
  4110. * src/DownloadContext.h
  4111. * src/SingleFileDownloadContext.h
  4112. * test/MockBtContext.h
  4113. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4114. * src/RequestGroup.h (getDir): Removed.
  4115. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4116. Returns const reference. The internal urlencode function was optimized
  4117. a little bit.
  4118. * src/Request.cc
  4119. * src/Request.h
  4120. * src/HttpRequest.cc
  4121. * src/HttpRequest.h
  4122. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4123. Defined option name and possible values as std::string to reduce
  4124. temporary string object creation in runtime.
  4125. * src/HelpItemFactory.cc
  4126. * src/LogFactory.cc
  4127. * src/Option.cc
  4128. * src/OptionHandlerFactory.cc
  4129. * src/option_processing.cc
  4130. * src/prefs.cc
  4131. * src/prefs.h
  4132. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4133. Return const reference.
  4134. * src/DownloadHandlerConstants.cc
  4135. * src/DownloadHandlerConstants.h
  4136. (getMetalinkExtensions)
  4137. (getMetalinkContentTypes)
  4138. (getBtExtensions)
  4139. (getBtContentTypes)
  4140. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4141. * src/HttpHeader.cc (get): Rewritten.
  4142. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4143. Make HttpHeader::getFirst(...) return const reference.
  4144. * src/HttpHeader.cc
  4145. * src/HttpHeader.h
  4146. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4147. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4148. it with V_TRUE.
  4149. * src/DefaultPieceStorage.cc
  4150. * src/DownloadCommand.cc
  4151. * src/FtpNegotiationCommand.cc
  4152. * src/HttpRequest.cc
  4153. * src/InitiateConnectionCommand.cc
  4154. * src/RequestGroup.cc
  4155. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4156. Made Option::get(...) return const reference of std::string.
  4157. * src/Option.cc
  4158. * src/Option.h
  4159. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4160. Replaced std:copy with insert.
  4161. * src/DefaultBtMessageDispatcher.cc
  4162. * src/DefaultPieceStorage.cc
  4163. * src/DownloadEngineFactory.cc
  4164. * src/RequestGroup.cc
  4165. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4166. Included SocketCore.h to fix compiler warning.
  4167. * src/InitiateConnectionCommand.cc
  4168. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4169. Put piece selection strategy algorithm to RarestPieceSelector class,
  4170. Added a switch to choose whether randomized selection so that unit
  4171. tests emit same results in, possibly, win32.
  4172. * src/DefaultPieceStorage.cc
  4173. * src/DefaultPieceStorage.h
  4174. * src/RarestPieceSelector.cc
  4175. * src/RarestPieceSelector.h
  4176. * test/DefaultPieceStorageTest.cc
  4177. * test/RarestPieceSelectorTest.cc
  4178. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4179. Don't pool connection if HTTP proxy is enabled.
  4180. * src/FtpFinishDownloadCommand.cc
  4181. * src/FtpNegotiationCommand.cc
  4182. * src/HttpSkipResponseCommand.cc
  4183. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4184. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4185. * src/AbstractCommand.cc
  4186. * src/AbstractCommand.h
  4187. * src/ActivePeerConnectionCommand.cc
  4188. * src/FtpInitiateConnectionCommand.cc
  4189. * src/HttpInitiateConnectionCommand.cc
  4190. * src/InitiateConnectionCommandFactory.cc
  4191. * src/PeerAbstractCommand.cc
  4192. * src/PeerAbstractCommand.h
  4193. * src/PeerInitiateConnectionCommand.cc
  4194. * src/TrackerWatcherCommand.cc
  4195. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4196. Sort RequestSlot in ascending order and manipulate them using
  4197. lower_bound.
  4198. * src/DefaultBtMessageDispatcher.cc
  4199. * src/DefaultBtMessageDispatcher.h
  4200. (getMessageQueue): Added const qualifier.
  4201. (getRequestSlots): Added const qualifier.
  4202. (sendMessages): Use empty() instead of size().
  4203. (doCancelSendingPieceAction): Use HandleEvent object.
  4204. (doAbortOutstandingRequestAction): Rewritten.
  4205. (doChokedAction): Rewritten.
  4206. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4207. (isOutstandingRequest): Rewritten.
  4208. (getOutstandingRequest): Rewritten.
  4209. (removeOutstandingRequest): Rewritten.
  4210. (addOutstandingRequest): Rewritten.
  4211. * src/RequestSlot.cc
  4212. * src/RequestSlot.h
  4213. (operator=): Rewritten.
  4214. (operator!=): New function.
  4215. (operator<): New function.
  4216. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4217. * src/DefaultBtRequestFactory.cc
  4218. (doChokedAction): Rewritten.
  4219. (removeCompletedPiece): Rewritten.
  4220. (removeTargetPiece): Rewritten.
  4221. (createRequestMessages): Added the debug log.
  4222. (createRequestMessagesOnEndGame: Added the debug log.
  4223. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4224. Added the debug log message.
  4225. * src/BtPieceMessage.cc (doReceivedAction)
  4226. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4227. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4228. used lower_bound to process them rather than linear search.
  4229. * src/DHTPeerAnnounceStorage.cc
  4230. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4231. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4232. peer has at least one completed piece.
  4233. * src/Peer.cc
  4234. * src/Peer.h
  4235. * src/PeerInteractionCommand.cc
  4236. * src/PeerSessionResource.cc
  4237. * src/PeerSessionResource.h
  4238. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4239. Removed unnecessary sorting
  4240. * src/DefaultPieceStorage (DefaultPieceStorage)
  4241. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4242. Rewritten the portion of the code that mangaes allowed fast indexes.
  4243. * src/PeerSessionResource.cc
  4244. * src/PeerSessionResource.h
  4245. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4246. Removed the invalid string including '\r' from ru.po and
  4247. did make update-po.
  4248. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4249. Added --log-level and --summary-interval to man page.
  4250. * doc/aria2c.1.txt
  4251. * doc/aria2c.1.html
  4252. * doc/aria2c.1
  4253. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4254. Added --log-level option to specify log level. Log messages under
  4255. the specified level are not output. Default value is `debug'.
  4256. * src/HelpItemFactory.cc
  4257. * src/LogFactory.cc
  4258. * src/LogFactory.h
  4259. * src/Logger.h
  4260. * src/OptionHandlerFactory.cc
  4261. * src/SimpleLogger.cc
  4262. * src/SimpleLogger.h
  4263. * src/main.cc
  4264. * src/option_processing.cc
  4265. * src/prefs.h
  4266. * src/usage_text.h
  4267. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4268. Print download progress summary of all parallel downloads in specified
  4269. interval, default 60 secs. While aria2 could download several files
  4270. in parallel (see -j option), it displayed just first download progress,
  4271. and the other downloads are hidden from the users. This new feature
  4272. prints all downloads currently in-progress to the console so that you
  4273. can check the status of all downloads. The interval can be adjusted
  4274. by --summary-interval option.
  4275. The progress readout is now cut so that all fits in the one line of
  4276. console.
  4277. * src/ConsoleStatCalc.cc
  4278. * src/ConsoleStatCalc.h
  4279. * src/HelpItemFactory.cc
  4280. * src/OptionHandlerFactory.cc
  4281. * src/RequestGroupMan.cc
  4282. * src/RequestGroupMan.h
  4283. * src/main.cc
  4284. * src/option_processing.cc
  4285. * src/prefs.h
  4286. * src/usage_text.h
  4287. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4288. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  4289. * src/DownloadEngine.cc (DownloadEngine)
  4290. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4291. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  4292. defined.
  4293. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  4294. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4295. Use erase+lower_bound+insert instead of sort.
  4296. * src/DefaultPieceStorage.cc (addPieceStats)
  4297. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4298. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  4299. * src/A2STR.cc
  4300. * src/A2STR.h
  4301. * src/OptionParser.cc (parse)
  4302. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4303. Defined fake filename `[tracker.announce]' as static const std::string.
  4304. * src/TrackerWatcherCommand.cc (createRequestGroup)
  4305. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4306. Defined default filename `index.html' as static const std::string
  4307. * src/SingleFileDownloadContext.cc
  4308. * src/SingleFileDownloadContext.h
  4309. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4310. Defined "[MEMORY]" as static const std::string.
  4311. * src/MemoryBufferPreDownloadHandler.cc (execute)
  4312. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4313. Defined control file's version number as static const std::string.
  4314. * src/DefaultBtProgressInfoFile.cc
  4315. * src/DefaultBtProgressInfoFile.h
  4316. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4317. Use Request::METHOD_GET
  4318. * src/RequestGroup.cc (createNextCommandWithAdj)
  4319. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4320. Defined "OK", "ERR", "INPR" as static const std::string
  4321. * src/RequestGroupMan.cc (showDownloadResults)
  4322. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4323. Defined default client used in extended handshake as static const
  4324. std::string
  4325. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  4326. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  4328. * src/HttpConnection.cc (eraseConfidentialInfo)
  4329. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4330. Defined default ftp user and password as static const std::string
  4331. * src/AuthConfigFactory.cc
  4332. * src/AuthConfigFactory.h
  4333. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4334. Defined strings used in netrc as static const std::string
  4335. * src/Netrc.cc
  4336. * src/Netrc.h
  4337. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4338. Defined HTTP status as static const std::string
  4339. * src/AbstractProxyResponseCommand.cc
  4340. * src/HttpHeader.cc
  4341. * src/HttpHeader.h
  4342. * src/HttpResponse.cc
  4343. * src/HttpResponseCommand.cc
  4344. * src/HttpSkipResponseCommand.cc
  4345. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4346. Defined "\r\n", "A", "I" as static const std::string
  4347. * src/A2STR.cc
  4348. * src/A2STR.h
  4349. * src/FtpConnection.cc
  4350. * src/FtpConnection.h
  4351. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4352. Added COLON_C(".") and used it in Request::parseUrl()
  4353. * src/A2STR.cc
  4354. * src/A2STR.h
  4355. * src/Request.cc (parseUrl)
  4356. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4357. Changed the type of padName from `const std::string&' to `const char*'.
  4358. * src/MSEHandshake.cc (verifyPadLength)
  4359. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4360. Defined "sha1" as static const std::string.
  4361. * src/MetalinkParserController.cc
  4362. * src/MetalinkParserController.h
  4363. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4364. Defined message digest algorithm name as static const std::string
  4365. * src/DHTTokenTracker.cc
  4366. * src/DHTUtil.cc
  4367. * src/DefaultBtContext.cc
  4368. * src/MSEHandshake.cc
  4369. * src/MessageDigestHelper.cc
  4370. * src/Peer.cc
  4371. * src/messageDigest.cc
  4372. * src/messageDigest.h
  4373. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4374. Made string literals used in SAX parser static const std::string.
  4375. * src/FileMetalinkParserState.cc
  4376. * src/FileMetalinkParserState.h
  4377. * src/FilesMetalinkParserState.cc
  4378. * src/FilesMetalinkParserState.h
  4379. * src/InitialMetalinkParserState.cc
  4380. * src/InitialMetalinkParserState.h
  4381. * src/MetalinkMetalinkParserState.cc
  4382. * src/MetalinkMetalinkParserState.h
  4383. * src/PiecesMetalinkParserState.cc
  4384. * src/PiecesMetalinkParserState.h
  4385. * src/ResourcesMetalinkParserState.cc
  4386. * src/ResourcesMetalinkParserState.h
  4387. * src/VerificationMetalinkParserState.cc
  4388. * src/VerificationMetalinkParserState.h
  4389. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4390. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4391. * src/A2STR.cc
  4392. * src/A2STR.h
  4393. * src/File.cc
  4394. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4395. Defined static const std::string IP("ip"), PORT("port") and use them
  4396. instead of string literals.
  4397. * src/DefaultPeerListProcessor.cc
  4398. * src/DefaultPeerListProcessor.h
  4399. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4400. Made string literals for torrent file processing static const
  4401. std::string.
  4402. * src/BtContext.cc
  4403. * src/BtContext.h
  4404. * src/DefaultBtContext.cc
  4405. * src/DefaultBtContext.h
  4406. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4407. Made string literal for tracker response static const std::string
  4408. * src/BtAnnounce.cc
  4409. * src/BtAnnounce.h
  4410. * src/DefaultBtAnnounce.cc
  4411. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4412. Use DHTMessage::T instead of "t".
  4413. * src/DHTMessageTracker.cc (messageArrived)
  4414. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4415. Made keyName static const. Made trimmed charset static const
  4416. std::string.
  4417. * src/Util.cc (getContentDispositionFilename)
  4418. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4419. Made USER_AGENT const. Made "/" static const std::string.
  4420. * src/A2STR.cc
  4421. * src/A2STR.h
  4422. * src/HttpRequest.cc
  4423. * src/HttpRequest.h
  4424. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4425. Made string listeral to static const std::string:
  4426. "Content-Range", "Content-Length"
  4427. * src/HttpHeader.cc
  4428. * src/HttpHeader.h
  4429. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4430. Made string listeral to static const std::string.
  4431. * src/HttpConnection.cc
  4432. * src/HttpHeader.cc
  4433. * src/HttpHeader.h
  4434. * src/HttpResponse.cc
  4435. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4436. Made string listeral to static const std::string.
  4437. * src/A2STR.cc
  4438. * src/A2STR.h
  4439. * src/SimpleLogger.cc
  4440. * src/SimpleLogger.h
  4441. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4442. Made string literal to static const std::string.
  4443. Rewritten CookieParser::setField.
  4444. * src/A2STR.cc
  4445. * src/A2STR.h
  4446. * src/CookieBoxFactory.cc
  4447. * src/CookieBoxFactory.h
  4448. * src/CookieParser.cc
  4449. * src/CookieParser.h
  4450. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. Made string literal to static const std::string
  4452. * src/DHTAbstractMessage.cc
  4453. * src/DHTAnnouncePeerMessage.cc
  4454. * src/DHTAnnouncePeerMessage.h
  4455. * src/DHTAnnouncePeerReplyMessage.cc
  4456. * src/DHTAnnouncePeerReplyMessage.h
  4457. * src/DHTFindNodeMessage.cc
  4458. * src/DHTFindNodeMessage.h
  4459. * src/DHTFindNodeReplyMessage.cc
  4460. * src/DHTFindNodeReplyMessage.h
  4461. * src/DHTGetPeersMessage.cc
  4462. * src/DHTGetPeersMessage.h
  4463. * src/DHTGetPeersReplyMessage.cc
  4464. * src/DHTGetPeersReplyMessage.h
  4465. * src/DHTMessage.cc
  4466. * src/DHTMessage.h
  4467. * src/DHTMessageFactoryImpl.cc
  4468. * src/DHTMessageReceiver.cc
  4469. * src/DHTPingMessage.cc
  4470. * src/DHTPingMessage.h
  4471. * src/DHTPingReplyMessage.cc
  4472. * src/DHTPingReplyMessage.h
  4473. * src/DHTQueryMessage.cc
  4474. * src/DHTQueryMessage.h
  4475. * src/DHTResponseMessage.cc
  4476. * src/DHTResponseMessage.h
  4477. * src/DHTUnknownMessage.cc
  4478. * src/DHTUnknownMessage.h
  4479. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4480. Made string literal to static const std::string
  4481. * src/BtChokeMessage.cc (toString)
  4482. * src/BtHaveAllMessage.cc (toString)
  4483. * src/BtHaveNoneMessage.cc (toString)
  4484. * src/BtInterestedMessage.cc (toString)
  4485. * src/BtNotInterestedMessage.cc (toString)
  4486. * src/BtUnchokeMessage.cc (toString)
  4487. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4488. Replaced "" with static const variable A2STR::NIL.
  4489. Replaced string comparison against "" with std::string::empty().
  4490. Added PROTO_* to Request class and use them as a protocol string
  4491. constant.
  4492. Made "started", "stopped", "completed" static const variable in
  4493. AnnounceList class.
  4494. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4495. Updated translations. Great thanks to translators.
  4496. * po/ca.po
  4497. * po/de.po
  4498. * po/fr.po
  4499. * po/it.po
  4500. * po/ja.po
  4501. * po/ru.po
  4502. * po/zh_CN.po
  4503. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4504. Updated man page; categorized options and fixed typo.
  4505. * doc/aria2c.1.txt
  4506. * doc/aria2c.1.html
  4507. * doc/aria2c.1
  4508. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4509. Removed const ref
  4510. * src/MetalinkEntry.cc (AddProtocolPreference)
  4511. * src/RequestGroup.cc (FindServerHostByHostname)
  4512. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4513. Rewritten Accept-Features handling.
  4514. * src/HttpRequestCommand.cc (createHttpRequest)
  4515. * src/a2functional.h
  4516. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4517. Changed method signature:
  4518. DHTAbstractNodeLookupTask::toEntries
  4519. * src/DHTAbstractNodeLookupTask.cc
  4520. * src/DHTAbstractNodeLookupTask.h
  4521. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4522. Changed method signature:
  4523. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  4524. * src/BtContext.h
  4525. * src/DefaultBtContext.cc
  4526. * src/DefaultBtContext.h
  4527. * src/DefaultBtInteractive.cc
  4528. * test/DefaultBtContextTest.cc
  4529. * test/MockBtContext.h
  4530. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4531. Changed method signature:
  4532. MultiFileAllocationIterator::makeDiskWriterEntries
  4533. * src/MultiFileAllocationIterator.cc
  4534. * src/MultiFileAllocationIterator.h
  4535. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4536. Changed method sinature:
  4537. MetalinkEntry::toFileEntry,
  4538. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  4539. Metalinker::queryEntry
  4540. * src/Metalink2RequestGroup.cc
  4541. * src/MetalinkEntry.cc
  4542. * src/MetalinkEntry.h
  4543. * src/MetalinkHelper.cc
  4544. * src/MetalinkHelper.h
  4545. * src/Metalinker.cc
  4546. * src/Metalinker.h
  4547. * src/main.cc
  4548. * test/MetalinkHelperTest.cc
  4549. * test/MetalinkerTest.cc
  4550. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4551. Changed method sinature:
  4552. RequestGroup::getURIs
  4553. * src/RequestGroup.cc
  4554. * src/RequestGroup.h
  4555. * test/Metalink2RequestGroupTest.cc
  4556. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4557. Changed method signature:
  4558. PeerListProcessor::extractPeer
  4559. * src/CompactPeerListProcessor.cc
  4560. * src/CompactPeerListProcessor.h
  4561. * src/DefaultBtAnnounce.cc
  4562. * src/DefaultPeerListProcessor.cc
  4563. * src/DefaultPeerListProcessor.h
  4564. * src/DelegatingPeerListProcessor.cc
  4565. * src/DelegatingPeerListProcessor.h
  4566. * src/PeerListProcessor.h
  4567. * src/UTPexExtensionMessage.cc
  4568. * test/DefaultPeerListProcessorTest.cc
  4569. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4570. Changed method signature:
  4571. BtRequestFactory::createRequestMessages,
  4572. BtRequestFactory::createRequestMessagesOnEndGame
  4573. * src/BtRequestFactory.h
  4574. * src/DefaultBtInteractive.cc
  4575. * src/DefaultBtRequestFactory.cc
  4576. * src/DefaultBtRequestFactory.h
  4577. * test/DefaultBtRequestFactoryTest.cc
  4578. * test/MockBtRequestFactory.h
  4579. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4580. Changed method signature:
  4581. PieceStorage::getInFlightPieces
  4582. * src/DefaultBtProgressInfoFile.cc
  4583. * src/DefaultPieceStorage.cc
  4584. * src/DefaultPieceStorage.h
  4585. * src/PieceStorage.h
  4586. * src/UnknownLengthPieceStorage.cc
  4587. * src/UnknownLengthPieceStorage.h
  4588. * test/DefaultBtProgressInfoFileTest.cc
  4589. * test/MockPieceStorage.h
  4590. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4591. Changed method signature:
  4592. PostDownloadHandler::getNextRequestGroups
  4593. Metalink2RequestGroup::generate
  4594. RequestGroup::postDownloadProcessing
  4595. * src/BtPostDownloadHandler.cc
  4596. * src/BtPostDownloadHandler.h
  4597. * src/Metalink2RequestGroup.cc
  4598. * src/Metalink2RequestGroup.h
  4599. * src/MetalinkPostDownloadHandler.cc
  4600. * src/MetalinkPostDownloadHandler.h
  4601. * src/PostDownloadHandler.h
  4602. * src/RequestGroup.cc
  4603. * src/RequestGroup.h
  4604. * src/RequestGroupMan.cc
  4605. * src/main.cc
  4606. * test/BtPostDownloadHandlerTest.cc
  4607. * test/Metalink2RequestGroupTest.cc
  4608. * test/MetalinkPostDownloadHandlerTest.cc
  4609. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4610. Rewritten AccRequestGroup
  4611. * src/main.cc
  4612. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4613. Rewritten.
  4614. * src/TaggedItem.cc (toTagString)
  4615. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4616. Rewritten Accept-Features handling.
  4617. * src/HttpRequestCommand.cc (createHttpRequest)
  4618. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. Rewritten accept types handling.
  4620. * HttpRequest.cc (createRequest)
  4621. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4622. Rewritten
  4623. * src/FeatureConfig.cc (featureSummary)
  4624. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4625. Changed method signature:
  4626. PeerStorage::getActivePeers
  4627. * src/DHTPeerAnnounceEntry.cc
  4628. * src/DefaultPeerStorage.cc
  4629. * src/DefaultPeerStorage.h
  4630. * src/PeerStorage.h
  4631. * test/DefaultPeerStorageTest.cc
  4632. * test/MockPeerStorage.h
  4633. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4634. Changed method signature:
  4635. DHTPeerAnnounceStorage::getPeers,
  4636. DHTPeerAnnounceEntry::getPeers
  4637. * src/DHTGetPeersMessage.cc
  4638. * src/DHTPeerAnnounceEntry.cc
  4639. * src/DHTPeerAnnounceEntry.h
  4640. * src/DHTPeerAnnounceStorage.cc
  4641. * src/DHTPeerAnnounceStorage.h
  4642. * test/DHTAnnouncePeerMessageTest.cc
  4643. * test/DHTPeerAnnounceEntryTest.cc
  4644. * test/DHTPeerAnnounceStorageTest.cc
  4645. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4646. Changed method signature:
  4647. NameResolver::resolve
  4648. * src/DHTEntryPointNameResolveCommand.cc
  4649. * src/InitiateConnectionCommand.cc
  4650. * src/NameResolver.cc
  4651. * src/NameResolver.h
  4652. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4653. Changed method signature:
  4654. PieceStorage::getAdvertisedPieceIndexes
  4655. * src/DefaultBtInteractive.cc
  4656. * src/DefaultPieceStorage.cc
  4657. * src/DefaultPieceStorage.h
  4658. * src/PieceStorage.h
  4659. * src/UnknownLengthPieceStorage.h
  4660. * test/MockPieceStorage.h
  4661. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4662. Changed method signature:
  4663. SegmentMan::getInFlightSegment
  4664. * src/AbstractCommand.cc
  4665. * src/SegmentMan.cc
  4666. * src/SegmentMan.h
  4667. * test/SegmentManTest.cc
  4668. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4669. Changed method signature:
  4670. DHTAbstractNodeLookupTask::getNodesFromMessage
  4671. * src/DHTAbstractNodeLookupTask.cc
  4672. * src/DHTAbstractNodeLookupTask.h
  4673. * src/DHTNodeLookupTask.cc
  4674. * src/DHTNodeLookupTask.h
  4675. * src/DHTPeerLookupTask.cc
  4676. * src/DHTPeerLookupTask.h
  4677. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4678. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4679. * src/AbstractCommand.cc
  4680. * src/BtCheckIntegrityEntry.cc
  4681. * src/BtCheckIntegrityEntry.h
  4682. * src/BtFileAllocationEntry.cc
  4683. * src/BtFileAllocationEntry.h
  4684. * src/BtSetup.cc
  4685. * src/BtSetup.h
  4686. * src/CheckIntegrityCommand.cc
  4687. * src/CheckIntegrityEntry.h
  4688. * src/ChecksumCheckIntegrityEntry.cc
  4689. * src/ChecksumCheckIntegrityEntry.h
  4690. * src/DHTSetup.cc
  4691. * src/DHTSetup.h
  4692. * src/DownloadEngine.cc
  4693. * src/FileAllocationCommand.cc
  4694. * src/FileAllocationEntry.h
  4695. * src/RequestGroup.cc
  4696. * src/RequestGroup.h
  4697. * src/RequestGroupMan.cc
  4698. * src/RequestGroupMan.h
  4699. * src/StreamCheckIntegrityEntry.cc
  4700. * src/StreamCheckIntegrityEntry.h
  4701. * src/StreamFileAllocationEntry.cc
  4702. * src/StreamFileAllocationEntry.h
  4703. * src/TrackerWatcherCommand.cc
  4704. * src/a2functional.h
  4705. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. Changed method signature:
  4707. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4708. DHTBucket::getGoodNodes,
  4709. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4710. * src/BNode.cc
  4711. * src/BNode.h
  4712. * src/DHTAbstractNodeLookupTask.cc
  4713. * src/DHTAutoSaveCommand.cc
  4714. * src/DHTBucket.cc
  4715. * src/DHTBucket.h
  4716. * src/DHTBucketRefreshTask.cc
  4717. * src/DHTFindNodeMessage.cc
  4718. * src/DHTGetPeersMessage.cc
  4719. * src/DHTRoutingTable.cc
  4720. * src/DHTRoutingTable.h
  4721. * test/BNodeTest.cc
  4722. * test/DHTBucketTest.cc
  4723. * test/DHTRoutingTableTest.cc
  4724. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4725. In piece selection functions, Pass std::deque<...> by reference rather
  4726. than returning it.
  4727. * src/BitfieldMan.cc
  4728. * src/BitfieldMan.h
  4729. * src/DefaultBtRequestFactory.cc
  4730. * src/DefaultPieceStorage.cc
  4731. * src/Piece.cc
  4732. * src/Piece.h
  4733. * test/BitfieldManTest.cc
  4734. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4735. Implemented rarest piece first piece selection strategy.
  4736. * src/AbstractBtMessage.cc
  4737. * src/AbstractBtMessage.h
  4738. * src/BitfieldMan.cc
  4739. * src/BitfieldMan.h
  4740. * src/BtBitfieldMessage.cc
  4741. * src/BtHaveAllMessage.cc
  4742. * src/BtHaveMessage.cc
  4743. * src/DefaultPieceStorage.cc
  4744. * src/DefaultPieceStorage.h
  4745. * src/PeerInteractionCommand.cc
  4746. * src/PieceStorage.h
  4747. * src/UnknownLengthPieceStorage.h
  4748. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4749. Rewritten readData and writeData.
  4750. * src/MultiDiskAdaptor.cc
  4751. * src/MultiDiskAdaptor.h
  4752. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4753. Move \n out of the message "Usage: ...".
  4754. * src/version_usage.cc
  4755. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4756. Bump up version number to 0.13.2b.
  4757. * configure.ac
  4758. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4759. Added const qualifier to argument Exception& e.
  4760. * src/Logger.h
  4761. * src/SimpleLogger.cc
  4762. * src/SimpleLogger.h
  4763. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4764. Pool connection when CWD, SIZE command fails.
  4765. * src/FtpNegotiationCommand.cc
  4766. * src/FtpNegotiationCommand.h
  4767. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4768. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  4769. * src/HttpResponseCommand.cc
  4770. * src/HttpSkipResponseCommand.cc
  4771. * src/HttpSkipResponseCommand.h
  4772. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4773. Pool connection when a server returns 4xx, 5xx responses.
  4774. * src/HttpNullDownloadCommand.cc
  4775. * src/HttpNullDownloadCommand.h
  4776. * src/HttpResponse.cc
  4777. * src/HttpResponse.h
  4778. * src/HttpResponseCommand.cc
  4779. * src/HttpResponseCommand.h
  4780. * test/HttpResponseTest.cc
  4781. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4782. Print usage when no URL is specifed or bad command-line option is
  4783. specified.
  4784. * src/HelpItemFactory.cc
  4785. * src/help_tags.h
  4786. * src/option_processing.cc
  4787. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4788. Removed duplicate log message.
  4789. * src/AbstractCommand.cc (asyncResolveHostname)
  4790. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4791. Updated man page: --async-dns and --ftp-reuse-connection were added.
  4792. Changed -j option's default value from 5 to 1.
  4793. Added new examples using protocol auto detection feature.
  4794. Removed -T, -M usage where it can be omitted.
  4795. * doc/aria2c.1.txt
  4796. * doc/aria2c.1.html
  4797. * doc/aria2c.1.txt
  4798. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Updated command-line usage text, so that it tells users that they
  4800. can specify any number of torrent files and metalink files in
  4801. command-line.
  4802. * src/version_usage.cc
  4803. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4804. Changed the default value of -j option to 1.
  4805. * src/HelpItemFactory.cc
  4806. * src/option_processing.cc
  4807. * src/usage_text.h
  4808. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4809. Added the ability to reuse connection in FTP and it is enabled by
  4810. default. It can be disabled by --ftp-reuse-connection=false option.
  4811. * src/Command.cc
  4812. * src/DownloadCommand.cc
  4813. * src/FtpDownloadCommand.cc
  4814. * src/FtpDownloadCommand.h
  4815. * src/FtpFinishDownloadCommand.cc
  4816. * src/FtpFinishDownloadCommand.h
  4817. * src/FtpInitiateConnectionCommand.cc
  4818. * src/FtpNegotiationCommand.cc
  4819. * src/FtpNegotiationCommand.h
  4820. * src/HelpItemFactory.cc
  4821. * src/Makefile.am
  4822. * src/Makefile.in
  4823. * src/OptionHandlerFactory.cc
  4824. * src/option_processing.cc
  4825. * src/prefs.h
  4826. * src/usage_text.h
  4827. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Call Command::transitStatus() before calling Command::execute(),
  4829. so that the status change made in execute() is not cleared.
  4830. * src/DownloadEngine.cc
  4831. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4832. Removed forward declaration of SocketCore class.
  4833. * src/HttpDownloadCommand.h
  4834. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4835. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  4836. in InitiateConnectionCommandFactory. They should be set only when
  4837. the protocol is HTTP or HTTPS.
  4838. * src/InitiateConnectionCommandFactory.cc
  4839. * src/RequestGroup.cc
  4840. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4841. Fixed infinite loop in checksum checking.
  4842. * src/IteratableChecksumValidator.cc
  4843. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4844. Set _supportsPersistentConnection to true by default.
  4845. * src/Request.cc
  4846. * src/RequestGroup.cc
  4847. * test/HttpRequestTest.cc
  4848. * test/RequestTest.cc
  4849. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4850. Added timeout to socket pool. The default timeout is 15 seconds,
  4851. which is the same value Apache uses.
  4852. * src/DownloadEngine.cc
  4853. * src/DownloadEngine.h
  4854. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4855. Fixed misuse of multimap::find()
  4856. * src/HttpHeader.cc
  4857. * test/HttpHeaderTest.cc
  4858. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4859. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  4860. option.
  4861. The asynchronous DNS is not capable of IPv6 yet.
  4862. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  4863. least for HTTP download.
  4864. * src/AbstractCommand.cc
  4865. * src/AbstractCommand.h
  4866. * src/AsyncNameResolver.cc
  4867. * src/AsyncNameResolver.h
  4868. * src/DHTEntryPointNameResolveCommand.cc
  4869. * src/DHTEntryPointNameResolveCommand.h
  4870. * src/DownloadEngine.cc
  4871. * src/DownloadEngine.h
  4872. * src/FtpInitiateConnectionCommand.cc
  4873. * src/FtpInitiateConnectionCommand.h
  4874. * src/HelpItemFactory.cc
  4875. * src/HttpInitiateConnectionCommand.cc
  4876. * src/HttpInitiateConnectionCommand.h
  4877. * src/InitiateConnectionCommand.cc
  4878. * src/InitiateConnectionCommand.h
  4879. * src/Makefile.am
  4880. * src/Makefile.in
  4881. * src/NameResolver.cc
  4882. * src/NameResolver.h
  4883. * src/OptionHandlerFactory.cc
  4884. * src/SocketCore.cc
  4885. * src/SocketCore.h
  4886. * src/Util.cc
  4887. * src/Util.h
  4888. * src/option_processing.cc
  4889. * src/prefs.h
  4890. * src/usage_text.h
  4891. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4892. Updated man page: --quiet, --header were added.
  4893. --metalink-servers and --enable-http-keep-alive option were updated.
  4894. * doc/aria2c.1
  4895. * doc/aria2c.1.html
  4896. * doc/aria2c.1.txt
  4897. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4898. Enable HTTP keep-alive by default.
  4899. * src/HelpItemFactory.cc
  4900. * src/option_processing.cc
  4901. * src/usage_text.h
  4902. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4903. Disable http keep-alive if the remote server is not HTTP/1.1.
  4904. * src/HttpConnection.cc
  4905. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4906. Receive content body of 302 response so that the connection can be
  4907. reused later when http keep-alive is enabled.
  4908. * src/HttpNullDownloadCommand.cc
  4909. * src/HttpNullDownloadCommand.h
  4910. * src/HttpResponseCommand.cc
  4911. * src/HttpResponseCommand.h
  4912. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4913. const SharedHandle<Request> -> const SharedHandle<Request>&
  4914. * src/FtpDowndloadCommand.cc
  4915. * src/FtpDowndloadCommand.h
  4916. * src/HttpDownloadCommand.cc
  4917. * src/HttpDownloadCommand.h
  4918. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. Fixed the bug that the control file(.aria2 file) is not renamed
  4920. according to tryAutoFileRenaming().
  4921. tryAutoFileRenaming() was rewritten so that if both renamed file and
  4922. its control file exist, use them and continue download.
  4923. The old implementation didn't take into account of control file's
  4924. existence, so basically you couldn't continue download of renamed file.
  4925. * src/BtProgressInfoFile.h
  4926. * src/DefaultBtProgressInfoFile.cc
  4927. * src/DefaultBtProgressInfoFile.h
  4928. * src/NullProgressInfoFile.h
  4929. * src/RequestGroup.cc
  4930. * test/DefaultBtProgressInfoFileTest.cc
  4931. * test/MockBtProgressInfoFile.h
  4932. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4933. Change the default value of --metalink-servers option from `5' to `1'.
  4934. * src/HelpItemFactory.cc
  4935. * src/option_processing.cc
  4936. * src/usage_text.h
  4937. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4938. Reimplemented transparent metalink using Accept request header.
  4939. * src/HttpRequest.cc
  4940. * src/HttpRequest.h
  4941. * src/HttpRequestCommand.cc
  4942. * src/Metalink2RequestGroup.cc
  4943. * src/RequestGroup.cc
  4944. * src/RequestGroup.h
  4945. * test/HttpRequestTest.cc
  4946. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4947. Bump up version number to 0.13.2a
  4948. * configure.ac
  4949. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4950. Updated configure.ac using the result of autoscan.
  4951. * configure.ac
  4952. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. Fixed compilation error without gcrypt/openssl.
  4954. * src/DownloadCommand.cc
  4955. * src/DownloadCommand.h
  4956. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. Reorganized version information so that it can be displayed in a
  4958. standard terminal screen without scrolling.
  4959. Removed http, ftp from Configuration section, because they are always
  4960. enabled.
  4961. * src/FeatureConfig.cc
  4962. * src/FeatureConfig.h
  4963. * src/main.cc
  4964. * src/messageDigest.cc
  4965. * src/messageDigest.h
  4966. * src/version_usage.cc
  4967. * test/FeatureConfigTest.cc
  4968. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4969. Masked user ID in log.
  4970. * src/FtpConnection.cc (sendUser)
  4971. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4972. Removed query part from filename in HTTP download. The query part means
  4973. the substring after "?" in URL. Firefox seems do the same thing.
  4974. A query part is sometimes very long and not suitable to filename,
  4975. so I think it is better to remove it from filename.
  4976. * src/HttpRequest.cc
  4977. * src/HttpRequest.h
  4978. * src/Request.cc
  4979. * src/Request.h
  4980. * test/HttpRequestTest.cc
  4981. * test/RequestTest.cc
  4982. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4983. Rewritten Exception class. Throw exception object, not its pointer and
  4984. catch by reference, so that remove problematic delete operator for
  4985. catched exception.
  4986. * src/Exception.cc
  4987. * src/Exception.h
  4988. * test/ExceptionTest.cc
  4989. * src/*: All files throwing/catching exception.
  4990. * test/*: All files throwing/catching exception.
  4991. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4992. Now auto protocol detection is enabled without -Z option.
  4993. But there is a important difference between with/without -Z optoin.
  4994. For example, if you type:
  4995. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  4996. then, aria2 interprets there are 3 request groups:
  4997. (1) http://host/file, http://mirror/file <-- multi-source download
  4998. (2) file1.torrent
  4999. (3) file2.metalink
  5000. On the other hand, if you invoke above command with -Z option, it is
  5001. interpreted as 4 request groups:
  5002. (1) http://host/file
  5003. (2) file1.torrent
  5004. (3) file2.metalink
  5005. (4) http://mirror/file
  5006. I think usually user don't mix multi-source URLs and torrent files, so
  5007. there is no big problem here.
  5008. * src/main.cc
  5009. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5010. Fixed the bug that causes segmentaion fault when reading XML containing
  5011. unescapsed character like '&'.
  5012. Also a modification was made which avoids adding unnecessary
  5013. characters stack and appending unused string.
  5014. * src/ExpatMetalinkProcessor.cc
  5015. * src/FileMetalinkParserState.h
  5016. * src/FilesMetalinkParserState.h
  5017. * src/FinMetalinkParserState.h
  5018. * src/HashMetalinkParserState.h
  5019. * src/InitialMetalinkParserState.h
  5020. * src/LanguageMetalinkParserState.h
  5021. * src/MetalinkMetalinkParserState.h
  5022. * src/MetalinkParserState.h
  5023. * src/MetalinkParserStateMachine.cc
  5024. * src/MetalinkParserStateMachine.h
  5025. * src/OSMetalinkParserState.h
  5026. * src/PieceHashMetalinkParserState.h
  5027. * src/PiecesMetalinkParserState.h
  5028. * src/ResourcesMetalinkParserState.h
  5029. * src/SizeMetalinkParserState.h
  5030. * src/SkipTagMetalinkParserState.h
  5031. * src/URLMetalinkParserState.h
  5032. * src/VerificationMetalinkParserState.h
  5033. * src/VersionMetalinkParserState.h
  5034. * src/XML2SAXMetalinkProcessor.cc
  5035. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5036. Added StringFormat class, which internally calls vasprintf.
  5037. operator<< is defined for this class, so it can be used with iostream
  5038. classes nicely. SimpleLogger and following functions are rewritten
  5039. using StringFormat class.
  5040. Besides, now Logger class's methods are non-const, many classes
  5041. that has a const Logger* as a member variable are modified to remove
  5042. const qualifier from the variable declaration.
  5043. * src/HelpItemFactory.cc
  5044. * src/Request.cc
  5045. * src/SimpleLogger.cc
  5046. * src/StringFormat.cc
  5047. * src/StringFormat.h
  5048. * src/Util.cc
  5049. * src/option_processing.cc
  5050. * src/version_usage.cc
  5051. * test/StringFormatTest.cc
  5052. * src/*.h: The classes that has const Logger* as a member variable.
  5053. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5054. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5055. failed. Also fixed memory link when exception is thrown there.
  5056. * src/main.cc (AccRequestGroup)
  5057. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5058. Added build-in "Accept-Features" support. For now only "metalink" is
  5059. used in this header field.
  5060. This "metalink" value is removed from the list when connecting URLs
  5061. fed by metalink file to avoid loop in "transparent" metlaink.
  5062. * src/HttpRequest.cc
  5063. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5064. header is also held in this variable. Also renamed setUserHeaders as
  5065. addHeader and it was rewritten to add header not just to clear the old
  5066. value.
  5067. * src/HttpRequestCommand.cc
  5068. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5069. from "Accept-Features" list.
  5070. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5071. default.
  5072. * src/RequestGroup.h
  5073. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5074. * src/a2functional.h: Included <string> because Concat class depends on
  5075. it.
  5076. * test/HttpRequestTest.cc
  5077. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5078. Added comment
  5079. * src/RequestGroup.cc (createNextCommand)
  5080. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5081. Capitalized METHOD_GET and METHOD_HEAD
  5082. * src/Request.cc
  5083. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5084. Added getDownloadResults() method
  5085. * src/RequestGroupMan.cc
  5086. * src/RequestGroupMan.h
  5087. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5088. Fixed the bug that aria2 exits when commands is empty() but
  5089. _routineCommands are not.
  5090. * src/DownloadEngine.cc
  5091. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5092. Use the default value pulled from Option object in HelpItemFactory.
  5093. except options whose defualt value is embedded in a usage text.
  5094. * src/HelpItemFactory.cc
  5095. * src/HelpItemFactory.h
  5096. * src/option_processing.cc
  5097. * src/version_usage.cc
  5098. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. Added --quiet option to make aria2 quiet (no console output).
  5100. --quiet option is tagged with ADVANCED.
  5101. * src/HelpItemFactory.cc
  5102. * src/LogFactory.cc
  5103. * src/LogFactory.h
  5104. * src/MultiUrlRequestInfo.cc
  5105. * src/MultiUrlRequestInfo.h
  5106. * src/NullStatCalc.h: New class. This class prints nothing.
  5107. * src/OptionHandlerFactory.cc
  5108. * src/main.cc
  5109. * src/option_processing.cc
  5110. * src/prefs.h
  5111. * src/usage_text.h
  5112. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5113. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5114. * src/HelpItemFactory.cc (createHelpItems):
  5115. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5116. Fixed compilation error in ExpatMetalinkProcessor.cc
  5117. * src/ExpatMetalinkProcessor.cc
  5118. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5119. Reuse socket if the origin server supports HTTP keep-alive and
  5120. --enable-http-keep-alive or --enable-http-pipelining is given.
  5121. The current implementation doesn't reuse the connections established
  5122. against proxy server.
  5123. * src/AbstractCommand.cc
  5124. * src/DownloadEngine.cc
  5125. * src/DownloadEngine.h
  5126. * src/HttpDownloadCommand.cc
  5127. * src/HttpInitiateConnectionCommand.cc
  5128. * src/HttpResponseCommand.cc
  5129. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5130. Rewritten HTTP keep-alive and pipelining routine.
  5131. * src/AbstractCommand.cc
  5132. * src/HttpConnection.cc
  5133. * src/HttpDownloadCommand.cc
  5134. * src/HttpRequest.cc
  5135. * src/HttpRequestCommand.cc
  5136. * src/HttpResponseCommand.cc
  5137. * src/Request.cc
  5138. * src/Request.h
  5139. * src/RequestGroup.cc
  5140. * test/HttpRequestTest.cc
  5141. * test/HttpResponseTest.cc
  5142. * test/RequestTest.cc
  5143. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5144. Added missing setUserHeaders call
  5145. * src/HttpRequestCommand.cc
  5146. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5148. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5149. waste of time because it is more likey false.
  5150. * src/FileAllocationDispatcherCommand.cc (execute)
  5151. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5152. Now HTTP status and version are a member variable of HttpHeader.
  5153. HTTP status is processed as a string, not integer.
  5154. * src/AbstractProxyResponseCommand.cc
  5155. * src/HttpConnection.cc
  5156. * src/HttpHeader.cc
  5157. * src/HttpHeader.h
  5158. * src/HttpHeaderProcessor.cc
  5159. * src/HttpHeaderProcessor.h
  5160. * src/HttpResponse.cc
  5161. * src/HttpResponse.h
  5162. * test/HttpHeaderProcessorTest.cc
  5163. * test/HttpResponseTest.cc
  5164. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5165. Added --header option. You can specify any number of additional HTTP headers
  5166. like:
  5167. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5168. Unlike other commad-line option, you can use --header option multiple times.
  5169. * src/HelpItemFactory.cc
  5170. * src/HttpRequest.{cc, h}
  5171. * src/HttpRequestCommand.cc
  5172. * src/OptionHandlerFactory.cc
  5173. * src/OptionHandlerImpl.h
  5174. * src/option_processing.cc
  5175. * src/prefs.h
  5176. * src/usage_text.h
  5177. * test/HttpRequestTest.cc (testUserHeaders)
  5178. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5179. Eliminates the time lag between sequential downloads and commands in
  5180. the same RequestGroup.
  5181. In old implementation, aria2 occasionally waits 1 seconds before
  5182. executing next command or RequestGroup.
  5183. This is really a waste of time, and new implementation eliminates
  5184. this unnecessary time lag.
  5185. * src/AbstractCommand.cc
  5186. * src/AutoSaveCommand.cc
  5187. * src/CheckIntegrityCommand.cc
  5188. * src/Command.{cc, h}
  5189. * src/DownloadEngine.{cc, h}
  5190. * src/DownloadEngineFactory.cc
  5191. * src/FileAllocationCommand.cc
  5192. * src/FileAllocationDispatcherCommand.cc
  5193. * src/FillRequestGroupCommand.cc
  5194. * src/FtpInitiateConnectionCommand.cc
  5195. * src/HaveEraseCommand.cc
  5196. * src/HttpInitiateConnectionCommand.cc
  5197. * src/HttpResponseCommand.cc
  5198. * src/RealtimeCommand.cc
  5199. * src/RequestGroup.cc
  5200. * src/RequestGroupMan.cc
  5201. * src/StreamFileAllocationEntry.cc
  5202. * src/TimeBasedCommand.{cc, h}
  5203. * src/TimedHaltCommand.cc
  5204. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5205. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5206. keyword explicit and SharedHandle's default constructor initializes
  5207. its internal obj to null, old implementation initializes it using
  5208. obj's default constructor.
  5209. To assign null, write SharedHandle<T> x(...); x.reset();
  5210. TODO: test/SharedHandleTest.cc needs more tests.
  5211. * src/SharedHandle.h
  5212. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5213. Fixed type in man page.
  5214. * doc/aria2c.1.txt
  5215. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5216. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5217. * src/SimpleLogger.{cc, h}
  5218. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5219. Implemented auto protocol detection.
  5220. Now you can do:
  5221. aria2c -Z http://host/file file1.torrent file2.metalink
  5222. (Note: -Z option is required for auto protcol detection.)
  5223. Then aria2c downloads 3 files simultaneously:
  5224. 1. http://host/file
  5225. 2. file1.torrent <-- read local torrent file
  5226. 3. file2.metalink <-- read local Metalink file.
  5227. Same thing goes with -i option. Assume your uris.txt contans:
  5228. http://host/file
  5229. file1.torrent
  5230. file2.metalink
  5231. Then you can do: aria2c -i uris.txt
  5232. (Note: -Z option is not needed if -i option is given.)
  5233. * src/main.cc
  5234. * src/ProtocolDetector.{cc, h}
  5235. * test/ProtocolDetectorTest.cc
  5236. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5237. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5238. installed
  5239. * src/ARC4Encryptor.h
  5240. * src/ARC4Decryptor.h
  5241. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5242. Renamed argument from 'errno' to 'err', since errno is confused with
  5243. errno defined in errno.h.
  5244. * src/LibgcryptARC4Decryptor.h
  5245. * src/LibgcryptARC4Context.h
  5246. * src/LibgcryptDHKeyExchange.h
  5247. * src/LibgcryptARC4Encryptor.h
  5248. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5249. Rewritten choking algorithm.
  5250. * src/PeerChokeCommand.{cc, h}
  5251. * src/BtInterestedMessage.cc
  5252. * src/PeerSessionResource.{cc, h}
  5253. * src/DefaultPeerStorage.{cc, h}
  5254. * src/BtNotInterestedMessage.cc
  5255. * src/DefaultBtMessageDispatcher.{cc, h}
  5256. * src/BtMessageDispatcher.h
  5257. * src/Peer.{cc, h}
  5258. * src/BtLeecherStateChoke.{cc, h}
  5259. * src/BtSetup.cc
  5260. * src/BtSeederStateChoke.{cc, h}
  5261. * src/PeerStorage.h
  5262. * test/MockPeerStorage.h
  5263. * test/MockBtMessageDispatcher.h
  5264. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5265. Fixed compilation error on x84-64 platform.
  5266. * src/AuthConfig.cc: Included ostream.
  5267. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5268. Rewritten getBasename() and getDirname(), without standard library
  5269. basename(), dirname().
  5270. * src/File.cc
  5271. * test/FileTest.cc
  5272. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5273. Added Simplified Chinese translation. Also updated the following
  5274. translations: Polish, Dutch, German. Great thanks to all translators.
  5275. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5276. Suppress content-range error when 'Content-Range' response header
  5277. doesn't contains bytes-unit specifier 'bytes'
  5278. * src/HttpHeader.cc (getRange)
  5279. * test/HttpHeaderTest.cc
  5280. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5281. Fixed compilation error with g++-4.3
  5282. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5283. Added missing include files for MinGW
  5284. * test/HttpHeaderProcessorTest.cc
  5285. * test/DHTRoutingTableSerializerTest.cc
  5286. * test/DHTRoutingTableDeserializerTest.cc
  5287. * test/UriListParserTest.cc
  5288. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Now download line is printed nicely with no garbage at the end of
  5290. line. I use ioctl to get the columns of terminal.
  5291. If stdout is redirected to another device, instead of carriage return,
  5292. end of line '\n' character is used. This is feature request#1909659
  5293. * src/ConsoleStatCalc.cc (calculateStat)
  5294. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5295. Included a2time.h
  5296. * src/DHTMessageDispatcher.h
  5297. * src/DHTMessageEntry.h
  5298. * src/DHTReplaceNodeTask.h
  5299. * src/DHTMessageTracker.h
  5300. * src/Util.h
  5301. * src/CookieBox.h
  5302. * src/SocketCore.h
  5303. * src/DefaultBtMessageDispatcher.h
  5304. * src/SocketCore.cc
  5305. * src/Util.cc
  5306. * src/DHTPingTask.h
  5307. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5308. Fixed high memory footprint when DHT is enabled.
  5309. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  5310. queued than it is processed and the queue is getting longer. As a
  5311. consequence, momory usage is increased.
  5312. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  5313. replacement cache in DHTBucket which is described in Kademlia paper.
  5314. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  5315. DHTReplaceNodeTask.
  5316. * src/DHTBucket.{h, cc}
  5317. (cacheNode): New function.
  5318. (getCachedNodes): New function.
  5319. (dropNode): Push back cached node to _nodes.
  5320. * test/DHTBucketTest.cc
  5321. (testCacheNode): New test
  5322. (testDropNode): New test
  5323. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5324. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  5325. the unused 4KB memory when ssl is not used.
  5326. * src/SocketCore.cc
  5327. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5328. Added summary log for peer announce storage.
  5329. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  5330. Removed cast
  5331. * src/DefaultPeerStorage.cc (addPeer)
  5332. Log exception message
  5333. * src/DHTMessageTracker.cc (handleTimeout)
  5334. Fixed casting
  5335. * test/HttpRequestTest.cc
  5336. * test/MetalinkProcessorTest.cc
  5337. * test/PieceTest.cc
  5338. * test/MetalinkEntryTest.cc
  5339. * test/SequenceTest.cc
  5340. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. * src/ParameterizedStringParser.cc (createLoop):
  5342. Removed unused variable sstep.
  5343. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5344. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5345. * src/Util.{h, cc}
  5346. (parseUInt): New function.
  5347. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5348. The actual range is uint32_t.
  5349. * test/UtilTest.cc
  5350. * src/ParameterizedStringParser.cc:
  5351. Use Util::parseUInt() for loop variables.
  5352. * test/ParameterizedStringParserTest.cc
  5353. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5354. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Rewritten the functions for binding port.
  5356. * src/DHTConnectionImpl.{h, cc}
  5357. * src/PeerListenCommand.{h, cc}
  5358. * src/DHTSetup.cc
  5359. * src/BtSetup.cc
  5360. * test/DHTConnectionImplTest.cc
  5361. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. type cleanup for allmost all remaining files.
  5363. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5364. Type clarification
  5365. * src/PeerSessionResource.{h, cc}
  5366. * src/DefaultPieceStorage.{h, cc}
  5367. * src/Peer.{h, cc}
  5368. * test/PeerSessionResourceTest.cc
  5369. Use div function
  5370. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5371. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5372. Type clarification
  5373. * src/DefaultPeerStorage.{h, cc}
  5374. * test/DefaultPeerStorageTest.cc
  5375. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5376. Type clarification: size_t for length or size, uint64_t for file
  5377. length, off_t for file offset.
  5378. * src/DefaultBtProgressInfoFile.cc
  5379. * src/DefaultBtContext.{h, cc}
  5380. * src/DefaultBtInteractive.cc
  5381. * src/DownloadCommand.{h, cc}
  5382. * src/IteratableChunkChecksumValidator.{h, cc}
  5383. * src/SegmentMan.{h, cc}
  5384. * src/SingleFileDownloadContext.{h, cc}
  5385. * src/IteratableChecksumValidator.{h, cc}
  5386. * src/BtContext.h
  5387. * src/IteratableValidator.h
  5388. * src/DownloadContext.h
  5389. * test/SingleFileDownloadContextTest.cc
  5390. * test/DefaultBtContextTest.cc
  5391. * test/MockBtContext.h
  5392. * test/Metalink2RequestGroupTest.cc
  5393. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5394. Type clarification: size_t for length or size, uint64_t for file
  5395. length, off_t for file offset.
  5396. * src/PiecedSegment.cc
  5397. * src/GrowSegment.h
  5398. * src/DefaultBtRequestFactory.h
  5399. * src/DefaultBtProgressInfoFile.cc
  5400. * src/UnknownLengthPieceStorage.h
  5401. * src/DefaultPieceStorage.cc
  5402. * src/UnknownLengthPieceStorage.cc
  5403. * src/DefaultBtInteractive.cc
  5404. * src/GrowSegment.cc
  5405. * src/BitfieldMan.h
  5406. * src/DownloadCommand.cc
  5407. * src/BtRequestFactory.h
  5408. * src/PiecedSegment.h
  5409. * src/DefaultPieceStorage.h
  5410. * src/Piece.cc
  5411. * src/DefaultBtRequestFactory.cc
  5412. * src/PieceStorage.h
  5413. * src/Segment.h
  5414. * src/Piece.h
  5415. * src/BitfieldMan.cc
  5416. * src/Util.cc
  5417. * test/DefaultBtProgressInfoFileTest.cc
  5418. * test/DefaultPieceStorageTest.cc
  5419. * test/MockPieceStorage.h
  5420. * test/BtRequestMessageTest.cc
  5421. * test/DefaultBtMessageDispatcherTest.cc
  5422. * test/BitfieldManTest.cc
  5423. * test/GrowSegmentTest.cc
  5424. * test/PieceTest.cc
  5425. * test/SegmentTest.cc
  5426. * test/SegmentManTest.cc
  5427. * test/DefaultBtRequestFactoryTest.cc
  5428. * test/MockBtRequestFactory.h
  5429. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5430. Fixed compilation error with --disable-nls
  5431. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5432. in gettext.h causes the problem.
  5433. * src/common.h
  5434. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5435. Removed subPiece related functions.
  5436. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5437. * src/DefaultPieceStorage.{h, cc}
  5438. * test/PieceTest.cc
  5439. * test/DefaultPieceStorageTest.cc
  5440. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Use unsigned char for data store.
  5442. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5443. Bump up version number to 0.13.0+1
  5444. * configure.ac
  5445. * Release 0.13.0+1
  5446. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5447. Changed inactive connection timeout to 120.
  5448. To accept more mulually interested peers, disconnect peer when there
  5449. is no interest between us after certain time passed.
  5450. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5451. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5452. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5453. when compiled with async DNS support.
  5454. * src/DownloadEngine.cc
  5455. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5456. value '10' will be a little bit short when some DNS servers are
  5457. offline and several DNS servers are tried. It should be configured
  5458. by command-line option.
  5459. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5460. Merged Ross's mingw patch.
  5461. * src/DHTRoutingTableDeserializer.cc
  5462. * src/DHTRoutingTableSerializer.cc
  5463. * src/Platform.{h, cc}
  5464. * src/timegm.h
  5465. * src/gettimeofday.h
  5466. * src/getaddrinfo.h
  5467. * src/SocketCore.h
  5468. * src/common.h
  5469. * src/inet_aton.h
  5470. * src/DownloadEngine.h
  5471. * src/gai_strerror.h
  5472. * src/a2netcompat.h
  5473. * configure.ac
  5474. * configure
  5475. * aclocal.m4
  5476. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Included missing iostream.
  5478. * test/AllTest.cc
  5479. * test/BtDependencyTest.cc
  5480. * test/BtExtendedMessageTest.cc
  5481. * test/DHTConnectionImplTest.cc
  5482. * test/DHTMessageFactoryImplTest.cc
  5483. * test/DHTMessageTrackerEntryTest.cc
  5484. * test/DHTNodeTest.cc
  5485. * test/DHTRoutingTableSerializerTest.cc
  5486. * test/DefaultBtAnnounceTest.cc
  5487. * test/DefaultBtContextTest.cc
  5488. * test/DefaultBtMessageFactoryTest.cc
  5489. * test/DefaultExtensionMessageFactoryTest.cc
  5490. * test/HandshakeExtensionMessageTest.cc
  5491. * test/HttpResponseTest.cc
  5492. * test/MetalinkProcessorTest.cc
  5493. * test/MultiFileAllocationIteratorTest.cc
  5494. * test/SocketCoreTest.cc
  5495. * test/UTPexExtensionMessageTest.cc
  5496. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5497. Reorganized includes.
  5498. * src/NameResolver.cc
  5499. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. Fixed compilation error without ares/c-ares
  5501. * src/NameResolver.h:
  5502. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. Added a test for large file.
  5504. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  5505. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5506. Fixed the bug that file size is ignored if size > INT32_MAX
  5507. * src/SizeMetalinkParserState.cc (endElement):
  5508. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5509. Bump up version number to 0.13.0
  5510. * configure.ac
  5511. * Release 0.13.0
  5512. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5513. Updated Makfefile.am to make 'make dist' work.
  5514. Now packaged filename is aria2c-VERSION.tar.bz2.
  5515. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  5516. Added LICENSE.OpenSSL to dist_noinst_DATA.
  5517. Large file support is now configured by configure script.
  5518. * configure.ac
  5519. Removed unsused source files
  5520. * src/
  5521. * test/
  5522. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  5523. Peer.h and BtContext.h respectively.
  5524. * src/Peer.h
  5525. * src/BtContext.h
  5526. Updated translations.
  5527. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  5528. translations. Great thanks to all translators!;)
  5529. * po/*.{po, gmo}
  5530. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  5532. statically declared sha1 MessageDigestContext.
  5533. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  5534. initialization of short-lived MessageDigestContext.
  5535. * src/MessageDigestHelper.{h, cc}
  5536. * src/main.cc
  5537. Now DownloadCommand has a reference to MessageDigestContext to avoid
  5538. the initialization of MessageDigestContext every time in validating
  5539. chunk checksum.
  5540. * src/DownloadCommand.{h, cc}
  5541. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5542. Add a file descriptor which connected to fast peer(latency<1500) to
  5543. select(). This change reduced CPU load.
  5544. * src/PeerInteractionCommand.cc
  5545. * src/DefaultBtInteractive.{h, cc}
  5546. * src/BtInteractive.h
  5547. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5548. Fixed the previous insufficient fix for possible busy loop.
  5549. * src/MSEHandshake.cc (identifyHandshakeType)
  5550. Removed unused functions.
  5551. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  5552. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5553. Fixed possible busy loop if first 20 bytes are not received for a few
  5554. minutes.
  5555. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  5556. * src/ReceiverMSEHandshakeCommand.cc
  5557. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5558. Fixed compilation error
  5559. * src/ExpatMetalinkProcessor.cc
  5560. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5561. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  5562. * src/DHTBucket.cc
  5563. Removed unnecessary cast.
  5564. * src/HandshakeExtensionMessage.cc
  5565. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5566. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  5567. is missing.
  5568. * src/OptionHandlerFactory.cc
  5569. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5570. Fixed the bug that HAVE message is not sent for a piece they are
  5571. downloaded fom http/ftp server before any BitTorrent handshake is done
  5572. with peers.
  5573. * src/DefaultBtInteractive.cc
  5574. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5575. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  5576. * src/Makefile.am
  5577. * src/Makefile.in
  5578. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5579. Updated README. Added html version of README and man page.
  5580. * README
  5581. * README.html
  5582. * readme2html: Shell script to generate README.html from README using
  5583. asciidoc.
  5584. * doc/aria2c.1.html
  5585. * doc/makeman: Added the line to generate aria2c.1.html
  5586. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5587. Fixed offset calculation.
  5588. * src/LibgcryptDHKeyExchange.h (computeSecret)
  5589. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5590. Rewritten itos and uitos using template. llitos and ullitos are
  5591. replaced with itos and uitos respectively.
  5592. * src/Util.{h, cc}
  5593. * test/UtilTest.cc
  5594. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5595. Fixed the bug that DH key exchange sometimes fails due to bad handling
  5596. of the number of bytes required for storing public key and shared
  5597. secret.
  5598. * src/LibgcryptDHKeyExchange.h
  5599. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  5600. * src/MSEHandshake.cc
  5601. * test/DHKeyExchangeTest.cc
  5602. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5603. Removed since they are not used.
  5604. * src/Xml2MetalinkProcessor.{h, cc}
  5605. * src/Socket.cc
  5606. * src/SegmentSplitter.{h, cc}
  5607. * test/Xml2MetalinkProcessorTest.cc
  5608. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5609. Fixed the bug that prevents aria2 from stopping other than by pressing
  5610. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  5611. option. aria2 doesn't stop even after --seed-time is satisfied and
  5612. continues to output blank lines in the console.
  5613. * src/ReceiverMSEHandshakeCommand.cc
  5614. * src/PeerReceiveHandshakeCommand.cc
  5615. * src/PeerListenCommand.cc
  5616. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5617. Bump up version number to 0.13.0rc
  5618. * configure.ac
  5619. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5620. Updated man page and some usage text.
  5621. * doc/aria2c.1.txt
  5622. * src/usage_text.h
  5623. * po/*.{po, gmo}
  5624. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5625. Updated translations. Added Finnish and Hebrew translations.
  5626. Great thanks to all translators!
  5627. * po/*.{po, gmo}
  5628. * po/LINGUAS
  5629. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5630. Log more detailed information about each message.
  5631. * src/DHTQueryMessage.{h, cc}
  5632. * src/DHTGetPeersMessage.{h, cc}
  5633. * src/DHTFindNodeReplyMessage.{h, cc}
  5634. * src/DHTGetPeersReplyMessage.{h, cc}
  5635. * src/DHTAnnouncePeerMessage.{h, cc}
  5636. * src/DHTResponseMessage.{h, cc}
  5637. * src/DHTFindNodeMessage.{h, cc}
  5638. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5639. Use constants defined in prefs.h
  5640. * src/option_processing.cc
  5641. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5642. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  5643. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5644. Make room for future enchancements for IPv6 addresses.
  5645. Bump up version number of dht.dat file format to 2.
  5646. Not compatible with previous version.
  5647. * src/DHTRoutingTableSerializer.cc
  5648. * src/DHTRoutingTableDeserializer.cc
  5649. * test/DHTRoutingTableSerializerTest.cc
  5650. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. Added handling for the return values from
  5652. PeerMessageUtil::createcompact().
  5653. * src/DefaultBtContext.cc (computeFastSet):
  5654. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5655. Fixed abort when peer's ip address is IPv4-mapped address.
  5656. * src/DefaultBtContext.cc (computeFastSet)
  5657. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5658. cannot handle IPv4-mapped addresses.
  5659. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5660. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5661. Proper return value handling for OpenSSL functions.
  5662. * src/LibsslDHKeyExchange.h
  5663. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5664. Random bytes generation using libgcrypt and OpenSSL.
  5665. * src/DHTUtil.{h, cc}
  5666. * test/DHTUtilTest.cc
  5667. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5668. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5669. received.
  5670. * src/DHTMessageReceiver.cc (receiveMessage)
  5671. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5672. Fixed the bug that a return code is always 0. BUG#1897704
  5673. If error occurred during the download or there exist unfinished
  5674. downloads, aria2 returns with code 1.
  5675. * src/RequestGroupMan.{h, cc}
  5676. * src/MultiUrlRequestInfo.{h, cc}
  5677. * src/main.cc
  5678. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5679. IPv6 support for SocketCore class.
  5680. TODO: In SocketCore::establishConnection(), this is insufficient to
  5681. determin the failure of connect() here because the socket is
  5682. non-blocking state. The next addresses should be tried after select().
  5683. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5684. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5685. instead which address family independent.
  5686. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5687. information in a compact peer format which is for IPv4 only.
  5688. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5689. this is a spec of BitTorrent protocol.
  5690. * src/SocketCore.{h, cc}
  5691. * src/PeerMessageUtil.cc
  5692. * test/SocketCoreTest.cc
  5693. * test/PeerMessageUtilTest.cc
  5694. * test/DHTConnectionImplTest.cc
  5695. Handle IPv4-mapped addresses.
  5696. * src/DHTNode.cc: Now identity is determined by node id.
  5697. * src/DHTMessageTrackerEntry.cc
  5698. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5699. should handle it.
  5700. * src/DHTRoutingTableDeserializer.cc
  5701. * src/DHTMessageFactoryImpl.cc
  5702. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5703. Change the unit of --stop option from a minute to a second.
  5704. * src/usage_text.h
  5705. * src/DownloadEngineFactory.cc
  5706. * src/OptionHandlerFactory.cc
  5707. * src/message.h
  5708. * src/TimedHaltCommand.cc
  5709. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5710. Make listening socket non-block mode.
  5711. * src/FtpConnection.cc
  5712. * src/FtpNegotiationCommand.{h, cc}
  5713. * src/PeerListenCommand.cc
  5714. Fixed the bug that cause slow ftp negotiation.
  5715. * src/FtpNegotiationCommand.{h, cc}
  5716. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5717. Added basic tag to --enable-dht, --dht-listen-port option.
  5718. * src/HelpItemFactory.cc (createHelpItems)
  5719. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5720. Updated text.
  5721. * src/usage_text.h
  5722. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5723. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5724. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5725. Determin _threadtholdSpeed in each constructor for
  5726. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5727. * src/ActivePeerConnectionCommand.{h, cc}
  5728. * src/PeerReceiveHandshakeCommand.{h, cc}
  5729. * src/BtSetup.cc
  5730. * src/BtConstants.h
  5731. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5732. Added --bt-min-crypto-level and --bt-require-crypto options.
  5733. * src/OptionHandlerFactory.cc
  5734. * src/MSEHandshake.cc
  5735. * src/HelpItemFactory.cc
  5736. * src/option_processing.cc
  5737. * src/ReceiverMSEHandshakeCommand.cc
  5738. * src/prefs.h
  5739. * src/DefaultBtAnnounce.cc
  5740. * src/InitiatorMSEHandshakeCommand.cc
  5741. * src/usage_text.h
  5742. * test/MSEHandshakeTest.cc
  5743. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. Bump version number to 0.13.0b
  5745. * configure.ac
  5746. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Updated doc.
  5748. * src/MessageDigestHelper.h:
  5749. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5750. Use raw message digest as a token instead of its hexadecimal
  5751. representation.
  5752. * src/DHTTokenTracker.cc (generateToken)
  5753. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5754. Added Message Stream Encryption(MSE) support.
  5755. Currently, aria2 accepts incoming connections with Obfuscation Header
  5756. and legacy BitTorrent Header and establishes connections with
  5757. Obfuscation Header first and if failed then retry with legacy
  5758. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  5759. choose ARC4. The new option to change the default behavior is planned.
  5760. For tracker extension, "supportcrypto=1" is added statically.
  5761. * src/PeerInitiateConnectionCommand.{h, cc}
  5762. * src/PeerConnection.{h, cc}
  5763. * src/HandleRegistry.h
  5764. * src/SocketCore.h
  5765. * src/PeerReceiveHandshakeCommand.{h, cc}
  5766. * src/BtRegistry.{h, cc}
  5767. * src/PeerListenCommand.cc
  5768. * src/InitiatorMSEHandshakeCommand.{h, cc}
  5769. * src/ReceiverMSEHandshakeCommand.{h, cc}
  5770. * src/MSEHandshake.{h, cc}
  5771. * src/ARC4Encryptor.h
  5772. * src/ARC4Decryptor.h
  5773. * src/LibgcryptARC4Encryptor.h
  5774. * src/LibgcryptARC4Decryptor.h
  5775. * src/LibgcryptARC4Context.h
  5776. * src/LibsslARC4Encryptor.h
  5777. * src/LibsslARC4Decryptor.h
  5778. * src/LibsslARC4Context.h
  5779. * src/DHKeyExchange.h
  5780. * src/LibgcryptDHKeyExchange.h
  5781. * src/LibsslDHKeyExchange.h
  5782. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  5783. * test/DefaultBtAnnounceTest.cc
  5784. * test/ARC4Test.cc
  5785. * test/DHKeyExchangeTest.cc
  5786. Removed prepareForRetry() because it is not used.
  5787. * src/PeerAbstractCommand.{h, cc}
  5788. * src/PeerInteractionCommand.{h, cc}
  5789. * src/PeerInitiateConnectionCommand.{h, cc}
  5790. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5791. Added the ability to load nodes from torrent file. These nodes are
  5792. added to the routing table when downloading that torrent.
  5793. * src/BtContext.h
  5794. * src/DefaultBtContext.{h, cc}
  5795. * src/DHTSetup.cc
  5796. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  5797. hostname and port pair, and resolves all of them.
  5798. * src/NameResolver.{h, cc}: Added reset().
  5799. * src/RequestGroup.cc
  5800. * test/DefaultBtContextTest.cc
  5801. * test/MockBtContext.h
  5802. Removed assert() from DefaultBtContext and throw exception instead.
  5803. * src/DefaultBtContext.cc
  5804. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5805. Fixed segmentation fault bug when exiting if dht is disabled.
  5806. * src/RequestGroup.cc
  5807. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Fixed typo in log message and define the message in message.h
  5809. * src/TimedHaltCommand.cc
  5810. * src/message.h
  5811. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5812. Included RecoverableException.h to fix compilation error.
  5813. * test/DHTMessageFactoryImplTest.cc
  5814. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5815. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  5816. * test/DHTPingMessageTest.cc
  5817. * test/DHTGetPeersMessageTest.cc
  5818. * test/DHTFindNodeMessageTest.cc
  5819. * test/DHTAnnouncePeerMessageTest.cc
  5820. * test/MockDHTMessage.h
  5821. * test/MockDHTMessageFactory.h
  5822. * test/MockDHTMessageDispatcher.h: New class.
  5823. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5824. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  5825. virtual.
  5826. * src/DHTMessageDispatcher.h
  5827. * src/DHTMessageDispatcherImpl.{h, cc}
  5828. * src/DHTSetup.cc
  5829. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5830. Adding handling of DHT error message. Just log error message and
  5831. throw exception.
  5832. * src/DHTMessageFactoryImpl.cc
  5833. * test/DHTMessageFactoryImplTest.cc
  5834. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Added handling of dynamic cast failure.
  5836. * src/DHTNodeLookupTask.cc
  5837. * src/DHTPeerLookupTask.cc
  5838. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5839. Added the ability to stop aria2 itself when given time has passed
  5840. from start. Use --stop option to specify time in minutes.
  5841. When 0 is given, this feature is disabled.
  5842. * src/OptionHandlerFactory.cc
  5843. * src/TimeBasedCommand.h: Make _interval protected scope.
  5844. * src/HelpItemFactory.cc
  5845. * src/option_processing.cc
  5846. * src/prefs.h
  5847. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  5848. before calling RequestGroupMan::fillRequestGroupFromReserver().
  5849. Without this modification, the result list shows "ERR" when aria2 is
  5850. stopped by --stop option. It should be "INPR".
  5851. * src/DownloadEngine.{h, cc}
  5852. * src/DownloadEngineFactory.cc
  5853. * src/usage_text.h
  5854. * src/TimedHaltCommand.{h, cc}: New class.
  5855. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5856. Bootstrap through node added by port message.
  5857. Currently bootstrap is executed if the number of buckets in routing
  5858. table is 1.
  5859. * src/BtPortMessage.{h, cc}
  5860. * src/DefaultBtMessageFactory.{h, cc}
  5861. * src/PeerInteractionCommand.cc
  5862. * test/BtPortMessageTest.cc
  5863. * test/MockDHTTask.h
  5864. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5865. Extract the Peer class's member variables, which are only needed after
  5866. PeerInteractionCommand, into PeerSessionResource class.
  5867. This class is instantiated in PeerInteractionCommand class's ctor and
  5868. released in its dtor.
  5869. This will make Peer class lightweight and uses less memory for peers
  5870. which are not connected and wait in the queue.
  5871. * src/PeerChokeCommand.cc
  5872. * src/PeerSessionResource.{h, cc}
  5873. * src/PeerInteractionCommand.cc
  5874. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  5875. * src/DefaultBtInteractive.cc
  5876. * src/BtPieceMessage.cc
  5877. * src/BtInterestedMessage.cc
  5878. * src/BtUnchokeMessage.cc
  5879. * src/DefaultPeerStorage.{h, cc}
  5880. * src/PeerInitiateConnectionCommand.cc
  5881. * src/ActivePeerConnectionCommand.cc
  5882. * src/BtNotInterestedMessage.cc
  5883. * src/DefaultBtMessageDispatcher.cc
  5884. * src/BtChokeMessage.cc
  5885. * src/BtRequestMessage.cc
  5886. * src/Peer.{h, cc}
  5887. * src/BtRegistry.h
  5888. * src/TrackerWatcherCommand.cc
  5889. * src/PeerReceiveHandshakeCommand.cc
  5890. * test/BtExtendedMessageTest.cc
  5891. * test/BtAllowedFastMessageTest.cc
  5892. * test/BtCancelMessageTest.cc
  5893. * test/DefaultPieceStorageTest.cc
  5894. * test/BtBitfieldMessageTest.cc
  5895. * test/BtHaveMessageTest.cc
  5896. * test/BtNotInterestedMessageTest.cc
  5897. * test/BtRequestMessageTest.cc
  5898. * test/PeerSessionResourceTest.cc
  5899. * test/DefaultBtMessageDispatcherTest.cc
  5900. * test/PeerTest.cc
  5901. * test/BtInterestedMessageTest.cc
  5902. * test/BtRejectMessageTest.cc
  5903. * test/BtChokeMessageTest.cc
  5904. * test/DefaultPeerStorageTest.cc
  5905. * test/BtHaveNoneMessageTest.cc
  5906. * test/BtHaveAllMessageTest.cc
  5907. * test/DefaultExtensionMessageFactoryTest.cc
  5908. * test/BtUnchokeMessageTest.cc
  5909. * test/DefaultBtMessageFactoryTest.cc
  5910. * test/HandshakeExtensionMessageTest.cc
  5911. * test/UTPexExtensionMessageTest.cc
  5912. * test/DefaultBtRequestFactoryTest.cc
  5913. * test/BtPieceMessageTest.cc
  5914. Removed typedef PeerStats.
  5915. * src/PeerStat.h
  5916. * src/SegmentMan.cc
  5917. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5918. Added std namespace to copy, remove_copy, back_inserter,
  5919. front_inserter.
  5920. * src/RequestGroupMan.cc
  5921. * src/DefaultPieceStorage.cc
  5922. * src/StreamFileAllocationEntry.cc
  5923. * src/BtFileAllocationEntry.cc
  5924. * src/RequestGroup.cc
  5925. * src/MetalinkEntry.cc
  5926. * src/DelegatingPeerListProcessor.cc
  5927. * src/DefaultBtRequestFactory.cc
  5928. * src/DefaultBtMessageDispatcher.cc
  5929. * src/version_usage.cc: Included <algorithm>
  5930. * src/main.cc
  5931. * src/MetalinkParserController.cc
  5932. * src/DefaultBtContext.cc
  5933. * src/DownloadEngineFactory.cc
  5934. * src/a2algo.h
  5935. Removed.
  5936. * test/StreamUriListParserTest.cc
  5937. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  5939. ActivePeerConnectionCommand when it is given and
  5940. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  5941. * src/ActivePeerConnectionCommand.{h, cc}
  5942. * src/BtSetup.cc
  5943. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Only add socket to DownloadEngine's select routine when peer or
  5945. localhost is unchoked and interested. This lowers CPU usage a
  5946. little bit.
  5947. * src/PeerInteractionCommand.cc
  5948. * src/PeerAbstractCommand.{h, cc}
  5949. * src/BtInteractive.h
  5950. * src/DefaultBtInteractive.{h, cc}
  5951. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5952. Revert previous change because get_peers message is needed for
  5953. announce_peer anyway.
  5954. * src/DHTGetPeersCommand.cc
  5955. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5956. Request peers thought DHT only when download hasn't finished.
  5957. * src/DHTGetPeersCommand.cc
  5958. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5959. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  5960. * src/DHTBucketRefreshTask.{h, cc}
  5961. * src/DHTSetup.cc
  5962. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5963. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  5964. standard classes.
  5965. Included string.h where mem* function are used.
  5966. Added namespace aria2.
  5967. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5968. Create directory before saving DHT routing table.
  5969. Now ios::failure is now handled properly.
  5970. * src/DHTAutoSaveCommand.cc
  5971. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5972. Removed unnecessary cerr.
  5973. * src/DownloadEngine.cc
  5974. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5975. Catch exception inside DHTMessageReceiver::receiveMessage().
  5976. Log unknown message.
  5977. * src/DHTMessageReceiver.{h, cc}
  5978. * src/DHTMessageFactory.h
  5979. * src/DHTMessageFactoryImpl.{h, cc}
  5980. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  5981. * src/DHTInteractionCommand.cc
  5982. * src/DHTUnknownMessage.{h, cc}
  5983. * test/DHTUnknownMessageTest.cc
  5984. * test/MockDHTMessageFactory.h
  5985. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5986. Commented out ip address comparison because a host can have multiple
  5987. ip addresses and it is hard to predict the hostname is resolved into
  5988. which one.
  5989. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  5990. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5991. * po/Makefile.in: Removed since this is generated by configure.
  5992. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5993. Fixed compiler warning about redefinition of SIZE_MAX.
  5994. Use common.h instead of config.h directly here.
  5995. * src/Platform.{h, cc}
  5996. The check of ENABLE_NLS is made in gettext.h, so it is not required
  5997. here.
  5998. * common.h
  5999. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6000. Updated gettext related files.
  6001. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6002. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6003. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6004. Added DHT functionality, compatible with mainline.
  6005. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6006. You may need to specify entry point to DHT network using
  6007. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6008. Use --dht-listen-port to specify port number. Make sure that your
  6009. firewall configuration can pass through UDP traffic to the port.
  6010. The routing table is saved in $HOME/.aria2/dht.dat.
  6011. * src/DHT*
  6012. * src/BNode.{h, cc}
  6013. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6014. particular torrent.
  6015. * src/Data.cc: Rewritten ctor.
  6016. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6017. --dht-entry-point.
  6018. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6019. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6020. ends, remove BtContext from DHTPeerAnnounceStorage.
  6021. * src/BtPortMessage.{h, cc}: Rewritten.
  6022. * src/message.h
  6023. * src/OptionHandlerImpl.cc
  6024. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6025. --dht-entry-point.
  6026. * src/Dictionary.{h, cc} (remove): New function.
  6027. * src/prefs.h
  6028. * src/DefaultBtMessageFactory.h
  6029. * src/BtHandshakeMessage.cc
  6030. * src/ActivePeerConnectionCommand.cc
  6031. * src/SocketCore.{h, cc}: Added datagram socket support.
  6032. * src/DefaultBtMessageFactory.cc
  6033. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6034. Create DHT commands.
  6035. * src/BtMessageFactory.h
  6036. * src/PeerMessageUtil.{h, cc}
  6037. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6038. Fixed the bug that log file is not written when configuration file doesn't exist.
  6039. This is caused by using Logger class before LogFactory is not configured.
  6040. BUG #1875079
  6041. * src/option_processing.cc
  6042. Warning message "configuration doesn't exist" is only printed when --conf is
  6043. given.
  6044. * src/option_processing.cc
  6045. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6046. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6047. ShaVisitor is now deprecated and slated to be removed.
  6048. * src/DefaultBtContext.cc
  6049. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Externalize message to message.h
  6051. * src/Platform.cc
  6052. * src/message.h
  6053. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6054. Set default domain and default path to cookie.
  6055. * src/HttpResponse.cc
  6056. * src/CookieBox.{h, cc}
  6057. * src/CookieParser.{h, cc}
  6058. * test/CookieParserTest.cc
  6059. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6060. Added --no-conf and --conf-path command-line option.
  6061. --no-conf option disables loading aria2.conf file.
  6062. --conf-path option changes the configuration file path. The default
  6063. file path is $HOME/.aria2/aria2.conf
  6064. Added a warning message when the configuration file is not found.
  6065. * src/HelpItemFactory.cc
  6066. * src/option_processing.cc
  6067. * src/prefs.h
  6068. * src/usage_text.h
  6069. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6070. Added the message to inform users that other help categories are
  6071. available in -h option.
  6072. * src/version_usage.cc
  6073. * src/TagContainer.{h, cc}
  6074. * test/TagContainerTest.cc
  6075. * src/TaggedItem.{h, cc}
  6076. * test/TaggedItemTest.cc
  6077. * src/HelpItem.h
  6078. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6079. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6080. from PiecedSegment's ctor.
  6081. Previously Piece::getAllMissingBlockIndexes() is called from
  6082. PiecedSegment() but it is rather expensive since only first element is
  6083. used.
  6084. * src/PiecedSegment.cc
  6085. * src/Piece.{h, cc}
  6086. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6087. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6088. each time these functions are called.
  6089. * src/BitfieldMan.{h, cc}
  6090. * test/BitfieldManTest.cc
  6091. * src/array_fun.h
  6092. * test/array_funTest.cc
  6093. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6094. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6095. filtered. Removed unnecessary cast to int32_t.
  6096. * src/BitfieldMan.{h, cc}
  6097. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6098. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6099. payload length(4bytes) are received. This happens because lenbufLength
  6100. is not updated in this particular case and successive call of
  6101. receiveMessage() overwrites payload length with bytes recieved which
  6102. are payload body.
  6103. * src/PeerConnection.{h, cc}
  6104. * src/message.h
  6105. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6106. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6107. peer if there are peers that have same ipaddr and port.
  6108. I've experiened segmentation fault and "pure virtual function was
  6109. called" error.
  6110. * src/Peer.h
  6111. * test/PeerTest.cc
  6112. * src/DefaultPeerStorage.cc
  6113. * test/DefaultPeerStorageTest.cc
  6114. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. Removed a call to isPowerOf() because it is no longer necessary here
  6116. and a request block is not always power of 2.
  6117. BUG#1866924
  6118. * src/PeerMessageUtil.cc (checkLength)
  6119. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6120. Fixed the bug that always first found Segment is removed from
  6121. usedSegmentEntries. Removed unused functions.
  6122. * src/SegmentMan.{h, cc}
  6123. * test/SegmentManTest.cc
  6124. Fixed the bug that ServerHost is not removed.
  6125. * src/RequestGroup.cc
  6126. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Fixed the bug that SegmentMan::completeSegment() is not called
  6128. even if Segment is complete when --lowest-speed-limit is enabled.
  6129. BUG#1864525
  6130. * src/DownloadCommand.{h, cc}
  6131. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6132. Fixed: hash algorithm 'sha1' is always used.
  6133. * src/DownloadCommand.cc (validatePieceHash)
  6134. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6135. Added --enable-peer-exchange command-line option.
  6136. * src/OptionHandlerFactory.cc
  6137. * src/HelpItemFactory.cc
  6138. * src/option_processing.cc
  6139. * src/usage_text.h
  6140. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6141. Move extension from BtRuntime to ExtensionMessageFactory, because
  6142. extension can be specified per peer, not per torrent.
  6143. * src/DefaultBtInteractive.cc
  6144. * src/BtRuntime.h
  6145. * src/ExtendedMessagingAware.h
  6146. * src/ExtensionMessageFactory.h
  6147. * src/DefaultExtensionMessageFactory.cc
  6148. * test/DefaultExtensionMessageFactoryTest.cc
  6149. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Added categorized option help. Specify category using --help option.
  6151. Also added the ability to search options in forward match.
  6152. * src/HelpItem.{h, cc}
  6153. * test/HelpItemTest.cc
  6154. * src/HelpItemFactory.{h, cc}
  6155. * src/TagContainer.{h, cc}
  6156. * test/TagContainerTest.cc
  6157. * src/option_processing.cc
  6158. * src/prefs.h
  6159. * src/TaggedItem.{h, cc}
  6160. * test/TaggedItemTest.cc
  6161. * src/version_usage.cc
  6162. * src/help_tags.h
  6163. * src/usage_text.h
  6164. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6165. Fixed segmentation fault when bad torrent metainfo is parsed.
  6166. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6167. and then throw exception or skip it.
  6168. * src/DefaultBtContext.{h, cc}
  6169. * test/DefaultBtContextTest.cc
  6170. * src/AnnounceList.cc
  6171. * src/CompactPeerListProcessor.cc
  6172. * src/message.h
  6173. * src/DefaultBtAnnounce.{h, cc}
  6174. * test/DefaultBtAnnounceTest.cc
  6175. * src/BencodeVisitor.cc
  6176. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6177. Added missing "B"(=Byte). So now the message looks like this:
  6178. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6179. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6180. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6181. Show the seed ratio after torrent downloads.
  6182. For example, after torrent download completed and --seed-time and
  6183. --seed-ratio conditions are fulfilled, following message is printed
  6184. right after "Download complete: .....":
  6185. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6186. * src/RequestGroupMan.cc
  6187. * src/RequestGroup.{h, cc}
  6188. * src/message.h
  6189. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6190. Remove a defunct control file. A defunct control file means that while
  6191. it exists, but the corresponding download file is missing.
  6192. After its removal, a download restarts from the beginning.
  6193. * src/RequestGroup.cc
  6194. * src/message.h
  6195. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6196. Allocate bitfield in Peer when it is really used. More specifically,
  6197. bitfield in Peer is allocated after the connection is established and
  6198. deallocated when the connection is dropped.
  6199. Since 2 parameters(piece length and total length) was removed from the
  6200. constructor of Peer class, many test classes were modified accordingly.
  6201. See svn log for more detailed information.
  6202. * src/PeerInteractionCommand.cc
  6203. * src/CompactPeerListProcessor.cc
  6204. * src/Peer.cc
  6205. * src/DefaultPeerListProcessor.cc
  6206. * src/PeerListenCommand.cc
  6207. * src/PeerReceiveHandshakeCommand.cc
  6208. Fixed memory leak
  6209. * src/Piece.cc
  6210. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6211. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6212. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6213. command-line options.
  6214. * src/option_processing.cc
  6215. * src/ActivePeerConnectionCommand.cc
  6216. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6217. Send have message to peer if it already has the piece.
  6218. * src/BtHaveMessage.{h, cc}
  6219. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6220. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6221. port.
  6222. * src/DefaultPeerStorage.{h, cc}
  6223. * test/DefaultPeerStorageTest.cc
  6224. * src/HandshakeExtensionMessage.cc
  6225. * test/HandshakeExtensionMessageTest.cc
  6226. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6227. * src/PeerStorage.h
  6228. * test/MockPeerStorage.h
  6229. * src/PeerListenCommand.cc
  6230. * src/PeerReceiveHandshakeCommand.cc
  6231. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Added --metalink-enable-unique-protocol option.
  6233. * src/Metalink2RequestGroup.cc
  6234. * src/option_processing.cc
  6235. * src/prefs.h
  6236. * src/version_usage.cc
  6237. * doc/aria2c.1.txt
  6238. * doc/aria2c.1
  6239. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. Allow a peer in incomingPeer to be added peers.
  6241. * src/DefaultPeerStorage.cc
  6242. * test/DefaultPeerStorageTest.cc
  6243. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6244. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6245. I could reproduce this bug in following procedure:
  6246. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6247. 2. Restart aria2.
  6248. 3. You see the download stopped around 99%.
  6249. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6250. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6251. If timeout is reached, then _nextCommand is unused and it may contains
  6252. segments and they won't be canceled. Actually, timeout is not needed
  6253. here because if the server dropped connection, then retry is made.
  6254. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6255. Added uTorrent compatible Peer Exchange.
  6256. * src/BencodeVisitor.{h, cc}
  6257. * test/BencodeVisitorTest.cc
  6258. * src/BtConstants.h
  6259. * src/BtContext.h: Added 'private' flag.
  6260. * src/BtExtendedMessage.{h, cc}
  6261. * test/BtExtendedMessageTest.cc
  6262. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  6263. reserved field.
  6264. * test/BtHandshakeMessageTest.cc
  6265. * src/BtMessageFactory.h
  6266. * src/BtRegistry.h
  6267. * src/BtRuntime.h: This class holds default extension message IDs for
  6268. aria2. By default, aria2 uses ID 8 for ut_pex.
  6269. * src/DefaultBtContext.cc
  6270. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  6271. When it is true, aria2 enables ut_pex. This value is set by
  6272. PeerInteractionCommand.
  6273. * src/DefaultBtMessageFactory.{h, cc}
  6274. * test/DefaultBtMessageFactoryTest.cc
  6275. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  6276. handling to DefaultBtInteractive class.
  6277. * src/DefaultExtensionMessageFactory.{h, cc}
  6278. * test/DefaultExtensionMessageFactoryTest.cc
  6279. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  6280. the container(peers and incomingPeers. The equality is determined by
  6281. Peer::id).
  6282. * test/DefaultPeerStorageTest.cc
  6283. * src/ExtensionMessage.h
  6284. * test/MockExtensionMessage.h
  6285. * src/ExtensionMessageFactory.h
  6286. * test/MockExtensionMessageFactory.h
  6287. * src/HandshakeExtensionMessage.{h, cc}
  6288. * test/HandshakeExtensionMessageTest.cc
  6289. * src/MetaEntry.h
  6290. * src/Peer.{h, cc}
  6291. * src/PeerInteractionCommand.cc
  6292. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  6293. addIncomingPeer.
  6294. * src/PeerMessageUtil.{h, cc}
  6295. * src/PeerObject.h
  6296. * src/UTPexExtensionMessage.{h, cc}
  6297. * test/UTPexExtensionMessageTest.cc
  6298. * src/message.h
  6299. * src/prefs.h
  6300. Fixed the bug that returns incomplete data when it contains null
  6301. character. A convenient constructor was also added.
  6302. * src/Data.{h, cc}
  6303. Rewritten.
  6304. * src/CompactPeerListProcessor.cc
  6305. Fixed typos.
  6306. * src/message.h
  6307. * src/MetaFileUtil.cc
  6308. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Added "Status Legend" label to the explanation text of 'stat' in
  6310. download result and moved it to the last. BUG#1848214
  6311. * src/RequestGroupMan.cc
  6312. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  6314. * src/Makefie.am
  6315. * test/Makefile.am
  6316. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6317. Fixed the bug that prevents aria2 from loading cookie file when expire
  6318. value is greater than 2^31-1. BUG#1851066
  6319. * src/CookieBoxFactory.cc
  6320. * test/CookieBoxFactoryTest.cc
  6321. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6322. Fixed possible memory leak when an exception is thrown.
  6323. * src/XML2SAXMetalinkProcessor.cc
  6324. Added Expat support. If both libxml2 and Expat are installed, then
  6325. libxml2 is used by default.
  6326. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  6327. ExpatMetalinkProcessor according to the configuration.
  6328. * src/ExpatMetalinkProcessor.{h, cc}
  6329. * src/main.cc: Removed libxml2 specific header and init/free function.
  6330. * src/MetalinkProcessorFactory.{h, cc}
  6331. * src/MetalinkHelper.cc
  6332. * src/Metalinker.h: Removed unnecessary libxml2 header.
  6333. * src/MetalinkProcessor.h
  6334. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  6335. MetalinkProcessorTest is used instead.
  6336. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  6337. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  6338. MetalinkProcessorFactory::newInstance().
  6339. * m4/libexpat.m4
  6340. * configure.ac: Added configuration options for libexpat.
  6341. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6342. Disabled -s option in metalink download.
  6343. * src/Metalink2RequestGroup.cc
  6344. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6345. If several protocols are available for a mirror in metalink file,
  6346. aria2 now use one of them. --metalink-preferred-protocol option was
  6347. added to specify the preference of protocol.
  6348. * src/AbstractCommand.cc
  6349. * src/OptionHandlerFactory.cc
  6350. * src/ServerHost.{h, cc}
  6351. * src/Metalink2RequestGroup.cc
  6352. * src/RequestGroup.{h, cc}
  6353. * test/RequestGroupTest.cc
  6354. * src/option_processing.cc
  6355. * src/prefs.h
  6356. * src/HttpResponseCommand.cc
  6357. * src/MetalinkResource.{h, cc}
  6358. * src/FtpNegotiationCommand.cc
  6359. * src/MetalinkEntry.{h, cc}
  6360. * src/MetalinkEntryTest.cc
  6361. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6362. Code cleanup and added debug log.
  6363. * src/PeerConnection.cc
  6364. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6365. Compiler error fix: applied the patch by Tiziano Mueller
  6366. * src/RequestGroup.cc
  6367. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6368. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6369. in stopped and completed event.
  6370. * src/AnnounceList.{h, cc}
  6371. * test/AnnounceListTest.cc
  6372. * src/DefaultBtAnnounce.cc
  6373. * test/DefaultBtAnnounceTest.cc
  6374. Sorted URLs.
  6375. * test/Metalink2RequestGroupTest.cc
  6376. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6377. Removed unnecessary string copy. Updated doc and corrected indentation.
  6378. * src/Base64.cc
  6379. Fixed compilation warnings
  6380. * test/DataTest.cc
  6381. * test/HttpRequestTest.cc
  6382. * test/MetaFileUtilTest.cc
  6383. * test/RequestTest.cc
  6384. * Release 0.12.0
  6385. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6386. Updated translations
  6387. * po/{de,fr,ja,nl,ru}.po
  6388. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6389. translations. Many thanks to translators.
  6390. * po/{ca,es,it,pt_BR,sv}.po
  6391. * po/LINGUAS
  6392. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6393. Added a notice about URL
  6394. * src/version_usage.cc
  6395. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6396. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6397. aria2 repeatedly sends stopped request when tracker returns error code.
  6398. * src/AnnounceList.cc
  6399. * test/AnnounceListTest.cc
  6400. * src/AnnounceTier.h
  6401. Added a message when ctrl-c is hit.
  6402. Now second ctrl-c is also handled in signal handler.
  6403. * src/RequestGroupMan.{h, cc}
  6404. * src/RequestGroup.{h, cc}
  6405. * src/MultiUrlRequestInfo.cc
  6406. * src/DownloadEngine.cc
  6407. * src/TrackerWatcherCommand.cc
  6408. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6409. Code cleanup
  6410. * src/Base64.cc (encode)
  6411. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6412. Changed Direct/IO enable/disable procesure in file allocation routine.
  6413. * src/SingleFileAllocationIterator.cc
  6414. (SingleFileAllocationIterator):
  6415. Disable directIO if offset is not multiple of 512.
  6416. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6417. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6418. Enable created SingleFileAllocationIterator's directIO.
  6419. * src/FileAllocationEntry.cc
  6420. (FileAllocationEntry): Enable directIO here.
  6421. (~FileAllocationEntry): Disable directIO here.
  6422. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6423. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6424. * src/Peer.{h, cc}
  6425. * src/DefaultPieceStorage.cc
  6426. * test/DefaultPieceStorageTest.cc
  6427. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6428. Rewritten direct I/O support routine
  6429. * src/SingleFileAllocationIterator.cc
  6430. * src/MultiDiskAdaptor.{h, cc}
  6431. * src/ByteArrayDiskWriter.h
  6432. * src/AbstractSingleDiskAdaptor.h
  6433. * src/AbstractDiskWriter.cc
  6434. * src/DefaultPieceStorage.cc
  6435. * src/DiskWriter.h
  6436. * src/BinaryStream.h
  6437. * src/IteratableChunkChecksumValidator.cc
  6438. * src/IteratableChecksumValidator.cc
  6439. * src/CheckIntegrityEntry.cc
  6440. * src/FileAllocationEntry.cc
  6441. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6442. Fixed typo
  6443. * src/version_usage.cc
  6444. Updated doc
  6445. * doc/aria2c.1.txt
  6446. * doc/aria2c.1
  6447. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6448. Fixed compile error without message digest support.
  6449. * src/FileMetalinkParserState.cc
  6450. * src/MetalinkParserController.{h, cc}
  6451. * test/XML2SAXMetalinkProcessorTest.cc
  6452. * test/MetalinkParserControllerTest.cc
  6453. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6454. Enable direct I/O support in checksum checking.
  6455. * src/IteratableChunkChecksumValidator.{h, cc}
  6456. * test/IteratableChunkChecksumValidatorTest.cc
  6457. * src/CheckIntegrityEntry.cc
  6458. * src/PieceHashCheckIntegrityEntry.cc
  6459. * src/IteratableChecksumValidator.{h, cc}
  6460. * src/BtCheckIntegrityEntry.cc: Added doc.
  6461. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. Added --allow-piece-length-change option.
  6463. * src/DefaultBtProgressInfoFile.cc
  6464. * test/DefaultBtProgressInfoFileTest.cc
  6465. * src/OptionHandlerFactory.cc
  6466. * src/option_processing.cc
  6467. * src/prefs.h
  6468. * src/version_usage.cc
  6469. * doc/aria2c.1.txt
  6470. * doc/aria2c.1
  6471. Fixed: duplicated result entry appears when exception is thrown in
  6472. RequestGroup::createInitiateConnectionCommand().
  6473. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6474. Add RequestGroup to _requestGroup after RequetGroup::
  6475. createInitiateConnectionCommand() succeeds.
  6476. Externalized message
  6477. * src/XML2SAXMetalinkProcessor.cc
  6478. * src/message.h
  6479. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6480. Forced download abort when received negative response from http/ftp
  6481. server.
  6482. * src/HttpResponseCommand.cc
  6483. * src/FtpNegotiationCommand.cc
  6484. * src/HttpResponse.cc
  6485. * src/FtpConnection.cc
  6486. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6487. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6488. the predecessor, Xml2MetalinkParser class.
  6489. I tested them against 94KB metalink file with 1234 chunk checksums.
  6490. The new one parsed it in 22msec, while it took 6000msec with old one.
  6491. * src/XML2SAXMetalinkProcessor.{h, cc}
  6492. * test/XML2SAXMetalinkProcessorTest.cc
  6493. * src/MetalinkParserController.{h, cc}
  6494. * test/MetalinkParserControllerTest.cc
  6495. * src/MetalinkParserState.h: Also added 16 subclasses.
  6496. * src/main.cc
  6497. * src/Metalink2RequestGroup.cc
  6498. * src/MetalinkHelper.cc
  6499. * src/MetalinkEntry.cc
  6500. * src/ChunkChecksum.h
  6501. Rewritten Base64 class for better performance.
  6502. * src/Base64.{h, cc}
  6503. * test/Base64Test.cc
  6504. * src/HttpRequest.cc
  6505. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6506. Fixed the bug#1841757: aria2 will connect to server to only get
  6507. file size.
  6508. * src/StreamFileAllocationEntry.cc
  6509. * src/option_processing.cc
  6510. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  6511. downloads.
  6512. * src/FtpNegotiationCommand.cc
  6513. Suppressed wrong message when finding PreDownloadHandler
  6514. * src/RequestGroup.cc
  6515. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Updated usage
  6517. * src/version_usage.cc
  6518. Updated man page
  6519. * doc/aria2c.1.txt
  6520. * doc/aria2c.1
  6521. Updated po files
  6522. * po/aria2c.pot
  6523. * po/*.po
  6524. * po/*.gmo
  6525. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6526. Eliminated g++-4.2 warning
  6527. * src/DownloadHandlerConstants.{h, cc}
  6528. * src/Util.cc
  6529. * test/MetaFileUtilTest.cc
  6530. * test/PStringBuildVisitorTest.cc
  6531. Fixed bug: --check-integrity doesn't work for multi file torrent.
  6532. * src/RequestGroup.cc
  6533. * src/BtCheckIntegrityEntry.cc
  6534. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6535. Fixed a2io.h
  6536. * src/a2io.h
  6537. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6538. Added direct I/O support. The current implementation uses O_DIRECT,
  6539. which is not posix standard and is tested on linux 2.6.21.
  6540. Currently only file allocation uses direct I/O.
  6541. * src/SingleFileAllocationIterator.{h, cc}
  6542. * test/SingleFileAllocationIteratorTest.cc
  6543. * src/MultiFileAllocationIterator.{h, cc}
  6544. * test/MultiFileAllocationIteratorTest.cc
  6545. * src/BinaryStream.h
  6546. * src/DiskWriter.h
  6547. * src/AbstractDiskWriter.{h, cc}
  6548. * src/ByteArrayDiskWriter.h
  6549. * src/DiskAdaptor.h
  6550. * src/AbstractSingleDiskAdaptor.{h, cc}
  6551. * src/MultiDiskAdaptor.{h, cc}
  6552. * src/FileAllocationEntry.cc
  6553. * src/Util.{h, cc}
  6554. * src/OptionHandlerFactory.cc
  6555. * src/prefs.h
  6556. * src/version_usage.cc
  6557. * src/option_processing.cc
  6558. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  6559. handleException.
  6560. * src/MultiFileAllocationIterator.cc
  6561. Added EINTR handling
  6562. * src/SocketCore.cc
  6563. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. Updated usage
  6565. * src/version_usage.cc
  6566. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6567. Applied Ross's patch for MinGW port.
  6568. * src/DownloadEngine.h
  6569. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6570. Set Content-Type to SingleFileDownloadContext when http response is
  6571. received.
  6572. * src/HttpResponseCommand.cc
  6573. * src/HttpResponse.{h, cc}
  6574. * test/HttpResponseTest.cc
  6575. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6576. Rewritten to add content-type support.
  6577. * src/DownloadHandler.{h, cc}
  6578. * src/BtPostDownloadHandler.{h, cc}
  6579. * test/BtPostDownloadHandlerTest.cc
  6580. * src/MetalinkPostDownloadHandler.{h, cc}
  6581. * test/MetalinkPostDownloadHandlerTest.cc
  6582. * src/PostDownloadHandler.{h, cc}
  6583. * src/DownloadHandlerConstants.{h, cc}
  6584. * src/RequestGroup.cc
  6585. * src/HttpResponseCommand.cc
  6586. * src/FtpNegotiationCommand.cc
  6587. * src/SingleFileDownloadContext.{h, cc}
  6588. * src/RequestGroup.h
  6589. * src/RequestGroupCriteria.h
  6590. * src/ContentTypeRequestGroupCriteria.h
  6591. Added 'mem' option value for --follow-metalink, --follow-torrent.
  6592. If it is give, metalink/torrent file is not written to the disk, but
  6593. just is kept in memory. Parsing is occurred on memory.
  6594. * src/MetalinkHelper.{h, cc}
  6595. * src/MetalinkProcessor.h
  6596. * src/Xml2MetalinkProcessor.{h, cc}
  6597. * test/Xml2MetalinkProcessorTest.cc
  6598. * src/DownloadHandlerFactory.{h, cc}
  6599. * test/DownloadHandlerFactoryTest.cc
  6600. * src/PreDownloadHandler.{h, cc}
  6601. * src/OptionHandlerFactory.cc
  6602. * src/DefaultBtContext.{h, cc}
  6603. * test/DefaultBtContextTest.cc
  6604. * src/version_usage.cc
  6605. * src/Metalink2RequestGroup.{h, cc}
  6606. * src/RequestGroup.{h, cc}
  6607. * src/a2functional.h
  6608. * test/a2functionalTest.cc
  6609. * src/MemoryBufferPreDownloadHandler.{h, cc}
  6610. * src/OptionHandlerImpl.h
  6611. * src/prefs.h
  6612. * src/Util.{h, cc}
  6613. * test/UtilTest.cc
  6614. Keep DownloadResult rather than RequestGroup after downloads to reduce
  6615. memory usage.
  6616. * src/RequestGroupMan.{h, cc}
  6617. * src/DownloadEngine.cc
  6618. * src/BtDependency.{h, cc}: Changed the type of dependee from
  6619. WeakHandle to SharedHandle because WeakHandle could be null.
  6620. * src/RequestGroup.{h, cc}
  6621. * src/DownloadEngineFactory.cc
  6622. * src/DownloadResult.h
  6623. Set totalLength after download finished
  6624. * src/UnknownLengthPieceStorage.{h, cc}
  6625. Keep torrent file specified in metalink in memory.
  6626. * src/Metalink2RequestGroup.cc
  6627. * src/BtDependency.cc
  6628. * src/TrueRequestGroupCriteria.h
  6629. Fixed the bug: seekg is used where seekp should be used.
  6630. * src/ByteArrayDiskWriter.cc
  6631. * test/ByteArraydiskWriterTest.cc
  6632. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6633. Fixed syntax error
  6634. * test/SequenceTest.cc
  6635. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6636. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6637. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  6638. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  6639. * src/RequestGroup.cc (downloadFinishedByFileLength)
  6640. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6641. Added the check to see whether ares_host_callback accepts timeouts
  6642. with c-ares; only c-ares 1.5.0 or newer accepts it.
  6643. * src/NameResolver.{h, cc}
  6644. * m4/libcares.m4
  6645. * configure.ac: Set C++ for language choice.
  6646. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6647. Fixed: compilation fails without c-ares/ares
  6648. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6649. Generate http/ftp commands only when download is incomplete.
  6650. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6651. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6652. Corrected typo. Examples are removed since they are available in man
  6653. page.
  6654. * src/version_usage.cc
  6655. Updated man page.
  6656. * doc/aria2c.1
  6657. * doc/aria2c.1.txt
  6658. * doc/makeman: Commented out sed command.
  6659. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. Throw DlAbortEx when a remote file is not found.
  6661. * src/HttpResponse.cc
  6662. * src/FtpNegotiationCommand.cc
  6663. * src/message.h
  6664. Overwrite an existing file if --allow-overwrite=true is given.
  6665. * src/RequestGroup.cc
  6666. Removed unused functions
  6667. * src/AbstractCommand.h
  6668. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6669. Removed 'extern' from 'extern typedef ...' in src/*.h
  6670. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6671. Updated usage
  6672. * src/version_usage.cc
  6673. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6674. Trim announce URL
  6675. * src/DefaultBtContext.cc
  6676. * test/ShaVisitorTest.cc
  6677. Trim argument s. Give trimed s to exception constructor.
  6678. * src/Util.cc (parseInt)(parseLLInt)
  6679. * test/UtilTest.cc
  6680. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6681. Set precision back to 1.
  6682. * src/ConsoleStatCalc.cc (calculateStat)
  6683. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6684. Replaced strtol with Util::parseInt
  6685. * src/ChunkedEncoding.cc
  6686. * src/HttpConnection.cc
  6687. * src/CookieBoxFactory.cc
  6688. * src/ParameterizedStringParser.cc
  6689. * src/Util.cc
  6690. * test/UtilTest.cc
  6691. * test/OptionHandlerTest.cc
  6692. * src/Request.cc
  6693. Throw exception when empty string is given. The message for exception
  6694. changed.
  6695. * src/Util.cc (parseInt)(parseLLInt)
  6696. * src/message.h
  6697. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6698. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6699. set to 1.
  6700. * src/ConsoleStatCalc.cc (calculateStat)
  6701. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6702. Preallocate non-requested file which is adjacent forward to requested
  6703. file('requested' files means the files given in --select-file option)
  6704. if they share a same piece.
  6705. This fixes long pause in the file system which doesn't support sparse
  6706. files like FAT32 while downloading.
  6707. * src/MultiFileAllocationIterator.{h, cc}
  6708. * test/MultiFileAllocationIteratorTest.cc
  6709. * src/FileEntry.{h, cc}
  6710. Removed unused _option.
  6711. * src/MultiDiskAdaptor.h
  6712. * test/MultiDiskAdaptorTest.cc
  6713. * src/DefaultPieceStorage.cc
  6714. Set the default value of --seed-ratio to 1.0.
  6715. If 0.0 is given, then seeding continues regardless of share ratio.
  6716. * src/version_usage.cc
  6717. * src/option_processing.cc
  6718. * src/BtSetup.cc
  6719. * doc/aria2c.1.txt
  6720. * doc/aria2c.1
  6721. Fixed: Selective download is not working in BitTorrent
  6722. * src/RequestGroup.cc
  6723. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6724. * src/PieceStorage.h
  6725. * test/MockPieceStorage.h
  6726. * src/UnknownLengthPieceStorage.h
  6727. * src/DefaultPieceStorage.{h, cc}
  6728. * src/Metalink2RequestGroup.cc
  6729. * src/RequestGroup.cc
  6730. * src/Sequence.h
  6731. * test/SequenceTest.cc
  6732. * src/IntSequence.h
  6733. * src/message.h
  6734. * src/Util.{h, cc}
  6735. * test/UtilTest.cc
  6736. Added new function 'parse' to catch exception thrown by subclass's
  6737. parseArg
  6738. * src/OptionHandler.h
  6739. * src/OptionParser.cc
  6740. * src/NameMatchOptionHandler.h
  6741. * src/OptionHandlerImpl.h
  6742. * test/OptionHandlerTest.cc
  6743. Added IntegerRangeOptionHandler. Used for --listen-port and
  6744. --select-file. Now --listen-port accepts range of port.
  6745. * src/OptionHandlerFactory.cc
  6746. * src/version_usage.cc
  6747. * src/OptionHandlerImpl.h
  6748. * src/option_processing.cc
  6749. * src/BtSetup.cc
  6750. * src/PeerListenCommand.{h, cc}
  6751. * doc/aria2c.1.txt
  6752. * doc/aria2c.1
  6753. Implemented operator< for Exception class to provide easy way to print
  6754. exception stack trace.
  6755. * src/Exception.{h, cc}
  6756. * src/main.cc
  6757. * src/option_processing.cc
  6758. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6759. * src/version_usage.cc
  6760. (showVersion): Reworked.
  6761. (showUsage): Added examples.
  6762. Removed Hint for total length and file name.
  6763. * src/Metalink2RequestGroup.cc
  6764. * src/RequestGroup.{h, cc}
  6765. * src/HttpResponseCommand.cc
  6766. * src/FtpNegotiationCommand.cc
  6767. Now --follow-torrent and --follow-metalink option work properly.
  6768. * src/RequestGroup.cc
  6769. Updated man page
  6770. * doc/aria2c.1.txt
  6771. * doc/aria2c.1
  6772. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6773. Removed.
  6774. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  6775. Use Segment::operator==()
  6776. * src/HttpConnection.cc
  6777. * src/Segment.h
  6778. Updated usage
  6779. * src/version_usage.cc
  6780. Added EINTR treatment.
  6781. * src/SocketCore.cc
  6782. * src/AbstractDiskWriter.cc
  6783. Rewritten.
  6784. * src/Util.cc (rangedFileCopy)
  6785. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6786. Fixed typo.
  6787. * src/version_usage.cc
  6788. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6789. Implemented. Now -c option works fine.
  6790. * src/DefaultPieceStorage.cc (markPiecesDone)
  6791. * test/DefaultPieceStorageTest.cc
  6792. Removed.
  6793. * src/SegmentMan.{h, cc}
  6794. (markAllPiecesDone)
  6795. (markPieceDone)
  6796. Synchronized po files with
  6797. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  6798. * src/fr.po
  6799. * src/ru.po
  6800. * src/de.po
  6801. * src/ja.po
  6802. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6803. Added ifdef and some modifications to compile without BitTorrent,
  6804. Metalink, MessageDigest
  6805. support.
  6806. * src/PieceHashCheckIntegrityEntry.cc
  6807. * src/MetalinkEntry.h
  6808. * src/version_usage.cc
  6809. * src/main.cc
  6810. * src/DownloadEngine.{h, cc}
  6811. * src/Metalink2RequestGroup.cc
  6812. * src/Peer.cc
  6813. * src/RequestGroup.cc
  6814. * src/MetalinkHelper.cc
  6815. * test/DefaultPieceStorageTest.cc
  6816. * test/MetalinkPostDownloadHandlerTest.cc
  6817. * test/Metalink2RequestGroupTest.cc
  6818. Hide TOTAL SPD when all downloads complete.
  6819. * src/ConsoleStatCalc.cc
  6820. Log target system information.
  6821. * src/main.cc
  6822. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6823. Now --metalink-location accepts a comma-deliminated list of locations.
  6824. * src/MetalinkEntry.{h, cc}
  6825. * test/MetalinkEntryTest.cc
  6826. * src/version_usage.cc
  6827. * src/Metalink2RequestGroup.cc
  6828. * src/Xml2MetalinkProcessor.cc
  6829. * test/Xml2MetalinkProcessorTest.cc
  6830. * doc/aria2c.1.txt
  6831. * doc/aria2c.1
  6832. * src/Util.cc (toUpper)(toLower): Rewritten.
  6833. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6834. Added the ability to detect duplicate download entry which is about to
  6835. download the same file other RequestGroup is downloading.
  6836. * src/RequestGroup.cc
  6837. * src/HttpResponseCommand.cc
  6838. * src/FtpNegotiationCommand.cc
  6839. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6840. Recalculates download progress when loading a control file,
  6841. if the piece length of DownloadContext is different from the one saved
  6842. in the control file. Currently in-flight pieces are ignored.
  6843. * src/DefaultBtProgressInfoFile.cc
  6844. * test/DefaultBtProgressInfoFileTest.cc
  6845. * src/Util.{h, cc}
  6846. * test/UtilTest.cc
  6847. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6848. Do not rotate tiers in announce-list.
  6849. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  6850. AnnounceList::allTiersFailed() used instead to detect whether all
  6851. tiers are tried and failed.
  6852. * test/DefaultBtAnnounceTest.cc
  6853. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  6854. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  6855. * test/AnnounceListTest.cc
  6856. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  6857. clause. Catch RecoverableException instead of DlRetryEx instead.
  6858. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6859. Implemented checksum validation feature(1 checksum for each file)
  6860. The validation takes place after the download.
  6861. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  6862. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  6863. * src/CheckIntegrityCommand.cc: Changed log message.
  6864. * src/Metalink2RequestGroup.cc: Set checksum to
  6865. SingleFileDownloadContext.
  6866. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  6867. PieceHashCheckIntegrity class.
  6868. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  6869. PieceHashCheckIntegrity class.
  6870. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  6871. * src/IteratableValidator.h: New class.
  6872. * src/message.h
  6873. * src/CheckIntegrityEntry.{h, cc}
  6874. * src/IteratableChunkChecksumValidator.{h, cc}
  6875. * src/SingleFileDownloadContext.h
  6876. * src/DownloadCommand.cc
  6877. --allow-overwrite=true is no longer needed to check file integrity
  6878. before download in BitTorrent download.
  6879. * src/RequestGroup.cc (getInitialCommand)
  6880. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  6881. throws exception.
  6882. * src/RequestGroupMan.cc (getInitialCommands)
  6883. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6884. urlencode the given url inside Request::parseUrl(...)
  6885. * src/Request.{h, cc}
  6886. * src/Util.{h, cc}
  6887. * test/RequestTest.cc
  6888. Removed #!metalink3! notation support because it is deleted from
  6889. the metalink specification.
  6890. * src/Request.{h, cc}
  6891. * test/RequestTest.cc
  6892. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Don't connect server before checking file integrity at startup, if
  6894. filesize and output file path are known.
  6895. * src/AbstractCommand.cc
  6896. * src/StreamFileAllocationEntry.cc
  6897. * src/Metalink2RequestGroup.cc
  6898. * src/RequestGroup.{h, cc}
  6899. * src/HttpResponseCommand.cc
  6900. * src/FtpNegotiationCommand.cc
  6901. Added DownloadFailureException. If it is thrown, RequestGroup should
  6902. halt.
  6903. * src/AbstractCommand.cc
  6904. * src/DownloadFailureException.h
  6905. * src/RequestGroup.cc
  6906. Catch RecoverableException, instead of DlAbortEx.
  6907. * src/RequestGroupMan.cc
  6908. * src/FillRequestGroupCommand.cc
  6909. * src/MetaFileUtil.cc
  6910. * src/IteratableChunkChecksumValidator.cc
  6911. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  6912. getGID())
  6913. * src/CheckIntegrityCommand.cc
  6914. * src/message.h
  6915. Print gid instead of idx.
  6916. * src/RequestGroupMan.cc
  6917. Removed exception throwers declaration.
  6918. * src/DirectDiskAdaptor.{h, cc}
  6919. * src/SocketCore.{h, cc}
  6920. * src/MultiDiskAdaptor.{h, cc}
  6921. * src/HttpConnection.{h, cc}
  6922. * src/HttpResponse.{h, cc}
  6923. * src/DiskAdaptor.{h, cc}
  6924. * src/CopyDiskAdaptor.{h, cc}
  6925. * src/MultiDiskAdaptor.{h, cc}
  6926. * src/HttpHeaderProcessor.{h, cc}
  6927. * src/AbstractSingleDiskAdaptor.{h, cc}
  6928. * src/Util.{h, cc}
  6929. * test/UtilTest.cc
  6930. * src/DefaultDiskWriter.{h, cc}
  6931. * src/FtpConnection.{h, cc}
  6932. * src/AbstractDiskWriter.{h, cc}
  6933. Removed duplicate code.
  6934. * src/StreamCheckIntegrityEntry.cc
  6935. Removed unnecessary include.
  6936. * src/DiskWriter.h
  6937. Included Exception.h
  6938. * src/option_processing.cc
  6939. Included 2 files and added doc
  6940. * src/TrackerWatcherCommand.cc
  6941. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  6942. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6943. Changed CheckIntegrityEntry interface so that it can define
  6944. the action when all the chunk checksums are valid.
  6945. * src/CheckIntegrityEntry.h
  6946. * src/StreamCheckIntegrityEntry.{h, cc}
  6947. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  6948. are valid, then aira2 goes to seeding mode. Sometimes it is better
  6949. to exit rather than doing seeding. So, it would be good to toggle this
  6950. behavior.
  6951. * src/CheckIntegrityCommand.cc
  6952. * src/AbstractCommand.cc
  6953. * src/RequestGroup.cc
  6954. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6955. Reflect the download length of in-flight pieces.
  6956. It makes the download length readout more precise.
  6957. * src/DefaultPieceStorage.{h, cc}
  6958. * test/DefaultPieceStorageTest.cc
  6959. * src/a2functional.h
  6960. * test/a2functionalTest.cc
  6961. Lower CPU load when --max-download-limit is used.
  6962. There is up and down in speed indicator when enabling
  6963. http-pipelining but a download goes well. I think the problem is that
  6964. because http-pipelining is enabled, DownloadCommand is created for
  6965. each segment and in its constructor, PeerStat::downloadStart() is
  6966. called. In PeerStat::downloadStart(), speed calculation object is
  6967. reseted, which makes download speed zero.
  6968. * src/DownloadCommand.cc
  6969. Rewritten using accumulate.
  6970. * src/RequestGroupMan.cc (calculateStat)
  6971. Code clearnup.
  6972. * src/FtpNegotiationCommand.cc
  6973. * src/HttpResponseCommand.cc
  6974. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Fixed: Can not resume: aria2 reports download already finished.
  6976. * src/AbstractCommand.{h, cc}
  6977. * src/HttpResponseCommand.cc
  6978. * src/FtpNegotiateCommand.cc
  6979. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6980. Now a file is stored in the directory specified in .metalnk file
  6981. (file[@name]).
  6982. * src/Metalink2RequestGroup.cc
  6983. Create the directory structure when opening the file if it doesn't
  6984. exist.
  6985. * src/AbstractDiskWriter.cc
  6986. * src/Util.{h, cc}
  6987. * src/File.h
  6988. * test/UtilTest.cc
  6989. Removed file name comparison
  6990. * src/Metalink2RequestGroup.cc
  6991. * src/HttpResponseCommand.cc
  6992. Rewritten using Util::mkdirs()
  6993. * src/FileEntry.cc (setupDir)
  6994. * test/FileEntryTest.cc
  6995. Updated doc
  6996. * src/SingleFileDownloadContext.h
  6997. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6998. Now SleepCommand dispatches nextCommand when halt is requested.
  6999. It avoids a possible long wait after hitting CTRL-C.
  7000. * src/SleepCommand.{h, cc}
  7001. * src/RequestGroupAware.{h, cc}
  7002. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7003. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7004. to open listen port, then remove the port number from the tracker
  7005. request.
  7006. * src/DefaultBtAnnounce.cc
  7007. * test/DefaultBtAnnounceTest.cc
  7008. * test/MockPieceStorage.h
  7009. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7010. them more testable.
  7011. * src/DefaultBtAnnounce.{h, cc}
  7012. * src/DefaultBtContext.{h, cc}
  7013. * src/Util.{h, cc}
  7014. * test/DefaultBtAnnounceTest.cc
  7015. * test/DefaultBtContextTest.cc
  7016. * test/UtilTest.cc
  7017. Added 'B' to upload bytes readout.
  7018. * src/ConsoleStatCalc.cc
  7019. Now the listen port for BitTorrent download is opened when it is
  7020. needed.
  7021. * src/DownloadEngineFactory.cc
  7022. * src/BtSetup.{h, cc}
  7023. * src/PeerListenCommand.{h, cc}
  7024. Now an exception thrown while parsing tracker response is now logged.
  7025. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7026. called, which means no retry is made in this case, assuming a tracker
  7027. has a problem.
  7028. * src/TrackerWatcherCommand.cc
  7029. Fixed: downloading a file whose length is unkown fails.
  7030. * src/DownloadCommand.cc
  7031. Simplified prepareForNextSegment()
  7032. * src/DownloadCommand.cc
  7033. Updated
  7034. * po/POTFILES.in
  7035. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7036. Re-implemented a file listing for Metalink, which was dropped while
  7037. http/ftp/torrent integration was being implemented.
  7038. * src/MetalinkHelper.{h, cc}: New class.
  7039. * test/MetalinkHelperTest.cc
  7040. * src/main.cc
  7041. * src/Metalink2RequestGroup.cc
  7042. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Added the ability to display the detailed torrent file information.
  7044. Now -S option gives not only a file listing, but also total download
  7045. length, info hash, announce URI, piece length, the number of pieces,
  7046. and mode(single or multi-torrent).
  7047. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7048. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7049. KiB)
  7050. * test/UtilTest.cc
  7051. * src/main.cc
  7052. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7053. Added ftp://USER:PASSWD@Servername automatic parsing.
  7054. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7055. _password. Recognize username and password in URI.
  7056. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7057. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7058. * src/RequestFactory.{h, cc}: Removed.
  7059. * src/AuthConfigFactory.{h, cc}: New class.
  7060. * src/FtpConnection.cc: Use AuthConfigFactory.
  7061. * src/HttpRequest.cc: Use AuthConfigFactory.
  7062. * test/HttpRequestTest.cc: Updated.
  7063. * test/RequestTest.cc: Updated.
  7064. * test/AuthConfigFactoryTest.cc: New class.
  7065. * test/RequestFactoryTest.cc: Removed.
  7066. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7067. Use RequestGroup::allDownloadFinished() to decide whether the control
  7068. file should be removed or saved.
  7069. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7070. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7071. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7072. Use File::renameTo()
  7073. * src/DefaultBtProgressInfoFile.cc
  7074. Added --no-file-allocation-limit command-line option.
  7075. * src/version_usage.cc
  7076. * src/option_processing.cc
  7077. * src/OptionHandlerFactory.cc
  7078. * src/RequestGroup.{h, cc}
  7079. * src/BtCheckIntegrityEntry.cc
  7080. * src/StreamCheckIntegrityEntry.cc
  7081. * src/prefs.h
  7082. * doc/aria2c.1.txt
  7083. * doc/aria2c.1
  7084. Now prealloc is the default value for --file-allocation option.
  7085. * src/version_usage.cc
  7086. * src/option_processing.cc
  7087. * doc/aria2c.1.txt
  7088. * doc/aria2c.1
  7089. Don't URL-encode user-agent.
  7090. * src/HttpRequest.cc
  7091. Updated translations
  7092. * po/LINGUAS: Added nl for Dutch translation.
  7093. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7094. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7095. * po/POTFILES.in: Updated.
  7096. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7097. Added the ability to recognize url-list in a torrent file.
  7098. The retrieved URLs are attached to the corresponding FileEntry.
  7099. * src/DefaultBtContext.{h, cc}
  7100. * src/FileEntry.{h, cc}
  7101. * test/DefaultBtContextTest.cc
  7102. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7103. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7104. after the download finishes.
  7105. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7106. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7107. the data smaller than block length.
  7108. A block length can be specified by constructor's argument.
  7109. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7110. Get a missing piece in the range of given FileEntry. This function is
  7111. not used in the program yet.
  7112. * src/Util.h: Added some macros.
  7113. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. Added HTTP/1.1 keep alive and pipelining support.
  7115. See --enable-http-keep-alive and --enable-http-pipelining option.
  7116. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7117. Segment.
  7118. * src/HttpDownloadCommand.{h, cc}
  7119. * src/OptionHandlerFactory.cc
  7120. * src/HttpConnection.{h, cc}
  7121. * src/version_usage.cc
  7122. * src/HttpInitiateConnectionCommand.cc
  7123. * src/FtpInitiateConnectionCommand.cc
  7124. * src/Segment.h
  7125. * src/HttpRequestCommand.{h, cc}
  7126. * src/option_processing.cc
  7127. * src/prefs.h
  7128. * src/HttpResponseCommand.cc
  7129. * src/SegmentMan.{h, cc}
  7130. * src/FtpNegotiateCommand.cc
  7131. * src/HttpProxyResponseCommand.cc
  7132. * src/Request.cc
  7133. * src/HttpRequest.cc
  7134. * src/DownloadCommand.cc
  7135. * test/HttpRequestTest.cc
  7136. * test/RequestTest.cc
  7137. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7138. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7139. finished.
  7140. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7142. catching it inside the method.
  7143. When no file entry is found in a metalink without querying user
  7144. preferences, throw the exception with the error message that suggests
  7145. metalink file is probably broken.
  7146. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7147. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7149. processed.
  7150. * src/RequestGroupMan.cc (removeStoppedGroup)
  7151. Added debug message.
  7152. * src/BtPostDownloadHandler.cc
  7153. * src/MetalinkPostDownloadHandler.cc
  7154. * src/PostDownloadHandler.{h, cc}
  7155. * src/RequestGroup.cc
  7156. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7158. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7159. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7160. stops and there are any unfinished or in-progress downloads.
  7161. Added the legend of "stat".
  7162. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7163. Throw exception when chunck checksum verification fails.
  7164. * src/DownloadCommand.cc (validatePieceHash): New function.
  7165. * src/PiecedSegment.{h, cc} (clear): New function.
  7166. * src/GrowSegment.{h, cc} (clear): New function.
  7167. * src/Segment.h (clear): New function.
  7168. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7169. * test/SegmentTest.cc
  7170. * test/GrowSegmentTest.cc
  7171. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7172. Do not send referer when redirected.
  7173. * src/Request.cc (redirectUrl)
  7174. * test/RequestTest.cc
  7175. * test/HttpRequestTest.cc
  7176. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7177. Implemented BitTorrent/http/ftp integrated download.
  7178. I've rewritten lots of files and now some headers have forward
  7179. class declarations to reduce compile time.
  7180. The implementation is extremely alpha stage, I recommend to use this
  7181. for testing purpose only.
  7182. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7183. Fixed the compilation error on 64bit platform.
  7184. * test/HttpHeaderProcessorTest.cc
  7185. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7186. Merged Ross's patch that fixes compilation problem in MinGW
  7187. * test/DefaultBtProgressInfoFileTest.cc
  7188. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7189. Updated fr.po by sebone
  7190. * po/fr.po
  7191. Updated man page.
  7192. * doc/aria2c.1.txt
  7193. * Release 0.11.3
  7194. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7195. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7196. failure in Metalink.
  7197. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7198. Automatically save *.aria2 control file of http/ftp download in every
  7199. 60 seconds.
  7200. * src/AutoSaveCommand.{h, cc}: New class.
  7201. * src/TimeBasedCommand.{h, cc}: New class.
  7202. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7203. Disable parameterized URI support by default. Added -P option to
  7204. enable the feature.
  7205. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7206. * src/OptionHandlerFactory.cc
  7207. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7208. Updated Japanese translation.
  7209. * po/ja.po
  7210. Updated man page.
  7211. * doc/aria2c.1.txt
  7212. * Release 0.11.3-rc
  7213. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7214. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7215. it is successful, then renamed to *.aria2.
  7216. This prevents *.aria2 file from being truncated or corrupted when
  7217. file system becomes out of space.
  7218. * src/DefaultBtProgressInfoFile.cc (save)
  7219. * src/SegmentMan.cc (save)
  7220. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7221. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7222. Reduced the fragmentation of bitfield in http/ftp download.
  7223. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7224. * test/BitfieldManTest.cc
  7225. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Added the ability to disable segmented download in .metalink.
  7227. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7228. 'url' tag.
  7229. * src/MetalinkEntry.{h, cc}
  7230. * src/RequestResource.{h, cc}
  7231. * src/MetalinkRequestInfo.cc
  7232. * src/Xml2MetalinkProcessor.cc
  7233. * test/Xml2MetalinkProcessorTest.cc
  7234. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7235. Added parameterized URI support.
  7236. * src/main.cc: -Z option added.
  7237. * src/OptionHandlerFactory.cc
  7238. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7239. * src/PStringDatum.h: New class.
  7240. * src/PStringSegment.{h,cc}: New class.
  7241. * src/PStringNumLoop.h: New class.
  7242. * src/PStringSelect.h: New class.
  7243. * src/NumberDecorator.h: New class.
  7244. * src/FixedWidthNumberDecorator.h: New class.
  7245. * src/AlphaNumberDecorator.h: New class.
  7246. * src/PStringVisitor.h: New class.
  7247. * src/PStringBuildVisitor.{h,cc}: New class.
  7248. * src/ParameterizedStringParser.{h,cc}: New class.
  7249. * src/Util.{h,cc}
  7250. (isNumber): New function.
  7251. (isLowercase): New function.
  7252. (isUppercase): New function.
  7253. (alphaToNum): New function.
  7254. * test/ParameterizedStringParserTest.cc: New class.
  7255. * test/AlphaNumberDecoratorTest.cc: New class.
  7256. * test/PStringBuildVisitorTest.cc: New class.
  7257. * test/UtilTest.cc
  7258. (testIsNumber): New function.
  7259. (testIsLowercase): New function.
  7260. (testIsUppercase): New function.
  7261. (testAlphaToNum): New function.
  7262. Added '\n' after the error message
  7263. * src/RequestInfo.h (printDownloadAbortMessage)
  7264. Added auto file renaming feature in http(s)/ftp download.
  7265. * src/main.cc: Added --auto-file-renaming command-line option.
  7266. * src/OptionHandlerFactory.cc
  7267. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  7268. * src/RequestGroup.{h, cc}
  7269. (shouldCancelDownloadForSafety): Rewritten
  7270. (tryAutoFileRenaming): New function.
  7271. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  7272. * src/HttpResponseCommand.cc
  7273. (executeInternal): Removed the call to RequestGroupMan::
  7274. isSameFileBeingDownloaded()
  7275. * src/FtpNegotiateCommand.cc
  7276. (recvSize): Removed the call to RequestGroupMan::
  7277. isSameFileBeingDownloaded()
  7278. * test/RequestGroupTest.cc: New class.
  7279. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7280. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  7281. IO.
  7282. * src/DefaultBtProgressInfoFile.cc
  7283. * src/MetaFileUtil.cc
  7284. * src/SimpleLogger.cc
  7285. * src/SegmentMan.cc
  7286. * src/Util.cc
  7287. * src/Platform.cc
  7288. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7289. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  7290. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7291. Avoid sparse files if possible, because VFAT32 doesn't support it.
  7292. * src/DefaultDiskWriter.cc (initAndOpenFile)
  7293. Fixed the bug that prevents file allocation is not done when
  7294. dowloading multi-torrent file.
  7295. * src/AbstractDiskWriter.cc (openFile)
  7296. Increase the maximum number of -j option from 15 to 45.
  7297. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7298. Added fr.po, thanks to Charles Landemaine.
  7299. * po/fr.po
  7300. * po/LINGUAS
  7301. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7302. gcc 3.4.4 support:
  7303. * src/DefaultBtContext.cc: int32_t -> int
  7304. * src/main.cc: int -> int32_t, int32_t -> int
  7305. * src/messageDigest.h: uint32_t -> unsigned int
  7306. * src/NameResolver.h: int32_t -> int
  7307. * src/PeerConnection.cc: int -> int32_t
  7308. * src/SpeedCalc.cc: int32_t -> int
  7309. * src/TrackerUpdateCommand.h: int -> int32_t
  7310. * src/Util.cc: int32_t -> int
  7311. * src/Util.h: int32_t -> int
  7312. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  7313. * test/AnnounceListTest.cc: int -> int32_t
  7314. * test/ChunkedEncodingTest.cc: int -> int32_t
  7315. * test/DataTest.cc: int -> int32_t
  7316. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  7317. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  7318. * test/DefaultPieceStorageTest.cc: int -> int32_t
  7319. * test/FeatureConfigTest.cc: int -> int32_t
  7320. * test/MetalinkEntryTest.cc: int -> int32_t
  7321. * test/MockBtRequestFactory.h: int -> int32_t
  7322. * test/MockPieceStorage.h: int -> int32_t
  7323. * test/OptionTest.cc: int -> int32_t
  7324. * test/RequestTest.cc: int -> int32_t
  7325. * test/SegmentManTest.cc: int -> int32_t
  7326. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  7327. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7328. Move sleep functions to Util class:
  7329. * src/Util.cc
  7330. (sleep): New function.
  7331. (usleep): New function.
  7332. * src/DownloadCommand.cc: sleep -> Util::sleep
  7333. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  7334. MinGW build enhancements. The following files are added:
  7335. * src/timegm.{c,h}
  7336. Changes to support the above new files:
  7337. * configure.ac
  7338. * src/Makefile.am
  7339. * src/a2time.h
  7340. * src/Util.cc:
  7341. * src/strptime.c: Added support for %Z option.
  7342. Fixed MinGW non-blocking bug.
  7343. * src/SocketCore.cc
  7344. * src/HttpRequestCommand.cc
  7345. Miscellenous build fixes/enhancements.
  7346. * configure.ac: Added summary report.
  7347. * src/Platform.h: Tweaked #include's.
  7348. * src/a2netcompat.h: Tweaked #include's.
  7349. * src/strptime.h: Tweaked #include's.
  7350. * src/gai_strerror.c: Tweaked #include's.
  7351. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7352. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7353. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7354. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7355. Increased the initial connection size in BitTorrent download to 40.
  7356. * src/BtRuntime.h
  7357. Added the usage message of --peer-id-prefix option.
  7358. * src/main.cc
  7359. * Release 0.11.2
  7360. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7361. MessageDigestHelper is introduced in order to simplify the use
  7362. of message digest. Removed repeated code.
  7363. The message digest algorithm is now specified by string, like "sha1",
  7364. "md5".
  7365. * src/messageDigest.{h, cc}
  7366. * src/MessageDigestHelper.{h, cc}: New class.
  7367. * src/DefaultPieceStorage.cc
  7368. * src/DefaultBtContext.{h, cc}
  7369. (computeFastSet): New function.
  7370. (setInfoHash): Added for unit testing.
  7371. (setNumPieces): Added for unit testing.
  7372. * src/DefaultBtInteractive.cc
  7373. * src/BtPieceMessage.cc
  7374. * src/Peer.cc
  7375. * src/Checksum.h
  7376. * src/message.h
  7377. * src/IteratableChecksumValidator.h
  7378. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7379. inside it.
  7380. * src/SegmentMan.{h, cc}
  7381. (checkIntegrity): Removed.
  7382. * src/IteratableChunkChecksumValidator.{h, cc}
  7383. * src/Util.h
  7384. (sha1Sum): Removed.
  7385. (simpleMessageDigest): Removed.
  7386. (fileChecksum): Removed.
  7387. (computeFastSet): Removed.
  7388. * src/ShaVisitor.cc
  7389. * src/ChunkChecksum.h
  7390. * src/DownloadCommand.cc
  7391. Removed messageDigest virtual functions.
  7392. * src/MultiDiskAdaptor.{h, cc}
  7393. * src/DiskAdaptor.h
  7394. * src/ByteArrayDiskWriter.h
  7395. * src/DiskWriter.h
  7396. * src/DiskAdaptorWriter.h
  7397. * src/AbstractSingleDiskAdaptor.{h, cc}
  7398. * src/AbstractDiskWriter.{h, cc}
  7399. Fixed comilation error when message digest is disabled.
  7400. * src/MetalinkEntry.{h, cc}
  7401. * src/MetalinkRequestInfo.cc
  7402. Removed srandom and random.
  7403. * src/SimpleRandomizer.h
  7404. Added size() virtual function to DiskAdaptor
  7405. * src/MultiDiskAdaptor.h
  7406. Fixed the bug that causes that files are not opened correctly in
  7407. multi-file torrent.
  7408. * src/TorrentRequestInfo.cc
  7409. * src/MultiDiskAdaptor.cc
  7410. Added SHA256 support
  7411. * src/messageDigest.cc
  7412. * src/Xml2MetalinkProcessor.cc
  7413. Show supported message digest algorithms
  7414. * src/main.cc
  7415. Updated contact info.
  7416. * src/main.cc
  7417. Applied Ross's patch
  7418. * src/a2netcompat.h
  7419. * src/main.cc
  7420. Fixed the bug that prevents a remote metalink from not being processed
  7421. even if '-o foo.metalink' is specified.
  7422. * src/MetalinkRequestInfo.cc
  7423. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Merged Dan's patch:
  7425. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7426. Use va_copy to avoid core dump on amd64:
  7427. * src/SimpleLogger.cc
  7428. Updated contact info.
  7429. * src/main.cc
  7430. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7431. digest is not available.
  7432. * src/MetalinkEntry.h
  7433. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7434. Make a2netcompat.h include a2io.h to fix compilation error:
  7435. * src/a2netcompat.h
  7436. * src/SocketCore.cc: Removed include of a2io.h
  7437. * src/Util.cc: Removed include of a2io.h
  7438. Gather time related functions to a2time.h:
  7439. * src/a2time.h: New file.
  7440. * src/DefaultPeerStorage.cc
  7441. * src/SimpleLogger.cc
  7442. * src/Util.{h, cc}
  7443. * src/SimpleRandomizer.h
  7444. * src/TimeA2.{h,cc}
  7445. * src/DownloadCommand.cc
  7446. * src/main.cc
  7447. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7448. a2netcompat.h:
  7449. * src/NameResolver.cc
  7450. Fixed compilation error without openssl:
  7451. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7452. Added default block to suppress compiler warnings:
  7453. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7454. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7455. MinGW build enhancements. The following files are added:
  7456. * src/gai_strerror.{c,h}
  7457. * src/gettimeofday.{c,h}
  7458. Changes to support the above new files:
  7459. * configure.ac
  7460. * src/Makefile.am
  7461. * src/a2netcompat.h
  7462. * src/TimeA2.cc
  7463. * src/DefaultPeerStorage.cc
  7464. * src/NameResolver.cc: removed mingw_strerror() function.
  7465. * src/SocketCore.cc: removed mingw_strerror() function.
  7466. Miscellaneous MinGW build fixes.
  7467. * src/a2io.h: Use _lseeki64() instead of lseek()
  7468. * src/common.h
  7469. * src/DefaultFileAllocator.cc
  7470. * src/GlowFileAllocator.cc
  7471. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7472. * src/NameResolver.cc
  7473. (callback): Changed int32_t to int.
  7474. (resolve): Changed int32_t to int.
  7475. * src/Platform.cc
  7476. * src/Platform.h
  7477. * test/MultiDiskWriterTest.cc
  7478. * test/PeerMessageUtilTest.cc
  7479. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7480. Other enhancements and fixes.
  7481. * src/HttpRequestCommand.cc
  7482. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7483. * src/SocketCore.cc:
  7484. (error): New function to abstract errno/WSAGetLastError().
  7485. (errorMsg): New function to abstract errno/WSAGetLastError().
  7486. (initiateSecureConnection): Added more detailed error reporting.
  7487. * src/SocketCore.h: Added private variable blocking, to allow
  7488. proper handling of OpenSSL psuedo-errors.
  7489. * src/message.h
  7490. (EX_SSL_INIT_FAILURE)
  7491. (EX_SSL_IO_ERROR)
  7492. (EX_SSL_PROTOCOL_ERROR)
  7493. (EX_SSL_UNKNOWN_ERROR)
  7494. (EX_SSL_CONNECT_ERROR)
  7495. (EX_SOCKET_BLOCKING)
  7496. (EX_SOCKET_NONBLOCKING)
  7497. (EX_SOCKET_UNKNOWN_ERROR)
  7498. * src/Util.cc
  7499. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  7500. reserved name.
  7501. (httpGMT): Fixed typo.
  7502. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7503. Merged Ross's win32 patch(manually)
  7504. In the course of merging, following files are added.
  7505. * src/strptime.{h,c}
  7506. * src/libgen.{h,c}
  7507. * src/inet_aton.{h,c}
  7508. * src/Platform.{h,cc}
  7509. * src/localtime_r.{h,c}
  7510. * src/getaddrinfo.{h,c}
  7511. I've gethered network related things, and put them to following file:
  7512. * src/a2netcompat.h
  7513. Also io related things are put to following file:
  7514. * src/a2io.h
  7515. Changed %lld to %s because mingw32 doesn't recognize %lld.
  7516. * src/message.h
  7517. (MSG_ALLOCATION_COMPLETED)
  7518. (EX_TOO_LARGE_FILE)
  7519. (EX_SIZE_MISMATCH)
  7520. (EX_FILE_OFFSET_OUT_OF_RANGE)
  7521. (EX_INVALID_CHUNK_CHECKSUM)
  7522. (EX_INVALID_RANGE_HEADER)
  7523. * src/FileAllocationCommand.cc
  7524. * src/HttpResponse.cc
  7525. * src/RequestGroup.cc
  7526. * src/MultiDiskAdaptor.cc
  7527. * src/OptionHandlerImpl.h
  7528. * src/HttpResponseCommand.cc
  7529. * src/FtpNegotiateCommand.cc
  7530. * src/IteratableChecksumValidator.cc
  7531. * src/SegmentMan.cc
  7532. * src/ChunkChecksumValidator.cc
  7533. Added Randomizer::getRandomNumber(long int)
  7534. * src/Randomizer.h (getRandomNumber)
  7535. * src/SimpleRandomizer.h (getRandomNumber)
  7536. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  7537. * src/Util.cc (randomAlpha): Use this new function.
  7538. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7539. Converted int's to in32_t. long long int's are also converted to
  7540. int64_t
  7541. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Fixed the bug that prevents cookies from being sent to the server
  7543. if the domain of cookie is FQDN and starts with ".".
  7544. * src/Cookie.cc (match)
  7545. To add the ability to change peer id.
  7546. * src/DefaultBtContext.h
  7547. (_peerIdPrefix): New variable
  7548. (setPeerIdPrefix): New function.
  7549. * src/torrentRequestInfo.cc
  7550. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  7551. DefaultBtContext.
  7552. * src/main.cc (main): Added peer-id-prefix command-line option.
  7553. The usage message is not added yet.
  7554. * src/DefaultBtContext.cc
  7555. (generatePeerId): Use _peerIdPrefix.
  7556. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  7557. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7558. Fixed the bug that prevents filename in content-disposition from
  7559. being retrieved when filename is not quoted.
  7560. * src/Util.cc (getContentDispositionFilename)
  7561. Fixed the bug that causes infinate loop and memory leak when file open
  7562. operation failed.
  7563. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7564. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7565. Fixed the bug that causes segfault when all URIs specified are
  7566. unsupported.
  7567. * src/RequestGroupMan.cc (getInitialCommands)
  7568. Check if RequestGroup::createNextCommand() returns empty list of
  7569. commands.
  7570. * src/RequestGroup.cc (createNextCommand)
  7571. Change log level from info to error so that users can notice that
  7572. an error occurred.
  7573. Fixed the bug that causes segfault when a zero-sized file is
  7574. downloaded.
  7575. * src/BitfieldMan.cc (isAllBitSet)
  7576. Return true if bitfieldLength is 0.
  7577. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. * src/main.cc
  7579. (showUsage): Added 3 usage examples for metalink download.
  7580. Replace MetalinkChunkChecksum with ChunkChecksum.
  7581. * src/MetalinkChunkChecksum.h: Removed.
  7582. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  7583. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  7584. * src/Xml2MetalinkProcessor.cc
  7585. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  7586. * src/MetalinkRequestInfo.cc (execute)
  7587. * Release 0.11.1
  7588. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. Reads URIs from stdin when "-i -" is specified.
  7590. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  7591. * src/UriListParser.h, src/UriListParser.cc: New class.
  7592. * src/StreamUriListParser.h: New class.
  7593. * src/FileUriListParser.h: New class.
  7594. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  7595. instead of UriFileListParser.
  7596. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Made console readout more readable.
  7598. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7599. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7600. Fix the bug that causes -s option not to work.
  7601. * src/main.cc (main)
  7602. * src/a2algo.h: New file.
  7603. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7604. Create directory structure specified in metalink file.
  7605. * src/RequestGroup.h, src/RequestGroup.cc
  7606. (initAndOpenFile): Create a directory to store files if it does not
  7607. exist.
  7608. (getDir): New function.
  7609. Added ETA and download speed for an individual file to readout.
  7610. * src/ConsoleDownloadEngine.cc (sendStatistics)
  7611. * src/RequestGroup.h
  7612. (calculateDownloadSpeed): New function.
  7613. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. Made -S option work with metalink file and provided selective download
  7615. to metalink.
  7616. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  7617. (filename): Removed.
  7618. (file): New variable.
  7619. (size): Removed.
  7620. (operator=): Updated.
  7621. (getPath): New function.
  7622. (getLength): New function.
  7623. (toFileEntry): New function.
  7624. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  7625. (execute): Use toStream.
  7626. (showFileEntry): Removed.
  7627. * src/MetalinkRequestInfo.h
  7628. (targetFiles): New variable.
  7629. (setTargetFiles): New variable.
  7630. * src/MetalinkRequestInfo.cc
  7631. (execute): Added the ability to print file information included in
  7632. a metalink file.
  7633. Added selective download mode to metalink.
  7634. * src/main.cc
  7635. (showUsage): Updated to denote that -S and --select-file options are
  7636. applicable to metalink.
  7637. * src/FileEntry.h
  7638. (operator=): New function.
  7639. (getBasename): New function.
  7640. (getDirname): New function.
  7641. * src/Util.h, src/Util.cc
  7642. (toStream): New function.
  7643. * src/Xml2MetalinkProcessor.cc: Updated.
  7644. Made aria2 work with metalink with directory structure.
  7645. * src/File.h, src/File.cc
  7646. (getBasename): New function.
  7647. (getDirname): New function.
  7648. * src/RequestGroup.h, src/RequestGroup.cc
  7649. (_topDir): New variable.
  7650. (setTopDir): New function.
  7651. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7652. Rewrote HTTP header parsing with stringstream.
  7653. * src/HttpConnection.h, src/HttpConnection.cc
  7654. (HttpRequestEntry): New class.
  7655. (headerBuf): Removed.
  7656. (headerBufLength): Removed.
  7657. (outstandingHttpRequests): Now its element type is
  7658. HttpRequestEntryHandle.
  7659. (findEndOfHeader): Removed.
  7660. (receiveResponse): Rewritten.
  7661. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7662. Updated doc for -j option to notice that it should be used with -i
  7663. option.
  7664. * src/main.cc (showUsage)
  7665. Removed unused classes.
  7666. * src/RequestInfo.h
  7667. (FileInfo): Removed.
  7668. (checksum): Removed.
  7669. (fileInfo): Removed.
  7670. (setChecksum): Removed.
  7671. (getChecksum): Removed.
  7672. (getFileInfo): Removed.
  7673. Use ISO units.
  7674. * src/ConsoleDownloadEngine.cc
  7675. * src/TorrentConsoleDownloadEngine.cc
  7676. * src/Util.cc (abbrevSize)
  7677. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7678. Added the default listening ports to the help message.
  7679. * src/main.cc (showUsage)
  7680. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7681. Reduce the number of calls to gettimeofday to lower CPU load.
  7682. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7683. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7684. * src/Peer.h (calculateUploadSpeed): New function.
  7685. (calculateDownloadSpeed): New function.
  7686. * src/DefaultPeerStorage.cc
  7687. (CalculateStat): Added _now variable.
  7688. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7689. and Peer::calculateUploadSpeed(const struct timeval&)
  7690. Drop connection if no request or piece message is exchanged in
  7691. a certain interval.
  7692. * src/DefaultBtInteractive.h
  7693. (btRuntime): New variable.
  7694. (inactiveCheckPoint): New variable.
  7695. (checkActiveInteraction): New function.
  7696. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7697. request or piece message is received.
  7698. (checkActiveInteraction): New function.
  7699. (doInteractionProcessing): Call checkActiveInteraction.
  7700. Fixed the bug that causes remote Metalink and Torrent files are not
  7701. processed.
  7702. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7703. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7704. Changed format of log file.
  7705. * src/SimpleLogger.cc
  7706. * Release 0.11.0
  7707. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7708. * src/AbstractCommand.cc
  7709. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7710. MSG_MAX_TRY from error to info.
  7711. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7712. * src/message.h
  7713. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7714. (MSG_DOWNLOAD_ABORTED): Added %s.
  7715. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7716. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7717. * src/PeerAbstractCommand.cc
  7718. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7719. * src/Request.h
  7720. (cookieBox): Made ShardHandle.
  7721. * src/RequestGroup.h, src/RequestGroup.cc
  7722. (createNextCommandWithAdj): New function.
  7723. * src/FileAllocationCommand.cc
  7724. (executeInternal): Use createNextCommandWithAdj().
  7725. * src/CheckIntegrityCommand.cc
  7726. (executeInternal): Use createNextCommandWithAdj().
  7727. Added --load-cookies command-option.
  7728. * src/OptionHandlerFactory.cc
  7729. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7730. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7731. Now aria2 can handle cookie's expiration date.
  7732. * src/Cookie.h (expires): Changed its type to time_t.
  7733. * src/main.cc: Added --load-cookies command-line option.
  7734. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7735. * src/Util.h, src/Util.cc (httpGMT): New function.
  7736. * src/Request.cc (Request): Initialize cookieBox using
  7737. CookieBoxFactory.
  7738. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7739. * src/CookieParser.h, src/CookieParser.cc: New class.
  7740. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7741. * src/HttpResponseCommand.cc
  7742. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7743. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7744. download.
  7745. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7746. Added -j command-line option.
  7747. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7748. * src/main.cc
  7749. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7750. Rewritten using stringstream.
  7751. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  7752. Rewritten using stringstream.
  7753. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7754. Make download size shown in MB, KB.
  7755. * src/ConsoleDownloadEngine.h (sendStatistics)
  7756. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  7757. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7758. Accept incoming connections if download rate is low.
  7759. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  7760. (_lowestSpeedLimit): New variable.
  7761. (setLowestSpeedLimit): New function.
  7762. (execute): Accept incoming connections if download rate is low.
  7763. MAX_PEERS is ignored in this case.
  7764. Disable PREF_OUT in multiple concurrent download:
  7765. * src/RequestGroup.h, src/RequestGroup.cc
  7766. (setUserDefinedFilename): New function.
  7767. * src/DownloadEngineFactory.cc
  7768. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  7769. concurrent download.
  7770. * src/DefaultSegmentManFactory.cc
  7771. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  7772. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7773. RequestGroup::getNextCommand() was renamed to createNextCommand().
  7774. Added its overloaded method.
  7775. * src/RequestGroup.h
  7776. (_numConcurrentCommand): New variable.
  7777. (setNumConcurrentCommand): New function.
  7778. * src/RequestGroup.cc
  7779. Abort download if same file is being downloaded concurrently.
  7780. * src/RequestGroup.h, src/RequestGroupMan.cc
  7781. (isSameFileBeingDownloaded): New function.
  7782. * src/HttpResponseCommand.cc (executeInternal)
  7783. * src/FtpNegotiateCommand.cc (recvSize)
  7784. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  7785. * main.cc: Added help message for -i option.
  7786. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7787. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  7788. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  7789. * src/MetalinkEntry.h
  7790. (checksum): Changed to ChecksumHandle
  7791. * src/MetalinkRequestInfo.cc
  7792. (checksum): Changed to ChecksumHandle
  7793. * src/File.cc
  7794. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  7795. * src/common.h
  7796. (DIR_OPEN_MODE): New definition
  7797. * src/RequestGroup.cc
  7798. (prepareForNextAction): Added an argument.
  7799. * src/message.h
  7800. (MSG_GOOD_CHECKSUM): New definition
  7801. (MSG_BAD_CHECKSUM): New definition
  7802. * src/HttpResponseCommand.cc
  7803. (handleDefaultEncoding): Continue download sequence in new
  7804. non-segmented download.
  7805. * src/FileAllocationEntry.h
  7806. (_nextDownloadCommand): New variable.
  7807. * src/DownloadCommand.cc
  7808. (prepareForNextSegment): Create ChecksumCommand if checksum is
  7809. available.
  7810. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  7811. * src/IteratableChecksumValidator.h,
  7812. src/IteratableChecksumValidator.cc: New class.
  7813. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  7814. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7815. Change file mode to 666:
  7816. * src/common.h (OPEN_MODE): New definition.
  7817. * src/File.cc
  7818. * src/Util.cc
  7819. * src/Directry.cc
  7820. * src/AbstractDiskWriter.cc
  7821. Change the level of log message "download aborted" to debug:
  7822. * src/PeerAbstractCommand.cc (execute)
  7823. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  7824. * src/TrackerWatcherCommand.cc
  7825. (createCommand): Sleep some seconds after request failed.
  7826. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  7827. then abort tracker request.
  7828. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7829. * Added the simultaneous download feature.
  7830. * src/main.cc: Print "Exception caught: " when exception is caught.
  7831. Use CUIDCounter instead of BtRuntime::getNewCuid():
  7832. * src/ActivePeerConnectionCommand.cc
  7833. * src/PeerInteractionCommand.cc
  7834. * src/BtRuntime.h
  7835. (cuidCounter): Removed.
  7836. (getNewCuid): Removed.
  7837. * src/DownloadEngineFactory.cc
  7838. * src/PeerListenCommand.cc
  7839. * src/TrackerUpdateCommand.cc
  7840. * src/PeerInitiateConnectionCommand.cc
  7841. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. * src/PeerAbstractCommand.cc
  7843. (onAbort): Call PeerStorage::returnPeer()
  7844. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  7845. (incomingPeers): New variable.
  7846. (addIncomingPeer): New function.
  7847. (returnPeer): New function.
  7848. (onErasingPeer): New function.
  7849. (addPeer): push_back -> push_front
  7850. (getActivePeers): Rewritten.
  7851. (calculateStat): Rewritten.
  7852. * src/PeerStorage.h
  7853. (TransferStat::copy): New function.
  7854. (TransferStat::TransferStat): New function.
  7855. (TransferStat::operator=): New function.
  7856. (addIncomingPeer): New function.
  7857. (returnPeer): New function.
  7858. * src/PeerListenCommand.cc
  7859. (execute): Use PeerStorage::addIncomingPeer() instead of
  7860. Peer::addPeer().
  7861. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7862. Connect to a peer actively when download speed is lower than specified
  7863. speed in torrent download:
  7864. * src/ActivePeerConnectionCommand.h: New class.
  7865. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7866. * src/HttpRequest.cc (createRequest): url-encode user-agent
  7867. * src/main.cc: Fixed the bug that prevents download if .netrc
  7868. doesn't exist.
  7869. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7870. To cache resolved hostname:
  7871. * src/AbstractCommand.h, src/AbstractCommand.cc
  7872. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  7873. Added dns cache.
  7874. * src/FtpInitiateConnectionCommand.cc
  7875. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  7876. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  7877. NameResolver working without ares.
  7878. * src/TorrentRequestInfo.cc
  7879. (execute): Don't cache dns in torrent download.
  7880. * src/HttpInitiateConnectionCommand.cc
  7881. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  7882. * src/DNSCache.h: New class.
  7883. * src/UrlRequestInfo.cc
  7884. (execute): Use dns cache.
  7885. In http request, suppress port number in http request header if port
  7886. is 80 or 443:
  7887. * src/HttpRequest.cc (getHostText): Suppress port number in http
  7888. request header if port is 80 or 443.
  7889. (createProxyRequest): Allways send port number.
  7890. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7891. To add the command-line option which disables netrc support:
  7892. * src/OptionHandlerFactory.cc
  7893. (createOptionHandlers): Added PREF_NO_NETRC.
  7894. * src/main.cc: Added -n option.
  7895. * src/prefs.h (PREF_NO_NETRC): New definition.
  7896. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  7897. V_TRUE.
  7898. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  7899. is V_FALSE. This may get configurable in the future release.
  7900. To clear peer's error status by time basis:
  7901. * src/PeerAbstractCommand.cc
  7902. (onAbort): Call Peer::startBadCondition().
  7903. * src/Peer.h, src/Peer.cc
  7904. (error): Removed.
  7905. (_badConditionStartTime): New variable.
  7906. (_badConditionInterval): New variable. Initialized to 10 seconds.
  7907. (startBadCondition): New function.
  7908. (isGood): New function.
  7909. * src/DefaultPeerStorage.cc
  7910. (addPeer): Use Peer::isGood().
  7911. (FindFinePeer): Use Peer::isGood().
  7912. Always include port number in http request header:
  7913. * src/HttpRequest.cc (getHostText): Always include port number in
  7914. http request header.
  7915. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. To the ability to read options from a config file:
  7917. * src/main.cc: Command-line parameter validation is delegated to
  7918. OptionHandler class.
  7919. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  7920. * src/Option.h, src/Option.cc (clear): New function.
  7921. * src/OptionParser.h, src/OptionParser.cc: New class.
  7922. * src/OptionHandler.h: New class.
  7923. * src/NameMatchOptionHandler.h: New class.
  7924. * src/OptionHandlerImpl.h: New classes.
  7925. * src/prefs.h: '_' -> '-'
  7926. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  7927. (FTP_PASV): New definition.
  7928. * src/Util.h, src/Util.cc (getRealSize): New function.
  7929. To disable netrc support if .netrc file does not have correct
  7930. permissions:
  7931. * src/File.h, src/File.cc (mode): New function.
  7932. To prevent confidential information to be logged:
  7933. * src/HttpConnection.h, src/HttpConnection.cc
  7934. (eraseConfidentialInfo): New function.
  7935. (sendRequest): Call eraseConfidentialInfo().
  7936. (sendProxyRequest): Call eraseConfidentialInfo().
  7937. * src/main.cc: Validate permissions of .netrc file.
  7938. To add --user-agent command-line option:
  7939. * src/main.cc: Added new command line option: --user-agent
  7940. * src/prefs.h (PREF_USER_AGENT): New definition.
  7941. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  7942. parameter to HttpRequest object.
  7943. * src/AbstractProxyRequestCommand.cc
  7944. (executeInternal): Set user-agent option parameter to HttpRequest
  7945. object.
  7946. Marged the patches from Dan Fandrich.
  7947. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7948. Use filename and size from Metalink file instead of sending HEAD
  7949. request:
  7950. * src/UrlRequestInfo.h
  7951. (_filename): New variable.
  7952. (_totalLength): New variable.
  7953. (setTotalLength): New variable.
  7954. (setFilename): New variable.
  7955. * src/MetalinkRequestInfo.cc
  7956. (execute): Set filename and size to UrlRequestInfo
  7957. * src/UrlRequestInfo.cc
  7958. (execute): Use filename and size from Metalink instead of seding
  7959. HEAD request to servers.
  7960. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7961. To add the ability to resume downloading a partially downloaded file
  7962. which is downloaded from the beginning:
  7963. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  7964. takes this role.
  7965. * src/main.cc: Added -c option.
  7966. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  7967. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  7968. * src/prefs.h (PREF_CONTINUE): New definition.
  7969. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  7970. * src/DefaultDiskWriter.cc
  7971. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  7972. * src/AbstractDiskWriter.h
  7973. (glowFileAllocator): New variable.
  7974. * src/AbstractDiskWriter.cc
  7975. (openExistingFile): Now preallocate file space from the end of the
  7976. existing file if totalLength argument is specified and grater than 0.
  7977. * src/UrlRequestInfo.cc: If -c option is specified and the file
  7978. to download exists in local, continue the download of the file.
  7979. --allow-overwrite=true is assumed in this context.
  7980. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  7981. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  7982. Throw exception if --check-integrity=true is specified but chunk
  7983. checksums are not provided:
  7984. * src/UrlRequestInfo.cc
  7985. Do not print URLs to stdout:
  7986. * src/UrlRequestInfo.cc
  7987. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7988. * src/Request.h: Use AuthResolver to get authentication information.
  7989. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  7990. set to RequestFactory object.
  7991. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  7992. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  7993. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  7994. create Request object.
  7995. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  7996. To integrate Netrc into exsiting classes:
  7997. * src/Request.h
  7998. (_userDefinedAuthConfig): New variable.
  7999. (findNetrcAuthenticator): New function.
  8000. (segment): Removed.
  8001. (setUserDefinedAuthConfig): New function.
  8002. (resolveHttpAuthConfigItem): New function.
  8003. (resolveFtpAuthConfigItem): New function.
  8004. (resolveHttpProxyAuthConfigItem): New function.
  8005. * src/HttpRequest.h
  8006. (authConfig): Removed.
  8007. (proxyAuthConfig): Removed.
  8008. (setAuthConfig): Removed.
  8009. (setProxyAuthConfig): Removed.
  8010. * src/UrlRequest.h
  8011. (getHeadResult): Added a parameter: authConfigHandle
  8012. * src/common.h
  8013. (SingletonHolder.h): New include.
  8014. * src/main.cc
  8015. (Netrc.h): New include.
  8016. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8017. Added initial value of PREF_NETRC_PATH.
  8018. Added the initialization of netrc.
  8019. * src/AuthConfig.h: New class.
  8020. * src/prefs.h
  8021. (PREF_NETRC_PATH): New definition.
  8022. * src/HttpAuthConfig.h: Removed.
  8023. * src/Netrc.cc
  8024. (getRequiredNextToken): New function.
  8025. (skipMacdef): New function.
  8026. (parse): Rewritten.
  8027. * src/Netrc.h
  8028. (getRequiredNextToken): New function.
  8029. (skipMacdef): New function.
  8030. * src/Util.h, src/Util.cc
  8031. (getHomeDir): New function.
  8032. * src/TrackerWatcherComand.cc
  8033. (createRequestCommand): Use AuthConfig.
  8034. * src/FtpConnection.cc
  8035. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8036. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8037. * src/Request.cc
  8038. (findNetrcAuthenticator): New function.
  8039. (resolveHttpAuthConfigItem): New function.
  8040. (resolveFtpAuthConfigItem): New function.
  8041. (resolveHttpProxyAuthConfigItem): New function.
  8042. * src/UrlRequestInfo.cc: Use AuthConfig.
  8043. * src/HttpRequest.cc
  8044. (createRequest): Use authConfig.
  8045. (getProxyAuthString): Use authConfig.
  8046. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8047. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8048. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8049. To reduce overhead to find commands whose socket is either
  8050. readable or writable in the download engine loop:
  8051. * src/Command.h, src/Command.cc
  8052. (STATUS): New enum.
  8053. (status): New variable.
  8054. (statusMatch): New function.
  8055. (setStatusActive): New function.
  8056. (setStatusInactive): New function.
  8057. * src/DownloadEngine.h, src/DownloadEngine.cc
  8058. (executeCommand): New function.
  8059. (run): Simplified.
  8060. (waitData): Call Command::setStatusActive() when command's socket is
  8061. readable or writable.
  8062. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8063. To handle Segment as SegmentHandle:
  8064. * src/AbstractCommand.cc (execute): Rewritten.
  8065. * src/SegmentMan.h: Segment -> SegmentHandle
  8066. Introducded HttpResponse class, HttpRequest class to improve code
  8067. extensiveness and make it clear:
  8068. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8069. HttpResponse class.
  8070. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8071. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8072. * src/HttpConnection.cc: Contruction of http request were moved to
  8073. HttpRequest class.
  8074. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8075. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8076. * src/HttpAuthConfig.h: New class.
  8077. * src/Range.h: New class.
  8078. To make FtpTunnel{Request, Response}Command and
  8079. HttpProxy{Request, Response}Command derived from
  8080. AbstractProxy{Request, Response}Command:
  8081. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8082. Derived from AbstractProxyRequestCommand class.
  8083. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8084. Derived from AbstractProxyResponseCommand class.
  8085. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8086. Derived from AbstractProxyRequestCommand class.
  8087. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8088. Derived from AbstractProxyResponseCommand class.
  8089. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8090. : New class.
  8091. * src/AbstractProxyResponseCommand.h,
  8092. src/AbstractProxyResponseCommand.cc: New class.
  8093. To add netrc support:
  8094. * src/Netrc.h, src/Netrc.cc: New class.
  8095. * src/Util.h, src/Util.cc (split): New function.
  8096. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8097. "Content-Range" header instead of "Range" header.
  8098. * src/HttpHeader.h
  8099. (getStatus): Removed.
  8100. (setStatus): Removed.
  8101. * src/Segment.h
  8102. (getPositionToWrite): New function.
  8103. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8104. * src/HttpHeader.h
  8105. (Range.h): New include.
  8106. (status): New variable.
  8107. (HttpHeader): Initialized status with 0.
  8108. (getStatus): New function.
  8109. (setStatus): New function.
  8110. (getRange): New function.
  8111. (HttpHeaderHandle): New function.
  8112. * src/HttpHeader.cc
  8113. (getRange): New function.
  8114. * src/Request.h
  8115. (RequestWeakHandle): New definition.
  8116. * src/HttpConnection.h
  8117. (HttpConnectionHandle): New type definition.
  8118. * src/HttpConnection.cc
  8119. (receiveResponse): Set HTTP status to headers.
  8120. * src/main.cc
  8121. (showUsage): Fixed typo.
  8122. * src/Segment.h
  8123. (SegmentHandle): New type definition.
  8124. * src/BitfieldMan.h
  8125. (getMissingUnusedLength): New function.
  8126. * src/BitfieldMan.cc
  8127. (getMissingUnusedLength): New function.
  8128. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8129. To fix static initialization order problem:
  8130. * src/BitfieldManFactory.h
  8131. (defaultRandomizer): Removed.
  8132. (factory): New variable.
  8133. (getNewFactory): Removed.
  8134. (getFactoryInstance): New function.
  8135. (setDefaultRandomizer): Rewritten.
  8136. (getDefaultRandomizer): Rewritten.
  8137. * src/BitfieldManFactory.cc
  8138. (defaultRandomizer): Removed.
  8139. (factory): Initialized to 0.
  8140. (BitfieldManFactory): Initialized randomizer to 0.
  8141. * src/DefaultPieceStorage.cc
  8142. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8143. * src/Peer.cc
  8144. (Peer): getNewFactory() -> getFactoryInstance()
  8145. * src/SegmentMan.cc
  8146. (initBitfield): getNewFactory() -> getFactoryInstance()
  8147. * src/Piece.cc
  8148. (Piece): getNewFactory() -> getFactoryInstance()
  8149. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8150. To fix the bug that causes crash on Max OS X:
  8151. * src/SimpleRandomizer.h
  8152. (getInstance): Create new instance if the static variable is null.
  8153. * src/SimpleRandomizer.cc
  8154. (randomizer): Initialized to 0.
  8155. * src/BitfieldManFactory.h
  8156. (getNewFactory): Removed the call to setRandomizer().
  8157. To fix the miscalculation of the range of checksum:
  8158. * src/BitfieldMan.h
  8159. (isBitSetOffsetRange): New function.
  8160. * src/BitfieldMan.cc
  8161. (isBitSetOffsetRange): New function.
  8162. * src/SegmentMan.cc
  8163. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8164. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8165. * Release 0.10.1
  8166. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8167. To lower CPU usage in BitTorrent download when --max-upload-limit
  8168. command-line option specified:
  8169. * src/DefaultBtMessageDispatcher.cc
  8170. (sendMessages): Calculate uploading speed only when current message
  8171. is uploading data and is not sent yet.
  8172. * src/DefaultPeerStorage.h
  8173. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8174. * src/HttpResponseCommand.cc
  8175. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8176. This fixes compile error in Soralis 10.
  8177. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8178. To fix segfault in Metalink download:
  8179. * src/UrlRequestInfo.h
  8180. (filename): Removed.
  8181. (totalLength): Removed.
  8182. (setTotalLength): Removed.
  8183. (setFilename): Removed.
  8184. * src/MetalinkRequestInfo.cc
  8185. (execute): Do not set filename and totalLength to reqInfo.
  8186. Set chunk checksum to reqInfo if it is not null.
  8187. * src/HttpResponseCommand.cc
  8188. (executeInternal): Fixed filename in log.
  8189. (handleDefaultEncoding): Removed the call to initBitfield() and
  8190. markAllPiecesDone().
  8191. (handleOtherEncoding): Added HEAD method handling.
  8192. * src/FtpNegotiateCommand.cc
  8193. (executeInternal): Added SEQ_HEAD_OK handling.
  8194. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8195. return false.
  8196. * src/FtpNegotiateCommand.h
  8197. (SEQ_HEAD_OK): New definition.
  8198. * src/SegmentMan.cc
  8199. (initBitfield): Delete bitfield.
  8200. (isChunkChecksumValidationReady): Fixed the condition.
  8201. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8202. works fine.
  8203. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8204. * src/Xml2MetalinkProcessor.h
  8205. (xpathExists): New function.
  8206. * src/Xml2MetalinkProcessor.cc
  8207. (xpathExists): New function.
  8208. Not to send HEAD request if filename and size are available in Metalink
  8209. file:
  8210. * src/UrlRequestInfo.h
  8211. (filename): New variable.
  8212. (totalLength): New variable.
  8213. (setTotalLength): New function.
  8214. (setFilename): New function.
  8215. * src/MetalinkRequestInfo.cc
  8216. (execute): Set filename and size to UrlRequestInfo.
  8217. * src/MetalinkEntry.cc
  8218. (MetalinkEntry): Initialize size with 0.
  8219. * src/UrlRequestInfo.cc
  8220. (execute): Set filename and size to SegmentMan.
  8221. Not to download rest of the files after selected files are downloaded
  8222. in BitTorrent:
  8223. * src/PieceStorage.h
  8224. (allDownloadFinished): New function.
  8225. * src/DefaultBtAnnounce.cc
  8226. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8227. downloadFinished.
  8228. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8229. * src/DefaultPieceStorage.cc
  8230. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8231. Commented out the call to finishSelectiveDownloadingMode().
  8232. (downloadFinished): Call isFilteredAllBitSet() instead of
  8233. isAllBitSet().
  8234. (allDownloadFinished): New function.
  8235. * src/DefaultBtInteractive.cc
  8236. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8237. downloadFinished().
  8238. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8239. * src/TorrentDownloadEngine.cc
  8240. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8241. * src/BitfieldMan.h
  8242. (isFilteredAllBitSet): New function.
  8243. * src/ShareRatioSeedCriteria.h
  8244. (PieceStorage.h): New include.
  8245. (pieceStorage): New variable.
  8246. (evaluate):
  8247. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8248. * src/BitfieldMan.cc
  8249. (isFilteredAllBitSet): New function.
  8250. (isAllBitSet): Filter is not took into account.
  8251. Rename --force-truncate as --allow-overwrite:
  8252. * src/TorrentRequestInfo.cc
  8253. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8254. * src/main.cc
  8255. (showUsage): --force-truncate -> --allow-overwrite
  8256. * src/message.h
  8257. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8258. * src/prefs.h
  8259. (PREF_FORCE_TRUNCATE): Removed.
  8260. (PREF_ALLOW_OVERWRITE): New definition.
  8261. * src/SegmentMan.cc
  8262. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  8263. * src/MetalinkRequestInfo.cc
  8264. (execute): Queueing message are now logged in info level.
  8265. * src/common.h
  8266. (LONG_LONG_MAX): Removed.
  8267. (LONG_LONG_MIN): Removed.
  8268. * src/HttpResponseCommand.cc
  8269. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  8270. * src/FtpNegotiateCommand.cc
  8271. (recvSize): LONG_LONG_MAX -> INT64_MAX
  8272. * src/main.cc
  8273. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  8274. command-line option.
  8275. (main): Added --check-integriy and --realtime-chunk-checksum
  8276. command-line option.
  8277. --force-truncate -> --allow-overwrite
  8278. Set initial value of --check-integrity option to false.
  8279. Don't show usage when error occurs while persing command-line options.
  8280. Removed deprecated --upload-limit option.
  8281. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8282. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  8283. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  8284. * src/BtAllowedFastMessage.cc:
  8285. * src/BtBitfieldMessage.cc
  8286. * src/BtCancelMessage.cc
  8287. * src/BtChokeMessage.cc
  8288. * src/BtHaveAllMessage.cc
  8289. * src/BtHaveMessage.cc
  8290. * src/BtHaveNoneMessage.cc
  8291. * src/BtInterestedMessage.cc
  8292. * src/BtNotInterestedMessage.cc
  8293. * src/BtPieceMessage.cc
  8294. * src/BtPortMessage.cc
  8295. * src/BtRejectMessage.cc
  8296. * src/BtRequestMessage.cc
  8297. * src/BtSuggestPieceMessage.cc
  8298. * src/BtUnchokeMessage.cc
  8299. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  8300. files are affected.
  8301. * src/ChunkChecksumValidator.cc
  8302. * src/SegmentMan.cc
  8303. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. To add chunk checksum validation:
  8305. * src/MetalinkEntry.h
  8306. (MetalinkChunkChecksum.h): New include.
  8307. (chunkChecksum): New variable.
  8308. * src/Request.h
  8309. (method): New variable.
  8310. (setMethod): New function.
  8311. (getMethod): New function.
  8312. (METHOD_GET): New static constant.
  8313. (METHOD_HEAD): New static constant.
  8314. * src/Xml2MetalinkProcessor.h
  8315. (getPieceHash): New function.
  8316. * src/PieceStorage.h
  8317. (markAllPiecesDone): New function.
  8318. (checkIntegrity): New function.
  8319. * src/FileAllocator.h
  8320. (NullFileAllocationMonitor.h): New include.
  8321. (FileAllocator): Initialize fileAllocationMonitor with new
  8322. NullFileAllocationMonitor().
  8323. * src/MultiDiskAdaptor.h
  8324. (messageDigest.h): Remove include.
  8325. (ctx): Removed.
  8326. (hashUpdate): Added ctx.
  8327. (MultiDiskAdaptor): Removed ctx.
  8328. (sha1Sum): Renamed as messageDigest.
  8329. (messageDigest): New function.
  8330. * src/UrlRequestInfo.h
  8331. (HeadResult): New class.
  8332. (digestAlgo): New variable.
  8333. (chunkChecksumLength): New variable.
  8334. (chunkChecksums): New variable.
  8335. (getHeadResult): New function.
  8336. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  8337. (setDigestAlgo): New function.
  8338. (setChunkChecksumLength): New function.
  8339. (setChunkChecksums): New function.
  8340. * src/DefaultPieceStorage.cc
  8341. (DiskAdaptorWriter.h): New include.
  8342. (ChunkChecksumValidator.h): New include.
  8343. (markAllPiecesDone): New function.
  8344. (checkIntegrity): New function.
  8345. * src/DefaultBtContext.h
  8346. (getPieceHashes): New function.
  8347. * src/TorrentRequestInfo.cc
  8348. (execute): Try to validate chunk checksum if file already exists and
  8349. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8350. * src/messageDigest.h
  8351. (~MessageDigestContext): Added digestFree().
  8352. * src/MetalinkRequestInfo.cc
  8353. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8354. * src/DiskAdaptor.h
  8355. (messageDigest.h): New include.
  8356. (sha1Sum): Renamed as messageDigest.
  8357. (messageDigest): New function.
  8358. * src/DownloadCommand.h
  8359. (PeerStat.h): New include.
  8360. (maxDownloadSpeedLimit): New variable.
  8361. (startupIdleTime): New variable.
  8362. (lowestDownloadSpeedLimit): New variable.
  8363. (peerStat): New variable.
  8364. (setMaxDownloadSpeedLimit): New function.
  8365. (setStartupIdleTime): New function.
  8366. (setLowestDownloadSPeedLimit): New function.
  8367. * src/BtContext.h
  8368. (getPieceHashes): New function.
  8369. * src/main.cc
  8370. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8371. option to true for testing purpose.
  8372. * src/BtPieceMessage.cc
  8373. (checkPieceHash): Use messageDigest
  8374. * src/DownloadEngine.cc
  8375. (SetDescriptor): Removed.
  8376. (AccumulateActiveCommand): Removed.
  8377. (waitData): Rewritten.
  8378. (updateFdSet): Rewritten.
  8379. * src/MultiDiskAdaptor.cc
  8380. (hashUpdate): Added ctx.
  8381. (sha1Sum): Renamed as messageDigest.
  8382. (messageDigest): New function.
  8383. * src/BitfieldMan.h
  8384. (isBitRangeSet): New function.
  8385. (unsetBitRange): New function.
  8386. * src/ByteArrayDiskWriter.h
  8387. (sha1Sum): Renamed as messageDigest.
  8388. (messageDigest): New function.
  8389. * src/ConsoleDownloadEngine.cc
  8390. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8391. * src/DiskWriter.h
  8392. (messageDigest.h): New include.
  8393. (sha1Sum): Renamed as messageDigest.
  8394. (messageDigest): New function.
  8395. * src/ChunkChecksumValidator.h: New class.
  8396. * src/DiskAdaptorWriter.h: New class.
  8397. * src/prefs.h
  8398. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8399. (PREF_CHECK_INTEGRITY): New definition.
  8400. * src/HttpResponseCommand.cc
  8401. (handleDefaultEncoding): Added method "HEAD" handling.
  8402. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8403. (handleOtherEncoding):
  8404. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8405. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8406. startupIdleTime, lowestDownloadSpeedLimit to command.
  8407. * src/SegmentMan.h
  8408. (getSegmentEntryByIndex): New function.
  8409. (getSegmentEntryByCuid): New function.
  8410. (getSegmentEntryIteratorByCuid): New function.
  8411. (diskWriter): DiskWriter -> DiskWriterHandle
  8412. (pieceHashes): New variable.
  8413. (chunkHashLength): New variable.
  8414. (digestAlgo): New variable.
  8415. (FindPeerStat): Removed.
  8416. (getPeerStat): Rewritten.
  8417. (markAllPiecesDone): New function.
  8418. (checkIntegrity): New function.
  8419. (tryChunkChecksumValidation): New function.
  8420. (isChunkChecksumValidationReady): New function.
  8421. * src/BitfieldMan.cc
  8422. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8423. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8424. blocks to 0.
  8425. (isBitRangeSet): New function.
  8426. (unsetBitRange): New function.
  8427. * src/FtpNegotiateCommand.cc
  8428. (executeInternal): Set maxDownloadSpeedLimit,
  8429. startupIdleTime, lowestDownloadSpeedLimit to command.
  8430. (recvSize): Added method "HEAD" handling.
  8431. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8432. * src/AbstractSingleDiskAdaptor.cc
  8433. (sha1Sum): Renamed as messageDigest.
  8434. (messageDigest): New function.
  8435. * src/AbstractSingleDiskAdaptor.h
  8436. (sha1Sum): Renamed as messageDigest.
  8437. (messageDigest): New function.
  8438. * src/Util.h
  8439. (indexRange): New function.
  8440. * src/MetalinkEntry.cc
  8441. (MetalinkEntry): Initialized chunkChecksum to 0.
  8442. * src/ShaVisitor.cc
  8443. (~ShaVisitor): Removed the call to ctx.digestFree().
  8444. * src/SegmentMan.cc
  8445. (ChunkChecksumValidator.h): New include.
  8446. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8447. to DIGEST_ALGO_SHA1.
  8448. (~SegmentMan): Removed diskWriter.
  8449. (FindSegmentEntryByIndex): Removed.
  8450. (FindSegmentEntryByCuid): Removed.
  8451. (checkoutSegment): Rewritten.
  8452. (findSlowerSegmentEntry): Rewritten.
  8453. (getSegment): Rewritten.
  8454. (updateSegment): Rewritten.
  8455. (completeSegment): Rewritten.
  8456. (markAllPiecesDone): New function.
  8457. (checkIntegrity): New function.
  8458. (isChunkChecksumValidationReady): New function.
  8459. (tryChunkChecksumValidation): New function.
  8460. * src/Xml2MetalinkProcessor.cc
  8461. (getEntry): Get size and set it to entry.
  8462. Get chunk checksum and set it to entry.
  8463. (getPieceHash): New function.
  8464. * src/Util.cc
  8465. (sha1Sum): Removed ctx.digestFree()
  8466. (fileChecksum): Removed ctx.digestFree()
  8467. (indexRange): New function.
  8468. * src/Request.cc
  8469. (METHOD_GET): New variable.
  8470. (METHOD_HEAD): New variable.
  8471. (Request): Added method.
  8472. * src/UrlRequestInfo.cc
  8473. (FatalException.h): New include.
  8474. (message.h): New include.
  8475. (operator<<): Added operator<< for class HeadResult.
  8476. (getHeadResult): New function.
  8477. (execute): Get filename and size in separate download engine.
  8478. * src/ChunkChecksumValidator.cc: New class.
  8479. * src/DownloadCommand.cc:
  8480. (DownloadCommand): Added peerStat.
  8481. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8482. the value from Option.
  8483. The buffer size is now 16KB.
  8484. Use peerStat member instead of getting it from SegmentMan.
  8485. Use startupIdleTime member instead of gettingit from Option.
  8486. Added chunk checksum validation.
  8487. * src/AbstractDiskWriter.cc
  8488. (AbstractDiskWriter): Removed ctx.
  8489. (~AbstractDiskWriter): Removed ctx.digestFree()
  8490. (writeDataInternal): Returns the return value of write.
  8491. (readDataInternal): Returns the return value of read.
  8492. (sha1Sum): Renamed as messageDigest
  8493. (messageDigest): New function.
  8494. * src/AbstractDiwkWriter.h
  8495. (messageDigest.h): Removed include.
  8496. (ctx): Removed.
  8497. (sha1Sum): Renamed as messageDigest
  8498. (messageDigest): New function.
  8499. * src/DefaultPieceStorage.h
  8500. (markAllPiecesDone): New function.
  8501. (checkIntegrity): New function.
  8502. * src/NullFileAllocationMonitor.h: New class.
  8503. * src/MetalinkChunkChecksum.h: New class.
  8504. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8505. To decrease CPU usage in bittorrent download, calculation results in
  8506. BitfieldMan were cached and realtime fetching PeerObject was removed
  8507. with WeakHandle introduced. Option values are set to the objects
  8508. by setter before download begins.
  8509. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  8510. * src/DefaultBtRequestFactory.h
  8511. (dispatcher): BtMessageDispatcherHandle ->
  8512. BtMessageDispatcherWeakHandle.
  8513. (messageFactory): New variable.
  8514. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  8515. BtMessageDispatcherWeakHandle.
  8516. (setBtMessageFactory): New function.
  8517. * src/DefaultBtMessageDispatcher.cc:
  8518. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  8519. from Option.
  8520. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  8521. feating the value from Option.
  8522. Use messageFactory member.
  8523. * src/PeerInteractionCommand.cc
  8524. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  8525. Add reverse dependencies to factory object.
  8526. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  8527. dispatcher.
  8528. Set messageFactory to receiver.
  8529. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  8530. btInteractive.
  8531. Set receiver to peerObject.
  8532. Set maxDownloadSpeedLimit to this.
  8533. (executeInternal): Use maxDownloadSpeedLimit member.
  8534. * src/BtChokeMessage.cc
  8535. (doReceivedAction): Use dispatcher, requestFactory member.
  8536. (onSendComplete): Use dispatcher member.
  8537. * src/PeerInteractionCommand.h
  8538. (maxDownloadSpeedLimit): New variable.
  8539. * src/DefaultBtMessageReceiver.h
  8540. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8541. (dispatcher):
  8542. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8543. (messageFactory): New variable.
  8544. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8545. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  8546. (setDispatcher):
  8547. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  8548. (setBtMessageFactory): New function.
  8549. * src/DefaultBtInteractive.cc
  8550. (initiateHandshake): Use messageFactory member.
  8551. (addBitfieldMessageToQueue): Use messageFactory member.
  8552. (addAllowedFastMessageToQueue): Use messageFactory member.
  8553. (decideChoking): Use messageFactory member.
  8554. (checkHave): Use messageFactory member.
  8555. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  8556. (receiveMessages): Use maxDownloadSpeedLimit member.
  8557. (decideInterest): Use messageFactory member.
  8558. * src/BtRequestMessage.cc
  8559. (doReceivedAction): Use messageFactory, dispatcher member.
  8560. (onQueued): Use dispatcher member.
  8561. * src/BtPieceMessage.cc
  8562. (doReceivedAction): Use dispatcher member.
  8563. (send): Use peerConnection member.
  8564. (onWrongPiece): Use requestFactory member.
  8565. (handleChokingEvent): Use messageFactory, dispatcher member.
  8566. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  8567. * src/BtMessageDispatcher.h
  8568. (BtMessageDispatcherWeakHandle): New type definition.
  8569. * src/SimpleBtMessage.cc
  8570. (send): Use peerConnection member.
  8571. * src/BtRejectMessage.cc
  8572. (doReceivedAction): Use dispatcher member.
  8573. * src/DefaultBtMessageDispatcher.h
  8574. (Option.h): Removed include.
  8575. (messageFactory): New variable.
  8576. (option): Removed.
  8577. (maxUploadSpeedLimit): New variable.
  8578. (requestTimeout): New variable.
  8579. (DefaultBtMessageDispatcher): Removed option.
  8580. Added maxUploadSpeedLimit, requestTimeout.
  8581. (setOption): Removed.
  8582. (getOption): Removed.
  8583. (setMaxUploadSpeedLimit): New function.
  8584. (setRequestTimeout): New function.
  8585. (setBtMessageFactory): New function.
  8586. * src/DefaultBtInteractive.h
  8587. (btMessageReceiver):
  8588. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8589. (dispatcher):
  8590. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8591. (btRequestFactory):
  8592. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8593. (peerConnection):
  8594. PeerConnectionHandle -> PeerConnectionWeakHandle
  8595. (messageFactory): New variable.
  8596. (option): Removed.
  8597. (keepAliveInterval): New variable.
  8598. (maxDownloadSpeedLimit): New variable.
  8599. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  8600. (setBtMessageReceiver):
  8601. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  8602. (setDispatcher):
  8603. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  8604. (setBtRequestFactory):
  8605. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  8606. (setPeerConnection):
  8607. PeerConnectionHandle -> PeerConnectionWeakHandle
  8608. (setOption): Removed.
  8609. (setKeepAliveInterval): New function.
  8610. (setMaxDownloadSpeedLimit): New function.
  8611. (setBtMessageFactory): New function.
  8612. * src/BitfieldMan.h
  8613. (cachedNumMissingBlock): New variable.
  8614. (cachedNumFilteredBlock): New variable.
  8615. (cachedCompletedLength): New variable.
  8616. (cachedFilteredComletedLength): New variable.
  8617. (cachedFilteredTotalLength): New variable.
  8618. (countMissingBlockNow): New function.
  8619. (countFilteredBlockNow): New function.
  8620. (getFilteredTotalLengthNow): New function.
  8621. (getCompletedLengthNow): New function.
  8622. (getFilteredCompletedLengthNow): New function.
  8623. (updateCache): New function.
  8624. * src/AbstractBtMessage.h
  8625. (BtMessageDispatcher.h): New include.
  8626. (PeerConnection.h): New include.
  8627. (BtRequestFactory.h): New include
  8628. (BtMessageFactory.h): New include.
  8629. (dispatcher): New variable.
  8630. (messageFactory): New variable.
  8631. (peerConnection: New variable.
  8632. (setBtMessageDispatcher): New function.
  8633. (setPeerConnection): New function.
  8634. (setBtMessageFactory): New function.
  8635. (setBtRequestFactory): New function.
  8636. * src/DefaultBtMessageFactory.cc
  8637. (setCommonProperty): Set dispatcher, requestFactory, this,
  8638. peerConnection to msg.
  8639. * src/BtRegistry.h
  8640. (BT_MESSAGE_RECEIVER): New macro.
  8641. * src/PeerConnection.h
  8642. (PeerConnectionWeakHandle): New type definition.
  8643. * src/BtMessageFactory.h
  8644. (BtMessageFactoryWeakHandle): New type definition.
  8645. * src/BitfieldMan.cc
  8646. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8647. cachedCompletedLength, cachedFilteredComletedLength,
  8648. cachedFilteredTotalLength.
  8649. Call updateCache().
  8650. (countMissingBlock): Return cachedNumMissingBlock.
  8651. (countMissingBlockNow): New function.
  8652. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8653. (countFilteredBlockNow): New function.
  8654. (setBit): Call updateCache().
  8655. (unsetBit): Call updateCache().
  8656. (setBitfield): Call updateCache().
  8657. (clearAllBit): Call updateCache().
  8658. (setAllBit): Use setBitInternal instead of setBit.
  8659. Call updateCache().
  8660. (addFilter): Call updateCache().
  8661. (enableFilter): Call updateCache().
  8662. (disableFilter): Call updateCache().
  8663. (clearFilter): Call updateCache().
  8664. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8665. (getFilteredTotalLengthNow): New function.
  8666. (getCompletedLength): Return cachedCompletedLength.
  8667. (getCompletedLengthNow): New function.
  8668. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8669. (getFilteredCompletedLengthNow): New function.
  8670. (updateCache): New function.
  8671. * src/BtMessageReceiver.h
  8672. (BtMessageReceiverWeakHandle): New type definition.
  8673. * src/DefaultBtMessageReceiver.cc
  8674. (receiveHandshake): Use messageFactory member.
  8675. (sendHandshake): Use messageFactory member.
  8676. (receiveMessage): Use messageFactory member.
  8677. * src/DefaultBtMessageFactory.h
  8678. (dispatcher): New variable.
  8679. (requestFactory): New variable.
  8680. (peerConnection): New variablle.
  8681. (setBtMessageDispatcher): New function.
  8682. (setBtRequestFactory): New function.
  8683. (setPeerConnection): New function.
  8684. * src/SharedHandle.h
  8685. (RefCount): New class.
  8686. (WeakHandle): New class.
  8687. * src/PeerObject.h
  8688. (BtMessageReceiver.h): New include.
  8689. (PeerObject): Added btMessageReceiver.
  8690. (btMessageReceiver): New variable.
  8691. * src/Util.cc
  8692. (countBit): Simplified.
  8693. * src/BtCancelMessage.cc
  8694. (doReceivedAction): Use dispatcher member.
  8695. * src/BtRequestFactory.h
  8696. (BtRequestFactoryWeakHandle): New type definition.
  8697. * src/PeerStorage.h
  8698. (downloadSpeed): int -> uint32_t
  8699. (uploadSpeed): int -> uint32_t
  8700. (sessionDownloadLength): long long int -> uint64_t
  8701. (sessionUploadLength): long long int -> uint64_t
  8702. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8703. To add RecoverableException, FatalException:
  8704. * src/AbstractCommand.cc
  8705. (onAbort): Exception -> RecoverableException
  8706. * src/PeerAbstractCommand.h
  8707. (RecoverableException.h): New include.
  8708. (onAbort): Exception -> RecoverableException.
  8709. * src/PeerInteractionCommand.cc
  8710. (onAbort): Exception -> RecoverableException.
  8711. * src/PeerAbstractCommand.cc
  8712. (execute): Exception -> RecoverableException.
  8713. (onAbort): Exception -> RecoverableException.
  8714. * src/TorrentRequestInfo.cc
  8715. (execute): Exception -> RecoverableException.
  8716. * src/MetalinkRequestInfo.cc
  8717. (execute): Exception -> RecoverableException.
  8718. * src/MetaFileUtil.cc: RecoverableException.
  8719. * src/AbstractCommand.h
  8720. (onAbort): Exception -> RecoverableException.
  8721. * src/DlRetryEx.h: Exception -> RecoverableException.
  8722. * src/DlAbortEx.h: Exception -> RecoverableException.
  8723. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8724. * src/Util.cc: Exception -> RecoverableException.
  8725. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8726. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8727. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8728. To make ID static const int
  8729. * src/BtInterestedMessage.h
  8730. (ID_t): Removed.
  8731. (ID): New variable.
  8732. (getId): Made non-const.
  8733. * src/BtPieceMessage.h
  8734. (ID_t): Removed.
  8735. (ID): New variable.
  8736. (getId): Made non-const.
  8737. * src/BtChokeMessage.h
  8738. (ID_t): Removed.
  8739. (ID): New variable.
  8740. (getId): Made non-const.
  8741. * src/BtHaveAllMessage.h
  8742. (ID_t): Removed.
  8743. (ID): New variable.
  8744. (getId): Made non-const.
  8745. * src/BtKeepAliveMessage.h
  8746. (ID_t): Removed.
  8747. (ID): New variable.
  8748. (getId): Made non-const.
  8749. * src/BtHandshakeMessage.h
  8750. (ID): New variable.
  8751. (getId): Made non-const.
  8752. * src/BtSuggestPieceMessage.h
  8753. (ID_t): Removed.
  8754. (ID): New variable.
  8755. (getId): Made non-const.
  8756. * src/BtPortMessage.h
  8757. (ID_t): Removed.
  8758. (ID): New variable.
  8759. (getId): Made non-const.
  8760. * src/AbstractBtMessage.h
  8761. (id): Removed.
  8762. (AbstractBtMessage): Removed id.
  8763. (getId): Removed.
  8764. * src/BtHaveMessage.h
  8765. (ID_t): Removed.
  8766. (ID): New variable.
  8767. (getId): Made non-const.
  8768. * src/BtAllowedFastMessage.h
  8769. (ID_t): Removed.
  8770. (ID): New variable.
  8771. (getId): Made non-const.
  8772. * src/BtCancelMessage.h
  8773. (ID_t): Removed.
  8774. (ID): New variable.
  8775. (getId): Made non-const.
  8776. * src/BtNotInterestedMessage.h
  8777. (ID_t): Removed.
  8778. (ID): New variable.
  8779. (getId): Made non-const.
  8780. * src/BtChokeMessage.h
  8781. (ID_t): Removed.
  8782. (ID): New variable.
  8783. (getId): Made non-const.
  8784. * src/BtRejectMessage.h
  8785. (ID_t): Removed.
  8786. (ID): New variable.
  8787. (getId): Made non-const.
  8788. * src/BtBitfieldMessage.h
  8789. (ID_t): Removed.
  8790. (ID): New variable.
  8791. (getId): Made non-const.
  8792. * src/BtUnchokeMessage.h
  8793. (ID_t): Removed.
  8794. (ID): New variable.
  8795. (getId): Made non-const.
  8796. * src/BtRequestMessage.h
  8797. (ID_t): Removed.
  8798. (ID): New variable.
  8799. (getId): Made non-const.
  8800. * src/BtHaveMessage.h
  8801. (ID_t): Removed.
  8802. (ID): New variable.
  8803. (getId): Made non-const.
  8804. To add --force-truncate command-line option and a check whether
  8805. the file already exists:
  8806. * src/DirectDiskAdaptor.h
  8807. (getFilePath): Made virtual public.
  8808. * src/MultiDiskAdaptor.h
  8809. (File.h): New include.
  8810. (DiskWriterEntry::fileEntry): Made private.
  8811. (DiskWriterEntry::fileExists): New function.
  8812. (DiskWriterEntry::getFileEntry): New function.
  8813. (fileExists): New function.
  8814. (getFilePath): New function.
  8815. * src/TorrentRequestInfo.cc
  8816. (FatalException.h): New include.
  8817. (message.h): New include.
  8818. (RecoverableException.h): New include.
  8819. (execute): Added a check whether file is already exists or not.
  8820. * src/DiskAdaptor.h
  8821. (fileExists): New function.
  8822. (getFilePath): New function.
  8823. * src/main.cc
  8824. (showUsage): Added an explanation of --force-truncate command-line
  8825. option.
  8826. (main): Added --force-truncate command-line option.
  8827. * src/Exception.h
  8828. (setMsg): buf[256] -> buf[1024]
  8829. * src/CopyDiskWriter.h
  8830. (getFilePath): Made public virtual.
  8831. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  8832. (fileExists): New function.
  8833. * src/DownloadEngineFactory.cc
  8834. (newTorrentConsoleEngine): Don't open file here.
  8835. * src/message.h
  8836. (EX_FILE_ALREADY_EXISTS): New definition.
  8837. * src/prefs.h
  8838. (PREF_FOECE_TRUNCATE): New definition.
  8839. * src/HttpResponseCommand.cc
  8840. (handleDefaultEncoding): Added a check whether the file already exists.
  8841. * src/SegmentMan.h
  8842. (fileExists): New function.
  8843. (shouldCancelDownloadForSafety): New function.
  8844. * src/FtpNegotiateCommand.cc
  8845. (recvSize): Added a check whether the file already exists.
  8846. * src/AbstractSingleDiskAdaptor.cc
  8847. (File.h): New include.
  8848. (fileExists): New function.
  8849. * src/AbstractSingleDiskAdaptor.h
  8850. (getFilePath): Removed.
  8851. (fileExists): New function.
  8852. * src/SegmentMan.cc
  8853. (fileExists): New function.
  8854. (shouldCancelDownloadForSafety): New function.
  8855. To fix regression bug in torrent downloading:
  8856. * src/DefaultBtRequestFactory.cc
  8857. (doChokedAction): New function.
  8858. * src/DefaultBtRequestFactory.h
  8859. (doChokedAction): New function.
  8860. * src/DefaultBtMessageDispatcher.cc
  8861. (doChokedAction): Do not delete request if its target is in allowed
  8862. fast set.
  8863. * src/DefaultBtInteractive.cc
  8864. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  8865. (sendKeepAlive): Send keep alive message even if the outgoing message
  8866. queue is not empty.
  8867. (decideInterest): Simplified the code.
  8868. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  8869. it is already called when BtChokeMessage is received from a peer.
  8870. * src/BtRequestFactory.h
  8871. (doChokedAction): New function.
  8872. To clean up code:
  8873. * src/PeerInteractionCommand.h
  8874. (executeInternal): Added virtual keyword explicitly.
  8875. (prepareForRetry): Added virtual keyword explicitly.
  8876. (prepareForNextPeer): Added virtual keyword explicitly.
  8877. (onAbort): Added virtual keyword explicitly.
  8878. * src/RequestSlot.cc
  8879. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  8880. * src/BtPieceMessage.cc
  8881. (doReceivedAction): Added a debug log of piece's bitfield.
  8882. * src/Piece.h
  8883. (getBitfieldLength): New function.
  8884. * src/ByteArrayDiskWriter.cc
  8885. (clear): Added buf = 0 to avoid double free corruption.
  8886. * src/FileAllocator.cc
  8887. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  8888. Added cp.reset().
  8889. * src/BitfieldMan.h
  8890. (operator=): Rewritten.
  8891. * src/BitfieldMan.cc
  8892. (BitfieldMan): Initialized bitfield, useBitfield.
  8893. * src/PeerConnection.cc
  8894. (receiveMessage): Added a call to socket->readable() after getting
  8895. message length to avoid possible EOF.
  8896. * src/Util.cc
  8897. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  8898. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8899. To add an ability to pre-allocate file space:
  8900. * src/DirectDiskAdaptor.h: Rewritten.
  8901. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  8902. * src/MultiDiskAdaptor.h: Rewritten.
  8903. * src/DefaultPieceStorage.cc
  8904. (MultiDiskWriter.h): Removed include.
  8905. (PreAllocationDiskWriter.h): Removed include.
  8906. (FileAllocationMonitor.h): New include.
  8907. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  8908. (initStorage): Rewritten.
  8909. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8910. * src/FileAllocator.h: New class.
  8911. * src/FileAllocator.cc: New class.
  8912. * src/FileAllocationMonitor.h: New class.
  8913. * src/FileAllocationMonitor.cc: New class.
  8914. * src/ConsoleFileAllocationMonitor.h: New class.
  8915. * src/ConsoleFileAllocationMonitor.cc: New class.
  8916. * src/AbstractSingleDiskAdaptor.h: New class.
  8917. * src/AbstractSingleDiskAdaptor.cc: New class.
  8918. * src/DiskAdaptor.h
  8919. (Directory.h): Removed include.
  8920. (DiskWriter.h): Removed include.
  8921. (FileEntry.h): Removed include.
  8922. (diskWriter): Removed.
  8923. (DiskAdaptor): Removed diskWriter.
  8924. (openFile): Made pure virtual.
  8925. (closeFile): Made pure virtual.
  8926. (openExistingFile): Made pure virtual.
  8927. (initAndOpenFile): Made pure virtual.
  8928. (writeData): Made pure virtual.
  8929. (readData): Made pure virtual.
  8930. (sha1Sum): Made pure virtual.
  8931. (getStoreDir): Returns const reference of storeDir.
  8932. (DiskAdaptorHandle): New type definition.
  8933. * src/main.cc
  8934. (ConsoleFileAllocationMonitor.h): New include.
  8935. (showUsage): Added default value description of -s option.
  8936. Added the description of --file-allocation option.
  8937. (main): Set default value of --file-allocation option to 'none'.
  8938. Added --file-allocation command-line option.
  8939. Setup FileAllocationMonitorFactory.
  8940. * src/FtpInitiateConnectionCommand.cc
  8941. (executeInternal): Removed diskWriter related processing, which was
  8942. moved to FtpNegotiationCommand.cc.
  8943. * src/DirectDiskAdaptor.cc
  8944. (getFilePath): Made non-const.
  8945. * src/CopyDiskAdaptor.h
  8946. (DiskAdaptor.h): Removed include.
  8947. (DiskWriter.h): Removed include.
  8948. (AbstractSingleDiskAdaptor.h): New include.
  8949. (getFilePath): Made non-const. Added virtual keyword.
  8950. (CopyDiskAdaptor): Removed diskWriter.
  8951. (getTempFile): Returns const reference.
  8952. (CopyDiskAdaptorHandle): New type definition.
  8953. * src/ByteArrayDiskWriter.cc
  8954. (clear): Simplified.
  8955. (initAndOpenFile): Rewritten.
  8956. (openFile): Call initAndOpenFile()
  8957. * src/MultiDiskAdaptor.cc: Rewritten.
  8958. * src/DownloadEngineFactory.cc
  8959. (FileAllocator.h): New include.
  8960. (FileAllocationMonitor.h): New include.
  8961. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  8962. create DefaultDiskWriter with file allocator.
  8963. * src/DiskWriter.h
  8964. (initAndOpenFile): Added totalLength argument.
  8965. (openFile): Added totalLength argument.
  8966. * src/prefs.h
  8967. (PREF_FILE_ALLOCATION): New definition.
  8968. (V_PREALLOC): New definition.
  8969. (V_NONE): New definition.
  8970. * src/HttpResponseCommand.cc
  8971. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  8972. size.
  8973. * src/FtpNegotiateCommand.cc
  8974. (Util.h): New include.
  8975. (recvSize): Open file here.
  8976. * src/Util.h
  8977. (ullitos): New function.
  8978. * src/CopyDiskWriter.h
  8979. (getFilePath): Made non-const.
  8980. * src/DefaultDiskWriter.h
  8981. (Option.h): New include.
  8982. (totalLength): Removed.
  8983. (DefaultDiskWriter): Removed totalLength.
  8984. (initAndOpenFile): Added totalLength argument.
  8985. (DefaultDiskWriterHandle): New type definition.
  8986. (createNewDiskWriter): New function.
  8987. * src/Util.cc
  8988. (ullitos): New function.
  8989. * src/DefaultDiskWriter.cc
  8990. (message.h): New include.
  8991. (FileAllocator.h): New include.
  8992. (prefs.h): New include.
  8993. (Util.h): New include.
  8994. (DefaultDiskWriter): Removed totalLength.
  8995. (initAndOpenFile): Added file allocation.
  8996. (createNewDiskWriter): New function. Just for temporary solution.
  8997. It will be rewritten later.
  8998. * src/DiskAdaptor.cc
  8999. (DiskAdaptor): Removed diskWriter.
  9000. * src/AbstractDiskWriter.cc
  9001. (LogFactory.h): New include.
  9002. (AbstractDiskWriter): Added fileAllocator, logger.
  9003. (openFile): Added totalLength argument.
  9004. * src/AbstractDiskWriter.h
  9005. (FileAllocator.h): New include.
  9006. (Logger.h): New include.
  9007. (fileAllocator): New variable.
  9008. (logger): New variable.
  9009. (openFile): Added totalLength argument. Added virtual keyword
  9010. explicitly.
  9011. (openExistingFile): Added totalLength argument. Added virtual keyword
  9012. explicitly.
  9013. (closeFile): Added virtual keyword explicitly.
  9014. (sha1Sum): Added virtual keyword explicitly.
  9015. (writeData): Added virtual keyword explicitly.
  9016. (readData): Added virtual keyword explicitly.
  9017. (setFileAllocator): New function.
  9018. * src/DefaultPieceStorage.h
  9019. (FileAllocator.h): New include.
  9020. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9021. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9022. * src/FileProgressMonitor.h: New class.
  9023. To compile aria2 on PC-BSD:
  9024. * src/DefaultBtContext.cc
  9025. (libgen.h): New include.
  9026. To fix memory leak:
  9027. * src/Exception.h
  9028. (~Exception): Delete cause. Fixed memory leak.
  9029. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9030. Rewritten a portion of bittorrent implementation:
  9031. * src/BtMessageValidator.h: New class.
  9032. * src/BtBitfieldMessageValidator.h: New class.
  9033. * src/BtHandshakeMessageValidator.h: New class.
  9034. * src/BtRequestMessageValidator.h: New class.
  9035. * src/BtSuggestPieceMessageValidator.h: New class.
  9036. * src/BtAllowedFastMessageValidator.h: New class.
  9037. * src/BtRejectMessageValidator.h: New class.
  9038. * src/BtCancelMessageValidator.h: New class.
  9039. * src/BtPieceMessageValidator.h: New class.
  9040. * src/BtHaveMessageValidator.h: New class.
  9041. * src/BtEventListener.h: New class.
  9042. * src/AbstractBtEventListener.h: New class.
  9043. * src/BtEvent.h: New class.
  9044. * src/BtChokingEvent.h: New class.
  9045. * src/BtChokedEvent.h: New class.
  9046. * src/BtCancelSendingPieceEvent.h: New class.
  9047. * src/BtAbortOutstandingRequestEvent.h: New class.
  9048. * src/Randomizer.h: New class.
  9049. * src/SimpleRandomizer.h: New class.
  9050. * src/BtMessage.h: New class.
  9051. * src/AbstractBtMessage.h: New class.
  9052. * src/SimpleBtMessage.h: New class.
  9053. * src/BtHaveMessage.h: New class.
  9054. * src/BtInterestedMessage.h: New class.
  9055. * src/BtAllowedFastMessage.h: New class.
  9056. * src/BtUnchokeMessage.h: New class.
  9057. * src/BtCancelMessage.h: New class.
  9058. * src/BtNotInterestedMessage.h: New class.
  9059. * src/BtChokeMessage.h: New class.
  9060. * src/BtHaveNoneMessage.h: New class.
  9061. * src/BtHandshakeMessage.h: New class.
  9062. * src/BtSuggestPieceMessage.h: New class.
  9063. * src/BtHaveMessage.h: New class.
  9064. * src/BtPieceMessage.h: New class.
  9065. * src/BtHaveAllMessage.h: New class.
  9066. * src/BtKeepAliveMessage.h: New class.
  9067. * src/BtPortMessage.h: New class.
  9068. * src/BtRejectMessage.h: New class.
  9069. * src/BtBitfieldMessage.h: New class.
  9070. * src/BtRequestMessage.h: New class.
  9071. * src/DefaultBtRequestFactory.h: New class.
  9072. * src/DefaultBtMessageReceiver.h: New class.
  9073. * src/BtInteractive.h: New class.
  9074. * src/BtMessageDispatcher.h: New class.
  9075. * src/DefaultBtMessageDispatcher.h: New class.
  9076. * src/DefaultBtInteractive.h: New class.
  9077. * src/BitfieldManFactory.h: New class.
  9078. * src/HandleRegistry.h: New class.
  9079. * src/BtMessageFactory.h: New class.
  9080. * src/BtMessageReceiver.h: New class.
  9081. * src/DefaultBtMessageFactory.h: New class.
  9082. * src/PeerObject.h: New class.
  9083. * src/BtRequestFactory.h: New class.
  9084. * src/SuggestPieceMessage.h: Removed.
  9085. * src/PortMessage.h: Removed.
  9086. * src/SuggestPieceMessage.h: Removed.
  9087. * src/KeepAliveMessage.h: Removed.
  9088. * src/HandshakeMessage.h: Removed.
  9089. * src/PeerInteraction.h: Removed.
  9090. * src/UnchokeMessage.h: Removed.
  9091. * src/PieceMessage.h: Removed.
  9092. * src/RequestMessage.h: Removed.
  9093. * src/InterestedMessage.h: Removed.
  9094. * src/HaveMessage.h: Removed.
  9095. * src/CancelMessage.h: Removed.
  9096. * src/RejectMessage.h: Removed.
  9097. * src/AllowedFastMessage.h: Removed.
  9098. * src/HaveNoneMessage.h: Removed.
  9099. * src/SimplePeerMessage.h: Removed.
  9100. * src/HaveAllMessage.h: Removed.
  9101. * src/BitfieldMessage.h: Removed.
  9102. * src/PeerMessageFactory.h: Removed.
  9103. * src/NotInterestedMessage.h: Removed.
  9104. * src/ChokeMessage.h: Removed.
  9105. * src/PeerMessage.h: Removed.
  9106. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9107. To know root cause of exception:
  9108. * src/Exception.h
  9109. (cause): New variable.
  9110. (Exception): Added a parameter.
  9111. (getMsg): Return const reference to msg.
  9112. (getCause): New function.
  9113. * src/DlRetryEx.h
  9114. (DlRetryEx): Added a parameter 'cause'.
  9115. Added an overloaded constructor.
  9116. (DlAbortEx): Added a parameter 'cause'.
  9117. Added an overloaded constructor.
  9118. * src/SimpleLogger.cc
  9119. (writeLog): Log nested exception messages recursively.
  9120. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9121. * src/DefaultBtProgressInfoFile.cc
  9122. (load): Fixed memory leak when the infohash doesn't match.
  9123. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9124. * src/DefaultPeerStorage.cc
  9125. (calculateStat): Simplified the code by combining 2 loops into 1.
  9126. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9127. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9128. for BitTorrent download:
  9129. * src/PeerAbstractCommand.cc
  9130. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9131. * src/main.cc:
  9132. (timeoutSpecified): Removed.
  9133. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9134. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9135. * src/TorrentRequestInfo.cc
  9136. (timeoutSpecified): Removed.
  9137. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9138. timeout value.
  9139. * src/prefs.h
  9140. (PREF_BT_TIMEOUT): New definition.
  9141. Delete unused variables:
  9142. * src/TorrentRequestInfo.cc
  9143. (requestInfo): Removed.
  9144. Move setSignalHander to Util::setGlobalSignalHandler:
  9145. * src/TorrentRequestInfo.cc:
  9146. setSignalHander -> Util::setGlobalSignalHandler
  9147. * src/main.cc
  9148. (setSignalHander): Removed.
  9149. (main): setSignalHander -> Util::setGlobalSignalHandler
  9150. * src/Util.h
  9151. (setGlobalSignalHandler): New function.
  9152. * src/Util.cc
  9153. (setGlobalSignalHandler): New function.
  9154. * src/UrlRequestInfo.cc:
  9155. setSignalHander -> Util::setGlobalSignalHandler
  9156. Reset peer status in order to exit gracefully:
  9157. * src/PeerAbstractCommand.cc
  9158. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9159. To fix the bug that causes the number of bytes uploaded is not saved
  9160. to .aria2 file:
  9161. * src/DefaultPeerStorage.h
  9162. (removedPeerSessionDownloadLength): New variable.
  9163. (removedPeerSessionUploadLength): New variable.
  9164. * src/DefaultPeerStorage.cc
  9165. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9166. removedPeerSessionUploadLength(0).
  9167. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9168. through all peers, and then add removedPeerSessionDownloadLength(
  9169. removedPeerSessionUploadLength) to it.
  9170. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9171. (to) the peer to removedPeerSessionDownloadLength
  9172. (removedPeerSessionUploadLength).
  9173. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9174. To add Metalink location option:
  9175. * src/MetalinkRequestInfo.cc
  9176. (execute): Call MetalinkEntry::setLocationPreference()
  9177. * src/main.cc
  9178. (showUsage): Added the help message for --metalink-location option.
  9179. (main): Added --metalink-location option.
  9180. * src/prefs.h
  9181. (PREF_METALINK_LOCATION): New definition.
  9182. * src/MetalinkEntry.cc
  9183. (AddLocationPreference): New function object.
  9184. (setLocationPreference): New function.
  9185. * src/Xml2MetalinkProcessor.cc
  9186. (getResource): Set location attribute to MetalinkResource
  9187. To show URLs to download
  9188. * src/UrlRequestInfo.h
  9189. (printUrls): New function.
  9190. To add multiple <file> Metalink support:
  9191. * src/MetalinkEntry.h
  9192. (MetalinkResources): Removed.
  9193. (setLocationPreference): New function.
  9194. (MetalinkEntryHandle): New type definition.
  9195. (MetalinkEntries): New type definition.
  9196. * src/Xml2MetalinkProcessor.h
  9197. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9198. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9199. (parseFile): Metalinker* -> MetalinkerHandle
  9200. * src/UrlRequestInfo.h
  9201. (execute): RequestInfo* -> RequestInfos
  9202. * src/MetalinkRequestInfo.cc
  9203. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9204. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9205. (execute): RequestInfo* -> RequestInfos
  9206. Added multiple <file> support. Print filename when it is queued.
  9207. * src/MetalinkRequestInfo.h
  9208. (execute): RequestInfo* -> RequestInfos
  9209. (getDownloadEngine): Removed.
  9210. * src/RequestInfo.h
  9211. (RequestInfoHandle): New type definition.
  9212. (RequestInfos): New type definition.
  9213. (execute): RequestInfo* -> RequestInfos
  9214. (getDownloadEngine): Removed.
  9215. * src/MetalinkResource.h
  9216. (MetalinkResourceHandle): New type definition.
  9217. (MetalinkResources): New type definition.
  9218. * src/MetalinkEntry.cc
  9219. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9220. because the element is now of type MetalinkResourceHandle.
  9221. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9222. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9223. (dropUnsupportedResource): Removed the deletion of the elements of
  9224. resources because the element is now of type MetalinkResourceHandle.
  9225. * src/Xml2MetalinkProcessor.cc
  9226. (parseFile): Metalinker* -> MetalinkerHandle
  9227. MetalinkEntry* -> MetalinkEntryHandle
  9228. Removed try-catch block.
  9229. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9230. MetalinkResource* -> MetalinkResourceHandle
  9231. Removed try-catch block.
  9232. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9233. Free result by using xmlXPathFreeObject()
  9234. * src/Metalinker.cc
  9235. (~Metalinker): Removed the deletion of entries.
  9236. MetalinkEntry* -> MetalinkEntryHandle
  9237. (queryEntry): Add multiple <file> Metalink support.
  9238. * src/Metalinker.h
  9239. (MetalinkEntries): Removed.
  9240. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9241. * src/MetalinkProcessor.h
  9242. (parseFile): Metalinker* -> MetalinkerHandle
  9243. Bug fixes:
  9244. * src/PeerChokeCommand.cc
  9245. (execute): cat01->cat02
  9246. * src/DefaultPieceStorage.cc
  9247. (DefaultPieceStorage): Added diskAdaptor(0)
  9248. * src/TrackerWatcherComand.cc:
  9249. (execute): Use btAnnounce->noMoreAnnounce()
  9250. to determin whether the function returns true or not.
  9251. * src/TrackerUpdateCommand.cc:
  9252. (execute): Use btAnnounce->noMoreAnnounce()
  9253. to determin whether the function returns true or not.
  9254. * src/FtpConnection.cc
  9255. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9256. This is the fix of the busy loop bug.
  9257. * src/DownloadCommand.cc
  9258. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9259. cached PeerStat.
  9260. The value of "name" entry in torrent file is now set by
  9261. *DiskAdaptor::setTopDir(...) methods.
  9262. * src/MultiDiskAdaptor.h
  9263. (topDir): New variable.
  9264. (setTopDir): New function.
  9265. (getTopDir): New function.
  9266. * src/MultiDiskAdaptor.cc
  9267. (getFilePath): Concat storDir, "/" and topDir.
  9268. (mkdir): Use getFilePath() to get the directory path for output.
  9269. * src/DefaultPieceStorage.cc
  9270. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  9271. CopyDiskAdaptor.
  9272. * src/CopyDiskAdaptor.h
  9273. (topDir): New variable.
  9274. (setTopDir): New function.
  9275. (getTopDir): New function.
  9276. * src/CopyDiskAdaptor.cc
  9277. (fixFilename): Updated.
  9278. Misc
  9279. * src/UrlRequestInfo.h
  9280. (e): Removed.
  9281. (UrlRequestInfo): Removed e.
  9282. (getDownloadEngine): Removed.
  9283. * src/UrlRequestInfo.cc
  9284. (handler): Rewritten.
  9285. (printUrls): New function.
  9286. (execute): Call printUrls().
  9287. * src/HandshakeMessage.cc
  9288. (check): peerinteraction->getBtContext() -> btContext
  9289. * src/PeerInteraction.h
  9290. (getBtContext): Removed.
  9291. * src/TorrentRequestInfo.h
  9292. (execute): RequestInfo* -> RequestInfos
  9293. (getDownloadEngine): Removed.
  9294. * src/TorrentRequestInfo.cc
  9295. (haltRequested): Removed.
  9296. (btHaltRequested): New variable.
  9297. (torrentHandler): haltRequested -> btHaltRequested
  9298. (execute): RequestInfo* -> RequestInfos
  9299. * src/TorrentConsoleDownloadEngine.cc
  9300. (afterEachIteration): haltRequested -> btHaltRequested.
  9301. * src/ConsoleDownloadEngine.h
  9302. (initStatistics): Added virtual.
  9303. (calculateStatistics): Added virtual.
  9304. (onEndOfRun): Added virtual.
  9305. (afterEachIteration): Added virtual.
  9306. * src/ConsoleDownloadEngine.cc
  9307. (haltRequested): New variable.
  9308. (afterEachIteration): New function.
  9309. * src/main.cc
  9310. (requestInfo): Removed.
  9311. * src/SegmentMan.cc
  9312. (findSlowerSegmentEntry): Refactored.
  9313. * Release 0.9.0
  9314. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9315. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  9316. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  9317. * src/TorrentMan.h: Removed.
  9318. * src/TorrentMan.cc: Removed.
  9319. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  9320. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  9321. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  9322. * src/PeerAbstractCommand.cc: Use btRuntime.
  9323. * src/BtContextAwareCommand.h: New class.
  9324. * src/FileEntry.h: Added accessor methods for following variables.
  9325. (path): Made private.
  9326. (length): Made private.
  9327. (offset): Made private.
  9328. (extracted): Made private.
  9329. (requested): Made private.
  9330. (FileEntries): New definition.
  9331. (FileEntryHandle): New definition.
  9332. * src/FileEntry.cc: New file.
  9333. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  9334. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  9335. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  9336. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  9337. * src/PieceStorage.h: New file.
  9338. * src/PeerInteractionCommand.h: Use btContext.
  9339. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  9340. btRuntime.
  9341. * src/DefaultBtProgressInfoFile.h: New file.
  9342. * src/DefaultBtProgressInfoFile.cc: New file.
  9343. * src/File.cc
  9344. (Util.h): New include.
  9345. (mkdirs): New function.
  9346. * src/MultiDiskAdaptor.h
  9347. (mkdir): New function.
  9348. * src/PeerListProcessor.h
  9349. (Peers): Removed.
  9350. * src/PeerInteraction.h
  9351. (torrentMan): Removed.
  9352. (btContext): New variable.
  9353. (peerStorage): New variable.
  9354. (pieceStorage): New variable.
  9355. (btAnnounce): New variable.
  9356. (getTorrentMan): Removed.
  9357. (getBtContext): New function.
  9358. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9359. btAnnounce.
  9360. * src/HandshakeMessage.h
  9361. (TorrentMan.h): Removed.
  9362. * src/HandshakeMessage.cc: Use btContext.
  9363. * src/DefaultBtAnnounce.cc: New file.
  9364. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9365. * src/DefaultPieceStorage.cc: New file.
  9366. * src/DefaultBtContext.h: New file.
  9367. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9368. Use the accessor methods of FileEntry.
  9369. * src/CookieBox.cc: Updated to use Util::slice().
  9370. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9371. * src/common.h (SharedHandle.h): New include.
  9372. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9373. pieceStorage.
  9374. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9375. * src/DiskAdaptor.h
  9376. (topDir): Removed.
  9377. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9378. (setTopDir): Removed.
  9379. (getTopDir): Removed.
  9380. * src/BtContext.h: New file.
  9381. * src/DefaultPeerStorage.h: New file.
  9382. * src/PieceMessage.h (TorrentMan.h): Removed.
  9383. * src/RequestMessage.h (TorrentMan.h): Removed.
  9384. * src/TorrentDownloadEngine.h
  9385. (uploadLength): New variable.
  9386. (btContext): New variable.
  9387. (btRuntime): New variable.
  9388. (pieceStorage): New variable.
  9389. (peerStorage): New variable.
  9390. (btAnnounce): New variable.
  9391. (btProgressInfoFile): New variable.
  9392. (torrentMan): Removed.
  9393. (setBtContext): New function.
  9394. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9395. peerStorage, btAnnounce, btProgressInfoFile.
  9396. * src/Piece.h
  9397. (toString): New function.
  9398. (Pieces): New type definition.
  9399. * src/Peer.h
  9400. (active): New variable.
  9401. (Peer): Added active.
  9402. (activate): Set active to true.
  9403. (deactivate): Set active to false.
  9404. (isActive): New function.
  9405. (Peers): New type definition.
  9406. * src/DirectDiskAdaptor.cc
  9407. (getFilePath): Use the accessor methods of FileEntry.
  9408. * src/TorrentConsoleDownloadEngine.h
  9409. (afterEachIteration): New function.
  9410. * src/TorrentConsoleDownloadEngine.cc
  9411. (haltRequested): New variable.
  9412. (sendStatistics): Use pieceStorage, btRuntime.
  9413. (afterEachIteration): New function.
  9414. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9415. * src/Directry.h
  9416. (Directory): New function.
  9417. (DirectoryHandle): New type definition.
  9418. * src/BtProgressInfoFile.h: New file.
  9419. * src/RequestMessage.cc: Use pieceStorage.
  9420. * src/BtRuntime.h: New file.
  9421. * src/DefaultBtContext.cc: New file.
  9422. * src/BitfieldMan.h
  9423. (getCompletedLength): New function(private).
  9424. (getCompletedLength): New function.
  9425. (getFilteredCompletedLength): New function.
  9426. * src/BitfieldMan.h
  9427. (getCompletedLength): New function(private).
  9428. (getCompletedLength): New function.
  9429. (getFilteredCompletedLength): New function.
  9430. * src/MultiDiskAdaptor.cc
  9431. (mkdir): New function.
  9432. (openFile): Call mkdir().
  9433. (initAndOpenFile): Call mkdir().
  9434. * src/CancelMessage.h
  9435. (TorrentMan.h): Removed.
  9436. * src/RejectMessage.h
  9437. (TorrentMan.h): Removed.
  9438. * src/DownloadEngineFactory.cc
  9439. (DefaultPieceStorage.h): New include.
  9440. (DefaultPeerStorage.h): New include.
  9441. (DefaultBtAnnounce.h): New include.
  9442. (DefaultBtProgressInfoFile.h): New include.
  9443. (newTorrentConsoleEngine): Rewritten.
  9444. * src/ShareRatioSeedCriteria.h
  9445. (torrentMan): Removed.
  9446. (btContext): New variable.
  9447. (peerStorage): New variable.
  9448. (btRuntime): New variable.
  9449. (evaluate): Use btContext, btRuntime, peerStorage.
  9450. * src/AnnounceTier.h: New file.
  9451. * src/BtAnnounce.h: New file.
  9452. * src/BtRegistry.h: New file.
  9453. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9454. * src/PeerConnection.h (TorrentMan.h): Removed.
  9455. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9456. * src/Util.h
  9457. (slice): Added an argument.
  9458. * src/Util.cc
  9459. (slice): Added an argument to control whether trim is made or not.
  9460. * src/PeerStorage.h: New file.
  9461. * src/BtRegistry.cc: New file.
  9462. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9463. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9464. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9465. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9466. * src/TorrentRequestInfo.h
  9467. (e): Removed.
  9468. (showFileEntry): Added an argument.
  9469. (getDownloadEngine): Return 0.
  9470. * src/DefaultBtAnnounce.h: New file.
  9471. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9472. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9473. * src/PeerMessageFactory.h
  9474. (btContext): New variable.
  9475. (pieceStorage): New variable.
  9476. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9477. btAnnounce.
  9478. * src/DiskAdaptor.cc
  9479. (DiskAdaptor): Removed topDir.
  9480. (~DiskAdaptor): Removed topDir.
  9481. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9482. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9483. * src/File.h (mkdirs): New function.
  9484. * src/DefaultPeerStorage): New file.
  9485. * src/DownloadEngineFactory.h
  9486. (newTorrentConsoleEngine): Use btContext.
  9487. * src/BtContextAwareCommand.cc: New file.
  9488. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9489. * src/PeerMessage.h
  9490. (btContext): New variable.
  9491. (peerStorage): New variable.
  9492. (pieceStorage): New variable.
  9493. (setBtContext): New function.
  9494. * src/Directry.cc
  9495. (Directory): New function.
  9496. (createDir): Do nothing if name.size() == 0.
  9497. * src/AnnounceList.h
  9498. (AnnounceTier): Removed.
  9499. (AnnounceTiers): Removed.
  9500. * src/DefaultPieceStorage.h: New file.
  9501. * src/Piece.cc (toString): New function.
  9502. To fix typo:
  9503. * src/main.cc (showVersion): Fixed typo.
  9504. To fix compile warning:
  9505. * src/DelegatingPeerListProcessor.cc
  9506. (canHandle): Added "return false".
  9507. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9508. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  9509. make the process of announce request testable.
  9510. * src/TrackerWatcherCommand.h
  9511. (TimeA2.h): Removed.
  9512. (interval): Removed.
  9513. (checkPoint): Removed.
  9514. (createRequestCommand): Added an argument 'url'.
  9515. (TrackerWatherCommand): Removed interval.
  9516. (createCommand): New function.
  9517. * src/DownloadEngineFactory.cc
  9518. (newTorrentConsoleEngine): Updated according to the changes in
  9519. TrackerWatherCommand.
  9520. * src/TorrentMan.cc
  9521. (DelegatingPeerListProcessor.h): New includes.
  9522. (TorrentMan): Added the initialization of announceInterval.
  9523. (isStoppedAnnounceReady): New function.
  9524. (isCompletedAnnounceReady): New function.
  9525. (isDefaultAnnounceReady): New function.
  9526. (isAnnounceReady): New function.
  9527. (getAnnounceUrl): New function.
  9528. (announceStart): New function.
  9529. (announceFailure): New function.
  9530. (announceSuccess): New function.
  9531. (isAllAnnounceFailed): New function.
  9532. (resetAnnounce): New function.
  9533. (processAnnounceResponse): New function.
  9534. (needMorePeerConnection): New function.
  9535. (noMoreAnnounce): New function.
  9536. * src/TrackerUpdateCommand.h
  9537. (getTrackerResponse): int->size_t
  9538. * src/TorrentMan.h
  9539. (isStoppedAnnounceReady): New function.
  9540. (isCompletedAnnounceReady): New function.
  9541. (isDefaultAnnounceReady): New function.
  9542. (announceInterval): New variable.
  9543. (isAnnounceReady): New function.
  9544. (getAnnounceUrl): New function.
  9545. (announceStart): New function.
  9546. (announceFailure): New function.
  9547. (announceSuccess): New function.
  9548. (isAllAnnounceFailed): New function.
  9549. (resetAnnounce): New function.
  9550. (processAnnounceResponse): New function.
  9551. (needMorePeerConnection): New function.
  9552. (noMoreAnnounce): New function.
  9553. * src/TrackerWatcherCommand.cc
  9554. (TrackerWatherCommand): Removed interval and checkPoint.
  9555. (execute): Rewritten.
  9556. (createCommand): New function.
  9557. (createRequestCommand): Rewritten.
  9558. * src/TrackerUpdateCommand.cc
  9559. (MetaFileUtil.h): Removed.
  9560. (DelegatingPeerListProcessor.h): Removed.
  9561. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  9562. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9563. Request -> RequestHandle:
  9564. * src/HttpResponseCommand.h: Request->RequestHandle
  9565. * src/AbstractCommand.cc: Request->RequestHandle
  9566. * src/HttpDownloadCommand.cc: Request->RequestHandle
  9567. * src/HttpRequestCommand.cc: Request->RequestHandle
  9568. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  9569. * src/AbstractCommand.h: Request->RequestHandle
  9570. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  9571. * src/HttpResponseCommand.cc: Request->RequestHandle
  9572. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  9573. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  9574. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  9575. * src/HttpConnection.h: Request->RequestHandle
  9576. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  9577. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  9578. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9579. * src/DownloadCommand.h: Request->RequestHandle
  9580. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  9581. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  9582. * src/HttpRequestCommand.h: Request->RequestHandle
  9583. * src/FtpNegotiateCommand.h: Request->RequestHandle
  9584. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  9585. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  9586. * src/HttpDownloadCommand.h: Request->RequestHandle
  9587. * src/FtpConnection.cc: Request->RequestHandle
  9588. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  9589. * src/UrlRequestInfo.cc: Request->RequestHandle
  9590. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  9591. * src/HttpConnection.h: Request->RequestHandle
  9592. * src/DownloadCommand.cc: Request->RequestHandle
  9593. * src/FtpConnection.h: Request->RequestHandle
  9594. * src/FtpDowndloadCommand.h: Request->RequestHandle
  9595. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  9596. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  9597. * src/Request.h
  9598. (SharedHandle.h): New include.
  9599. (RequestHandle): New type definition.
  9600. (Requests): Redefined.
  9601. To add MULTITRACKER support:
  9602. * src/TrackerWatcherCommand.h
  9603. (createRequestCommand): New function.
  9604. * src/DownloadEngineFactory.cc
  9605. (newTorrentConsoleEngine): Removed req.
  9606. * src/prefs.h
  9607. (PREF_TRACKER_MAX_TRIES): New definition.
  9608. * src/TorrentMan.cc
  9609. (TorrentMan): Removed req. Added trackerNumTry.
  9610. (~TorrentMan): Removed req.
  9611. (setupInternal1): Added announceList.
  9612. * src/TorrentRequestInfo.cc
  9613. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  9614. announces is now specified by PREF_TRACKER_MAX_TRIES.
  9615. * src/main.cc
  9616. (main): Added PREF_TRACKER_MAX_TRIES.
  9617. * src/TorrentMan.h
  9618. (Request.h): Removed.
  9619. (AnnounceList.h): New include.
  9620. (trackerNumTry): New variable.
  9621. (req): Removed.
  9622. (announceList): New variable.
  9623. * src/TrackerWatcherCommand.cc
  9624. (execute): Rewritten.
  9625. (createRequestCommand): New function.
  9626. * src/TrackerUpdateCommand.cc
  9627. (execute): Updated with the use of AnnounceList.
  9628. * src/AnnounceList.cc: New class.
  9629. * src/AnnounceList.h: New class.
  9630. To fix typo:
  9631. * src/prefs.h
  9632. (PREF_MAX_TRIES): max_try->max_tries
  9633. To not to decode "+" as space in URL decode:
  9634. * src/Util.cc
  9635. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  9636. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9637. To add timeout to async name resolution:
  9638. * src/AbstractCommand.h
  9639. (nameResolveFinished): New function. This is not elegant way. It needs
  9640. to be more refined.
  9641. (nameResolverCheck): New variable.
  9642. * src/AbstractCommand.cc
  9643. (AbstractCommand): Added nameResolverCheck.
  9644. (execute): Added the check whether the name resolution has finished.
  9645. (setNameResolverCheck): Set nameResolverCheck to true.
  9646. (disableNameResolverCheck): Set nameResolverCheck to false.
  9647. (nameResolverFinished): New function.
  9648. * src/FtpInitiateConnectionCommand.h
  9649. (nameResolverFinished): New function.
  9650. * src/FtpInitiateConnectionCommand.cc
  9651. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9652. * src/HttpInitiateConnectionCommand.h
  9653. (nameResolverFinished): New function.
  9654. * src/HttpInitiateConnectionCommand.cc
  9655. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9656. * src/prefs.h
  9657. (PREF_DNS_TIMEOUT): New definition.
  9658. * src/main.cc
  9659. (main): Added PREF_DNS_TIMEOUT.
  9660. To add the support for a non-compact response from a tracker:
  9661. * src/PeerListProcessor.h: New class.
  9662. * src/DefaultPeerListProcessor.h: New class.
  9663. * src/DefaultPeerListProcessor.cc: New class.
  9664. * src/CompactPeerListProcessor.h: New class.
  9665. * src/CompactPeerListProcessor.cc: New class.
  9666. * src/DelegatingPeerListProcessor.h: New class.
  9667. * src/DelegatingPeerListProcessor.cc: New class.
  9668. * src/TorrentMan.cc
  9669. (addPeer): New function(overload).
  9670. (addPeer): Delete unused peers only when new peer is added.
  9671. * src/TorrentMan.h
  9672. (PeerListProcessor.h): Included.
  9673. (Peers): Removed.
  9674. (addPeer): New function(overload).
  9675. * src/TrackerUpdateCommand.cc
  9676. (netinet/in.h): Removed.
  9677. (DelegatingPeerListProcessor.h): Included.
  9678. (execute): Updated to use DelegatingPeerListProcessor.
  9679. To fix the memory leak in TorrentMan::peers:
  9680. * src/PeerAbstractCommand.cc
  9681. (onAbort): Added peer->resetStatus().
  9682. * src/Peer.h
  9683. (resetStatus): Made public.
  9684. To improve the precision of the speed calculation:
  9685. * src/SpeedCalc.h
  9686. (nextInterval): New variable.
  9687. * src/SpeedCalc.cc
  9688. (reset): Added nextInterval.
  9689. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9690. (changeSw): Set nextInterval to 15 seconds relative to the current
  9691. instant time.
  9692. * src/main.cc
  9693. (showVersion): Updated.
  9694. (showUsage): Updated.
  9695. * Release 0.8.1
  9696. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9697. * src/main.cc
  9698. (showUsage): Commented out --min-segment-size option.
  9699. (main): Commented out --min-segment-size option.
  9700. * Release 0.8.0
  9701. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9702. * src/*.{h,cc}:
  9703. Added an exception to the license which allows linking with OpenSSL.
  9704. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. * src/AbstractCommand.cc
  9706. (execute): Check whether the download has finished before checking
  9707. socket status.
  9708. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9709. Do not exit even if no segment is available.
  9710. * src/prefs.h
  9711. (PREF_STARTUP_IDLE_TIME): New definition.
  9712. * src/PeerInteractionCommand.cc
  9713. (executeInternal): Removed max speed limit. Because it performs bad.
  9714. (receiveMessages): Added max speed limit. This was better than above,
  9715. but still a little bit to be desired. Sometimes the download speed
  9716. became much faster than I specified.
  9717. * src/SpeedCalc.h
  9718. (start): New variable.
  9719. (accumulatedLength): New variable.
  9720. (getAvgSpeed): New function.
  9721. * src/SpeedCalc.cc
  9722. (reset): Added start, accumulatedLength.
  9723. (update): Added calculation of an average speed.
  9724. (getAvgSpeed): New function.
  9725. * src/DownloadCommand.h
  9726. (sw): Removed.
  9727. * src/main.cc
  9728. (main): Added PREF_STARTUP_IDLE_TIME.
  9729. * src/PeerStat.h
  9730. (STATUS): Added REQUEST_IDLE.
  9731. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9732. (getAvgDownloadSpeed): New function
  9733. (requestIdle): New function.
  9734. * src/SegmentMan.h
  9735. (SegmentEntryHandle): New type definition.
  9736. (SegmentEntries): Now holds SegmentEntryHandle.
  9737. (findSlowerSegmentEntry): New funtion.
  9738. * src/SegmentMan.cc
  9739. (save): Updated according to the changes in SegmentEntries.
  9740. (read): Updated according to the changes in SegmentEntries.
  9741. (FindSegmentEntryByIndex): Updated according to the changes in
  9742. SegmentEntries.
  9743. (FindSegmentEntryByCuid): Updated according to the changes in
  9744. SegmentEntries.
  9745. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9746. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9747. Renamed uitr as itr.
  9748. (findSlowerSegmentEntry): New function.
  9749. (getSegment): Updated according to the changes in SegmentEntries.
  9750. Added the feature that cancels the segment with slow server and fast
  9751. one takes it over.
  9752. (cancelSegment): Updated according to the changes in SegmentEntries.
  9753. (getDownloadLength): Updated according to the changes in
  9754. SegmentEntries.
  9755. (init): Assigned 0 to bitfield after deleting it.
  9756. * src/DownloadCommand.cc
  9757. (STARTUP_IDLE_TIME): Removed.
  9758. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  9759. * src/PeerChokeCommand.cc
  9760. (optUnchokingPeer): Updated according to the changes in Peer.
  9761. (ResetDelta): Removed.
  9762. (UploadFaster): Updated according to the changes in Peer.
  9763. (DownloadFaster): Updated according to the changes in Peer.
  9764. (execute): I clarify the meaning of "upload" and "download" here.
  9765. "upload" means the transfer from localhost to remote host.
  9766. "download" means the transfer from remote host to localhost.
  9767. Based on this rule, I swapped orderByUploadRate and
  9768. orderByDownloadRate.
  9769. * src/PeerInteractionCommand.cc
  9770. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  9771. (executeInternal): Removed the argument of
  9772. peerInteraction->sendMessages().
  9773. (receiveMessages): Rewritten download speed limit.
  9774. (sendKeepAlive): Removed peerInteraction->sendMessages().
  9775. * src/HttpResponseCommand.cc
  9776. (handleDefaultEncoding): If file size is unknown in torrent request,
  9777. do not call segmentMan->initBitfield() here.
  9778. Disabled persistent connection feature in torrent request.
  9779. * src/UrlRequestInfo.h
  9780. (UrlRequestInfo): Removed const qualifier from option.
  9781. * src/TorrentMan.h
  9782. (TransferStat): New class.
  9783. (deltaDownloadLength): Removed.
  9784. (deltaUploadLength): Removed.
  9785. (addDeltaDownloadLength): Removed.
  9786. (getDeltaDownloadLength): Removed.
  9787. (resetDeltaDownloadLength): Removed.
  9788. (addDeltaUploadLength): Removed.
  9789. (getDeltaUploadLength): Removed.
  9790. (resetDeltaUploadLength): Removed.
  9791. (addActivePeer): Added peer->activate().
  9792. (deleteActivePeer): Added peer->deactivate().
  9793. (calculateStat): New function.
  9794. * src/TorrentMan.cc
  9795. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  9796. (calculateStat): New function.
  9797. * src/PeerInteraction.h
  9798. (uploadLimit): Removed.
  9799. (option): New variable.
  9800. (setUploadLimit): Removed.
  9801. (getUploadSpeed): Removed.
  9802. (sendMessages): Removed the argument "currentUploadSpeed".
  9803. * src/PeerInteraction.cc
  9804. (prefs.h): Included.
  9805. (PeerInteraction): Removed uploadLimit. Added option.
  9806. (sendMessages): Rewritten upload speed limit.
  9807. (sendHandshake): Removed the argument from sendMessages().
  9808. (sendBitfield): Removed the argument from sendMessages().
  9809. * src/PeerAbstractCommand.cc
  9810. (execute): Commented out the portion of upload limit.
  9811. (onAbort): Removed peer->resetStatus().
  9812. * src/TorrentRequestInfo.cc
  9813. (timeoutSpecified): Declared extern.
  9814. (execute): Set timeout to 180 if timeout is not specified by.
  9815. command-line.
  9816. * src/PieceMessage.cc
  9817. (receivedAction): Added peer->updateDownloadLength().
  9818. Removed peer->addPeerUpload().
  9819. Removed torrentMan->addDeltaDownloadLength().
  9820. (send): Added peer->updateUploadLength().
  9821. Removed peer->addPeerDownload().
  9822. Removed torrentMan->addDeltaUploadLength().
  9823. * src/main.cc
  9824. (timeoutSpecified): New variable.
  9825. (main): Set timeoutSpecified to false.
  9826. If the command-line option "--upload-limit" is specified, then
  9827. timeoutSpecified is set to true. This option will remain in the next
  9828. release, but be deprecated in the future release.
  9829. * src/TorrentRequestInfo.h
  9830. (TorrentRequestInfo): Removed const qualifier from op.
  9831. * src/PeerStat.h
  9832. (uploadSpeed): New variable.
  9833. (PeerStat): Added default value to cuid.
  9834. (calculateUploadSpeed): New function.
  9835. (updateUploadLength): New function.
  9836. (getMaxUploadSpeed): New function.
  9837. (getAvgUploadSpeed): New function.
  9838. (reset): Added uploadSpeed. Set status to IDLE.
  9839. * src/TorrentDownloadEngine.h
  9840. (cp): Declared as Time.
  9841. (sessionDownloadLengthArray): Removed.
  9842. (sessionUploadLengthArray): Removed.
  9843. (currentCp): Removed.
  9844. (lastCalcStat): New variable
  9845. (lastElapsed): Removed.
  9846. (sessionDownloadLength): Removed.
  9847. (calculateStat): New function.
  9848. * src/TorrentDownloadEngine.cc
  9849. (initStatistics): Removed lastElapsed, cp[],
  9850. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  9851. currentCp, sessionDownloadLength.
  9852. Added cp.reset() and lastCalcStat.reset().
  9853. (calculateSpeed): Changed the name of the argument.
  9854. (calculateStatistics): Rewritten.
  9855. (calculateStat): New function.
  9856. * src/Peer.h
  9857. (PeerStat.h): Included.
  9858. (peerUpload): Removed.
  9859. (peerDownload): Removed.
  9860. (peerStat): New variable.
  9861. (sessionUploadLength): New variable.
  9862. (sessionDownloadLength): New variable.
  9863. (deltaUpload): Removed.
  9864. (deltaDownload): Removed.
  9865. (resetStatus): Made private.
  9866. (Peer): Added sessionUploadLength, sessionDownloadLength.
  9867. Removed peerUpload, peerDownload.
  9868. (updateUploadLength): New function.
  9869. (addDeltaUpload): Removed.
  9870. (updateDownloadLength): New function.
  9871. (resetDeltaUpload): Removed.
  9872. (getDeltaUpload): Removed.
  9873. (addDeltaDownload): Removed.
  9874. (calculateUploadSpeed): New function.
  9875. (resetDeltaDownload): Removed.
  9876. (getDeltaDownload): Removed.
  9877. (calculateDownloadSpeed): New function.
  9878. (getSessionUploadLength): New function.
  9879. (getSessionDownloadLength): New function.
  9880. (activate): New function.
  9881. (deactivate): New function.
  9882. (addPeerUpload): Removed.
  9883. (setPeerUpload): Removed.
  9884. (getPeerUpload): Removed.
  9885. (addPeerDownload): Removed.
  9886. (setPeerDownload): Removed.
  9887. (getPeerDownload): Removed.
  9888. * src/Peer.cc
  9889. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  9890. * src/MetalinkRequestInfo.h
  9891. (MetalinkRequestInfo): Removed const qualifier from op.
  9892. * src/RequestInfo.h
  9893. (op): Removed const qualifier.
  9894. (RequestInfo): Removed const qualifier from op.
  9895. * src/prefs.h
  9896. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  9897. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  9898. * src/PeerInteractionCommand.cc
  9899. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  9900. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  9901. * src/PeerInteraction.cc
  9902. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  9903. * src/main.cc
  9904. (showUsage): Updated the description of "--lowest-speed-limit" option.
  9905. Added the description of "--max-download-limit" option.
  9906. Removed the description of "--upload-limit" option.
  9907. Added the description of "--max-upload-limit" option.
  9908. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  9909. Added "--max-download-limit" option and "--max-upload-limit" option.
  9910. Added the warning message if "--upload-limit" option is used.
  9911. * src/DownloadCommand.cc
  9912. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  9913. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9914. To rewrite segment download mechanism for HTTP/FTP download.
  9915. Use BitfieldMan to manage segment download.
  9916. * src/HttpResponseCommand.h
  9917. (executeInternal): Pass the reference of segment.
  9918. * src/AbstractCommand.cc
  9919. (prepareForRetry): Call segmentMan->cancelSegment here.
  9920. (onAbort): Call segmentMan->cancelSegment here.
  9921. * src/HttpDownloadCommand.cc
  9922. (prepareForNextSegment): New function.
  9923. * src/DownloadEngineFactory.cc
  9924. (newConsoleEngine): Removed splitter.
  9925. (newTorrentConsoleEngine): Removed splitter.
  9926. * src/Request.h
  9927. (segment): Renamed from seg.
  9928. * src/FtpInitiateConnectionCommand.h
  9929. (executeInternal): Pass the reference of segment.
  9930. * src/AbstractCommand.h
  9931. (executeInternal): Pass the reference of segment.
  9932. * src/pref.h
  9933. (PREF_SEGMENT_SIZE): New definition.
  9934. * src/HttpProxyRequestCommand.h
  9935. (executeInternal): Pass the reference of segment.
  9936. * src/HttpResponseCommand.cc
  9937. (checkResponse): Allowed status 206 when a request range starts 0.
  9938. (handleDefaultEncoding): Rewritten the code related to Segment.
  9939. (handleOtherEncoding): Rewritten the code related to Segment.
  9940. * src/SegmentMan.h
  9941. (SegmentEntry): New class.
  9942. (SegmentEntries): New type definition.
  9943. (bitfield): New variable.
  9944. (usedSegmentEntries): New variable.
  9945. (onNullBitfield): New function.
  9946. (checkoutSegment): New function.
  9947. (segments): Removed.
  9948. (splitter): Removed.
  9949. (unregisterId): Removed.
  9950. (getSegment): New function(overload)
  9951. (getDownloadedSize): Removed.
  9952. (cancelSegment): New function.
  9953. (completeSegment): New function.
  9954. (initBitfield): New function.
  9955. (hasSegment): New function.
  9956. (getDownloadLength): New function.
  9957. * src/BitfieldMan.h
  9958. (getStartIndex): New function.
  9959. (getEndIndex): New function.
  9960. (getMissingUnusedIndex): New function(overload).
  9961. (getSparseMissingUnusedIndex): New function.
  9962. * src/BitfieldMan.cc
  9963. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  9964. (getMissingUnusedIndex): New function(overload).
  9965. (Range): New class.
  9966. (getStartIndex): New function.
  9967. (getEndIndex): New function.
  9968. (getSparseMissingUnusedIndex): New function.
  9969. (isBitSetInternal): Return false if the given index is less than 0.
  9970. * src/HttpInitiateConnectionCommand.h
  9971. (executeInternal): Pass the reference of segment.
  9972. * src/FtpNegotiateCommand.h
  9973. (executeInternal): Pass the reference of segment.
  9974. * src/FtpNegotiateCommand.cc
  9975. (recvSize): Initialize bitfield here.
  9976. * src/FtpTunnelResponseCommand.h
  9977. (executeInternal): Pass the reference of segment.
  9978. * src/HttpConnection.cc
  9979. (createRequest): Rewritten range header processing.
  9980. * src/DownloadCommand.h
  9981. (executeInternal): Pass the reference of segment.
  9982. (prepareForRetry): Removed.
  9983. (prepareForNextSegment): Added an argument segment. Made it a virtual
  9984. function.
  9985. * src/main.cc
  9986. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  9987. * src/SegmentMan.cc
  9988. (SegmentMan): Added bitfield. Removed splitter.
  9989. (~SegmentMan): Added bitfield. Removed splitter.
  9990. (unregisterId): Removed.
  9991. (getSegment): Rewritten.
  9992. (updateSegment): Rewritten.
  9993. (save): Rewritten.
  9994. (read): Rewritten.
  9995. (finished): Rewritten.
  9996. (getDownloadedSize): Removed.
  9997. (initBitfield): New function.
  9998. (FindSegmentEntryByIndex): New function object.
  9999. (FindSegmentEntryByCuid): New function object.
  10000. (checkoutSegment): New function.
  10001. (onNullBitfield): New function.
  10002. (getSegment): New function(overload).
  10003. (CancelSegment): New function object.
  10004. (cancelSegment): New function.
  10005. (completeSegment): New function.
  10006. (hasSegment): New function.
  10007. (getDownloadLength): New function.
  10008. * src/FtpInitiateConnectionCommand.cc
  10009. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10010. * src/Segment.h: Rewritten.
  10011. * src/Segment.cc (operator<<): New function.
  10012. * src/HttpDownloadCommand.h
  10013. (prepareForNextSegment): New function.
  10014. * src/Request.cc
  10015. (resetUrl): Made segment null.
  10016. * src/DownloadEngine.cc
  10017. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10018. * src/HttpProxyRequestCommand.h
  10019. (executeInternal): Pass the reference of segment.
  10020. * src/DownloadCommand.cc
  10021. (executeInternal): Rewritten the code related to Segment.
  10022. (prepareForRetry): Removed.
  10023. (prepareForNextSegment): Rewritten.
  10024. * src/FtpTunnelResponseCommand.h
  10025. (executeInternal): Pass the reference of segment.
  10026. To add HTTP 1.1 persistent connection support(experimental)
  10027. * src/HttpRequestCommand.cc
  10028. (executeInternal): Disable keep alive if it is disabled by
  10029. configuration.
  10030. * src/Request.h
  10031. (keepAlive): New variable.
  10032. (isKeepAlive): New function.
  10033. (setKeepAlive): New function.
  10034. * src/pref.h
  10035. (PREF_HTTP_KEEP_ALIVE): New definition.
  10036. * src/HttpResponseCommand.cc
  10037. (executeInternal): Check the remote server supports keep alive.
  10038. * src/HttpConnection.cc
  10039. (createRequest): Send "Connection: close" only if keep alive is
  10040. disabled.
  10041. * src/main.cc
  10042. (main):
  10043. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10044. To add max download speed limit:
  10045. * src/pref.h
  10046. (PREF_MAX_SPEED_LIMIT): New definition.
  10047. * src/PeerInteractionCommand.cc
  10048. (executeInternal): Added max download speed limit. Not tested yet.
  10049. * src/SegmentMan.h
  10050. (PeerStats): New type definition.
  10051. (peerStats): New variable.
  10052. (registerPeerStat): New function.
  10053. (FindPeerStat): New function object.
  10054. (getPeerStat): New function.
  10055. (calculateDownloadSpeed): New function.
  10056. * src/SpeedCalc.h: New class.
  10057. * src/SpeedCalc.cc: New class.
  10058. * src/main.cc
  10059. (main):
  10060. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10061. download speed is not restricted).
  10062. * src/PeerStat.h: New class.
  10063. * src/SegmentMan.cc
  10064. (registerPeerStat): New function.
  10065. (calculateDownloadSpeed): New function.
  10066. * src/DownloadCommand.cc
  10067. (STARTUP_IDLE_TIME): New definition.
  10068. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10069. downloadStart.
  10070. (~DownloadCommand): Call peerStat->downloadStop.
  10071. (executeInternal): Added download speed limitter. Rewritten lowest
  10072. speed limitter.
  10073. * src/HttpConnection.cc
  10074. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10075. * src/AbstractCommand.cc
  10076. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10077. Added hostname to the error message.
  10078. * src/ConsoleDownloadEngine.cc
  10079. (calculateStatistics): Initialize psize with dlSize.
  10080. * src/PieceMessage.cc
  10081. (receivedAction): Do not call peerInteraction->abortPiece here.
  10082. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10083. * src/BitfieldMan.h
  10084. (clearAllUseBit): New function.
  10085. (setAllUseBit): New function.
  10086. * src/BitfieldMan.cc
  10087. (clearAllBit): Do not clear useBitfield here.
  10088. (clearAllUseBit): New function.
  10089. (setAllUseBit): New function.
  10090. * src/Piece.cc
  10091. (clearAllBlock): Call bitfield->clearAllUseBit().
  10092. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10093. To make filename URL-decoded:
  10094. * src/HttpResponseCommand.h: Updated doc.
  10095. * src/HttpResponseCommand.cc
  10096. (determinFilename): Made filename URL-decoded.
  10097. * src/FtpInitiateConnectionCommand.cc
  10098. (executeInternal): Made filename URL-decoded.
  10099. * src/Util.h (urldecode): New function.
  10100. * src/Util.cc (urldecode): New function.
  10101. To fix a bug that caused assertion failure in ares_strerror:
  10102. * src/NameResolver.cc (callback): Fixed the bug.
  10103. * Release 0.7.3
  10104. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10105. To add --seed-time and --seed-ratio command-line option:
  10106. * src/Option.h (getAsDouble): New function.
  10107. * src/Option.cc (getAsDouble): New function.
  10108. * src/SeedCheckCommand.h: New class.
  10109. * src/SeedCheckCommand.cc: New class.
  10110. * src/DownloadEngineFactory.cc
  10111. (SeedCheckCommand.h): Included.
  10112. (UnionSeedCriteria.h): Included.
  10113. (TimeSeedCriteria.h): Included.
  10114. (ShareRatioSeedCriteria.h): Included.
  10115. (newTorrentConsoleEngine): Added the processing of seed option.
  10116. * src/SeedCriteria.h: New class.
  10117. * src/ShareRatioSeedCriteria.h: New class.
  10118. * src/TimeSeedCriteria.h: New class.
  10119. * src/UnionSeedCriteria.h: New class.
  10120. * src/prefs.h
  10121. (PREF_SEED_TIME): New definition.
  10122. (PREF_SEED_RATIO): New definition.
  10123. * src/main.cc
  10124. (showUsage): Added --seed-time and --seed-ratio option.
  10125. (main): Added --seed-time and --seed-ratio option.
  10126. Made default log file name "/dev/null".
  10127. * src/SharedHandle.h
  10128. (SharedHandle): Copy constructor. Made it assignable from the
  10129. SharedHandle of the subclasses.
  10130. (operator=): Made it assignable from the SharedHandle of the
  10131. subclasses.
  10132. (getRefCount): New function.
  10133. To add notice log level and the switch to write log to stdout. This
  10134. switch is configurable per log level.
  10135. * src/Logger.h
  10136. (notice): New function.
  10137. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10138. constant.
  10139. * src/LogFactory.cc
  10140. (getInstance): The use of NullLogger was removed. A log message with
  10141. notice log level was made written to stdout along with log file.
  10142. * src/NullLogger.h
  10143. (notice): New function.
  10144. * src/SimpleLogger.h
  10145. (writeHeader): Added the 'file' argument.
  10146. (writeLog): Added the 'file' argument.
  10147. (writeFile): New function.
  10148. (stdoutField): New variable.
  10149. (SimpleLogger): Removed the default constructor.
  10150. (SimpleLogger): Made the default value of logfile 0.
  10151. (debug): Added 'virtual' keyword.
  10152. (info): Added 'virtual' keyword.
  10153. (warn): Added 'virtual' keyword.
  10154. (error): Added 'virtual' keyword.
  10155. (notice): New function.
  10156. (setStdout): New function.
  10157. * src/SimpleLogger.cc
  10158. (WRITE_LOG): Replaced writeLog with writeFile.
  10159. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10160. (SimpleLogger): Removed the default constructor.
  10161. (setStdout): New function.
  10162. (writeLog): Added the handling of NOTICE log level.
  10163. (writeFile): New function.
  10164. (notice): New function.
  10165. * src/TorrentMan.h: Updated doc.
  10166. * src/BitfieldMan.h: Updated doc.
  10167. * src/TrackerWatcherCommand.cc
  10168. (execute): Return true if error occurred in the request to the tracker
  10169. and halt is requested.
  10170. * src/TrackerUpdateCommand.cc
  10171. (execute): Return true if error occurred in the request to the tracker
  10172. and halt is requested.
  10173. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10174. DownloadEngine:
  10175. * src/TorrentConsoleDownloadEngine.h
  10176. (onSelectiveDownloadingCompletes): Removed.
  10177. * src/TorrentConsoleDownloadEngine.cc
  10178. (onSelectiveDownloadingCompletes): Removed.
  10179. * src/TorrentDownloadEngine.h
  10180. (onEndOfRun): Added 'virtual' keyword.
  10181. (afterEachIteration): Removed.
  10182. (onSelectiveDownloadingCompletes): Removed.
  10183. * src/TorrentDownloadEngine.cc
  10184. (onEndOfRun): Removed filenameFixed.
  10185. (afterEachIteration): Removed.
  10186. * src/TorrentMan.cc
  10187. (completePiece): Call onDownloadComplete here.
  10188. (onDownloadComplete): Added 2 log messages.
  10189. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10190. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10191. * src/NameResolver.h: Added the prototype declaration of callback().
  10192. To support c-ares library:
  10193. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10194. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10195. * src/FtpInitiateConnectionCommand.h:
  10196. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10197. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10198. * src/HttpInitiateConnectionCommand.h:
  10199. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10200. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10201. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10202. #1542285 by tizianomueller)
  10203. * src/HttpInitiateConnectionCommand.cc:
  10204. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10205. * src/FtpInitiateConnectionCommand.cc:
  10206. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10207. * src/DownloadEngine.h:
  10208. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10209. * src/DownloadEngine.cc:
  10210. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10211. To fix the bug that causes compilation failure with metalink-support
  10212. disabled(bug#1543587):
  10213. * src/main.cc: Fixed with the patch by tizianomueller.
  10214. * Release 0.7.2
  10215. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10216. * src/main.cc
  10217. (main): Added a message to inform users that aria2 is starting to
  10218. verify checksum.
  10219. * src/RequestInfo.cc
  10220. (printDownloadAbortMessage): Added a message to inform users that
  10221. transfer can be resumed.
  10222. * src/FeatureConfig.cc
  10223. (FEATURE_ASYNC_DNS): New definition.
  10224. (FeatureConfig): Added aysnc DNS entry.
  10225. To replace CommandUuid with Command* in SocketEntry and
  10226. NameResolverEntry:
  10227. * src/DownloadEngine.h
  10228. (CommandUuids): Removed.
  10229. (SocketEntry::commandUuid): Removed.
  10230. (SocketEntry::command): New variable.
  10231. (SocketEntry::SocketEntry): Updated.
  10232. (SocketEntry::operator==): Updated.
  10233. (NameResolverEntry::commandUuid): Removed.
  10234. (NameResolverEntry::command): New variable.
  10235. (NameResolverEntry::NameResolverEntry): Updated.
  10236. (NameResolverEntry::operator==): Updated.
  10237. (waitData): Changed the argument type.
  10238. (addSocketForReadCheck): Changed the argument type.
  10239. (deleteSocketForReadCheck): Changed the argument type.
  10240. (addSocketForWriteCheck): Changed the argument type.
  10241. (deleteSocketForWriteCheck): Changed the argument type.
  10242. (addNameResolverCheck): Changed the argument type.
  10243. (deleteNameResolverCheck): Changed the argument type.
  10244. * src/DownloadEngine.cc
  10245. (FindCommand): Removed.
  10246. (run): Removed activeUuid. Added activeCommands instead.
  10247. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10248. (AccumulateActiveCommand): New function object.
  10249. (waitData): Use AccumulateActiveCommand.
  10250. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10251. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10252. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10253. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10254. (addNameResolverCheck): Use Command instead of CommandUuid.
  10255. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10256. * src/AbstractCommand.cc
  10257. (disableReadCheckSocket): Updated according to the changes in
  10258. DownloadEngine.
  10259. (setReadCheckSocket): Updated according to the changes in
  10260. DownloadEngine.
  10261. (disableWriteCheckSocket): Updated according to the changes in
  10262. DownloadEngine.
  10263. (setWriteCheckSocket): Updated according to the changes in
  10264. DownloadEngine.
  10265. (setNameResolverCheck): Updated according to the changes in
  10266. DownloadEngine.
  10267. (disableNameResolverCheck): Updated according to the changes in
  10268. DownloadEngine.
  10269. * src/AbstractCommand.cc
  10270. (disableReadCheckSocket): Updated according to the changes in
  10271. DownloadEngine.
  10272. (setReadCheckSocket): Updated according to the changes in
  10273. DownloadEngine.
  10274. (disableWriteCheckSocket): Updated according to the changes in
  10275. DownloadEngine.
  10276. (setWriteCheckSocket): Updated according to the changes in
  10277. DownloadEngine.
  10278. * release 0.7.1
  10279. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10280. To handle the case where some BitTorrent tracker requires all letters
  10281. except for [A-Za-z0-9] is URL encoded.
  10282. * src/Util.h
  10283. (torrentUrlencode): New function.
  10284. * src/Util.cc
  10285. (ctype.h): Included.
  10286. (torrentUrlencode): New function.
  10287. * src/TrackerWatcherCommand.cc
  10288. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  10289. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10290. To add asynchronous DNS support(libares):
  10291. * src/AbstractCommand.h
  10292. (setNameResolverCheck): New function.
  10293. (disableNameResolverCheck): New function
  10294. (resolveHostname): New function.
  10295. * src/AbstractCommand.cc
  10296. (setNameResolverCheck): New function.
  10297. (disableNameResolverCheck): New function
  10298. (resolveHostname): New function.
  10299. * src/FtpInitiateConnectionCommand.h
  10300. (nameResolver): New function.
  10301. * src/FtpInitiateConnectionCommand.cc
  10302. (Util.h): Included.
  10303. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  10304. disableWriteCheckSocket.
  10305. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  10306. (executeInternal): Added async DNS support.
  10307. * src/HttpInitiateConnectionCommand.h
  10308. (nameResolver): New function.
  10309. * src/HttpInitiateConnectionCommand.cc
  10310. (DlRetryEx.h): Included.
  10311. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  10312. disableWriteCheckSocket.
  10313. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  10314. (executeInternal): Added async DNS support.
  10315. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  10316. by extern "C" declaration.
  10317. * src/NameResolver.cc: New class.
  10318. * src/Util.h:
  10319. (isNumberAndDotsNotation): New function
  10320. * src/Util.cc
  10321. (isNumberAndDotsNotation): New function.
  10322. * src/DownloadEngine.h
  10323. (NameResolver.h): Included.
  10324. (NameResolverEntry): New class.
  10325. (NameResolverEntries): New type definition.
  10326. (addNameResolverCheck): New function.
  10327. (deleteNameResolverCheck): New function.
  10328. * src/DownloadEngine.cc
  10329. (run): Initialize cp with 0.
  10330. (SetDescriptor::operator()): Added for NameResolverEntry.
  10331. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  10332. (waitData): Check nameResolver entries.
  10333. (updateFdSet): Update fds in nameResolver entries.
  10334. (addNameResolverCheck): New function.
  10335. (deleteNameResolverCheck): new function.
  10336. * src/PeerInteractionCommand.cc
  10337. (executeInternal): Fixed wrong socket handling.
  10338. * src/main.cc
  10339. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  10340. * src/Util.cc
  10341. (fileChecksum): Removed the call to ctx.digestReset().
  10342. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10343. * po/ru.po: Azamat sent me Russian translation.
  10344. * src/FtpNegotiateCommand.cc
  10345. (recvGreeting): Call disableWriteCheckSocket just after
  10346. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10347. (recvRetr): Recognized status code 125 as a acceptable response code.
  10348. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10349. case-insesitive filesystem(BUG#1531057).
  10350. * src/Time.h: Renamed as TimeA2.h.
  10351. * src/Time.cc: Renamed as TimeA2.cc.
  10352. * src/TimeA2.h: New class.
  10353. * src/TimeA2.cc: New class.
  10354. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10355. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10356. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10357. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10358. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10359. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10360. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10361. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10362. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10363. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10364. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10365. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10366. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10367. * release 0.7.0
  10368. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10369. * src/PeerChokeCommand.h
  10370. (PeerChokeCommand): Rearranged the arguments.
  10371. * src/PeerChokeCommand.cc
  10372. (PeerChokeCommand): Rearranged the arguments.
  10373. * src/MetalinkEntry.h
  10374. (Checksum.h): Included.
  10375. (md5): Removed.
  10376. (sha1): Removed.
  10377. (checksum): New variable.
  10378. (operator=): Updated.
  10379. (check): Removed.
  10380. * src/prefs.h
  10381. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10382. (PREF_FOLLOW_TORRENT): New definition.
  10383. (PREF_SELECT_FILE): New definition.
  10384. (PREF_FOLLOW_METALINK): New definition.
  10385. * src/MetalinkResource.h
  10386. (TYPE_HTTPS): Added to enum TYPE.
  10387. * src/TorrentMan.cc
  10388. (~TorrentMan): Rewritten.
  10389. * src/MultiDiskWriter.cc
  10390. (MultiDiskAdaptor): Updated according to the changes in
  10391. MessageDigestContext.
  10392. (~MultiDiskAdaptor): Updated according to the changes in
  10393. MessageDigestContext.
  10394. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10395. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10396. * src/Util.h
  10397. (fileChecksum): Updated according to the changes in
  10398. MessageDigestContext.
  10399. * src/Util.cc
  10400. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10401. (fileChecksum): Updated according to the changes in
  10402. MessageDigestContext.
  10403. * src/messageDigest.h: Rewritten.
  10404. * src/MetalinkEntry.cc
  10405. (check): Removed.
  10406. (Supported): Updated.
  10407. (dropUnsupportedResource): Fixed a memory leak.
  10408. * src/ShaVisitor.cc
  10409. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10410. (~ShaVisitor): Updated according to the changes in
  10411. MessageDigestContext.
  10412. (visit): Updated according to the changes in MessageDigestContext.
  10413. * src/main.cc
  10414. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10415. command-line option added.
  10416. * src/DownloadEngine.h
  10417. (SocketEntry): New class.
  10418. (SocketEntries): New definition.
  10419. (PairFind): Removed.
  10420. (SockCmdMap): Removed.
  10421. * src/DownloadEngine.cc
  10422. (DownloadEngine): Rewritten.
  10423. (~DownloadEngine): Rewritten.
  10424. (run): Renamed activeCommandUuids as activeUuids.
  10425. (SetDescriptor): Rewritten.
  10426. (AccumulateActiveCommandUuid): Removed.
  10427. (AccumulateActiveUuid): New function object.
  10428. (waitData): Rewritten.
  10429. (updateFdSet): Rewritten.
  10430. (addSocket): Rewritten.
  10431. (deleteSocket): Rewritten.
  10432. (addSocketForReadCheck): Rewritten.
  10433. (deleteSocketForReadCheck): Rewritten.
  10434. (addSocketForWriteCheck): Rewritten.
  10435. (deleteSocketForWriteCheck): Rewritten.
  10436. * src/Xml2MetalinkProcessor.cc
  10437. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10438. * src/DownloadCommand.cc
  10439. (executeInternal): Added the check routine for lowest speed limit.
  10440. * src/AbstractDiskWriter.cc
  10441. (AbstractDiskWriter): Updated according to the changes in
  10442. MessageDigestContext.
  10443. (~AbstractDiskWriter): Updated according to the changes in
  10444. MessageDigestContext.
  10445. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10446. * src/RequestInfo.h: New class.
  10447. * src/UrlRequestInfo.h: New class.
  10448. * src/UrlRequestInfo.cc: New class.
  10449. * src/TorrentRequestInfo.h: New class.
  10450. * src/TorrentRequestInfo.cc: New class.
  10451. * src/MetalinkRequestInfo.h: New class.
  10452. * src/MetalinkRequestInfo.cc: New class.
  10453. * src/Checksum.h: New class.
  10454. * src/DownloadEngineFactory.h: New class.
  10455. * src/DownloadEngineFactory.cc: New class.
  10456. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10457. * src/Option.h
  10458. (getAsBool): New function.
  10459. * src/Option.cc
  10460. (prefs.h): Included.
  10461. (defined): 0-length value is now recognized as undefined.
  10462. (getAsInt): Rewritten.
  10463. (getAsLLInt): Rewritten.
  10464. (getAsBool): New function.
  10465. * src/FeatureConfig.h: Rewritten.
  10466. * src/FeatureConfig.cc: Rewritten.
  10467. * src/prefs.h
  10468. (PREF_STDOUT_LOG): New definition.
  10469. (PREF_LOG): New definition.
  10470. (PREF_DIR): New definition.
  10471. (PREF_OUT): New definition.
  10472. (PREF_SPLIT): New definition.
  10473. (PREF_DAEMON): New definition.
  10474. (PREF_REFERER): New definition.
  10475. (PREF_TORRENT_FILE): New definition.
  10476. (PREF_LISTEN_PORT): New definition.
  10477. (PREF_METALINK_FILE): New definition.
  10478. (PREF_METALINK_VERSION): New definition.
  10479. (PREF_METALINK_LANGUAGE): New definition.
  10480. (PREF_METALINK_OS): New definition.
  10481. (PREF_METALINK_SERVERS): New definition.
  10482. * src/main.cc
  10483. (main): Following command-line parameters are now put into Option
  10484. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10485. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10486. metalinkLanguage, metalinkOs, metalinkServers
  10487. To fix the bug that aria2 can not handle http response header properly.
  10488. * src/HttpHeader.cc
  10489. (put): Made name lowercased.
  10490. (defined): Made name lowercased.
  10491. (getFirst): Made name lowercased.
  10492. (get): Made name lowercased.
  10493. (getFirstAsInt): Rewritten.
  10494. (getFirstAsLLInt): Rewritten.
  10495. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10496. * src/TorrentMan.h:
  10497. (advertisePiece): Updated doc.
  10498. (getAdvertisedPieceIndexes): Updated doc.
  10499. (removeAdvertisedPiece); New function.
  10500. * src/TorrentMan.cc
  10501. (FindElapsedHave): New function object.
  10502. (removeAdvertisedPiece): New function.
  10503. * src/HaveEraseCommand.h: New class.
  10504. * src/HaveEraseCommand.cc: New class.
  10505. * src/FeatureConfig.h: New class.
  10506. * src/FeatureConfig.cc: New class.
  10507. * src/Request.h
  10508. (defaultPorts): Removed.
  10509. * src/Request.cc
  10510. (FeatureConfig.h): Included.
  10511. (Request): Removed the statements related to defaultPorts.
  10512. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  10513. A default port number is now retrieved from FeatureConfig.
  10514. * src/main.cc
  10515. (HaveEraseCommand.h): Included.
  10516. (showVersion): Added the output of feature list.
  10517. (main): Added HaveEraseCommand to command queue in BitTorrent
  10518. downloading.
  10519. * src/PeerInteractionCommand.h
  10520. (chokeCheckPoint): Commented out.
  10521. (periodicExecPoint): New variable.
  10522. * src/PeerInteractionCommand.cc
  10523. (executeInternal): Following methods are now called in at least every
  10524. 0.5 seconds to reduce CPU usage:
  10525. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  10526. checkHave(), sendKeepAlive().
  10527. (checkLongTimePeerChoking): Commented out.
  10528. * src/BitfieldMan.h
  10529. (getNthBitIndex): Changed the method signature.
  10530. (getMissingIndexRandomly): Changed the method signature.
  10531. * src/BitfieldMan.cc
  10532. (getNthBitIndex): Rewritten
  10533. (getMissingIndexRandomly): Rewritten.
  10534. (hasMissingPiece): Rewritten.
  10535. (getMissingIndex): Refactored.
  10536. (getMissingUnusedIndex); Refactored.
  10537. (getMissingIndex): Refactored.
  10538. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10539. * src/PeerMessage.h
  10540. (Piece.h): Included.
  10541. (SharedHandle.h): Included.
  10542. (invalidate): New variable.
  10543. (uploading): New variable.
  10544. (isInvalidate): New function.
  10545. (isUploading): New function.
  10546. (onPush): New function.
  10547. (onChoked): New function.
  10548. (onCanceled): New function.
  10549. (onAbortPiece): New function.
  10550. (PeerMessageHandle): New type definition.
  10551. * src/PeerMessage.cc
  10552. (PeerMessage): Added the initialization for invalidate and uploading.
  10553. * src/CancelMessage.h
  10554. (CancelMessage): Rewritten.
  10555. * src/RejectMessage.h
  10556. (RejectMessage): Rewritten.
  10557. * src/Metalinker.h
  10558. (operator=): Defined.
  10559. * src/MetaEntry.h
  10560. (operator=): Defined.
  10561. * src/MetalinkResource.h
  10562. (operator=): Defined.
  10563. * src/AllowedFastMessage.h
  10564. (AllowedFastMessage): Rewritten.
  10565. * src/HandshakeMessage.h
  10566. (HandshakeMessage): New function(overload).
  10567. * src/HandshakeMessage.cc
  10568. (HandshakeMessage): Rewritten.
  10569. (init): New function.
  10570. * src/HaveMessage.h
  10571. (HaveMessage): Rewritten.
  10572. * src/Time.h
  10573. (operator=): Defined the function body here.
  10574. * src/Time.cc
  10575. (operator=): Removed.
  10576. * src/SocketCore.h
  10577. (operator==): Defined here.
  10578. (operator!=): Defined here.
  10579. (operator<): Defined here.
  10580. * src/SocketCore.cc
  10581. (operator==): Removed.
  10582. (operator<): Removed.
  10583. * src/BitfieldMan.h
  10584. (operator=): Defined the function body here.
  10585. * src/BitfieldMan.cc
  10586. (operator=): Removed.
  10587. * src/TorrentMan.h
  10588. (deleteErrorPeer): Removed.
  10589. (deleteUnusedPeer); New function.
  10590. * src/TorrentMan.cc
  10591. (addPeer): Call deleteUnusedPeer.
  10592. (deleteErrorPeer): Removed.
  10593. (deleteUnusedPeer): New function.
  10594. * src/PeerAbstractCommand.h
  10595. (setNoCheck): New function.
  10596. (noCheck): New variable.
  10597. * src/PeerAbstractCommand.cc
  10598. (PeerAbstractCommand): Added the initialization of noCheck.
  10599. (execute): Added a check for noCheck.
  10600. (setNoCheck): New function.
  10601. * src/Util.h
  10602. (stdio.h): Included.
  10603. * src/Util.cc
  10604. (unistd.h): Included.
  10605. * src/DefaultDiskWriter.cc
  10606. (unistd.h): Included.
  10607. * src/Peer.h
  10608. (operator==): Defined the function body here.
  10609. (operator!=): Defined the function body here.
  10610. * src/Peer.cc
  10611. (operator==): Removed.
  10612. (operator!=): Removed.
  10613. * src/Piece.h
  10614. (Piece): Defined the function body here(copy constructor).
  10615. (operator=): Defined the function body here.
  10616. (operator==): Defined the function body here.
  10617. * src/Piece.cc
  10618. (Piece): Removed(copy constructor).
  10619. (operator=): Removed.
  10620. (operator==): Removed.
  10621. * src/PeerMessageUtil.h
  10622. (ChokeMessage.h): Removed.
  10623. (UnchokeMessage.h): Removed.
  10624. (InterestedMessage.h): Removed.
  10625. (NotInterestedMessage.h): Removed.
  10626. (HaveMessage.h): Removed.
  10627. (BitfieldMessage.h): Removed.
  10628. (RequestMessage.h): Removed.
  10629. (CancelMessage.h): Removed.
  10630. (PieceMessage.h): Removed.
  10631. (HandshakeMessage.h): Removed.
  10632. (KeepAliveMessage.h): Removed.
  10633. (PortMessage.h): Removed.
  10634. (HaveAllMessage.h): Removed.
  10635. (HaveNoneMessage.h): Removed.
  10636. (PeerConnection.h): Removed.
  10637. (HandshakeMessage.h): Included.
  10638. * src/BitfieldMessage.h
  10639. (init): New function.
  10640. (BitfieldMessage): Rewritten.
  10641. (BitfieldMessage): New function(overload).
  10642. * src/RequestSlot.h
  10643. (operator=): Defined the function body here.
  10644. (operator==): Defined the function body here.
  10645. * src/RequestSlot.cc
  10646. (operator=): Removed.
  10647. (operator==): Removed.
  10648. To remove the dependency on the PeerMessage subclass from
  10649. PeerInteraction:
  10650. * src/PeerMessageFactory.h: New class.
  10651. * src/PeerMessageFactory.cc: New class.
  10652. * src/SimplePeerMessage.cc
  10653. (send): If invalidate is true then do nothing.
  10654. * src/PeerInteractionCommand.cc
  10655. (HandshakeMessage.h): Included.
  10656. (KeepAliveMessage.h): Included.
  10657. (ChokeMessage.h): Included.
  10658. (UnchokeMessage.h): Included.
  10659. (HaveMessage.h): Included.
  10660. (executeInternal): Call setNoCheck().
  10661. Removed setWriteCheckSocket(socket).
  10662. * src/PeerInteraction.h
  10663. (ChokeMessage.h): Removed.
  10664. (UnchokeMessage.h): Removed.
  10665. (InterestedMessage.h): Removed.
  10666. (NotInterestedMessage.h): Removed.
  10667. (HaveMessage.h): Removed.
  10668. (BitfieldMessage.h): Removed.
  10669. (RequestMessage.h): Removed.
  10670. (CancelMessage.h): Removed.
  10671. (PieceMessage.h): Removed.
  10672. (HandshakeMessage.h): Removed.
  10673. (KeepAliveMessage.h): Removed.
  10674. (PortMessage.h): Removed.
  10675. (HaveAllMessage.h): Removed.
  10676. (HaveNoneMessage.h): Removed.
  10677. (RejectMessage.h): Removed.
  10678. (AllowedFastMessage.h): Removed.
  10679. (SuggestPieceMessage.h): Removed.
  10680. (PeerMessageFactory.h): Included.
  10681. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10682. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10683. (PeerMessageFactory): New variable.
  10684. (createPeerMessage): Removed.
  10685. (createHandshakeMessage): Removed.
  10686. (setPeerMessageCommonProperty): Removed.
  10687. (addRequestSlot): New function.
  10688. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10689. (getPeerMessageFactory): New function.
  10690. (createRequestMessage): Removed.
  10691. (createCancelMessage): Removed.
  10692. (createPieceMessage): Removed.
  10693. (createHaveMessage): Removed.
  10694. (createChokeMessage): Removed.
  10695. (createUnchokeMessage): Removed.
  10696. (createInterestedMessage): Removed.
  10697. (createNotInterestedMessage): Removed.
  10698. (createBitfieldMessage): Removed.
  10699. (createKeepAliveMessage): Removed.
  10700. (createHaveAllMessage): Removed.
  10701. (createHaveNoneMessage): Removed.
  10702. (createRejectMessage): Removed.
  10703. (createAllowedFastMessage): Removed.
  10704. * src/PeerInteraction.cc
  10705. (PeerInteraction): Allocate PeerMessageFactory here.
  10706. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10707. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10708. PieceMessage::ID.
  10709. (addMessage): Simplified by using PeerMessage::onPush().
  10710. (addRequestSlot): New function.
  10711. (rejectAllPieceMessageInQueue): Simplified by using
  10712. PeerMessage::onChoked().
  10713. (rejectPieceMessageInQueue): Simplified by using
  10714. PeerMessage::onCanceled().
  10715. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10716. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10717. (createHandshakeMessage): Removed.
  10718. (createPeerMessage): Removed.
  10719. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10720. (setPeerMessageCommonProperty): Removed.
  10721. (createRequestMessage): Removed.
  10722. (createCancelMessage): Removed.
  10723. (createPieceMessage): Removed.
  10724. (createHaveMessage): Removed.
  10725. (createChokeMessage): Removed.
  10726. (createUnchokeMessage): Removed.
  10727. (createInterestedMessage): Removed.
  10728. (createNotInterestedMessage): Removed.
  10729. (createBitfieldMessage): Removed.
  10730. (createKeepAliveMessage): Removed.
  10731. (createHaveAllMessage): Removed.
  10732. (createHaveNoneMessage): Removed.
  10733. (createRejectMessage): Removed.
  10734. (createAllowedFastMessage): Removed.
  10735. * src/PieceMessage.h
  10736. (createRejectMessage): New function.
  10737. (PieceMessage): Rewritten.
  10738. (onChoked): New function.
  10739. (onCanceled): New function.
  10740. * src/PieceMessage.cc
  10741. (send): If invalidate is true then do nothing, just return.
  10742. (createRejectMessage): New function.
  10743. (onChoked): New function.
  10744. (onCanceled): New function.
  10745. * src/RequestMessage.h
  10746. (RequestMessage): Rewritten.
  10747. (onPush): New function.
  10748. (onAbortPiece): New function.
  10749. * src/RequestMessage.cc
  10750. (onPush): New function.
  10751. (onAbortPiece): New function.
  10752. Update fd_set when a socket is added or deleted in order to improve
  10753. performance:
  10754. * src/DownloadEngine.h
  10755. (rfdset): New variable.
  10756. (wfdset): New variable.
  10757. (updateFdSet): New function.
  10758. * src/DownloadEngine.cc
  10759. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  10760. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  10761. (waitData): Copy rfdset and wfdset.
  10762. (updateFdSet): New function.
  10763. (addSocket): Call updateFdSet.
  10764. (deleteSocket): Call updateFdSet.
  10765. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10766. To add the support for Metalink3.0 backward compatible links:
  10767. * src/Request.h
  10768. (SAFE_CHARS): Added '#'.
  10769. (METALINK_MARK): New definition.
  10770. * src/Request.cc
  10771. (parseUrl): Added the support for Metalink3.0 backward compatible
  10772. links.
  10773. etc
  10774. * src/PeerInteraction.cc
  10775. (MsgPushBack): Removed.
  10776. (sendMessages): Use STL copy and back_inserter.
  10777. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  10778. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  10779. * src/TorrentMan.h
  10780. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  10781. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10782. * src/SharedHandle.h: New class.
  10783. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  10784. * src/HttpResponseCommand.h
  10785. (HttpResponseCommand): Wrapped Socket.
  10786. * src/SocketCore.h
  10787. (operator==): New function.
  10788. (operator!=): New function.
  10789. (operator<): New function.
  10790. (getSockfd): New function.
  10791. (isOpen): New function.
  10792. (writeData): New function.
  10793. * src/SocketCore.cc
  10794. (operator==): New function.
  10795. (operator!=): New function.
  10796. (operator<): New function.
  10797. * src/AbstractCommand.h
  10798. (socket): Changed its type to SocketHandle.
  10799. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10800. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10801. (disableReadCheckSocket): New function.
  10802. (disableWriteCheckSocket): New function.
  10803. (readCheckTarget): Changed its type to SocketHandle.
  10804. (writeCheckTarget): Changed its type to SocketHandle.
  10805. (AbstractCommand): Replaced Socket with SocketHandle.
  10806. * src/AbstractCommand.cc
  10807. (AbstractCommand): Replaced Socket with SocketHandle.
  10808. (~AbstractCommand): Removed the deallocation for Socket object.
  10809. (disableReadCheckSocket): New function.
  10810. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10811. (disableWriteCheckSocket): New function.
  10812. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10813. * src/HttpDownloadCommand.cc
  10814. (DownloadCommand): Replaced Socket with SocketHandle.
  10815. * src/PeerAbstractCommand.h
  10816. (socket): Changed its type to SocketHandle.
  10817. (peer): Changed its type to PeerHandle.
  10818. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10819. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10820. (disableReadCheckSocket): New function.
  10821. (disableWriteCheckSocket): New function.
  10822. (readCheckTarget): Changed its type to SocketHandle.
  10823. (writeCheckTarget): Changed its type to SocketHandle.
  10824. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10825. Replaced Peer with PeerHandle.
  10826. * src/HttpRequestCommand.cc
  10827. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10828. Use disableReadCheckSocket.
  10829. * src/PeerInitiateConnectionCommand.h
  10830. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10831. * src/PeerChokeCommand.cc
  10832. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  10833. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  10834. (execute): Use PeerHandle.
  10835. * src/PeerConnection.h
  10836. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  10837. (socket): Changed its type to SocketHandle.
  10838. (PeerConnection): Replaced Socket with SocketHandle.
  10839. * src/PeerConnection.cc
  10840. (PeerConnection): Replaced Socket with SocketHandle.
  10841. * src/PeerInteractionCommand.h
  10842. (PeerInteractionCommand): Replaced socket with SocketHandle.
  10843. Replaced Peer with PeerHandle.
  10844. * src/PeerInteractionCommand.cc
  10845. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  10846. Replaced Peer with PeerHandle.
  10847. (executeInternal): Use disableWriteCheckSocket.
  10848. Use HandshakeMessageHandle.
  10849. (receiveMessages): Use PeerMessageHandle.
  10850. (prepareForNextPeer): Use PeerHandle.
  10851. * src/HttpProxyRequestCommand.h
  10852. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10853. * src/HttpResponseCommand.cc
  10854. (HttpResponseCommand): Replaced Socket with SocketHandle.
  10855. * src/TorrentMan.cc
  10856. (nullPeer): Added external reference.
  10857. (~TorrentMan): Removed the deallocation of the elements of peers.
  10858. (addPeer): Rewritten.
  10859. (isPeerAvailable): Use nullPeer.
  10860. (deleteOldpeers): Replaced with deleteErrorPeer.
  10861. (deleteErrorPeer): New function.
  10862. (getPeer): Use PeerHandle and nullPeer.
  10863. (hasMissingPiece): Replaced Peer with PeerHandle.
  10864. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10865. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10866. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10867. (getMissingPiece): Replaced Peer with PeerHandle.
  10868. * src/FtpNegotiateCommand.cc
  10869. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  10870. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  10871. (recvGreeting): Use disableWriteCheckSocket.
  10872. (recvPasv): Removed the allocation of Socket.
  10873. Use disableReadCheckSocket.
  10874. (sendRestPasv): Use disableWriteCheckSocket.
  10875. (recvRetr): Changed assertion.
  10876. * src/PeerInteraction.h
  10877. (SharedHandle.h): Included SharedHandle.h.
  10878. (PeerMessageHandle): New type definition.
  10879. (HandshakeMessageHandle): New type definition.
  10880. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  10881. (peer): Changed its type to PeerHandle.
  10882. (createHandshakeMessage): Replaced HandshakeMessage with
  10883. HandshakeMessageHandle.
  10884. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  10885. (PeerInteraction): Replaced Peer with PeerHandle.
  10886. Replaced Socket with SocketHandle.
  10887. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10888. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10889. (receiveHandshake): Replaced HandshakeMessage with
  10890. HandshakeMessageHandle.
  10891. * src/PeerInteraction.cc
  10892. (PeerInteraction): Replaced Peer with PeerHandle.
  10893. Replaced Socket with SocketHandle.
  10894. (~PeerInteraction): Removed the deallocation of the elements of
  10895. messageQueue.
  10896. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  10897. (isSendingMessageInProgress): Replaced PeerMessage with
  10898. PeerMessageHandle.
  10899. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  10900. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10901. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  10902. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  10903. (abortPiece): Use PeerMessageHandle.
  10904. (receiveHandshake): Replaced HandshakeMessage with
  10905. HandshakeMessageHandle. Removed try-catch block.
  10906. (createHandshakeMessage): Replaced HandshakeMessage with
  10907. HandshakeMessageHandle.
  10908. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10909. Removed try-catch block.
  10910. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  10911. * src/HttpProxyResponseCommand.cc
  10912. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10913. * src/FtpTunnelResponseCommand.h
  10914. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10915. * src/HttpConnection.cc
  10916. (HttpConnection): Replaced Socket with SocketHandle.
  10917. * src/PeerAbstractCommand.cc
  10918. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10919. (~PeerAbstractCommand): Removed the deallocation of socket.
  10920. Use disableReadCheckSocket, disableWriteCheckSocket.
  10921. (disableReadCheckSocket): New function.
  10922. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10923. (disableWriteCheckSocket): New function.
  10924. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10925. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  10926. * src/FtpTunnelRequestCommand.cc
  10927. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10928. (~FtpTunnelRequestCommand): Corrected indentation.
  10929. * src/DownloadCommand.h
  10930. (DownloadCommand): Replaced Socket with SocketHandle.
  10931. * src/PeerListenCommand.cc
  10932. (PeerListenCommand): Removed the initialization of socket.
  10933. (~PeerListenCommand): Removed the deallocation of socket.
  10934. (bindPort): Use SocketHandle.
  10935. (execute): Use SocketHandle and PeerHandle.
  10936. * src/FtpDowndloadCommand.cc
  10937. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10938. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  10939. * src/main.cc
  10940. (main): Corrected indentation.
  10941. * src/HttpInitiateConnectionCommand.cc
  10942. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  10943. (executeInternal): Removed the allocation of socket.
  10944. * src/HttpRequestCommand.h
  10945. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10946. * src/FtpNegotiationCommand.h
  10947. (dataSocket): Changed its type to SocketHandle.
  10948. (serverSocket): Changed its type to SocketHandle.
  10949. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  10950. * src/TorrentMan.h
  10951. (MAX_PEER_UPDATE): Removed.
  10952. (MAX_PEERS): New definition.
  10953. (Peers): The element is now of type PeerHandle.
  10954. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  10955. (getPeer): Replaced Peer with PeerHandle.
  10956. (deleteOldErrorPeers): Removed.
  10957. (deleteErrorPeer): New function.
  10958. (hasMissingPiece): Replaced Peer with PeerHandle.
  10959. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10960. (getMissingPiece): Replaced Peer with PeerHandle.
  10961. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10962. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10963. (addActivePeer): Replaced Peer with PeerHandle.
  10964. (deleteActivePeer): Replaced Peer with PeerHandle.
  10965. Added a check for the return value of find.
  10966. * src/FtpTunnelResponseCommand.cc
  10967. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10968. * src/FtpInitiateConnectionCommand.cc
  10969. (executeInternal): Removed the allocation of socket.
  10970. * src/DownloadEngine.h
  10971. (Sockets): An element is now of type SocketHandle.
  10972. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  10973. (CommandUuids): New type definition.
  10974. (rsockets): Changed its type to SockCmdMap.
  10975. (wsockets): Changed its type to SockCmdMap.
  10976. (addSocket): Rewritten.
  10977. (deleteSocket): Rewritten.
  10978. (addSocketForReadCheck): Rewritten.
  10979. (deleteSocketForReadCheck): Rewritten.
  10980. (addSocketForWriteCheck): Rewritten.
  10981. (deleteSocketForWriteCheck): Rewritten.
  10982. (PairFind): New template class.
  10983. * src/HttpDownloadCommand.h
  10984. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  10985. * src/FtpConnection.cc
  10986. (FtpConnection): Replaced Socket with SocketHandle.
  10987. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  10988. block.
  10989. * src/InitiateConnectionCommandFactory.cc
  10990. (DlAbortEx.h): Included DlAbortEx.h.
  10991. (createInitiateConnectionCommand): Throw exception if the protocol of
  10992. requested URI is not supported.
  10993. * src/Peer.cc
  10994. (nullPeer): Changed its type to PeerHandle.
  10995. (operator==): New function.
  10996. (operator!=): New function.
  10997. * src/Peer.h
  10998. (SharedHandle.h): Included SharedHandle.h.
  10999. (operator==): New function.
  11000. (operator!=): New function.
  11001. (Peer): Added the default constructor.
  11002. Use resetStatus() to initialize member variables.
  11003. (nullPeer): Removed.
  11004. * src/TrackerUpdateCommand.cc
  11005. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11006. with MIN_PEERS.
  11007. * src/PeerListenCommand.h
  11008. (socket): Changed its type to SocketHandle.
  11009. * src/Command.h
  11010. (CommandUuid): New type definition.
  11011. (uuid): New variable.
  11012. (uuidGen): New variable.
  11013. (Command): Added the initialization of uuid.
  11014. (getUuid): New function.
  11015. * src/Socket.h
  11016. (Socket): Removed.
  11017. (SocketHandle): New type definition.
  11018. * src/DownloadEngine.h
  11019. (FindCommand): New function object.
  11020. (run): The portion of socket check was rewritten.
  11021. (SetDescriptor): New function object.
  11022. (AccumulateActiveCommandUuid): New function object.
  11023. (waitData): Rewritten.
  11024. (addSocket): Rewritten.
  11025. (deleteSocket): Rewritten.
  11026. (addSocketForReadCheck): Rewritten.
  11027. (addSocketForWriteCheck): Rewritten.
  11028. (deleteSocketForReadCheck): Rewritten.
  11029. (deleteSocketForWriteCheck): Rewritten.
  11030. * src/HttpProxyResponseCommand.h
  11031. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11032. * src/HttpConnection.h
  11033. (socket): Changed its type to SocketHandle.
  11034. (HttpConnection): Replaced Socket with SocketHandle.
  11035. * src/PeerInitiateConnectionCommand.cc
  11036. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11037. (executeInternal): Removed the allocation of socket.
  11038. (prepareForNextPeer): Use PeerHandle.
  11039. * src/PeerMessage.h
  11040. (peer): Changed its type to PeerHandle.
  11041. (getPeer): Replaced Peer with PeerHandle.
  11042. (setPeer): Replaced Peer with PeerHandle.
  11043. * src/DownloadCommand.cc
  11044. (DownloadCommand): Replaced Socket with SocketHandle.
  11045. * src/FtpConnection.h
  11046. (socket): Changed its type to SocketHandle.
  11047. (FtpConnection): Replaced Socket with SocketHandle.
  11048. (sendPort); Replaced Socket with SocketHandle.
  11049. * src/FtpDowndloadCommand.h
  11050. (ctrlSocket): Changed its type to SocketHandle.
  11051. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11052. * src/HttpProxyRequestCommand.cc
  11053. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11054. * src/FtpTunnelRequestCommand.h
  11055. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11056. etc
  11057. * src/PeerChokeCommand.h
  11058. (setAllPeerChoked): Removed.
  11059. (setAllPeerResetDelta): Removed.
  11060. * src/PeerChokeCommand.cc
  11061. (setAllPeerChoked): Removed.
  11062. (ChokePeer): New function object.
  11063. (setAllPeerResetDelta): Removed.
  11064. (ResetDelta): New function object.
  11065. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11066. (execute): Show download speed when the local node is a seeder.
  11067. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11068. using STL.
  11069. * src/TrackerWatcherCommand.h
  11070. (MIN_PEERS): Removed.
  11071. * src/TorrentMan.cc
  11072. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11073. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11074. To fix the bug that .aria2 file is not saved if downloading is stopped
  11075. by the errors:it results that aria2 can not resume downloading:
  11076. * src/main.cc
  11077. (normalDownload): Added the call to save().
  11078. (main): Added the deletion of the elements in 'reserved'.
  11079. To fix log:
  11080. * src/PeerInteraction.cc
  11081. (receiveHandshake): Fixed log.
  11082. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11083. To improve download performance in BitTorrent:
  11084. * src/TorrentMan.cc
  11085. (getPeer): Check the number of connections. Return nullPeer if
  11086. it is greater than MAX_PEER_UPDATE.
  11087. This code was originally here, but was removed in 0.5.1.
  11088. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11089. To improve the conditional compilation:
  11090. * src/MultiDiskWriter.h:
  11091. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11092. * src/MultiDiskWriter.cc:
  11093. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11094. * src/Util.h:
  11095. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11096. Added ENABLE_BITTORRENT around computeFastSet().
  11097. * src/Util.cc:
  11098. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11099. Added ENABLE_BITTORRENT around computeFastSet().
  11100. * src/messageDigest.h:
  11101. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11102. * src/ShaVisitor.h:
  11103. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11104. * src/ShaVisitor.cc:
  11105. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11106. * src/main.cc:
  11107. Added ENABLE_BITTORRENT around includes and blocks related to
  11108. BitTorrent.
  11109. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11110. digest support is not available.
  11111. * src/AbstractDiskWriter.h:
  11112. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11113. * src/AbstractDiskWriter.cc:
  11114. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11115. * src/MetalinkEntry.cc
  11116. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11117. support is not available.
  11118. To add command-line options for Metalink:
  11119. * src/main.cc:
  11120. Added metalink-version, metalink-language, metalink-os,
  11121. follow-metalink.
  11122. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11123. * src/main.cc: Use these definition.
  11124. * Release 0.6.0
  11125. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11126. To add Metalink support(http/ftp only):
  11127. * src/AbstractCommand.h
  11128. (tryReserved): New function.
  11129. * src/AbstractCommand.cc
  11130. (execute): Call tryReserved().
  11131. (tryReserved): New function.
  11132. * src/Request.h
  11133. (Requests): New type definition.
  11134. * src/SegmentMan.h
  11135. (reserved): New variable.
  11136. * src/Util.h
  11137. (fileChecksum): New function.
  11138. (toUpper): New function.
  11139. (toLower): New function.
  11140. * src/Util.cc
  11141. (messageDigest.h): Included.
  11142. (trim): Trim \r\n\t.
  11143. (fileChecksum): New function.
  11144. (toUpper): New function.
  11145. (toLower): New function.
  11146. * src/main.cc
  11147. (normalDownload): New function.
  11148. (main): Added 2 command-line options: metalink-file,
  11149. metalink-connection. Their usage has not been written yet.
  11150. * src/MetalinkProcessor.h: New class.
  11151. * src/Xml2MetalinkProcessor.h: New class.
  11152. * src/Xml2MetalinkProcessor.cc: New class.
  11153. * src/MetalinkEntry.h: New class.
  11154. * src/MetalinkEntry.cc: New class.
  11155. * src/MetalinkResource.h: New class.
  11156. * src/MetalinkResource.cc: New class.
  11157. To add md5 message digest checking:
  11158. * src/messageDigest.h: Rewritten.
  11159. * src/MultiDiskWriter.cc: Updated according to the changes in
  11160. messageDigest.h.
  11161. * src/ShaVisitor.cc: Updated according to the changes in
  11162. messageDigest.h.
  11163. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11164. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11165. messageDigest.h.
  11166. To fix a bug that causes segfault when the payload length in peer
  11167. message is less than 0:
  11168. * src/PeerConnection.cc:
  11169. (receiveMessage): Fixed the bug.
  11170. * src/PeerMessageUtil.cc
  11171. (checkLength): Throw an exception if length is less than or equals to
  11172. 0.
  11173. To add new interfaces to Base64 encoding/decoding:
  11174. * src/Base64.h
  11175. (part_encode): Changed the method signature.
  11176. (encode): New function(overload).
  11177. (decode): New function(overload).
  11178. * src/Base64.cc
  11179. (part_encode): Rewritten.
  11180. (encode): Rewritten.
  11181. (encode): New function(overload).
  11182. To prevent a peer to download same piece if there is an error in
  11183. checksum:
  11184. * src/PieceMessage.cc
  11185. (receivedAction): Call peerInteraction->abortPiece().
  11186. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11187. To fix the bug that causes same have message is sent many times to
  11188. a single peer.
  11189. * src/Time.cc
  11190. (isNewer): Use Util::difftv().
  11191. * src/Util.cc
  11192. (difftv): Added a cast to (long long int).
  11193. * src/TorrentMan.cc
  11194. (advertisePiece): Use push_front.
  11195. (getAdvertisedPieceIndexes): A performance improvement was made.
  11196. To fix the bug that sends tracker requests without a sleep interval
  11197. when the number of connections is less than 15.
  11198. * src/TrackerWatcherCommand.cc
  11199. (execute): Now the number of connections is not a factor to decide
  11200. whether or not a tracker request should be sent or not.
  11201. * src/Time.h
  11202. (setTimeInSec): New function.
  11203. * src/Time.cc
  11204. (setTimeInSec): New function.
  11205. etc.
  11206. * src/ChokeMessage.cc
  11207. (receivedAction): Removed peer->snubbing = false
  11208. * src/PeerConnection.h
  11209. (receiveHandshake): Updated doc.
  11210. * src/TorrentMan.h
  11211. (getAdvertisedPieceIndexes): Updated the method signature.
  11212. * src/TorrentMan.cc
  11213. (getAdvertisedPieceIndexes): Updated the method signature.
  11214. * src/Time.h
  11215. (getTimeInMicros): Added a cast to (long long int).
  11216. (getTimeInMillis): Added a cast to (long long int).
  11217. * Release 0.5.2
  11218. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11219. To make a listening socket non-block:
  11220. * src/SocketCore.h
  11221. (setNonBlockingMode): New function.
  11222. * src/SocketCore.cc
  11223. (setNonBlockingMode): New function.
  11224. (beginListen): Added a call to setNonBlockingMode().
  11225. (acceptConnection): Call setNonBlockingMode().
  11226. (setBlockingMode): Updated.
  11227. To handle tracker's NAT-checking:
  11228. * src/PeerConnection.cc
  11229. (receiveHandshake): 'msg' param is filled with received data and
  11230. its length is assigned to 'length' param, even if all handshake
  11231. message is not yet received.
  11232. * src/PeerInteractionCommand.cc
  11233. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11234. a new peer connects to localhost.
  11235. A call to peerInteraction->sendHandshake() was removed because
  11236. it is called from peerInteraction->receiveHandshake(true).
  11237. * src/PeerInteraction.h
  11238. (quickReplied): New variable.
  11239. (receiveHandshake): Added an argument.
  11240. * src/PeerInteraction.cc
  11241. (PeerInteraction): Added the initialization of quickReplied.
  11242. (receiveHandshake): Send handshake message as soon as the info hash
  11243. in a handshake message from a peer is correct.
  11244. To change the random part of peer id and key parameter:
  11245. * src/TorrentMan.h
  11246. (key): New variable.
  11247. * src/TorrentMan.cc
  11248. (setupInternal1): Use Util::randomAlpha() to generate random part
  11249. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11250. key is also generated by Util::randomAlpha() and it is now 8 character
  11251. long.
  11252. * src/Util.h
  11253. (randomAlpha): New function.
  11254. * src/Util.cc
  11255. (randomAlpha): New function.
  11256. * src/TrackerWatcherCommand.cc
  11257. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11258. Added no_peer_id=1.
  11259. Set snubbing flag to false when a choke message is received from a
  11260. snubbed peer.
  11261. * src/ChokeMessage.cc
  11262. (receivedAction): Set snubbing flag to false.
  11263. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11264. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  11265. * src/SimpleLogger.h (writeHeader): New function.
  11266. * src/SimpleLogger.cc (writeHeader): New function.
  11267. (writeLog): Fixed the bug that causes segfaults if exception message
  11268. contains an unescaped "%" character.
  11269. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  11270. when a tracker request fails.
  11271. * src/Request.cc (parseUrl): Query string is now handled properly.
  11272. * Release 0.5.1
  11273. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11274. To add Time class which represents a specific instant in time and
  11275. its precision is microseconds. Time checking procedures were rewritten
  11276. using this object.
  11277. * src/Time.h: New class.
  11278. * src/Time.cc: New class.
  11279. * src/AbstractCommand.h
  11280. (updateCheckPoint): Removed.
  11281. (isTimeoutDetected): Removed.
  11282. (checkPoint): Changed the type to Time.
  11283. (timeout): New variable.
  11284. (setTimeout): New function.
  11285. * src/AbstractCommand.cc
  11286. (AbstractCommand): Removed the initialization of checkPoint.
  11287. Added the initialization of timeout.
  11288. (updateCheckPoint): Removed.
  11289. (isTimeoutDetected): Removed.
  11290. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11291. * src/PeerChokeCommand.h
  11292. (checkPoint): Changed the type to Time.
  11293. * src/PeerChokeCommand.cc
  11294. (PeerChokeCommand): Removed the initialization of checkPoint.
  11295. (execute): Rewritten using Time object.
  11296. * src/TrackerWatcherCommand.h
  11297. (checkPoint): Changed the type to Time.
  11298. * src/TrackerWatcherCommand.cc
  11299. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  11300. (execute): Rewritten.
  11301. * src/ConsoleDownloadEngine.h
  11302. (cp): Changed the type to Time.
  11303. (startup): Changed the type to Time.
  11304. * src/ConsoleDownloadEngine.cc
  11305. (initStatistics): Use cp.reset(), startup.reset().
  11306. (calculateStatistics): Rewritten using Time object.
  11307. * src/PeerAbstractCommand.h
  11308. (updateCheckPoint): Removed.
  11309. (isTimeoutDetected): Removed.
  11310. (checkPoint): Changed the type to Time.
  11311. * src/PeerAbstractCommand.cc
  11312. (PeerAbstractCommand): Removed the initialization of checkPoint.
  11313. (updateCheckPoint): Removed.
  11314. (isTimeoutDetected): Removed.
  11315. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11316. * src/PeerInteractionCommand.cc
  11317. (PeerInteractionCommand): Removed the initializations of struct
  11318. timeval variables.
  11319. * src/PeerInteractionCommand.h
  11320. (keepAliveCheckPoint): Changed the type to Time.
  11321. (chokeCheckPoint): Changed the type to Time.
  11322. (freqCheckPoint): Changed the type to Time.
  11323. (haveCheckTime): Changed the type to Time.
  11324. * src/PeerInteractionCommand.cc
  11325. (executeInternal): Rewritten using Time object.
  11326. (detectMessageFlooding): Rewritten using Time object.
  11327. (checkLongTimePeerChoking): Rewritten using Time object.
  11328. (sendKeepAlive): Rewritten using Time object.
  11329. (checkHave): Rewritten using Time object.
  11330. * src/SleepCommand.h
  11331. (checkPoint): Changed the type to Time.
  11332. * src/SleepCommand.cc
  11333. (SleepCommand): Removed the initialization of checkPoint.
  11334. (execute): Rewritten using Time object.
  11335. * src/TorrentAutoSaveCommand.h
  11336. (checkPoint): Changed the type to Time.
  11337. * src/TorrentAutoSaveCommand.cc
  11338. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  11339. (execute): Rewritten.
  11340. * src/DownloadCommand.h
  11341. (sw): Changed the type to Time.
  11342. * src/DownloadCommand.cc
  11343. (DownloadCommand): Removed the initialization of sw.
  11344. (executeInternal): Rewritten.
  11345. * src/RequestSlot.h
  11346. (dispatchedTime): Changed the type to Time.
  11347. * src/RequestSlot.cc
  11348. (RequestSlot): Removed the call to setDispatchedTime().
  11349. (setDispatchedTime): Rewirtten.
  11350. (isTimeout): Rewritten.
  11351. (getLatencyInMillis): Rewritten.
  11352. * src/TorrentDownloadEngine.h
  11353. (cp): Changed the type to Time[2].
  11354. (startup): Changed the type to Time.
  11355. * src/TorrentDownloadEngine.cc
  11356. (initStatistics): Rewritten.
  11357. (calculateStatistics): Rewritten.
  11358. * src/DownloadEngine.cc
  11359. (run): Rewritten.
  11360. To detect all attempts to connect to the tracker are failed:
  11361. * src/AbstractCommand.cc
  11362. (execute): Increment e->segmentMan->errors if a command aborted.
  11363. * src/SegmentMan.h
  11364. (errors): New variable.
  11365. * src/SegmentMan.cc
  11366. (SegmentMan): Added the initialization of errors.
  11367. (init): Added the initialization of errors.
  11368. * src/TrackerWatcherCommand.cc
  11369. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11370. request was failed.
  11371. To handle snubbed peers:
  11372. * src/PeerChokeCommand.cc
  11373. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11374. (execute): Snubbed peers don't get unchoked.
  11375. * src/PeerInteraction.h
  11376. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11377. * src/PeerInteraction.cc
  11378. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11379. back the requested 16k block in 60 seconds.
  11380. * src/PieceMessage.cc
  11381. (receivedAction): A peer's snubbed state is cleard if it sends
  11382. the requested 16k block in 60 seconds.
  11383. * src/Peer.h
  11384. (snubbing): New variable.
  11385. * src/Peer.cc
  11386. (resetStatus): Added snubbed = false.
  11387. To fix the bug that causes have message is not sent:
  11388. * src/PeerInteractionCommand.cc
  11389. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11390. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11391. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11392. * src/TorrentMan.h
  11393. (HaveEntry): New class.
  11394. (advertisePiece): Rewritten.
  11395. (getAdvertisedPieceIndexes): Rewritten.
  11396. (Haves): Changed the type.
  11397. (getAdvertisedPieceIndexes): Added an argument.
  11398. Others:
  11399. * src/TorrentMan.h
  11400. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11401. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11402. * src/TorrentMan.cc
  11403. (getPeer): Don't check the number of connections here.
  11404. (setupInternal1): Changed peerId.
  11405. * src/PeerInteractionCommand.h
  11406. (KEEP_ALIVE_INTERVAL): New definition.
  11407. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11408. * src/main.cc
  11409. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11410. * src/DownloadEngine.h: Removed unnecessary header includes.
  11411. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11412. To fix the bug that causes segfaults if a tracker returns a zero-length
  11413. list as "peers":
  11414. * src/TrackerUpdateCommand.cc
  11415. (execute): Added a check to see wether the type of peers is Data*.
  11416. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11417. * Release 0.5.0
  11418. To fix compile issue with gcc3:
  11419. * src/CancelMessage.h
  11420. (ID): Renamed as ID_t
  11421. (ID_t): New enum.
  11422. * src/RejectMessage.h
  11423. (ID): Renamed as ID_t
  11424. (ID_t): New enum.
  11425. * src/SuggestPieceMessage.h
  11426. (ID): Renamed as ID_t
  11427. (ID_t): New enum.
  11428. * src/AllowedFastMessage.h
  11429. (ID): Renamed as ID_t
  11430. (ID_t): New enum.
  11431. * src/PortMessage.h
  11432. (ID): Renamed as ID_t
  11433. (ID_t): New enum.
  11434. * src/HaveNoneMessage.h
  11435. (ID): Renamed as ID_t
  11436. (ID_t): New enum.
  11437. * src/KeepAliveMessage.h
  11438. (ID): Renamed as ID_t
  11439. (ID_t): New enum.
  11440. * src/HaveAllMessage.h
  11441. (ID): Renamed as ID_t
  11442. (ID_t): New enum.
  11443. * src/UnchokeMessage.h
  11444. (ID): Renamed as ID_t
  11445. (ID_t): New enum.
  11446. * src/BitfieldMessage.h
  11447. (ID): Renamed as ID_t
  11448. (ID_t): New enum.
  11449. * src/PieceMessage.h
  11450. (ID): Renamed as ID_t
  11451. (ID_t): New enum.
  11452. * src/RequestMessage.h
  11453. (ID): Renamed as ID_t
  11454. (ID_t): New enum.
  11455. * src/NotInterestedMessage.h
  11456. (ID): Renamed as ID_t
  11457. (ID_t): New enum.
  11458. * src/ChokeMessage.h
  11459. (ID): Renamed as ID_t
  11460. (ID_t): New enum.
  11461. * src/InterestedMessage.h
  11462. (ID): Renamed as ID_t
  11463. (ID_t): New enum.
  11464. * src/HaveMessage.h
  11465. (ID): Renamed as ID_t
  11466. (ID_t): New enum.
  11467. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11468. * src/PeerAbstractCommand.h
  11469. (beforeSocketCheck): Removed.
  11470. * src/PeerAbstractCommand.cc
  11471. Modified in order to call executeInternal() even if socket check
  11472. and upload limit check fail.
  11473. * src/PeerInteractionCommand.h
  11474. (keepAlive): Removed.
  11475. (sendKeepAlive): New function.
  11476. (checkHave): New function.
  11477. (beforeSocketCheck): Removed.
  11478. * src/PeerInteractionCommand.cc
  11479. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11480. calls to checkHave() and sendKeepAlive().
  11481. (keepAlive): Renamed to sendKeepAlive().
  11482. (sendKeepAlive): New function.
  11483. (beforeSocketCheck): Removed.
  11484. (checkHave): New function.
  11485. * src/BitfieldMan.cc
  11486. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11487. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11488. 0.
  11489. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11490. * src/TorrentMan.h
  11491. (UsedPieces): Removed.
  11492. (Pieces): New type definition.
  11493. * src/Piece.h: Updated doc.
  11494. * src/Peer.h
  11495. (totalLength): Removed.
  11496. * src/Peer.cc
  11497. (updateLatency): Fixed the latency calculation.
  11498. * src/TorrentMan.cc
  11499. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  11500. than or equal to MAX_PEER_LIST_SIZE.
  11501. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  11502. then return false.
  11503. (deleteOldErrorPeers): Rewritten.
  11504. (deleteUsedPiece): Fixed the miss use of STL remove.
  11505. * src/PeerInteraction.h
  11506. (Pieces): Removed.
  11507. (deleteTimeoutRequestSlot): Removed.
  11508. (deleteCompletedRequestSlot): Removed.
  11509. (checkRequestSlot): New function.
  11510. * src/PeerInteraction.cc
  11511. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  11512. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  11513. (checkRequestSlot): New function.
  11514. * src/DownloadEngine.cc
  11515. (run): Clear activeSockets before calling waitData().
  11516. (waitData): Removed a call to activeSockets.clear().
  11517. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11518. To attempt to handle EINTR:
  11519. * src/SocketCore.cc
  11520. (isReadable): Added EINTR handling.
  11521. (isWritable): Added EINTR handling.
  11522. To improve the performance:
  11523. * src/AbstractCommand.cc
  11524. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11525. * src/PeerInteractionCommand.h
  11526. (receiveMessage): Renamed as receiveMessages().
  11527. (receiveMessages): New function.
  11528. * src/PeerInteractionCommand.cc
  11529. (executeInternal): receiveMessage loop is moved to new receiveMessages
  11530. () function. detectMessageFlooding() is moved here.
  11531. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  11532. (). The flooding detection for have message is comment out.
  11533. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  11534. Util::difftv().
  11535. (receiveMessage): Renamed as receiveMessages().
  11536. (receiveMessages): New function.
  11537. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  11538. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  11539. * src/SleepCommand.cc
  11540. (execute): Use Util::difftvsec() instead of Util::difftv().
  11541. * src/BitfieldMan.h
  11542. (getNthBitIndex): New function.
  11543. (hasMissingPiece): New function.
  11544. (getAllMissingIndexes): New function.
  11545. * src/BitfieldMan.cc
  11546. (countSetBit): Rewritten.
  11547. (getNthBitIndex): New function.
  11548. (getMissingIndexRandomly): Rewritten.
  11549. (hasMissingPiece): New function.
  11550. (getAllMissingIndexes): New function.
  11551. * src/TorrentMan.cc
  11552. (hasMissingPiece): New function.
  11553. (deleteUsedPiece): Rewritten using STL.
  11554. * src/PeerInteraction.cc
  11555. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  11556. is a little bit faster then TorrentMan::getMissingPieceIndex().
  11557. (addRequests): Updated the number of pending requests.
  11558. * src/PeerAbstractCommand.cc
  11559. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  11560. (execute): Returns true if TorrentMan::isHalt() is true.
  11561. Corrected the condition of upload limit checking.
  11562. * src/Util.h
  11563. (countBit): New function.
  11564. * src/Util.cc
  11565. (nbits): New variable.
  11566. (countBit): New function.
  11567. * src/DownloadEngine.h
  11568. (SockCmdMap): New type definition.
  11569. (waitData): Added an argument.
  11570. (addSocket): Added an argument.
  11571. (addSocketForReadCheck): Added an argument.
  11572. (addSocketForWriteCheck): Added an argument.
  11573. * src/DownloadEngine.cc
  11574. (run): Executes only commands whose sockets are ready to read or write.
  11575. All commands are executed in every 1 second.
  11576. (waitData): Calls select() again if it returned
  11577. EINTR.
  11578. (addSocket): Saves socket and command object pair to the map.
  11579. (deleteSocket): Deletes socket and command object pair from the map.
  11580. (addSocketForReadCheck): Added an argument.
  11581. (addSocketForWriteCheck): Added an argument.
  11582. * src/DownloadCommand.cc
  11583. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  11584. To send "event=stopped" to the tracker when the application finishes:
  11585. * src/PeerChokeCommand.h
  11586. (checkPoint): New variable.
  11587. * src/PeerChokeCommand.cc
  11588. (PeerChokeCommand): Added the initialization of checkPoint.
  11589. (execute): The interval check is now done by checkPoint, not
  11590. SleepCommand. Return true if TorrentMan::isHalt() is true.
  11591. * src/TorrentMan.h
  11592. (halt): New function.
  11593. (hasMissingPiece): New function.
  11594. (isHalt): New function.
  11595. (setHalt): New function.
  11596. * src/TorrentMan.cc
  11597. (TorrentMan): Added the initialization of halt.
  11598. * src/TorrentAutoSaveCommand.h
  11599. (checkPoint): New variable.
  11600. * src/PeerListenCommand.cc
  11601. (execute): Returns true if TorrentMan::isHalt() is true.
  11602. * src/main.cc
  11603. (setSignalHander): Added flags argument.
  11604. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  11605. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  11606. Removed printDownloadAbortMessage() after torrent downloading loop.
  11607. * src/TorrentAutoSaveCommand.cc
  11608. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  11609. (execute): Returns true if TorrentMan::isHalt() is true.
  11610. The interval check is now done by checkPoint, not SleepCommand.
  11611. * src/TrackerWatcherCommand.cc
  11612. (execute): If TorrentMan::isHalt(), then create a tracker request with
  11613. event=stopped.
  11614. * src/TrackerUpdateCommand.cc
  11615. (prepareForRetry): Do not use SleepCommand here.
  11616. (execute): Returns true if TorrentMan::isHalt() is true.
  11617. Others:
  11618. * src/TorrentMan.cc
  11619. (getMissingPieceIndex): Updated log message.
  11620. * src/PeerInteraction.cc
  11621. (createPeerMessag): Updated log message.
  11622. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11623. To add the ability to download several pieces in mix in a command and
  11624. increase the number of request slots according to request-cancel
  11625. latency:
  11626. * src/PeerInteractionCommand.cc
  11627. (executeInternal): The number of messages to be received at a time
  11628. is increased from 10 to 50.
  11629. * src/LogFactory
  11630. (getInstance): Added NullLogger.
  11631. * src/NullLogger.h: New class.
  11632. * src/BitfieldMan.h
  11633. (getMissingIndex): New function.
  11634. * src/BitfieldMan.cc
  11635. (getMissingIndex): New function.
  11636. * src/TorrentMan.h
  11637. (checkOutPiece): New function.
  11638. (getMissingPieceIndex): New function.
  11639. (getMissingFastPieceIndex): New function.
  11640. (getMissingFastPiece): New function.
  11641. * src/TorrentMan.cc
  11642. (updatePiece): Rewritten using STL.
  11643. (syncPiece): Rewritten using STL.
  11644. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  11645. checkOutPiece().
  11646. (getMissingPieceIndex): New function.
  11647. (getMissingFastPieceIndex): New function.
  11648. (getMissingFastPiece): New function.
  11649. (checkOutPiece): New function.
  11650. * src/PeerInteraction.h
  11651. (Pieces): New type definition.
  11652. (piece): Removed.
  11653. (pieces): New variable.
  11654. (getNewPieceAndSendInterest): Added the "piece" argument.
  11655. (abortPiece): Added the "piece" argument.
  11656. (abortAllPieces): New function.
  11657. (isInRequestSlot): New function.
  11658. (hasDownloadPiece): Added the "index" argument.
  11659. (setDownloadPiece): Removed.
  11660. (getDownloadPiece): Added the "index" argument.
  11661. (updatePiece): New function.
  11662. (createRequestMessage): Added the "index" argument.
  11663. * src/PeerInteraction.cc
  11664. (onChoked): Rewritten.
  11665. (abortPiece): Rewirtten.
  11666. (abortAllPieces): New function.
  11667. (deleteTimeoutRequestSlot): Rewritten.
  11668. Clarified code a little bit.
  11669. (deleteCompletedRequestSlot): Rewritten.
  11670. (isInRequestSlot): New function.
  11671. (syncPiece): Rewritten.
  11672. (updatePiece): New function.
  11673. (getNewPieceAndSendInterest): Rewritten.
  11674. (addRequests): Rewritten.
  11675. (getDownloadPiece): Rewritten.
  11676. (hasDownloadPiece): Rewritten.
  11677. (createRequestMessage): Added the "index" argument.
  11678. * src/common.h
  11679. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11680. (DIV_FLOOR): New definition.
  11681. * src/PieceMessage.cc
  11682. (receivedAction): Update request-piece latency here.
  11683. * src/RequestSlot.h
  11684. (getLatencyInMillis): New function.
  11685. * src/RequestSlot.cc
  11686. (isTimeout): Rewritten using getLatencyInMillis.
  11687. (getLatencyInMillis): New function.
  11688. * src/Piece.h
  11689. (operator==): New function.
  11690. (getMissingBlockIndex): New function.
  11691. * src/Piece.cc
  11692. (operator==): New function.
  11693. (getMissingBlockIndex): New function.
  11694. * src/Peer.h
  11695. (DEFAULT_LATENCY): New definition.
  11696. (latency): New variable.
  11697. (updateLatency): New function.
  11698. (getLatency): New function.
  11699. * src/Peer.cc
  11700. (resetStatus): Reset latecy.
  11701. (updateLatency): New function.
  11702. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11703. * src/SocketCore.cc
  11704. (isReadable): Added secure to the condition.
  11705. * src/HttpConnection.cc
  11706. (receiveResponse): Fixed a bug that causes no response header
  11707. exception.
  11708. * src/Peer.h
  11709. (getFastSet): Fixed the return value type.
  11710. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11711. To remove a wait from download loop:
  11712. * src/DownloadEngine.cc
  11713. (run): Comment out shortSleep.
  11714. To rewrite the message handling:
  11715. * src/SimplePeerMessage.h: New class.
  11716. * src/SimplePeerMessage.cc: New class.
  11717. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11718. (msg): New variable.
  11719. (create): New function.
  11720. (send): Removed.
  11721. (getMessage): New function.
  11722. (getMessageLength): New function.
  11723. * src/CancelMessage.cc
  11724. (create): New function.
  11725. (receivedAction): Replaced deleteRequestMessageInQueue with
  11726. rejectPieceMessageInQueue.
  11727. (send): Removed.
  11728. (getMessage): New function.
  11729. (getMessageLength): New function.
  11730. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11731. (msg): New variable.
  11732. (msgLength): New variable.
  11733. (~BitfieldMessage): Deleted msg.
  11734. (send): Removed.
  11735. (getMessage): New function.
  11736. (getMessageLength): New function.
  11737. * src/BitfieldMessage.cc
  11738. (create): New function.
  11739. (send): Removed.
  11740. (getMessage): New function.
  11741. (getMessageLength): New function.
  11742. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11743. (msg): New variable.
  11744. (sendPredicate): New function.
  11745. (onSendComplete): New function.
  11746. (send): Removed.
  11747. (getMessage): New function.
  11748. (getMessageLength): New function.
  11749. (create): New function.
  11750. * src/ChokeMessage.cc
  11751. (create): New function.
  11752. (send): Removed.
  11753. (sendPredicate): New function.
  11754. (getMessage): New function.
  11755. (getMessageLength): New function.
  11756. (onSendComplete): New function.
  11757. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  11758. (msg): New variable.
  11759. (send): Removed.
  11760. (getMessage): New function.
  11761. (getMessageLength): New function.
  11762. * src/KeepAliveMessage.cc
  11763. (send): Removed.
  11764. (getMessage): New function.
  11765. (getMessageLength): New function.
  11766. * src/PortMessage.h
  11767. (create): New function.
  11768. (receivedAction): Updated log message.
  11769. * src/PortMessage.cc: New file.
  11770. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  11771. (msg): New variable.
  11772. (sendPredicate): New function.
  11773. (onSendComplete): New function.
  11774. (create): New function.
  11775. (send): Removed.
  11776. (getMessage): New function.
  11777. (getMessageLength): New function.
  11778. * src/UnchokeMessage.cc
  11779. (create): New function.
  11780. (send): Removed.
  11781. (sendPredicate): New function.
  11782. (getMessage): New function.
  11783. (getMessageLength): New function.
  11784. (onSendComplete): New function.
  11785. * src/PieceMessage.h
  11786. (leftPieceDataLength): Removed.
  11787. (leftDataLength): New variable.
  11788. (headerSend): New variable.
  11789. (pendingCount): New variable.
  11790. (msgHeader): New variable.
  11791. (sendPieceData): New function.
  11792. (incrementPendingCount): New function.
  11793. (isPendingCountMax): New function.
  11794. (create): New function.
  11795. (getMessageHeader): New function.
  11796. (getMessageHeaderLength): New function.
  11797. * src/PieceMessage.cc
  11798. (create): New function.
  11799. (getMessageHeader): New function.
  11800. (getMessageHeaderLength): New function.
  11801. (send): Rewritten.
  11802. (sendPieceData): New function.
  11803. * src/HaveMessage.h: Derived from SimplePeerMessage.
  11804. (msg): New variable.
  11805. (create): New function.
  11806. (getMessage): New function.
  11807. (getMessageLength): New function.
  11808. * src/HaveMessage.cc
  11809. (create): New function.
  11810. (send): Removed.
  11811. (sendPieceData): New function.
  11812. (getMessage): New function.
  11813. (getMessageLength): New function.
  11814. * src/RequestMessage.h: Derived from SimplePeerMessage.
  11815. (msg): New variable.
  11816. (create): New function.
  11817. (send): Removed.
  11818. (getMessage): New function.
  11819. (getMessageLength): New function.
  11820. * src/RequestMessage.cc
  11821. (create): New function.
  11822. (receivedAction): Added the handling of fast extension.
  11823. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  11824. (send): Removed.
  11825. (getMessage): New function.
  11826. (getMessageLength): New function.
  11827. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  11828. (msg): New variable.
  11829. (sendPredicate): New function.
  11830. (onSendComplete): New function.
  11831. (create): New function.
  11832. (getMessage): New function.
  11833. (getMessageLength): New function.
  11834. * src/InterestedMessage.cc
  11835. (create): New function.
  11836. (send): Removed.
  11837. (sendPieceData): New function.
  11838. (getMessage): New function.
  11839. (getMessageLength): New function.
  11840. (onSendComplete): New function.
  11841. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  11842. (msg): New variable.
  11843. (sendPieceData): New function.
  11844. (onSendComplete): New function.
  11845. (create): New function.
  11846. (send): Removed.
  11847. (getMessage): New function.
  11848. (getMessageLength): New function.
  11849. * src/NotInterestedMessage.cc
  11850. (create): New function.
  11851. (send): Removed.
  11852. (sendPredicate): New function.
  11853. (getMessage): New function.
  11854. (getMessageLength): New function.
  11855. (onSendComplete): New function.
  11856. * src/AllowedFastMessage.h: New class.
  11857. * src/AllowedFastMessage.cc: New class.
  11858. * src/RejectMessage.h: New class.
  11859. * src/RejectMessage.cc: New class.
  11860. * src/SuggestPieceMessage.h: New class.
  11861. * src/SuggestPieceMessage.cc: New class.
  11862. * src/HaveAllMessage.h: New class.
  11863. * src/HaveAllMessage.cc: New class.
  11864. * src/HaveNoneMessage.h: New class.
  11865. * src/HaveNoneMessage.cc: New class.
  11866. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  11867. (msg): New variable.
  11868. (reserved): New variable.
  11869. (create): New function.
  11870. (getId): New function.
  11871. (receivedAction): New function.
  11872. (getMessage): New function.
  11873. (getMessageLength): New function.
  11874. (isFastExtensionSupported): New function.
  11875. * src/HandshakeMessage.cc
  11876. (HandshakeMessage): Moved here from HandshakeMessage.h.
  11877. (create): New function.
  11878. (getMessage): New function.
  11879. (getMessageLength): New function.
  11880. (toString): Added the output of reserved field.
  11881. (check): Added const qualifier.
  11882. (isFastExtensionSupported): New function.
  11883. * src/PeerMessageUtil.h
  11884. (createChokeMessage): Removed.
  11885. (createUnchokeMessage): Removed.
  11886. (createInterestedMessage): Removed.
  11887. (createNotInterestedMessage): Removed.
  11888. (createHaveMessage): Removed.
  11889. (createBitfieldMessage): Removed.
  11890. (createRequestMessage): Removed.
  11891. (createCancelMessage): Removed.
  11892. (createPieceMessage): Removed.
  11893. (createPortMessage): Removed.
  11894. (createChokeMessage): Removed.
  11895. (createUnchokeMessage): Removed.
  11896. (createInterestedMessage): Removed.
  11897. (createNotInterestedMessage): Removed.
  11898. (createHaveMessage): Removed.
  11899. (createBitfieldMessage): Removed.
  11900. (createRequestMessage): Removed.
  11901. (createCancelMessage): Removed.
  11902. (createPieceMessage): Removed.
  11903. (createKeepAliveMessage): Removed.
  11904. (createHandshakeMessage): Removed.
  11905. (setIntParam): New function.
  11906. (createPeerMessageString): New function.
  11907. * src/PeerMessageUtil.cc
  11908. (createChokeMessage): Removed.
  11909. (createUnchokeMessage): Removed.
  11910. (createInterestedMessage): Removed.
  11911. (createNotInterestedMessage): Removed.
  11912. (createHaveMessage): Removed.
  11913. (createBitfieldMessage): Removed.
  11914. (createRequestMessage): Removed.
  11915. (createCancelMessage): Removed.
  11916. (createPieceMessage): Removed.
  11917. (createPortMessage): Removed.
  11918. (createRequestMessage): Removed.
  11919. (createCancelMessage): Removed.
  11920. (createPieceMessage): Removed.
  11921. (createHaveMessage): Removed.
  11922. (createChokeMessage): Removed.
  11923. (createUnchokeMessage): Removed.
  11924. (createInterestedMessage): Removed.
  11925. (createNotInterestedMessage): Removed.
  11926. (createBitfieldMessage): Removed.
  11927. (createKeepAliveMessage): Removed.
  11928. (createHandshakeMessage): Removed.
  11929. (setIntParam): New function.
  11930. (createPeerMessageString): New function.
  11931. * src/PeerConnection.h
  11932. (peer): Removed.
  11933. (torrentMan): Removed.
  11934. (createNLengthMessage): Removed.
  11935. (setIntParam): Removed.
  11936. (writeOutgoingMessageLog): Removed all overloaded functions.
  11937. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11938. (sendMessage): New function.
  11939. (sendHandshake): Removed.
  11940. (sendKeepAlive): Removed.
  11941. (sendChoke): Removed.
  11942. (sendUnchoke): Removed.
  11943. (sendInterested): Removed.
  11944. (sendNotInterested): Removed.
  11945. (sendHave): Removed.
  11946. (sendBitfield): Removed.
  11947. (sendRequest): Removed.
  11948. (sendPiece): Removed.
  11949. (sendPieceHeader): Removed.
  11950. (sendPieceData): Removed.
  11951. (sendCancel): Removed.
  11952. (getPeer): Removed.
  11953. * src/PeerConnection.cc
  11954. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11955. (sendHandshake): Removed.
  11956. (sendKeepAlive): Removed.
  11957. (createNLengthMessage): Removed.
  11958. (setIntParam): Removed.
  11959. (writeOutgoingMessageLog): Removed all overloaded functions.
  11960. (sendChoke): Removed.
  11961. (sendUnchoke): Removed.
  11962. (sendInterested): Removed.
  11963. (sendNotInterested): Removed.
  11964. (sendHave): Removed.
  11965. (sendBitfield): Removed.
  11966. (sendRequest): Removed.
  11967. (sendPiece): Removed.
  11968. (sendPieceHeader): Removed.
  11969. (sendPieceData): Removed.
  11970. (sendMessage): New function.
  11971. (sendCancel): Removed.
  11972. * src/PeerInteractionCommand.cc
  11973. (PeerInteractionCommand): Call setUploadLimit.
  11974. (executeInternal): Call setUploadLimit.
  11975. Added the handling of "inProgress" state of handshake message.
  11976. Call sendBitfield() or sendAllowdFast() instead of deprecated
  11977. sendNow().
  11978. (keepAlive): Call addMessage and sendMessage instead of deprecated
  11979. sendNow().
  11980. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  11981. * src/TorrentMan.h
  11982. (PEER_ID_LENGTH): New definition.
  11983. (hasAllPieces): New function.
  11984. * src/TorrentMan.cc
  11985. (getMissingPiece): Added the handling of fast extension.
  11986. (cancelPiece): Call updatePiece().
  11987. (hasAllPieces): New function.
  11988. * src/PeerInteraction.h
  11989. (fastSet): New variable.
  11990. (getNewPieceAndSendInterest): Changed the return type to void.
  11991. (send): Renamed as sendMessages.
  11992. (deleteAllRequestSlot): Removed.
  11993. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11994. (cancelAllRequest): Removed all overloaded functions.
  11995. (deleteAllRequestSlot): Removed.
  11996. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11997. (rejectPieceMessageInQueue): New function.
  11998. (rejectAllPieceMessageInQueue): New function.
  11999. (onChoked): New function.
  12000. (isSendingMessageInProgress): New function.
  12001. (getCorrespondingRequestSlot): Changed its arguments.
  12002. (isInFastSet): New function.
  12003. (addFastSetIndex): New function.
  12004. (addRequests): New function.
  12005. (sendNow): Removed.
  12006. (trySendNow): Removed.
  12007. (sendBitfield): New function.
  12008. (sendAllowdFast): New function.
  12009. (createHaveAllMessage): New function.
  12010. (createHaveNoneMessage): New function.
  12011. (createRejectMessage): New function.
  12012. (createAllowedFastMessage): New function.
  12013. * src/PeerInteraction.cc
  12014. (send): Renamed as sendMessages.
  12015. (sendMessages): New function.
  12016. (MsgPushBack): New class.
  12017. (isSendingMessageInProgress): New function.
  12018. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12019. (rejectAllPieceMessageInQueue): New function.
  12020. Added the handling of fast extension.
  12021. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12022. (rejectPieceMessageInQueue): New function.
  12023. Added the handling of fast extension.
  12024. (deleteRequestSlot): Replaced for loop with std::find.
  12025. (onChoked): New function.
  12026. (deleteAllRequestSlot): Removed.
  12027. (abortPiece): Rewirtten.
  12028. (deleteTimeoutRequestSlot): Updated log messages.
  12029. (getCorrespondingRequestSlot): Changed its arguments.
  12030. (cancelAllRequest): Removed all overloaded functions.
  12031. (receiveHandshake): Added the check to see whether an incoming peer
  12032. supports fast extension.
  12033. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12034. PeerMessageUtil.
  12035. (createPeerMessage): Use create() of each message class instead of
  12036. PeerMessageUtil.
  12037. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12038. AllowedFastMessage were added.
  12039. (getNewPieceAndSendInterest): Changed its return value type to void.
  12040. Added the handling of fast extension.
  12041. (addRequests): New function.
  12042. (sendNow): Removed.
  12043. (sendHandshake): Rewritten.
  12044. (trySendNow): Removed.
  12045. (sendBitfield): New function.
  12046. (sendAllowdFast): New function.
  12047. (isInFastSet): New function.
  12048. (addFastSetIndex): New function.
  12049. (createRequestMessage): Use RequestMessage::create instead of
  12050. PeerMessageUtil.
  12051. (createCancelMessage): Use CancelMessage::create instead of
  12052. PeerMessageUtil.
  12053. (createPieceMessage): Use PieceMessage::create instead of
  12054. PeerMessageUtil.
  12055. (createHaveMessage): Use HaveMessage::create instead of
  12056. PeerMessageUtil.
  12057. (createChokeMessage): Use ChokeMessage::create instead of
  12058. PeerMessageUtil.
  12059. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12060. PeerMessageUtil.
  12061. (createInterestedMessage): Use InterestedMessage::create instead of
  12062. PeerMessageUtil.
  12063. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12064. of PeerMessageUtil.
  12065. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12066. PeerMessageUtil.
  12067. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12068. PeerMessageUtil.
  12069. (createHaveAllMessage): New function.
  12070. (createHaveNoneMessage): New function.
  12071. (createRejectMessage): New function.
  12072. (createAllowedFastMessage: New function.
  12073. * src/Util.h
  12074. (sha1Sum): New function.
  12075. (computeFastSet): New function.
  12076. * src/Util.cc
  12077. (sha1Sum): New function.
  12078. (computeFastSet): New function.
  12079. * src/Peer.h
  12080. (fastExtensionEnabled): New variable.
  12081. (fastSet): New variable.
  12082. (setAllBitfield): New function.
  12083. (setFastExtensionEnabled): New function.
  12084. (isFastExtensionEnabled): New function.
  12085. (addFastSetIndex): New function.
  12086. (getFastSet): New function.
  12087. (isInFastSet): New function.
  12088. (countFastSet): New function.
  12089. * src/Peer.cc
  12090. (isInFastSet): New function.
  12091. (addFastSetIndex): New function.
  12092. (setAllBitfield): New function.
  12093. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12094. sockets.
  12095. * src/PeerAbstractCommand.cc
  12096. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12097. and uploadLimit.
  12098. (execute): Changed the procedure of checking sockets. The upload speed
  12099. checking were added.
  12100. (setUploadLimit): New function.
  12101. (setUploadLimitCheck): New function.
  12102. * src/PeerAbstractCommand.h
  12103. (setUploadLimit): New function.
  12104. (setUploadLimitCheck): New function.
  12105. (uploadLimit): New variable.
  12106. (uploadLimitCheck): New variable.
  12107. To contact a tracker regularly:
  12108. * src/TrackerWatcherCommand.h (interval): New variable.
  12109. (checkPoint): New variable.
  12110. (TrackerWatcherCommand): Added interval argument.
  12111. * src/TrackerWatcherCommand.cc
  12112. (TrackerWatcherCommand): Initialized checkPoint.
  12113. (execute): Now a tracker is contacted in every specified period.
  12114. If peer list is not needed, send request with numwant=0.
  12115. * src/TrackerUpdateCommand.cc
  12116. (execute): Updated log messages.
  12117. * src/DownloadEngine.cc
  12118. (~DownloadEngine): Removed two asserts.
  12119. (waitData): Uncommented wfds. May be a bug fix.
  12120. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12121. * src/PeerInteractionCommand.h
  12122. (checkInactiveConnection): Removed.
  12123. * src/PeerInteractionCommand.cc
  12124. (executeInternal): Removed following function calls:
  12125. detectMessageFlooding(), checkLongTimePeerChoking and
  12126. checkInactiveConnection().
  12127. (checkInactiveConnection): Removed.
  12128. (detectMessageFlooding): Removed function call to
  12129. checkInactiveConnection().
  12130. * src/PeerMessageUtil.h
  12131. (createChokeMessage): New function. Overload.
  12132. (createUnchokeMessage): New function. Overload.
  12133. (createInterestedMessage): New function. Overload.
  12134. (createNotInterestedMessage): New function. Overload.
  12135. (createHaveMessage): New function. Overload.
  12136. (createBitfieldMessage): New function. Overload.
  12137. (createRequestMessage): New function. Overload.
  12138. (createCancelMessage): New function. Overload.
  12139. (createPieceMessage): New function. Overload.
  12140. (createKeepAliveMessage): New function. Overload.
  12141. * src/PeerMessageUtil.cc
  12142. (createChokeMessage): New function. Overload.
  12143. (createUnchokeMessage): New function. Overload.
  12144. (createInterestedMessage): New function. Overload.
  12145. (createNotInterestedMessage): New function. Overload.
  12146. (createHaveMessage): New function. Overload.
  12147. (createBitfieldMessage): New function. Overload.
  12148. (createRequestMessage): New function. Overload.
  12149. (createCancelMessage): New function. Overload.
  12150. (createPieceMessage): New function. Overload.
  12151. (createKeepAliveMessage): New function. Overload.
  12152. * src/SendMessageQueue.cc
  12153. (createRequestMessage): Use PeerMessageUtil.
  12154. (createCancelMessage): Use PeerMessageUtil.
  12155. (createPieceMessage): Use PeerMessageUtil.
  12156. (createHaveMessage): Use PeerMessageUtil.
  12157. (createChokeMessage): Use PeerMessageUtil.
  12158. (createUnchokeMessage): Use PeerMessageUtil.
  12159. (createInterestedMessage): Use PeerMessageUtil.
  12160. (createNotInterestedMessage): Use PeerMessageUtil.
  12161. (createBitfieldMessage): Use PeerMessageUtil.
  12162. (createKeepAliveMessage): Use PeerMessageUtil.
  12163. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12164. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12165. * src/PeerInteraction.h: New class.
  12166. * src/PeerInteraction.cc: New class.
  12167. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12168. Each peer message has its own class.
  12169. * src/PendingMessages.h: Removed.
  12170. * src/PendingMessages.cc: Removed. The sending process was moved to
  12171. each message class.
  12172. * src/RequestSlotMan.h: Removed.
  12173. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12174. SendMessageQueue.
  12175. * src/RequestMessage.h: New class.
  12176. * src/RequestMessage.cc: New class.
  12177. * src/CancelMessage.h: New class.
  12178. * src/CancelMessage.cc: New class.
  12179. * src/BitfieldMessage.h: New class.
  12180. * src/BitfieldMessage.cc: New class.
  12181. * src/ChokeMessage.h: New class.
  12182. * src/ChokeMessage.cc: New class.
  12183. * src/KeepAliveMessage.h: New class.
  12184. * src/KeepAliveMessage.cc: New class.
  12185. * src/PortMessage.h: New class.
  12186. * src/UnchokeMessage.h: New class.
  12187. * src/UnchokeMessage.cc: New class.
  12188. * src/PieceMessage.h: New class.
  12189. * src/PieceMessage.cc: New class.
  12190. * src/HaveMessage.h: New class.
  12191. * src/HaveMessage.cc: New class.
  12192. * src/BitfieldMessage.h: New class.
  12193. * src/BitfieldMessage.cc: New class.
  12194. * src/NotInterestedMessage.h: New class.
  12195. * src/NotInterestedMessage.cc: New class.
  12196. * src/InterestedMessage.h: New class.
  12197. * src/InterestedMessage.cc: New class.
  12198. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12199. (getSendMessageQueue): New function.
  12200. (setSendMessageQueue): New function.
  12201. * src/HandshakeMessage.cc: New class.
  12202. * src/PeerConnection.h (receiveMessage): Changed return value and
  12203. arguments.
  12204. (receiveHandshake): Changed return value and arguments.
  12205. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12206. here.
  12207. (receiveHandshake): Do not create handshake class here.
  12208. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12209. (piece): Removed.
  12210. (syncPiece): Removed.
  12211. (sendInterest): Removed.
  12212. (sendMessages): Removed.
  12213. (createRequestPendingMessage): Removed.
  12214. (checkPieceHash): Removed.
  12215. (erasePieceOnDisk): Removed.
  12216. (getNewPieceAndSendInterest): Removed.
  12217. (onGotNewPice): Removed.
  12218. (onGotWrongPiece): Removed.
  12219. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12220. Removed peerConnection, piece.
  12221. (~PeerInteractionCommand): Removed peerConnection.
  12222. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12223. (syncPiece): Moved to SendMessageQueue.
  12224. (decideChoking): Removed PendingMessage.
  12225. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12226. The action after receiving peer message was moved to each message
  12227. class.
  12228. (onGotNewPice): Moved to SendMessageQueue.
  12229. (onGotWrongPiece): Moved to SendMessageQueue.
  12230. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12231. (sendInterest): Moved to SendMessageQueue.
  12232. (createRequestPendingMessage): Removed.
  12233. (sendMessages): Moved to SendMessageQueue.
  12234. (onAbort): Use SendMessageQueue::abortPiece()
  12235. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12236. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12237. (checkPieceHash): Moved to SendMessageQueue.
  12238. (erasePieceOnDisk): Moved to SendMessageQueue.
  12239. * src/PeerMessageUtil.h
  12240. (createBitfieldMessage): Removed.
  12241. (createHaveMessage): Changed return value and arguments.
  12242. (createBitfieldMessage): Changed return value and arguments.
  12243. (createRequestCancelMessage): Removed.
  12244. (createPieceMessage): Changed return value and arguments.
  12245. (getShortIntParam): New function.
  12246. (checkIndex): Changed arguments.
  12247. (checkBegin): Changed arguments.
  12248. (checkLength): Changed arguments.
  12249. (checkPieceOffset): Removed.
  12250. (checkRange): New function.
  12251. (checkBitfield): Changed arguments.
  12252. (createPeerMessage): Removed.
  12253. (checkIntegrity): Removed.
  12254. (createHandshakeMessage): Changed arguments.
  12255. (createChokeMessage): New function.
  12256. (createUnchokeMessage): New function.
  12257. (createInterestedMessage): New function.
  12258. (createNotInterestedMessage): New function.
  12259. (createRequestMessage): New function.
  12260. (createCancelMessage): New function.
  12261. (createPortMessage): New function.
  12262. * src/PeerMessageUtil.cc
  12263. (createBitfieldMessage): Removed.
  12264. (createHaveMessage): Changed return value and arguments.
  12265. (createBitfieldMessage): Changed return value and arguments.
  12266. (createRequestCancelMessage): Removed.
  12267. (createPieceMessage): Changed return value and arguments.
  12268. (getShortIntParam): New function.
  12269. (checkIndex): Changed arguments.
  12270. (checkBegin): Changed arguments.
  12271. (checkLength): Changed arguments.
  12272. (checkPieceOffset): Removed.
  12273. (checkRange): New function.
  12274. (checkBitfield): Changed arguments.
  12275. (createPeerMessage): Removed.
  12276. (checkIntegrity): Removed.
  12277. (createHandshakeMessage): Changed arguments.
  12278. (createChokeMessage): New function.
  12279. (createUnchokeMessage): New function.
  12280. (createInterestedMessage): New function.
  12281. (createNotInterestedMessage): New function.
  12282. (createRequestMessage): New function.
  12283. (createCancelMessage): New function.
  12284. (createPortMessage): New function.
  12285. * src/PeerMessage.h
  12286. (id): Removed.
  12287. (index): Removed.
  12288. (begin): Removed.
  12289. (length): Removed.
  12290. (bitfield): Removed.
  12291. (bitfieldLength): Removed.
  12292. (block): Removed.
  12293. (blockLength): Removed.
  12294. (inProgress): New variable.
  12295. (cuid): New variable.
  12296. (peer): New variable.
  12297. (sendMessageQueue): New variable.
  12298. (logger): New variable.
  12299. (setBitfield): Removed.
  12300. (getBitfield): Removed.
  12301. (setBlock): Removed.
  12302. (getBlock): Removed.
  12303. (getBitfieldLength): Removed.
  12304. (getBlockLength): Removed.
  12305. (isInProgress): New function.
  12306. (toString): Made pure virtual.
  12307. (check): New function.
  12308. (send): New function.
  12309. (receivedAction): New function.
  12310. (getId): Made pure virtual.
  12311. (setId): Removed.
  12312. (getIndex): Removed.
  12313. (setIndex): Removed.
  12314. (getBegin): Removed.
  12315. (setBegin): Removed.
  12316. (getLength): Removed.
  12317. (setLength): Removed.
  12318. (getCuid): New function.
  12319. (setCuid): New function.
  12320. (getPeer): New function.
  12321. (setPeer): New function.
  12322. (getSendMessageQueue): New function.
  12323. (setSendMessageQueue): New function.
  12324. (ID): Removed.
  12325. * src/PeerMessage.cc
  12326. (setBitfield): Removed.
  12327. (setBlock): Removed.
  12328. (toString): Removed.
  12329. * src/TorrentMan.h
  12330. (getPieceLength): New function.
  12331. (getPieceLength): New function.
  12332. * src/SendMessageQueue.h
  12333. (REQUEST_TIME_OUT): New definition.
  12334. (RequestSlots): New definition.
  12335. (MessageQueue): New definition.
  12336. (requestSlotMan): Removed.
  12337. (pendingMessages): Removed.
  12338. (requestSlots): New variable.
  12339. (messageQueue): New variable.
  12340. (torrentMan): New variable.
  12341. (peerConnection): New variable.
  12342. (peer): New variable.
  12343. (piece): New variable.
  12344. (getNewPieceAndSendInterest): New function.
  12345. (createPeerMessage): New function.
  12346. (createHandshakeMessage): New function.
  12347. (send): Made private.
  12348. (setPeerMessageCommonProperty): New function.
  12349. (deleteAllRequestSlot): New function.
  12350. (deleteRequestMessageInQueue): New function.
  12351. (cancelAllRequest): Made private.
  12352. (cancelAllRequest): Made private.
  12353. (countRequestSlot): Made private.
  12354. (addPendingMessage): Removed.
  12355. (deletePendingPieceMessage): Removed.
  12356. (deletePendingRequestMessage): Removed.
  12357. (addMessage): New function.
  12358. (deletePieceMessageInQueue): New function.
  12359. (deleteTimeoutRequestSlot): Changed argument.
  12360. (deleteCompletedRequestSlot): Changed argument.
  12361. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12362. (getCorrespondingRequestSlot): New function.
  12363. (countPendingMessage): Removed.
  12364. (countMessageInQueue): New function.
  12365. (getTorrentMan): New function.
  12366. (getPeerConnection): New function.
  12367. (hasDownloadPiece): New function.
  12368. (getDownloadPiece): New function.
  12369. (setDownloadPiece): New function.
  12370. (syncPiece): New function.
  12371. (sendMessages): New function.
  12372. (sendNow): New function.
  12373. (trySendNow): New function.
  12374. (abortPiece): New function.
  12375. (sendHandshake): New function.
  12376. (receiveMessage): New function.
  12377. (receiveHandshake): New function.
  12378. (createRequestMessage): New function.
  12379. (createCancelMessage): New function.
  12380. (createPieceMessage): New function.
  12381. (createHaveMessage): New function.
  12382. (createChokeMessage): New function.
  12383. (createUnchokeMessage): New function.
  12384. (createInterestedMessage): New function.
  12385. (createNotInterestedMessage): New function.
  12386. (createBitfieldMessage): New function.
  12387. (createKeepAliveMessage): New function.
  12388. * src/SendMessageQueue.cc
  12389. (SendMessageQueue): Removed requestSlotMan.
  12390. Instantiated peerConnection here.
  12391. (~SendMessageQueue): Removed requestSlotMan.
  12392. Added deletion of peerConnection and the contents of messageQueue.
  12393. (send): Updated according to the change of messageQueue.
  12394. (addPendingMessage): Renamed to addMessage.
  12395. (addMessage): New function.
  12396. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12397. (deletePieceMessageInQueue): New function.
  12398. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12399. (deleteRequestMessageInQueue): New function.
  12400. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12401. here.
  12402. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12403. (...) was moved here.
  12404. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12405. moved here.
  12406. (deleteCompletedRequestSlot):
  12407. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12408. (getCorrespondingRequestSlot):
  12409. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12410. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12411. (countPendingMessage): Renamed to countMessageInQueue.
  12412. (countMessageInQueue): New function.
  12413. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12414. (receiveHandshake): New function.
  12415. (createHandshakeMessage): New function.
  12416. (receiveMessage): New function.
  12417. (createPeerMessage): New function.
  12418. (syncPiece): New function.
  12419. (getNewPieceAndSendInterest): New function.
  12420. (sendMessages): New function.
  12421. (sendNow): New function.
  12422. (trySendNow): New function.
  12423. (sendHandshake): New function.
  12424. (abortPiece): New function.
  12425. (getDownloadPiece): New function.
  12426. (getPeerMessageCommonProperty): New function.
  12427. (createRequestMessage): New function.
  12428. (createCancelMessage): New function.
  12429. (createPieceMessage): New function.
  12430. (createHaveMessage): New function.
  12431. (createChokeMessage): New function.
  12432. (createUnchokeMessage): New function.
  12433. (createInterestedMessage): New function.
  12434. (createNotInterestedMessage): New function.
  12435. (createBitfieldMessage): New function.
  12436. (createKeepAliveMessage): New function.
  12437. To add simple Content-Disposition support:
  12438. * src/HttpResponseCommand.h (determinFilename): New function.
  12439. * src/HttpResponseCommand.cc (executeInternal):
  12440. Use determinFilename(headers) instead of req->getFile() when comparing
  12441. filename.
  12442. (determinFilename): New function.
  12443. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12444. req->getFile().
  12445. (handleOtherEncoding): Use determinFilename(headers) instead of
  12446. req->getFile().
  12447. * src/Util.h (getContentDispositionFilename): New function.
  12448. * src/Util.cc (getContentDispositionFilename): New function.
  12449. * src/LogFactory.h (release): New function.
  12450. * src/LogFactory.cc (release): New function.
  12451. To fix a bug that causes out-of-bound exception when HTTP status
  12452. line is wrong:
  12453. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12454. size.
  12455. * src/common.h (Deleter): New class.
  12456. * src/SegmentMan.cc
  12457. (~SegmentMan): Added deletion of splitter and diskWriter.
  12458. * src/DownloadEngine.h
  12459. (Commands): Use deque.
  12460. (clearQueue): New function.
  12461. * src/DownloadEngine.cc
  12462. (~DownloadEngine): Added deletion of segmentMan.
  12463. (cleanQueue): New function.
  12464. * src/TorrentDownloadEngine.h
  12465. (TorrentDownloadEngine): The implementation was moved to
  12466. TorrentDownloadEngine.cc.
  12467. (~TorrentDownloadEngine): The implementation was moved to
  12468. TorrentDownloadEngine.cc.
  12469. * src/TorrentDownloadEngine.cc
  12470. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12471. * src/main.cc
  12472. (clearRequest): Removed.
  12473. (handler): Added deletion of e.
  12474. (torrentHandler): Added deletion of te.
  12475. (main): Do not share splitter.
  12476. Use Deleter instead of clearRequest.
  12477. Deletion of classes were updated.
  12478. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12479. * src/main.cc (main): Fixed typo.
  12480. * src/message.h: Fixed typo.
  12481. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12482. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12483. To add --select-file command-line option:
  12484. * src/Util.cc
  12485. (unfoldRange): New function.
  12486. (getNum): New function.
  12487. (unfoldSubRange): New function
  12488. * src/main.cc
  12489. (showUsage): Added help message.
  12490. (main): Added --select-file command-line option. Updated the layout of
  12491. file listing.
  12492. * src/common.h
  12493. (Integers): New definition.
  12494. * src/SocketCore.cc
  12495. (writeData): Removed timeout argument.
  12496. (readData): Removed timeout argument.
  12497. (peekData): Removed timeout argument.
  12498. * src/Socket.cc
  12499. (writeData): Removed timeout argument.
  12500. (readData): Removed timeout argument.
  12501. (peekData): Removed timeout argument.
  12502. * Release 0.4.1
  12503. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12504. To deploy upload rate based choking algorithm:
  12505. * src/PeerInteractionCommand.cc
  12506. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  12507. peer currently used.
  12508. (decideChoking): Deleted the choke/unchoke decision algorithm when
  12509. download completes. Simplified.
  12510. (receiveMessage): Updated.
  12511. * src/TorrentMan.h
  12512. (activePeers): New variable.
  12513. (addActivePeer): New function.
  12514. (getActivePeers): New function.
  12515. (deleteActivePeer): New function.
  12516. * src/TorrentMan.cc
  12517. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  12518. * src/PeerAbstractCommand.cc
  12519. (onAbort): Use peer->resetStatus().
  12520. * src/main.cc
  12521. (PeerChokeCommand.h): Included.
  12522. (main): Added the instance of ChokingCommand to the command queue.
  12523. * src/Peer.h
  12524. (amChoking): Renamed from amChocking
  12525. (chokingRequired): New variable.
  12526. (optUnchoking): New variable.
  12527. (deltaUpload): New variable.
  12528. (deltaDownload): New variable.
  12529. (addDeltaUpload): New function.
  12530. (resetDeltaUpload): New function.
  12531. (addDeltaDownload): New function.
  12532. (resetDeltaDownload): New function.
  12533. (addPeerUpload): Added a call to addDeltaUpload.
  12534. (addPeerDownload): Added a call to addDeltaDownload.
  12535. * src/Peer.cc
  12536. (shouldBeChoking): Renamed from shouldChoke.
  12537. (resetStatus): New function.
  12538. * src/PeerChokeCommand.h: New class.
  12539. * src/PeerChokeCommand.cc: New class.
  12540. To add lazy upload speed limiter:
  12541. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  12542. statistics calculation to TorrentDownloadEngine.
  12543. * src/TorrentConsoleDownloadEngine.cc
  12544. (sendStatistics): Renamed from printStatistics.
  12545. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  12546. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  12547. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  12548. * src/TorrentDownloadEngine.h: Added the variables for statistics
  12549. calculation.
  12550. (sendStatistics): New function as pure virtual function.
  12551. (getUploadSpeed): New function.
  12552. * src/TorrentDownloadEngine.cc
  12553. (initStatistics): New function.
  12554. (calculateSpeed): New function.
  12555. (calculateStatistics): New function.
  12556. * src/SendMessageQueue.h
  12557. (uploadLength): New variable.
  12558. (send): Added an argument.
  12559. (setUploadLimit): New function.
  12560. (getUploadLimit): New function.
  12561. * src/SendMessageQueue.cc
  12562. (send): Added upload speed limiter.
  12563. * src/prefs.h
  12564. (PREF_UPLOAD_LIMIT): New definition.
  12565. * src/PeerInteractionCommand.cc
  12566. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  12567. * src/main.cc
  12568. (main): Added --upload-limit option
  12569. For bug fixes:
  12570. * src/main.cc
  12571. (showUsage): Corrected --listen-port help
  12572. Other changes:
  12573. * src/TorrentMan.cc
  12574. (getPeer): Return nullPeer if connection is grather than
  12575. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  12576. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12577. To add some useful information to the exception message:
  12578. * src/SocketCore.cc : Updated messages.
  12579. * src/SegmentMan.cc :
  12580. * src/TorrentMan.cc : Updated messages.
  12581. * src/MultiDiskWriter.cc : Updated messages.
  12582. * src/Util.cc : Updated messages.
  12583. * src/AbstractDiskWriter.cc : Updated messages.
  12584. * src/PreAllocationDiskWriter.cc : Updated messages.
  12585. * src/message.cc : Added new messages. Updated some messages.
  12586. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  12587. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  12588. Updated threshold from 30 to 15.
  12589. * src/AbstractDiskWriter.h (filename): New variable.
  12590. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  12591. (createFile): Assigned filename.
  12592. * src/main.cc: Updated the help message for http-auth-scheme.
  12593. * Release 0.4.0
  12594. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12595. To add TrackerUpdateCommand with which replaces
  12596. CompactTrackerResponseProcessor:
  12597. * src/TrackerWatcherCommand.h (req): Removed.
  12598. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  12599. if the number of peer connections are less than 30.
  12600. * src/ByteArrayDiskWriter.h (readData): Implemented.
  12601. * src/SegmentMan.h (diskWriter): New function.
  12602. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  12603. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  12604. (main): Use TrackerUpdateCommand.
  12605. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  12606. (req): New variable.
  12607. (setTrackerResponseProcessor): Removed.
  12608. (getTrackerResponseProcessor): Removed.
  12609. (processTrackerResponse): Removed.
  12610. * src/DownloadEngine.h (diskWriter): Removed.
  12611. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  12612. to torrentMan->processTrackerResponse().
  12613. To add Util::expandBuffer:
  12614. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  12615. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  12616. * src/Util.h (expandBuffer): New function.
  12617. To fix the bug that causes segmentation fault when "-l ." is specified
  12618. in command-line option:
  12619. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  12620. (openFile): New function.
  12621. (closeFile): New function.
  12622. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  12623. (~SimpleLogger): Call closeFile();
  12624. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  12625. * src/main.cc (main): Added a check to see logger is configured
  12626. properly.
  12627. To enable HTTP authentication without specifying "--http-auth-scheme"
  12628. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  12629. * src/HttpConnection.cc (createRequest): Send Authorization header
  12630. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  12631. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  12632. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  12633. * src/Peer.cc (shouldChoke): Updated algorithm.
  12634. * src/message.h (EX_AUTH_FAILED): New definition.
  12635. (EX_FILE_OPEN): New definition.
  12636. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  12637. if status == 401.
  12638. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  12639. if req->isTorrent == true.
  12640. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  12641. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  12642. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  12643. (createFile): Updated message.
  12644. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12645. To add a readout of estimated remaining time to normal HTTP/FTP
  12646. downloads:
  12647. * src/ConsoleDownloadEngine.h (startup): New variable.
  12648. (startupLength): New variable.
  12649. (isStartupLengthSet): New variable.
  12650. (avgSpeed): New variable.
  12651. (eta): New variable.
  12652. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12653. estimated remaining time.
  12654. (initStatistics): Initialized newly added variables.
  12655. (calculateStatistics): Calculate average speed and estimated remaining
  12656. time.
  12657. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12658. * src/TrackerDownloadCommand.h: Removed.
  12659. * src/TrackerDownloadCommand.cc: Removed.
  12660. * src/TrackerInitCommand.h: Removed.
  12661. * src/TrackerInitCommand.cc: Removed.
  12662. * src/TrackerUpdateCommand.h: Removed.
  12663. * src/TrackerUpdateCommand.cc: Removed.
  12664. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12665. url written in TrackerInitCommand was moved here. Do not create
  12666. tracker request command if torrentMan->trackers != 0.
  12667. * src/CompactTrackerResponseProcessor.h: New class.
  12668. * src/CompactTrackerResponseProcessor.cc: New class.
  12669. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12670. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12671. Decoupled TorrentDownloadEngine from this.
  12672. * src/SegmentMan.h (init): New function.
  12673. * src/SegmentMan.cc (init): New function.
  12674. * src/TorrentMan.h (responseProcessor): New variable.
  12675. (trackers): New variable.
  12676. (setTrackerResponseProcessor): New function.
  12677. (getTrackerResponseProcessor): New function.
  12678. (processTrackerResponse): New function.
  12679. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12680. (processTrackerResponse): New function.
  12681. * src/main.cc (main): Use ByteArrayDiskWriter and
  12682. CompactTrackerResponseProcessor.
  12683. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12684. processTrackerResponse().
  12685. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12686. readout.
  12687. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12688. which indicates download has completed.
  12689. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12690. (closeFile): fd >= 0, not fd > 0
  12691. * src/main.cc (main): Added short cut for show-files.
  12692. Added short cut for torrent-file.
  12693. Added new command-line option listen-port.
  12694. Updated i18n messages.
  12695. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12696. To add LogFactory which creates singleton logger:
  12697. * src/LogFactory.h: New class.
  12698. * src/LogFactory.cc: New class.
  12699. * src/Command.h (logger): New variable.
  12700. (Constructor): Use LogFactory.
  12701. * src/AbstractCommand.cc: Use Command::logger
  12702. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12703. Use LogFactory.
  12704. * src/SegmentSplitter.h : Made logger protected.
  12705. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12706. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12707. * src/DownloadEngine.h : Made logger protected.
  12708. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12709. * src/PeerInteractionCommand.cc : Use Command::logger.
  12710. * src/HttpResponseCommand.cc : Use Command::logger.
  12711. * src/SegmentMan.h : Made logger private.
  12712. * src/TorrentMan.h : Made logger private.
  12713. * src/TorrentMan.cc : Use LogFactory.
  12714. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12715. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12716. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12717. Use LogFactory.
  12718. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12719. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12720. Use LogFactory.
  12721. * src/DownloadCommand.cc : Use Command::logger.
  12722. * src/PeerAbstractCommand.cc : Use Command::logger.
  12723. * src/PeerListenCommand.cc : Use Command::logger.
  12724. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12725. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12726. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12727. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12728. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12729. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12730. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12731. Use LogFactory.
  12732. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12733. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12734. Use LogFactory.
  12735. * src/main.cc (main): Use LogFactory.
  12736. * src/DiskAdaptor.h (logger): New variable.
  12737. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12738. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12739. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12740. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12741. parameter to a tracker request.
  12742. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12743. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12744. * src/main.cc (setSignalHander): New function.
  12745. (main): Added a handler for SIGTERM.
  12746. (handler): Updated message.
  12747. (torrentHandler): Updated message.
  12748. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12749. * src/TorrentConsoleDownloadEngine.cc
  12750. (onPartialDownloadingCompletes): Renamed as
  12751. onSelectiveDownloadingCompletes.
  12752. (onSelectiveDownloadingCompletes): Updated message.
  12753. To add DiskAdaptor which abstract DiskWriter family:
  12754. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  12755. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  12756. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  12757. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  12758. MultiDiskAdaptor.h.
  12759. (readFileEntry): Changed its arguments.
  12760. (setup): setupDiskWriter is merged into this function.
  12761. (setupDiskWriter): Removed.
  12762. (setFileFilter): New function.
  12763. (readFileEntryFromMetaInfoFile): Updated according to the changes
  12764. made in readFileEntry.
  12765. (getFilePath): Removed.
  12766. (getTempFilePath): Removed.
  12767. (getSegmentFilePath): Updated due to the removal of getFilePath.
  12768. (fixFilename): Removed.
  12769. (copySingleFile): Removed.
  12770. (splitMultiFile): Removed.
  12771. (deleteTempFile): Removed.
  12772. (setFileEntriesToDownload): Removed.
  12773. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  12774. (isSelectiveDownloadingMode): New function.
  12775. (setAllMultiFileRequestedState): Removed.
  12776. (finishPartialDownloadingMode): Renamed as
  12777. finishSelectiveDownloadingMode.
  12778. (finishSelectiveDownloadingMode): New function.
  12779. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  12780. (getSelectedTotalLength): New function.
  12781. (onDownloadComplete): Use diskAdaptor.
  12782. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  12783. (Range): Removed.
  12784. (setMultiFileEntries): Renamed as setFileEntries.
  12785. (setFileEntries): New function.
  12786. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  12787. (pieceLength): New variable.
  12788. * src/main.cc (printDownloadCompeleteMessage): New function.
  12789. (torrentHandler): Use diskAdaptor instead of diskWriter.
  12790. (main): Renamed torrent-show-files to show-files.
  12791. Rewritten file contents listing.
  12792. * src/TorrentMan.h (FileEntry): Removed.
  12793. (multiFileTopDir): Removed.
  12794. (multiFileEntries): Removed.
  12795. (diskWriter): Removed.
  12796. (diskAdaptor): New variable.
  12797. * src/DefaultDiskWriter.h (totalLength): New variable.
  12798. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  12799. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  12800. diskWriter.
  12801. * src/TorrentConsoleDownloadEngine.h
  12802. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  12803. (partialTotalLength): Renamed as selectedTotalLength.
  12804. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  12805. openExistingFile, otherwise call initAndOpenFile.
  12806. (closeFile): fd > 0, not fd != 0.
  12807. * src/DirectDiskAdaptor.h: New class.
  12808. * src/DirectDiskAdaptor.cc: New class.
  12809. * src/MultiDiskAdaptor.h: New class.
  12810. * src/MultiDiskAdaptor.cc: New class.
  12811. * src/CopyDiskAdaptor.h: New class.
  12812. * src/CopyDiskAdaptor.cc: New class.
  12813. * src/DiskAdaptor.h: New class.
  12814. * src/DiskAdaptor.cc: New class.
  12815. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  12816. (PREF_SHOW_FILES): New definition.
  12817. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12818. To add the ability to download multi torrent into respective files
  12819. directly:
  12820. * src/DiskWriter.h (openFile): New function.
  12821. (seek): Removed.
  12822. * src/MultiDiskWriter.h: New class.
  12823. * src/MultiDiskWriter.cc: New class.
  12824. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  12825. protected.
  12826. (openFile): New function.
  12827. * src/AbstractDiskWriter.cc (openFile): New function.
  12828. * src/prefs.h (V_FALSE): New definition.
  12829. (PREF_DIRECT_FILE_MAPPING): New definition.
  12830. * src/TorrentMan.h (setupDiskWriter): New function.
  12831. (setAllMultiFileRequestedState): New function.
  12832. (onDownloadComplete): New function.
  12833. * src/TorrentMan.cc : Included MultiDiskWriter.h
  12834. (setupDiskWriter): New function.
  12835. (getFilePath): Updated.
  12836. (getTempFilePath): Updated.
  12837. (getSegmentFilePath): Updated.
  12838. (fixFilename): Updated.
  12839. (deleteTempFile): Updated.
  12840. (setAllMultiFileRequestedState): New function.
  12841. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  12842. (finishPartialDownloadingMode): Reset requested flags.
  12843. (onDownloadComplete): New function.
  12844. * src/main.cc: Added --direct-file-mapping option.
  12845. Use TorrentMan::setupDiskWriter().
  12846. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  12847. onDownloadComplete().
  12848. To fix ETA bug:
  12849. * src/Util.h (difftvsec): New function.
  12850. * src/Util.cc (difftvsec): New function.
  12851. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  12852. type of "elapsed" instead of long long int.
  12853. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  12854. The updates of statistics takes place every 1 seconds.
  12855. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  12856. (calculateSpeed): Changed its argument signature.
  12857. * src/PeerMessage.cc (toString): Fixed message.
  12858. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12859. To print ETA:
  12860. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  12861. completion handling when dealing with
  12862. TorrentMan::isPartialDownloadingMode() == true.
  12863. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  12864. New function.
  12865. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  12866. (sessionDownloadLength): New variable.
  12867. (avgSpeed): New variable.
  12868. (eta): New variable.
  12869. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  12870. new variables: eta, avgSpeed, startup.
  12871. (calculateSpeed): Calculate average speed and ETA.
  12872. (printStatistics): Added ETA.
  12873. * src/Util.h (secfmt): New function.
  12874. * src/Util.cc (secfmt): New function.
  12875. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12876. To detect "keep alive" flooding:
  12877. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  12878. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  12879. variable: keepAliveCount.
  12880. (detectMessageFlooding): Added "keep alive" flooding detection.
  12881. (receiveMessage): Increase keepAliveCount when "keep alive" message
  12882. received.
  12883. To add the ability to download only specified files in multi-file
  12884. torrent:
  12885. * src/BitfieldMan.h (filterBitfield): New variable.
  12886. (filterEnabled): New variable.
  12887. (setFilterBit): New function.
  12888. (enableFilter): New function.
  12889. (disableFilter): New function.
  12890. (isFilterEnabled): New function.
  12891. (getFilteredTotalLength): New function.
  12892. (getCompletedLength): New function.
  12893. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  12894. filterBitfield, filterEnabled.
  12895. (CopyConstructor): Added filterBitfield and filterEnabled.
  12896. (operator==): Added filterBitfield and filterEnabled.
  12897. (Destructor): Added filterBitfield.
  12898. (getMissingIndex): Use filterBitfield.
  12899. (getMissingUnusedIndex): Use filterBitfield.
  12900. (getFirstMissingUnusedIndex): Use filterBitfield.
  12901. (getFirstMissingUnusedIndex): Use filterBitfield.
  12902. (getAllMissingIndexes): Use filterBitfield.
  12903. (countMissingBlock): Use filterBitfield.
  12904. (countBlock): Use filterBitfield.
  12905. (setBitInternal): Added new argument on.
  12906. (setUseBit): Use setBitInternal.
  12907. (unsetUseBit): Use setBitInternal.
  12908. (setBit): Use setBitInternal.
  12909. (unsetBit): Use setBitInternal.
  12910. (isAllBitSet): Use filterBitfield.
  12911. (setFilterBit): New function.
  12912. (addFilter): New function.
  12913. (enableFilter): New function.
  12914. (disableFilter): New function.
  12915. (clearFilter): New function.
  12916. (isFilterEnabled): New function.
  12917. (getFilteredTotalLength): New function.
  12918. (getCompletedLength): New function.
  12919. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  12920. Initalized newly added variables.
  12921. [FileEntry](offset): New variable.
  12922. [FileEntry](extracted): New variable.
  12923. [FileEntry](requested): New variable.
  12924. (readFileEntry): New function.
  12925. (option): New variable.
  12926. (splitMultiFile): Removed const qualifier.
  12927. (fixFilename): Removed const qualifier.
  12928. (readFileEntryFromMetaInfoFile): New function.
  12929. (finishPartialDownloadingMode): New function.
  12930. (isPartialDownloadingMode): New function.
  12931. (setFileEntriesToDownload): New function.
  12932. (getCompletedLength): New function.
  12933. (getPartialTotalLength): New function.
  12934. * src/TorrentMan.cc (readFileEntry): New function.
  12935. (setup): Use readFileEntry. If no-preallocation option is specified,
  12936. use DefaultDiskWriter.
  12937. (readFileEntryFromMetaInfoFile): New function.
  12938. (fixFilename): Removed const qualifier.
  12939. (splitMultiFile): Removed const qualifier.
  12940. (setFileEntriesToDownload): New function.
  12941. (isPartialDownloadingMode): New function.
  12942. (finishPartialDownloadingMode): New function.
  12943. (getCompletedLength): New function.
  12944. (getPartialTotalLength): New function.
  12945. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  12946. New variable.
  12947. (partialTotalLength): New variable.
  12948. (downloadLength): New variable.
  12949. (totalLength): New variable.
  12950. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  12951. Added log.
  12952. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  12953. partialTotalLength, downloadLength, totalLength.
  12954. (calculate): Calculate downloadLength and totalLength.
  12955. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  12956. * src/main.cc (addCommand): Changed argument signature.
  12957. (main): Added new variable: args. Added new option "torrent-show-files"
  12958. "no-preallocation". Usage is not updated yet.
  12959. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12960. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  12961. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12962. Attempt to add the ability to listing file entries in a .torrent file.
  12963. This feature is not yet complete.
  12964. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  12965. * src/TorrentMan.cc (getMultiFileEntries): New function.
  12966. (getName): New function.
  12967. * src/TorrentMan.h (getMultiFileEntries): New function.
  12968. (getName): New function.
  12969. * src/main.cc (main): Use above 2 funtion.
  12970. * Release 0.3.2
  12971. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12972. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  12973. (detectMessageFlooding): Updated threshold value.
  12974. (checkLongTimePeerChoking): Updated timeout value.
  12975. (getNewPieceAndSendInterest): Added debug log.
  12976. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  12977. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  12978. (getPeer): Updated.
  12979. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  12980. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  12981. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  12982. is localhost.
  12983. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  12984. * src/PendingMessage.cc (processMessage): Not to send piece message
  12985. if peer is not interested in the pieces localhost has.
  12986. * src/Peer.cc (shouldChoke): Updated.
  12987. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  12988. * src/Util.cc (isPowerOf): New function.
  12989. * src/Util.h (isPowerOf): New function.
  12990. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  12991. whether or not it is power of 2.
  12992. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12993. Added new class SendMessageQueue that includes PendingMessages and
  12994. RequestSlotMan.
  12995. * src/SendMessageQueue.h: New class.
  12996. * src/SendMessageQueue.cc: New class.
  12997. * src/PendingMessage.h: Added new member variable blockIndex and its
  12998. accessors.
  12999. (createRequestMessage): Updated.
  13000. * src/PendingMessage.cc (createRequestMessage): Updated.
  13001. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13002. SendMessageQueue.
  13003. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13004. (receiveMessage): Updated with SendMessageQueue.
  13005. (deletePendingPieceMessage): Removed.
  13006. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13007. (sendInterest): Updated with SendMessageQueue.
  13008. (createRequestPendingMessage): Updated with SendMessageQueue.
  13009. (sendMessages): Updated with SendMessageQueue.
  13010. (onAbort): Updated with SendMessageQueue.
  13011. (keepAlive): Updated with SendMessageQueue.
  13012. (beforeSocketCheck): Updated SendMessageQueue.
  13013. * src/PeerInteractionCommand (sendMessages): Shuffle
  13014. missingBLockIndexes before using it.
  13015. Added its own timeout for peer connection.
  13016. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13017. setter.
  13018. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13019. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13020. Added setTimeout() call.
  13021. (executeInternal): Added setTimeout() call.
  13022. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13023. Added timeout.
  13024. (isTimeoutDetected): Updated.
  13025. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13026. option.
  13027. Added *simple* message flooding checker.
  13028. * src/PeerInteractionCommand.cc (executeInternal):
  13029. Added detectMessageFlooding() call.
  13030. (detectMessageFlooding): New function.
  13031. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13032. (beforeSocketCheck): Added detectMessageFlooding() call.
  13033. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13034. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13035. Removed deletePendingPieceMessage(), getRequestSlot(),
  13036. deleteRequestSlot(), deleteAllRequestSlot().
  13037. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13038. Added checkLongTimePeerChoking() call.
  13039. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13040. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13041. if duplicate == false.
  13042. The parameter "uploaded" and "downloaded" in the tracker request are
  13043. the size since the client sent the "started" event to the tracker.
  13044. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13045. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13046. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13047. getSessionDownloadedSize(), getSessionUploadedSize().
  13048. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13049. getSessionUploadedSize() instead of getDownloadedSize(),
  13050. getUploadedSize().
  13051. * src/PendingMessage.cc (processMessage): Do not send request message
  13052. if the peer is choking the client.
  13053. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13054. less than interval.
  13055. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13056. * configure.in: Added gnutls support. Added several CPP macros.
  13057. * m4/openssl.m4: Added.
  13058. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13059. readData(), peekData(). Added gnutls support.
  13060. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13061. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13062. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13063. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13064. Instead, added a check for whether setup method has executed
  13065. successfully.
  13066. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13067. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13068. * src/Makefile.am: Updated.
  13069. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13070. using whether OpenSSL or gcrypt, depending on the result of configure
  13071. script.
  13072. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13073. messageDigest.h.
  13074. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13075. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13076. Fixed memory leak.
  13077. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13078. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13079. Removed instantiation of TrackerInitCommand. Instead,
  13080. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13081. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13082. ENABLE_SSL.
  13083. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13084. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13085. If a piece is already acquired by another command, delete the request
  13086. slots for the piece.
  13087. * src/TrackerUpdateCommand.cc (execute):
  13088. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13089. Added a check whether peer list is null.
  13090. Fixed the bug that causes sending completed event to the tracker
  13091. several times.
  13092. * src/TrackerInitCommand.cc (execute):
  13093. Fixed the bug that causes sending completed event to the tracker
  13094. several times.
  13095. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13096. by using messageDigest.h.
  13097. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13098. * PeerConnection.cc: Replaced log message "keep-alive" with
  13099. "keep alive".
  13100. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13101. localhost long time.
  13102. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13103. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13104. at most 100 failure entry from the list. If with duplicate = false,
  13105. MAX_PEER_LIST is not checked.
  13106. * PeerListenCommand.cc: Fixed the argument order of log message.
  13107. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13108. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13109. Added warn().
  13110. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13111. Implemented warn().
  13112. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13113. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13114. * Request.h: Added AFTER_COMPLETED event.
  13115. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13116. instead of downloaded size and progress(%) after download completes.
  13117. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13118. message to the peer if it is interested in what localhost has
  13119. downloaded.
  13120. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13121. destination instead of just renaming it.
  13122. * TorrentMan.cc: Added deleteTempFile().
  13123. * PeerAbstractCommand.cc: do not stop execution after download
  13124. completes. This makes localhost a seeder.
  13125. * Util.{h,cc}: Added fileCopy().
  13126. * PeerListenCommand.cc: do not stop execution after download completes.
  13127. This makes localhost a seeder.
  13128. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13129. Added TorrentMan::deleteTempFile() to torrentHandler.
  13130. Initialized the variable dir as ".".
  13131. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13132. Deleted renameSingleFile().
  13133. Added copySingleFile(), deleteTempFile().
  13134. * DownloadEngine.h: Added virtual function afterEachIteration().
  13135. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13136. in onEndOfRun() to afterEachIteration().
  13137. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13138. true.
  13139. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13140. In rangedFileCopy(), added try-catch block to properly close file
  13141. descriptors.
  13142. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13143. Added afterEachIteration(), isFilenameFixed().
  13144. * Peer.cc: Changed choking strategy.
  13145. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13146. * TrackerInitCommand.cc: Send completed event only once.
  13147. * DownloadEngine.cc: Added a call to afterEachIteration().
  13148. * TrackerUpdateCommand.cc: Do not stop execution after download
  13149. completes.
  13150. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13151. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13152. received from a tracker.
  13153. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13154. Decreased the number of failure peers to delete to 0(just comment out
  13155. the line).
  13156. * Release 0.3.1
  13157. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13158. * PeerInteractionCommand.cc: added a call to
  13159. TorrentMan::unadvertisePiece in Destructor.
  13160. * PeerInteractionCommand.cc: make have message sent immediately
  13161. if the size of pending message queue is zero.
  13162. * TorrentMan.cc: set the maximum size of peer list to 250.
  13163. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13164. to deque.
  13165. * Util.cc: fixed rangedFileCopy.
  13166. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13167. to Constructor. Also, moved digest cleanup to Destructor.
  13168. * MetaFileUtil.cc: fixed memory leak
  13169. * replaced std::vector with std::deque.
  13170. * AbstractCommand.cc: casted timeout value to long long int.
  13171. * ChunkedEncoding.cc: fixed memory leak.
  13172. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13173. * SleepCommand.cc: casted timeout value to long long int.
  13174. * Data.cc: fixed memory leak.
  13175. * Data.cc: fixed toLLInt().
  13176. * BitfieldMan.cc: fixed memory leak.
  13177. * TorrentMan.cc: initialized storeDir to ".".
  13178. * TorrentMan.cc: fixed memory leak.
  13179. * TorrentMan.cc: corrected file paths of splitted files.
  13180. * PeerAbstractCommand.cc: casted timeout to long long int.
  13181. * main.cc: added delete(req) and delete(te->diskWriter).
  13182. * RequestSlot.cc: casted timeout value to long long int.
  13183. * Request.cc: fixed memory leak.
  13184. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13185. have the piece.
  13186. * Peer.{h,cc}: added hasPiece(int index).
  13187. * main.cc: corrected addCommand.
  13188. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13189. * BitTorrent protocol support added.
  13190. * Release 0.3.0
  13191. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13192. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13193. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13194. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13195. decoding did not work properly.
  13196. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13197. * DownloadEngine.h: included sys/time.h
  13198. * DownloadEngine.cc: remove sys/time.h
  13199. * Makefile.am (SUBDIRS): Add intl.
  13200. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13201. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13202. * main.cc: correct help message for --http-auth-scheme.
  13203. * main.cc: changed e-mail address for bug reports.
  13204. * ja.po: added japanese translation.
  13205. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13206. * SimpleLogger.cc: flush log file instead of stdout.
  13207. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13208. * main.cc: Fixed command-line option: max-tries
  13209. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13210. does not equal to seg.sp.
  13211. * DownloadCommand.cc: If EOF is got from the server and the total size
  13212. of file is not zero, then throw DlRetryEx.
  13213. * main.cc: Set the minium value of min-segment-size to 1024.
  13214. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13215. fails because of a regression since 0.2.0 release.
  13216. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13217. * HttpConnection.cc:
  13218. * common.h: defined the user agent name as macro
  13219. * DownloadEngine.{h, cc}:
  13220. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13221. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13222. * main.cc: Download complete/abort message is now generated by main.
  13223. * Makefile.am (SUBDIRS): Add m4.
  13224. (ACLOCAL_AMFLAGS): New variable.
  13225. (EXTRA_DIST): New variable.
  13226. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13227. * gettext: added gettext functionality
  13228. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13229. * AbstractCommand.cc:
  13230. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13231. unregister its cuid from SegmentMan.
  13232. * DownloadEngine.cc: .aria2 file was written when a downloading
  13233. failed with errors.
  13234. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13235. Added "User-Agent" header to CONNECT proxy request.
  13236. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13237. properly.
  13238. * Logger.h:
  13239. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13240. * ChunkedEncoding.cc: Added #include directive for strings.h
  13241. * Release 0.2.1
  13242. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13243. * Util.{h,cc}: added startsWith().
  13244. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13245. Util::endsWith().
  13246. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13247. * common.h: added #include directive of limit.h.
  13248. * DownloadEngine.cc: added #include directive of sys/time.h and
  13249. algorithm.
  13250. * Exception.h: added #include directive of stdio.h.
  13251. * AbstractCommand.h: added #include directive of sys/time.h.
  13252. * DownloadCommand.h: added #include directive of sys/time.h.
  13253. * *.h: added #include directive of common.h to all base classes.
  13254. subclasses' one was removed.
  13255. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13256. does not define these macros.
  13257. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13258. * Release 0.2.0
  13259. * main.cc:
  13260. * HttpInitiateConnectionCommand.{h,cc}:
  13261. * prefs.h:
  13262. * HttpConnection.{h,cc}: added --http-proxy-method option.
  13263. We can now use GET command in http proxy.
  13264. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13265. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  13266. that splits slowest segment of SegmentMan::commands vector.
  13267. This is the default split algorithm of aria2.
  13268. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  13269. that splits first segment of SegmentMan::commands vector.
  13270. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  13271. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  13272. * Segment.h:
  13273. * SegmentMan.cc: Added speed field to Segment.h
  13274. * main.cc: -s option now affects all URLs in command-line arguemtns.
  13275. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  13276. * message.h: Change file size related %d to %lld.
  13277. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13278. * FtpInitiateConnectionCommand.{h,cc}:
  13279. * FtpNegotiationCommand.{h,cc}:
  13280. * FtpDownloadCommand.{h,cc}:
  13281. * FtpConnection.{h,cc}: Added FTP support
  13282. * SimpleLogger.cc: Log message now includes time information.
  13283. * main.cc: The value of --http-auth-scheme option is chagned from
  13284. 'BASIC' to 'basic'
  13285. * main.cc: Added --timeout command-line option.
  13286. * main.cc: Added --min-segment-size command-line option.
  13287. * main.cc: Added --max-retries command-line option.
  13288. * prefs.h: option string constants are now defined in prefs.h
  13289. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13290. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  13291. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  13292. with version 0.1.0's one.
  13293. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13294. * configure.in: Added --enable-ssl option to configure script.
  13295. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  13296. cannot permit absoluteURI as Request-URI.
  13297. * HttpConnection.cc: Added Referer support.
  13298. * main.cc: Added referer command-line option.
  13299. * main.cc: Added rety-wait command-line option.
  13300. * Exception.h: Fixed formating bug in Exception::setMsg()
  13301. * SocketCore.{h,cc}:
  13302. * Socket.{h, cc}:
  13303. * Request.cc:
  13304. * InitiateConnectionCommandFactory.cc:
  13305. * HttpRequestCommand.cc: Added HTTPS support.
  13306. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  13307. for SocketCore.
  13308. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  13309. size is wrong
  13310. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  13311. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  13312. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  13313. * Release 0.1.0