ChangeLog 482 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091
  1. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Fixed the bug that the average speed is wrong in
  3. http/ftp/BitTorrent integrated download. Only the download bytes
  4. in BitTorrent were considered.
  5. * src/RequestGroup.cc
  6. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  7. Choose port for BitTorrent/DHT randomly from the specified range.
  8. * src/DHTConnectionImpl.cc
  9. * src/PeerListenCommand.cc
  10. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  11. Send HTTP Authorization header only if it is requested by the
  12. server(response 401). There are some exceptions. The authorization
  13. header for proxy is always sent if it is available without request
  14. by the server. If username/password is specified in the URI, it
  15. is immediately sent to the server without request by the server.
  16. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  17. SharedHandle<AuthConfig>().
  18. NetrcAuthResolver::resolveAuthConfig() returns
  19. SharedHandle<AuthConfig>() if no AuthConfig is available.
  20. * src/AbstractAuthResolver.cc
  21. * src/AbstractProxyRequestCommand.cc
  22. * src/AuthConfigFactory.cc
  23. * src/AuthConfigFactory.h
  24. * src/HttpConnection.cc
  25. * src/HttpRequest.cc
  26. * src/HttpRequest.h
  27. * src/HttpResponse.cc
  28. * src/HttpResponseCommand.cc
  29. * src/HttpSkipResponseCommand.cc
  30. * test/AuthConfigFactoryTest.cc
  31. * test/HttpRequestTest.cc
  32. * test/HttpResponseTest.cc
  33. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  34. Remove leading "--" from help keyword and a substring after "="
  35. from help keyword, so that one can query options by '-h--max-' or
  36. '-hmax-peers=10'.
  37. * src/option_processing.cc
  38. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  39. Rewritten PStringVisitor and its implementation.
  40. * src/PStringBuildVisitor.cc
  41. * src/PStringBuildVisitor.h
  42. * src/PStringDatum.h
  43. * src/PStringNumLoop.h
  44. * src/PStringSegment.cc
  45. * src/PStringSegment.h
  46. * src/PStringSelect.h
  47. * src/PStringVisitor.h
  48. * src/download_helper.cc
  49. * test/PStringBuildVisitorTest.cc
  50. * test/ParameterizedStringParserTest.cc
  51. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  52. Persist connection between the built-in HTTP server and a client
  53. if a client supports keep-alive. Fixed the bug that aria2 exits
  54. when the HTTP server receives EOF from a client.
  55. * src/HttpServer.cc
  56. * src/HttpServer.h
  57. * src/HttpServerCommand.cc
  58. * src/HttpServerCommand.h
  59. * src/HttpServerResponseCommand.cc
  60. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  61. Added experimental built-in HTTP server. Currently, when a client
  62. accesses to the server, it responds with the current download
  63. progress. By default, it is disabled. To enable the server, give
  64. --enable-http-server option. To change the default port number
  65. for the server to listen to, use --http-server-listen-port option.
  66. The response HTML is very simple and refreshes it self each 1
  67. second. Because of this refresh, you see flicker in normal web
  68. browser such as Firefox. I recommend to use console-based browser
  69. such as elinks, w3m. To connect to the server, run 'elinks
  70. http://localhost:6800/' while running aria2. Please replace port
  71. number '6800'(which is default) with your preference.
  72. * src/DownloadEngineFactory.cc
  73. * src/HttpHeader.cc
  74. * src/HttpHeader.h
  75. * src/HttpHeaderProcessor.cc
  76. * src/HttpHeaderProcessor.h
  77. * src/HttpListenCommand.cc
  78. * src/HttpListenCommand.h
  79. * src/HttpServer.cc
  80. * src/HttpServer.h
  81. * src/HttpServerCommand.cc
  82. * src/HttpServerCommand.h
  83. * src/HttpServerResponseCommand.cc
  84. * src/HttpServerResponseCommand.h
  85. * src/Makefile.am
  86. * src/OptionHandlerFactory.cc
  87. * src/Util.cc
  88. * src/Util.h
  89. * src/help_tags.h
  90. * src/option_processing.cc
  91. * src/prefs.cc
  92. * src/prefs.h
  93. * src/usage_text.h
  94. * test/HttpHeaderProcessorTest.cc
  95. * test/UtilTest.cc
  96. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  97. Removed.
  98. * src/CheckIntegrityMan.cc
  99. * src/FileAllocationMan.cc
  100. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Made (piece) hash check sequential for each RequestGroup because
  102. simultaneous hash check is slower than sequential execution.
  103. * src/CheckIntegrityCommand.cc
  104. * src/CheckIntegrityDispatcherCommand.cc
  105. * src/CheckIntegrityDispatcherCommand.h
  106. * src/CheckIntegrityMan.h
  107. * src/ConsoleStatCalc.cc
  108. * src/DownloadCommand.cc
  109. * src/DownloadEngine.cc
  110. * src/DownloadEngine.h
  111. * src/DownloadEngineFactory.cc
  112. * src/Makefile.am
  113. * src/Makefile.in
  114. * src/RequestGroup.cc
  115. * src/StatCalc.h
  116. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  117. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  118. SequentialDispatcherCommand.
  119. * src/FileAllocationDispatcherCommand.cc
  120. * src/SequentialDispatcherCommand.h
  121. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. Rewritten FileAllocationDispatcherCommand using brand new
  123. SequentialDispatcherCommand.
  124. * src/DownloadEngineFactory.cc
  125. * src/FileAllocationCommand.cc
  126. * src/FileAllocationDispatcherCommand.cc
  127. * src/FileAllocationDispatcherCommand.h
  128. * src/Makefile.am
  129. * src/SequentialDispatcherCommand.h
  130. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  131. Replaced FileAllocationMan with
  132. SequentialPicker<FileAllocationEntry>.
  133. * src/BtCheckIntegrityEntry.cc
  134. * src/ConsoleStatCalc.cc
  135. * src/DownloadEngine.cc
  136. * src/DownloadEngine.h
  137. * src/DownloadEngineFactory.cc
  138. * src/FileAllocationCommand.cc
  139. * src/FileAllocationDispatcherCommand.cc
  140. * src/FileAllocationMan.h
  141. * src/Makefile.am
  142. * src/SequentialPicker.h
  143. * src/StatCalc.h
  144. * src/StreamCheckIntegrityEntry.cc
  145. * test/Makefile.am
  146. * test/SequentialPickerTest.cc
  147. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  148. Added doc for adaptive URI selector.
  149. * doc/aria2c.1.txt
  150. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  151. Added doc for adaptive URI selector.
  152. * src/usage_text.h
  153. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  154. Added doc for --bt-max-peers option.
  155. * doc/aria2c.1.txt
  156. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  157. Added doc for --bt-hash-check-seed option.
  158. * doc/aria2c.1.txt
  159. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  160. Documented exit codes.
  161. * doc/aria2c.1.txt
  162. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  163. Added --bt-max-peers option to specify the maximum number of peers
  164. per torrent. 0 means unlimited number of peers.
  165. * src/ActivePeerConnectionCommand.cc
  166. * src/BtRuntime.h
  167. * src/DefaultPeerStorage.cc
  168. * src/DefaultPeerStorage.h
  169. * src/OptionHandlerFactory.cc
  170. * src/RequestGroup.cc
  171. * src/option_processing.cc
  172. * src/prefs.cc
  173. * src/prefs.h
  174. * src/usage_text.h
  175. * test/DefaultPeerStorageTest.cc
  176. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  177. Added --bt-hash-check-seed option. If true is given to this
  178. option, after hash check using --check-integrity option and file
  179. is complete, continue to seed file. If you want to check file and
  180. download it only when it is damaged or incomplete, set this option
  181. to false. This option has effect only on BitTorrent download.
  182. The default value is true(This is the same behavior with the
  183. previous release).
  184. * src/BtCheckIntegrityEntry.cc
  185. * src/OptionHandlerFactory.cc
  186. * src/option_processing.cc
  187. * src/prefs.cc
  188. * src/prefs.h
  189. * src/usage_text.h
  190. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  191. Updated copyright year.
  192. * src/version_usage.cc
  193. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  194. Rewritten the usage text for --bt-request-peer-speed-limit option.
  195. * doc/aria2c.1.txt
  196. * src/usage_text.h
  197. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  198. Made the max value of split option unlimited.
  199. * doc/aria2c.1.txt
  200. * src/OptionHandlerFactory.cc
  201. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  202. Fixed compile warning/error.
  203. * src/DownloadResult.h
  204. * src/HttpDownloadCommand.cc
  205. * src/ServerStat.cc
  206. * test/RequestGroupTest.cc
  207. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  208. Added --event-poll option to select the method for polling events.
  209. The available methods are "select" and "epoll". "epoll" is
  210. available on Linux only. The earlier release has the compile
  211. option to choose from these methods.
  212. * configure.ac
  213. * src/RequestGroupMan.cc
  214. * src/OptionHandlerFactory.cc
  215. * src/EpollEventPoll.h
  216. * src/StreamFileAllocationEntry.cc
  217. * src/a2io.h
  218. * src/SelectEventPoll.h
  219. * src/option_processing.cc
  220. * src/prefs.h
  221. * src/EpollEventPoll.cc
  222. * src/EventPoll.h
  223. * src/SocketCore.h
  224. * src/Makefile.am
  225. * src/main.cc
  226. * src/DownloadEngine.h
  227. * src/SelectEventPoll.cc
  228. * src/DownloadEngine.cc
  229. * src/SocketCore.cc
  230. * src/DownloadEngineFactory.cc
  231. * src/Makefile.in
  232. * src/prefs.cc
  233. * src/usage_text.h
  234. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  235. Included RecoverableException.h from main.cc
  236. * src/main.cc
  237. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  238. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  239. now returns last error encountered in the HTTP/FTP downloads as a
  240. exit status value. If all downloads finished successfully, aria2
  241. returns 0. The error code is defined in src/DownloadResult.h.
  242. The error occurred in the download currently in progress is not
  243. reported as a last error. If no error has encountered but there
  244. are in progress or waiting downloads, aria2 returns 7.
  245. * src/AbstractCommand.cc
  246. * src/DlAbortEx.h
  247. * src/DlRetryEx.h
  248. * src/DownloadCommand.cc
  249. * src/DownloadFailureException.h
  250. * src/DownloadResult.h
  251. * src/FtpNegotiationCommand.cc
  252. * src/HttpSkipResponseCommand.cc
  253. * src/Makefile.am
  254. * src/MultiUrlRequestInfo.cc
  255. * src/MultiUrlRequestInfo.h
  256. * src/RecoverableException.h
  257. * src/RequestGroup.cc
  258. * src/RequestGroup.h
  259. * src/RequestGroupMan.cc
  260. * src/RequestGroupMan.h
  261. * src/URIResult.cc
  262. * src/URIResult.h
  263. * src/main.cc
  264. * src/option_processing.cc
  265. * test/RequestGroupTest.cc
  266. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  267. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  268. patch adds AdaptiveURISelector, which selects one of the bests
  269. mirrors for first and reserved connections. For supplementary
  270. ones, it returns mirrors which has not been tested yet, and if
  271. each of them already tested, returns mirrors which has to be
  272. tested again. Otherwise, it doesn't return anymore mirrors.
  273. * src/AdaptiveURISelector.cc
  274. * src/AdaptiveURISelector.h
  275. * src/FtpNegotiationCommand.cc
  276. * src/HttpResponseCommand.cc
  277. * src/Makefile.am
  278. * src/Makefile.in
  279. * src/OptionHandlerFactory.cc
  280. * src/RequestGroup.cc
  281. * src/RequestGroup.h
  282. * src/RequestGroupMan.cc
  283. * src/ServerStat.cc
  284. * src/ServerStat.h
  285. * src/ServerStatMan.cc
  286. * src/SpeedCalc.cc
  287. * src/URISelector.h
  288. * src/prefs.cc
  289. * src/prefs.h
  290. * test/RequestGroupManTest.cc
  291. * test/ServerStatManTest.cc
  292. * test/ServerStatTest.cc
  293. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  294. Fixed unit test error.
  295. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  296. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. * Release 1.1.2
  298. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  299. Updated Russian translation. Thanks to the translators.
  300. * po/ru.po
  301. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  302. Added the description of --use-head option to man page.
  303. * doc/aria2c.1.txt
  304. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Bump up version number to 1.1.2
  306. * configure.ac
  307. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  308. Added --use-head option to toggle whether HEAD method should be
  309. used in the first HTTP request. By default aria2 uses HEAD method
  310. as the first request. When the server doesn't recognize HEAD, then
  311. give aria2 --use-head=false to force aria2 to use GET method
  312. instead.
  313. * src/OptionHandlerFactory.cc
  314. * src/RequestGroupMan.cc
  315. * src/option_processing.cc
  316. * src/prefs.cc
  317. * src/prefs.h
  318. * src/usage_text.h
  319. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  320. Fixed the bug that BitTorrent download doesn't finish when REJECT
  321. message is received before CHOKE message. The old implementation
  322. doen't clear the use-bit of the piece when recieved REJECT
  323. message.
  324. * src/DefaultBtMessageDispatcher.cc
  325. * test/DefaultBtMessageDispatcherTest.cc
  326. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  327. * Release 1.1.1
  328. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  329. Bump up version number to 1.1.1.
  330. * configure.ac
  331. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  332. Fixed the bug that --summary-interval=0 doesn't work. The summary
  333. is printed repeatedly.
  334. * src/ConsoleStatCalc.cc
  335. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. * Release 1.1.0
  337. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  338. Added ifdef clause for conditional compilation.
  339. * src/main.cc
  340. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  341. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  342. translations. Thanks to all translators.
  343. * po/ja.po
  344. * po/ru.po
  345. * po/uk.po
  346. * po/zh_CN.po
  347. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  348. Added the preceding ">>> " before the message "Printing the
  349. contents of file..." to make the output more readable.
  350. * src/main.cc
  351. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  352. Added try-catch block in the loop in showFiles() to continue the
  353. operation even if the exception occurred in one file.
  354. * src/main.cc (showFiles)
  355. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Made messages in showFiles() translatable.
  357. * po/aria2.pot
  358. * src/main.cc
  359. * src/message.h
  360. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  361. Print the contents of Torrent/Metalink files are printed without
  362. -T/-M options.
  363. * src/main.cc
  364. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  365. Escaped '--' with '\--'
  366. * README
  367. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  368. Updated "How to build" section in README. Mentioned about
  369. --with-ca-bundle compile option.
  370. * README
  371. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. Bump up version number to 1.1.0.
  373. * configure.ac
  374. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  375. Added a note for --dht-listen-port option.
  376. * doc/aria2c.1.txt
  377. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  378. Update doc for --realtime-chunk-checksum option.
  379. * doc/aria2c.1.txt
  380. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  381. Update doc for --realtime-chunk-checksum option.
  382. * src/usage_text.h
  383. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  384. Updated French, Japanese, Russian and Ukrainian translations.
  385. Thanks to all translators.
  386. * po/fr.po
  387. * po/ja.po
  388. * po/ru.po
  389. * po/uk.po
  390. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Renamed aria2c.pot to aria2.pot
  392. * po/aria2.pot
  393. * po/aria2c.pot: Removed.
  394. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  395. Removed MetaEntry.h
  396. * src/Makefile.am
  397. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  398. Rename file by appending digits if a local file exists and its
  399. file size is larger than that of remote file with --continue
  400. option. The old implementation just throws exception in such case.
  401. * src/RequestGroup.cc
  402. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  403. Fixed the bug that download progress summary is not printed in the
  404. interval specified by the option.
  405. * src/ConsoleStatCalc.cc
  406. * src/ConsoleStatCalc.h
  407. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  408. Fixed compiler warning
  409. * src/Cookie.cc
  410. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  411. Fixed the cookie implementation based on RFC2965.
  412. Now if a value in domain field is not started with dot, then
  413. prepend dot. That means a cookie with domain=sf.net is sent to
  414. wiki.sf.net.
  415. * src/Cookie.cc
  416. * test/CookieParserTest.cc
  417. * test/CookieStorageTest.cc
  418. * test/CookieTest.cc
  419. * test/NsCookieParserTest.cc
  420. * test/Sqlite3MozCookieParserTest.cc
  421. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  422. Fixed the bug that causes corrupted downloads if HTTP pipelining
  423. is enabled and the server doesn't support keep-alive.
  424. * src/AbstractCommand.cc
  425. * src/DownloadCommand.cc
  426. * src/HttpDownloadCommand.cc
  427. * src/HttpDownloadCommand.h
  428. * src/HttpResponseCommand.cc
  429. * src/Request.cc
  430. * src/Request.h
  431. * test/RequestTest.cc
  432. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  433. Removed Dictionary/List/Data and its related classes.
  434. * src/BencodeVisitor.cc: Removed.
  435. * src/BencodeVisitor.h: Removed.
  436. * src/Data.cc: Removed.
  437. * src/Data.h: Removed.
  438. * src/Dictionary.cc: Removed.
  439. * src/Dictionary.h: Removed.
  440. * src/List.cc: Removed.
  441. * src/List.h: Removed.
  442. * src/Makefile.am
  443. * src/MetaEntry.h: Removed.
  444. * src/MetaEntryVisitor.h: Removed.
  445. * src/MetaFileUtil.cc: Removed.
  446. * src/MetaFileUtil.h: Removed.
  447. * test/BencodeVisitorTest.cc: Removed.
  448. * test/DataTest.cc: Removed.
  449. * test/DictionaryTest.cc: Removed.
  450. * test/ListTest.cc: Removed.
  451. * test/Makefile.am
  452. * test/MetaFileUtilTest.cc: Removed.
  453. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  454. Removed include of MetaEntry.h
  455. * test/DHTMessageTrackerEntryTest.cc
  456. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  457. Use BDE instead of Dictionary/List/Data.
  458. * src/AnnounceList.cc
  459. * src/AnnounceList.h
  460. * test/AnnounceListTest.cc
  461. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  462. Use BDE instead of Dictionary/List/Data.
  463. * src/DHTAbstractMessage.cc
  464. * src/DHTAbstractMessage.h
  465. * src/DHTAnnouncePeerMessage.cc
  466. * src/DHTAnnouncePeerMessage.h
  467. * src/DHTAnnouncePeerReplyMessage.cc
  468. * src/DHTAnnouncePeerReplyMessage.h
  469. * src/DHTFindNodeMessage.cc
  470. * src/DHTFindNodeMessage.h
  471. * src/DHTFindNodeReplyMessage.cc
  472. * src/DHTFindNodeReplyMessage.h
  473. * src/DHTGetPeersMessage.cc
  474. * src/DHTGetPeersMessage.h
  475. * src/DHTGetPeersReplyMessage.cc
  476. * src/DHTGetPeersReplyMessage.h
  477. * src/DHTMessageFactory.h
  478. * src/DHTMessageFactoryImpl.cc
  479. * src/DHTMessageFactoryImpl.h
  480. * src/DHTMessageReceiver.cc
  481. * src/DHTMessageTracker.cc
  482. * src/DHTMessageTracker.h
  483. * src/DHTPingMessage.cc
  484. * src/DHTPingMessage.h
  485. * src/DHTPingReplyMessage.cc
  486. * src/DHTPingReplyMessage.h
  487. * src/DHTQueryMessage.cc
  488. * src/DHTQueryMessage.h
  489. * src/DHTResponseMessage.cc
  490. * src/DHTResponseMessage.h
  491. * test/DHTAnnouncePeerMessageTest.cc
  492. * test/DHTAnnouncePeerReplyMessageTest.cc
  493. * test/DHTFindNodeMessageTest.cc
  494. * test/DHTFindNodeReplyMessageTest.cc
  495. * test/DHTGetPeersMessageTest.cc
  496. * test/DHTGetPeersReplyMessageTest.cc
  497. * test/DHTMessageFactoryImplTest.cc
  498. * test/DHTMessageTrackerTest.cc
  499. * test/DHTPingMessageTest.cc
  500. * test/DHTPingReplyMessageTest.cc
  501. * test/MockDHTMessageFactory.h
  502. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  503. Added tests the case where length < 0 is specified.
  504. * test/BencodeTest.cc
  505. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Fixed memory leak in decoderawstring()
  507. * src/bencode.cc
  508. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  509. Added missing #ifdef guard. Added uc() function for String and
  510. removeKey() for Dict.
  511. * src/bencode.cc
  512. * src/bencode.h
  513. * test/BencodeTest.cc
  514. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  515. Use BDE instead of Dictionary/List/Data.
  516. * src/HandshakeExtensionMessage.cc
  517. * src/HandshakeExtensionMessage.h
  518. * test/HandshakeExtensionMessageTest.cc
  519. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Added --max-overall-upload-limit option. This option limits the
  521. overall upload speed. Stated in help message that the existing
  522. --max-upload-limit option limits the upload speed per each
  523. torrent. Man page is also updated.
  524. * doc/aria2c.1.txt
  525. * src/DefaultBtMessageDispatcher.cc
  526. * src/DefaultBtMessageDispatcher.h
  527. * src/OptionHandlerFactory.cc
  528. * src/PeerInteractionCommand.cc
  529. * src/option_processing.cc
  530. * src/prefs.cc
  531. * src/prefs.h
  532. * src/usage_text.h
  533. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  534. Use BDE instead of Dictionary/List/Data classes.
  535. * src/CompactPeerListProcessor.cc
  536. * src/CompactPeerListProcessor.h
  537. * src/DefaultBtAnnounce.cc
  538. * src/DefaultBtContext.cc
  539. * src/DefaultBtContext.h
  540. * src/DefaultPeerListProcessor.cc
  541. * src/DefaultPeerListProcessor.h
  542. * src/DelegatingPeerListProcessor.cc
  543. * src/DelegatingPeerListProcessor.h
  544. * src/PeerListProcessor.h
  545. * src/UTPexExtensionMessage.cc
  546. * src/Util.h
  547. * src/message.h
  548. * test/DefaultBtContextTest.cc
  549. * test/DefaultPeerListProcessorTest.cc
  550. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  551. Added bencode helper functions and BDE class.
  552. They will replace MetaFileUtil and Dictionary/List/Data classes.
  553. * src/Makefile.am
  554. * src/bencode.cc
  555. * src/bencode.h
  556. * test/BencodeTest.cc
  557. * test/Makefile.am
  558. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  559. Fixed the bug that bad URI is sent to the tracker when the announe
  560. URI in torrent file includes query.
  561. * src/DefaultBtAnnounce.cc
  562. * test/DefaultBtAnnounceTest.cc
  563. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  564. Added Option::blank().
  565. Use !Option::blank(name) instead of Option::defined(name) for
  566. the options that take filename.
  567. * src/MultiUrlRequestInfo.cc
  568. * src/Option.cc
  569. * src/Option.h
  570. * src/main.cc
  571. * src/option_processing.cc
  572. * test/OptionTest.cc
  573. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  574. Documented the default value of --check-certificate option in man
  575. page.
  576. * doc/aria2c.1.txt
  577. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Enabled --check-certificate by default. Added compile
  579. time(configure) option --with-ca-bundle to specify CA bundle.
  580. Warn if --check-certificate=true and --ca-certificate is not
  581. specified or loading CA certificate is failed.
  582. * configure.ac
  583. * src/MultiUrlRequestInfo.cc
  584. * src/OptionHandlerFactory.cc
  585. * src/message.h
  586. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  587. Mentioned https tag in help option.
  588. * doc/aria2c.1.txt
  589. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  590. Added `https' tag to help option category. Added https tag to
  591. --ca-certificate, --certificate, --check-certificate and
  592. --private-key option.
  593. * src/OptionHandlerFactory.cc
  594. * src/help_tags.h
  595. * src/option_processing.cc
  596. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  597. Changed the package name from `aria2c' to `aria2' in order to fix
  598. the packaging issue in Debian and Fedora. The name of the
  599. executable is not changed.
  600. * configure.ac
  601. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. Fixed typos
  603. * src/usage_text.h
  604. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  605. Fixed typos and updated doc.
  606. * README
  607. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  608. Fixed typos
  609. * doc/aria2c.1.txt
  610. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  611. Fixed typos
  612. * src/usage_text.h
  613. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  614. Print a message when no files to download.
  615. * src/download_helper.cc
  616. * src/main.cc
  617. * src/message.h
  618. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  619. RFC3986 complied Percent-Encoding(urlencode).
  620. Use uppercase hexadecimal digits for encoded text instead of lowercase
  621. ones.
  622. * src/Request.cc
  623. * src/Util.cc
  624. * src/Util.h
  625. * test/BtHandshakeMessageTest.cc
  626. * test/DefaultBtAnnounceTest.cc
  627. * test/DefaultBtContextTest.cc
  628. * test/RequestTest.cc
  629. * test/UtilTest.cc
  630. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  631. Fixed the bug that prevents aria2 from downloading 0-length files
  632. via HTTP/FTP.
  633. * src/DefaultBtContext.cc
  634. * src/DefaultBtContext.h
  635. * src/DownloadContext.h
  636. * src/FtpNegotiationCommand.cc
  637. * src/HttpResponseCommand.cc
  638. * src/HttpResponseCommand.h
  639. * src/RequestGroup.cc
  640. * src/SingleFileDownloadContext.cc
  641. * src/SingleFileDownloadContext.h
  642. * test/BtPostDownloadHandlerTest.cc
  643. * test/MetalinkPostDownloadHandlerTest.cc
  644. * test/MockBtContext.h
  645. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  646. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  647. * src/option_processing.cc
  648. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  649. Applied aria2-1.0.1-mingw.patch.
  650. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  651. mingw.
  652. Collected 4th and 5th argument types for getsockopt and setsockopt.
  653. * src/SocketCore.cc
  654. * src/a2netcompat.h
  655. * test/SocketCoreTest.cc
  656. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  657. * Release 1.0.1
  658. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  659. Updated Ukrainian and Norwegian Nynorsk translations.
  660. Thanks to all translators.
  661. * po/nn.po
  662. * po/uk.po
  663. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  664. Don't show download result when -S option is used.
  665. * src/main.cc
  666. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  667. Bump up version number to 1.0.1
  668. * configure.ac
  669. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  670. Closed files after the test cases in MultiDiskWriterTest::
  671. testResetDiskWriterEntries(). This will fix the unit test error
  672. in mingw32 build.
  673. * test/MultiDiskWriterTest.cc
  674. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Use HEAD method to get file size from HTTP server for segmented
  676. downloading.
  677. The request to the BitTorrent Tracker always uses GET method because
  678. the response of the tracker is small and it doesn't need segmented
  679. download.
  680. * src/FtpNegotiationCommand.cc
  681. * src/HttpRequest.cc
  682. * src/HttpResponseCommand.cc
  683. * src/HttpSkipResponseCommand.cc
  684. * src/RequestGroup.cc
  685. * src/RequestGroup.h
  686. * src/TrackerWatcherCommand.cc
  687. * test/HttpRequestTest.cc
  688. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  689. Fixed the bug that causes floating exception when -T option is used and
  690. no URIs are given.
  691. * src/download_helper.cc
  692. * test/DownloadHelperTest.cc
  693. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  694. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  695. errors in MinGW:
  696. Closed file after saving server stats (RequestGroupMan.cc)
  697. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  698. Ignored case & handled 2-digit years (strptime.c)
  699. Added missing suseconds_t definition (a2time.h)
  700. Fixed socket CLOSE() define (SocketCore.cc)
  701. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  702. Changed utime() test values from x000 to x00000 as MinGW failed on
  703. values less than timezone offset from Unix epoch
  704. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  705. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  706. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  707. handle negative dates (CookieParserTest.cc)
  708. * src/a2time.h
  709. * src/FtpConnection.cc
  710. * src/RequestGroupMan.cc
  711. * src/SocketCore.cc
  712. * src/strptime.c
  713. * test/CookieParserTest.cc
  714. * test/CopyDiskAdaptorTest.cc
  715. * test/FileTest.cc
  716. * test/FtpConnectionTest.cc
  717. * test/MultiDiskAdaptorTest.cc
  718. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  720. * doc/aria2c.1.txt
  721. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  722. * Release 1.0.0
  723. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  724. Added '~' to reserved characters.
  725. * src/Util.cc
  726. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  727. Do not urlencode Request::url in setUrl() because we want unmodified
  728. URL using Request::getUrl()
  729. * src/Request.cc
  730. * src/Request.h
  731. * test/RequestTest.cc
  732. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  733. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  734. Thanks to all translators.
  735. * po/bg.po
  736. * po/fr.po
  737. * po/ja.po
  738. * po/ru.po
  739. * po/uk.po
  740. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  741. Bump up version number to 1.0.0
  742. * configure.ac
  743. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  744. Added nosqlite3 build to build_test.sh.
  745. Renamed noxml as expat.
  746. * build_test.sh
  747. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  748. Updated INPUT FILE section.
  749. * doc/aria2c.1.txt
  750. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  751. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  752. on big endian systems because test .aria2 files are made for little
  753. endian systems.
  754. * test/DefaultBtProgressInfoFileTest.cc
  755. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Dropped ares support.
  757. * README
  758. * configure.ac
  759. * m4/libares.m4: Removed.
  760. * src/AsyncNameResolver.cc
  761. * src/Makefile.am
  762. * test/Makefile.am
  763. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  765. Removed const qualifier from DiskWriter::size().
  766. * src/AbstractDiskWriter.cc
  767. * src/AbstractDiskWriter.h
  768. * src/ByteArrayDiskWriter.cc
  769. * src/ByteArrayDiskWriter.h
  770. * src/DiskWriter.h
  771. * test/ByteArrayDiskWriterTest.cc
  772. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  773. Fixed the bug that causes segmentation fault/bus error during executing
  774. choking algorithm while seeding. This is caused by improper
  775. implementation of compare function which returns inconsistent results
  776. depending on the timing of last unchoke.
  777. * src/BtSeederStateChoke.cc
  778. * src/BtSeederStateChoke.h
  779. * src/DefaultPeerStorage.cc
  780. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  781. Removed TODO
  782. * TODO
  783. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  784. Added a section that explains how to pass argument to options that
  785. takes optional arguments with its short form.
  786. * doc/aria2c.1.txt
  787. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  788. Added -u for the short form of --max-upload-limit option.
  789. * doc/aria2c.1.txt
  790. * src/option_processing.cc
  791. * src/usage_text.h
  792. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  793. Added -V for the short form of --check-integrity option.
  794. Now the argument of --check-integrity option is optional:
  795. if it is omitted, it is evaluated as true.
  796. * doc/aria2c.1.txt
  797. * src/option_processing.cc
  798. * src/usage_text.h
  799. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  800. Made the default value of --ftp-pasv option set to true and it can take
  801. true/false values.
  802. * src/OptionHandlerFactory.cc
  803. * src/option_processing.cc
  804. * src/usage_text.h
  805. * doc/aria2c.1.txt
  806. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  807. Given custom random number generator to std::random_shuffle.
  808. * src/AnnounceList.cc
  809. * src/BtLeecherStateChoke.cc
  810. * src/BtSeederStateChoke.cc
  811. * src/DefaultBtRequestFactory.cc
  812. * src/MetalinkEntry.cc
  813. * src/RarestPieceSelector.cc
  814. * src/SimpleRandomizer.cc
  815. * src/SimpleRandomizer.h
  816. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  817. Now the default value of --enable-direct-io is true.
  818. * src/OptionHandlerFactory.cc
  819. * doc/aria2c.1.txt
  820. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  821. Erase peer before executing onReturningPeer and onErasingPeer
  822. because choking algorithm called from onReturningPeer doesn't
  823. like erasing peer in the active peer list.
  824. * src/DefaultPeerStorage.cc
  825. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  826. Instead of creating special filename in createDownloadResult() if
  827. inMemoryDownload() is true, now it is done in getFilePath().
  828. * src/RequestGroup.cc
  829. * test/RequestGroupTest.cc
  830. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  831. Print "[MEMORY]" and filename if a file is not saved in disk and just
  832. processed in memory. This is the fix for previous comment out.
  833. * src/MemoryBufferPreDownloadHandler.cc
  834. * src/RequestGroup.cc
  835. * src/RequestGroup.h
  836. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  837. Commented out the code which sets virtual directory path "[MEMORY]"
  838. propagate directory to store to following RequestGroup.
  839. * src/MemoryBufferPreDownloadHandler.cc
  840. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  841. Bump up version number to 1.0.0b
  842. * configure.ac
  843. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  844. Added input_uris.txt to EXTRA_DIST
  845. * test/Makefile.am
  846. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  847. Removed PeerObject.h from Makefile.am
  848. * src/Makefile.am
  849. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  850. Avoid slow seeding
  851. * src/PeerInteractionCommand.cc
  852. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  853. Updated usage for -i option.
  854. * src/usage_text.h (TEXT_INPUT_FILE)
  855. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  856. Added INPUT FILE section to man page.
  857. Escaped fake URLs.
  858. * doc/aria2c.1.txt
  859. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  860. Fixed wrong note position for -o option.
  861. * doc/aria2c.1.txt
  862. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  863. Fixed compile error without SSL/XML library.
  864. * src/DefaultBtProgressInfoFile.cc
  865. * src/DefaultBtProgressInfoFile.h
  866. * src/FileMetalinkParserState.cc
  867. * src/RequestGroup.h
  868. * src/SocketCore.cc
  869. * src/SocketCore.h
  870. * src/VerificationMetalinkParserState.cc
  871. * src/download_helper.h
  872. * src/main.cc
  873. * test/DefaultBtProgressInfoFileTest.cc
  874. * test/DownloadHelperTest.cc
  875. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  876. Rewritten URI handling functions. They are now provided as a testable
  877. functions.
  878. * src/Makefile.am
  879. * src/RequestGroup.cc
  880. * src/RequestGroup.h
  881. * src/download_helper.cc
  882. * src/download_helper.h
  883. * src/main.cc
  884. * test/DownloadHelperTest.cc
  885. * test/Makefile.am
  886. * test/input_uris.txt
  887. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  888. Quickly terminate commands when ctrl-c is pressed.
  889. * src/DownloadEngine.cc
  890. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  891. Quickly terminate idle commands when download finished.
  892. * src/AbstractCommand.cc
  893. * src/DownloadCommand.cc
  894. * src/DownloadEngine.cc
  895. * src/DownloadEngine.h
  896. * src/SleepCommand.cc
  897. * src/SleepCommand.h
  898. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  899. Added the ability to specify output filename and directory in input
  900. file.
  901. Additional parameters are added in the following line of URIs
  902. with proceeding white space(s), 1 parameter in 1 line.
  903. The parameter names are the same with the command-line option name
  904. without proceeding "--". Not all the options are available here:
  905. at the moment, 'dir' and 'out' options are avialable.
  906. Please note that out option has no effect against Metalink or BitTorrent
  907. downloads.
  908. Example input file:
  909. http://host/foo-1.1.tar.bz2
  910. out=foo.tar.bz2
  911. dir=/tmp/downloads
  912. http://host/thundermonkey-2.0.tar.bz2
  913. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  914. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  915. thundermonkey-2.0.tar.bz2 is saved as
  916. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  917. * src/BtPostDownloadHandler.cc
  918. * src/Metalink2RequestGroup.cc
  919. * src/Metalink2RequestGroup.h
  920. * src/MetalinkPostDownloadHandler.cc
  921. * src/UriListParser.cc
  922. * src/UriListParser.h
  923. * src/main.cc
  924. * test/Metalink2RequestGroupTest.cc
  925. * test/UriListParserTest.cc
  926. * test/filelist1.txt
  927. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Fixed error when SSL library is not found.
  929. * configure.ac
  930. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  931. Cross referenced among -s, -C and -j options.
  932. Updated usage of -C and -s options.
  933. * src/usage_text.h
  934. * doc/aria2c.1.txt
  935. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  936. Fixed bad cast in 32bit platforms.
  937. * test/DefaultPieceStorageTest.cc
  938. (DefaultPieceStorageTest::testGetCompletedLength)
  939. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  940. Fixed unit test fails on 32bit platforms.
  941. * test/CookieParserTest.cc
  942. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  943. Show an average download speed in Download results.
  944. * src/BtFileAllocationEntry.cc
  945. * src/DefaultPieceStorage.cc
  946. * src/DownloadContext.cc
  947. * src/DownloadContext.h
  948. * src/DownloadResult.h
  949. * src/RequestGroup.cc
  950. * src/RequestGroupMan.cc
  951. * src/StreamFileAllocationEntry.cc
  952. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  953. Fixed the bug that metalink file is not processed if Content-Type
  954. field has a paramter.
  955. * src/HttpResponse.cc
  956. * src/HttpResponse.h
  957. * test/HttpResponseTest.cc
  958. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  959. Removed unused code.
  960. * src/DefaultBtAnnounce.cc
  961. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  962. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  963. the value larger than DefaultPieceStorage::getTotalLength() when
  964. in flight pieces are involved.
  965. * src/DefaultPieceStorage.cc
  966. * test/DefaultPieceStorageTest.cc
  967. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Bump up version number to 1.0.0a.
  969. * configure.ac
  970. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Updated configure.ac
  972. * configure.ac
  973. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  974. Added usege for proxy.
  975. * doc/aria2c.1.txt
  976. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  977. Added usage for --ca-certificate, --certificate, --private-key and
  978. --check-certificate options.
  979. * doc/aria2c.1.txt
  980. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  981. Updated man page
  982. * doc/aria2c.1.txt
  983. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Added --no-proxy option. It receives comman separated hostname or
  985. domains to which proxy should not be used.
  986. aria2 honors the environment variable no_proxy to override no-proxy
  987. value in configuration file. The user can override the environment
  988. variable no_proxy with --no-proxy command-line option.
  989. * src/AbstractCommand.cc
  990. * src/OptionHandlerFactory.cc
  991. * src/option_processing.cc
  992. * src/prefs.cc
  993. * src/prefs.h
  994. * src/usage_text.h
  995. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  996. Added the ability to verify peer in SSL/TLS using given CA certificates.
  997. The CA certificates are specified in --ca-certificate option.
  998. By default, the verification is disabled. Use --check-certificate
  999. option to enable it.
  1000. * src/HttpRequestCommand.cc
  1001. * src/LibgnutlsTLSContext.cc
  1002. * src/LibgnutlsTLSContext.h
  1003. * src/LibsslTLSContext.cc
  1004. * src/LibsslTLSContext.h
  1005. * src/MultiUrlRequestInfo.cc
  1006. * src/OptionHandlerFactory.cc
  1007. * src/SocketCore.cc
  1008. * src/SocketCore.h
  1009. * src/a2functional.h
  1010. * src/message.h
  1011. * src/option_processing.cc
  1012. * src/prefs.cc
  1013. * src/prefs.h
  1014. * src/usage_text.h
  1015. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1016. Added client certificate authentication for SSL/TLS.
  1017. Currently a private key must be decrypted for use with aria2.
  1018. If a user accidentally gives encrypted file to aria2 then following
  1019. thing happens:
  1020. If encrypted private key is given to aria2, it behaves differently
  1021. depending on the ssl library it uses. If aria2 built with openssl then
  1022. openssl prompts the user for password. If aria2 build with gnutls then
  1023. aria2 exists with error at start up.
  1024. * src/DownloadEngineFactory.cc
  1025. * src/MultiUrlRequestInfo.cc
  1026. * src/OptionHandlerFactory.cc
  1027. * src/option_processing.cc
  1028. * src/prefs.cc
  1029. * src/prefs.h
  1030. * src/usage_text.h
  1031. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1032. Introduced TLSContext that holds TLS related data that can be shared
  1033. with multiple SSL connections.
  1034. * src/DownloadEngineFactory.cc
  1035. * src/LibgnutlsTLSContext.cc
  1036. * src/LibgnutlsTLSContext.h
  1037. * src/LibsslTLSContext.cc
  1038. * src/LibsslTLSContext.h
  1039. * src/Makefile.am
  1040. * src/SocketCore.cc
  1041. * src/SocketCore.h
  1042. * src/TLSContext.h
  1043. * src/message.h
  1044. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1045. Fixed the bug that the DiskWriter of the first FileEntry whose
  1046. `needsFileAllocation' property is false is not created
  1047. even if it shares a piece with next FileEntry which `requested' property
  1048. is true.
  1049. Fixed the bug that zero-length file is not created if pre file
  1050. allocation is not done.
  1051. * src/MultiDiskAdaptor.cc
  1052. * src/MultiDiskAdaptor.h
  1053. * test/MultiDiskAdaptorTest.cc
  1054. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1055. Added the ability to pool proxy connection.
  1056. The conneciton in FTP with proxy-method=GET is not pooled.
  1057. Proxy-Connection header will not be sent when sending CONNECT method.
  1058. * src/DownloadEngine.cc
  1059. * src/DownloadEngine.h
  1060. * src/FtpFinishDownloadCommand.cc
  1061. * src/FtpInitiateConnectionCommand.cc
  1062. * src/FtpNegotiationCommand.cc
  1063. * src/HttpDownloadCommand.cc
  1064. * src/HttpInitiateConnectionCommand.cc
  1065. * src/HttpRequest.cc
  1066. * src/HttpRequest.h
  1067. * src/HttpResponse.cc
  1068. * src/HttpSkipResponseCommand.cc
  1069. * test/HttpRequestTest.cc
  1070. * test/HttpResponseTest.cc
  1071. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1072. Handle date before epoch.
  1073. To create *bad* Time object, call Time::null().
  1074. * src/CookieParser.cc
  1075. * src/FtpConnection.cc
  1076. * src/FtpConnection.h
  1077. * src/FtpNegotiationCommand.cc
  1078. * src/RequestGroup.cc
  1079. * src/TimeA2.cc
  1080. * src/TimeA2.h
  1081. * test/CookieParserTest.cc
  1082. * test/FtpConnectionTest.cc
  1083. * test/TimeTest.cc
  1084. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1085. Added support for following envrionment variables: http_proxy,
  1086. https_proxy, ftp_proxy and all_proxy.
  1087. Each variable is equivalent to the aria2 option whose name is the
  1088. variable name with '_' replaced with '-'.
  1089. They overrides options specified in aria2.conf file.
  1090. The envrionment variables can be overrode using command-line option.
  1091. * src/option_processing.cc
  1092. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1093. Renamed --http-proxy-method as --proxy-method.
  1094. * src/AbstractCommand.cc
  1095. * src/FtpInitiateConnectionCommand.cc
  1096. * src/HttpInitiateConnectionCommand.cc
  1097. * src/OptionHandlerFactory.cc
  1098. * src/option_processing.cc
  1099. * src/prefs.cc
  1100. * src/prefs.h
  1101. * src/usage_text.h
  1102. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1103. Deprecated --http-proxy-user and --http-proxy-passwd options.
  1104. Added --https-proxy, --ftp-proxy and --all-proxy options.
  1105. Above 3 options and --http-proxy option can handle proxy in URL format
  1106. like: http://user:passwd@host:port.
  1107. If a proxy requires user/password, they must be specified in a URL.
  1108. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  1109. instead.
  1110. * src/AbstractCommand.cc
  1111. * src/AbstractCommand.h
  1112. * src/AbstractProxyRequestCommand.cc
  1113. * src/AbstractProxyRequestCommand.h
  1114. * src/AuthConfigFactory.cc
  1115. * src/AuthConfigFactory.h
  1116. * src/FtpFinishDownloadCommand.cc
  1117. * src/FtpInitiateConnectionCommand.cc
  1118. * src/FtpInitiateConnectionCommand.h
  1119. * src/FtpNegotiationCommand.cc
  1120. * src/FtpTunnelRequestCommand.cc
  1121. * src/FtpTunnelRequestCommand.h
  1122. * src/HttpDownloadCommand.cc
  1123. * src/HttpInitiateConnectionCommand.cc
  1124. * src/HttpInitiateConnectionCommand.h
  1125. * src/HttpProxyRequestCommand.cc
  1126. * src/HttpProxyRequestCommand.h
  1127. * src/HttpRequest.cc
  1128. * src/HttpRequest.h
  1129. * src/HttpRequestCommand.cc
  1130. * src/HttpRequestCommand.h
  1131. * src/HttpSkipResponseCommand.cc
  1132. * src/InitiateConnectionCommand.cc
  1133. * src/InitiateConnectionCommand.h
  1134. * src/OptionHandlerFactory.cc
  1135. * src/OptionHandlerImpl.h
  1136. * src/Request.cc
  1137. * src/option_processing.cc
  1138. * src/prefs.cc
  1139. * src/prefs.h
  1140. * src/usage_text.h
  1141. * test/AuthConfigFactoryTest.cc
  1142. * test/HttpRequestTest.cc
  1143. * test/OptionHandlerTest.cc
  1144. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1145. Execute choking algorithm when unchoked and interested peer is
  1146. disconected.
  1147. * src/DefaultPeerStorage.cc
  1148. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1149. Added testcase for BtNotInterestedMessage from unchoked peer.
  1150. * test/BtNotInterestedMessageTest.cc
  1151. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1152. Execute choking algorithm when BtInterestedMessage arrives from
  1153. unchoked peer.
  1154. * src/BtInterestedMessage.cc
  1155. * src/BtInterestedMessage.h
  1156. * src/DefaultBtMessageFactory.cc
  1157. * test/BtInterestedMessageTest.cc
  1158. * test/MockPeerStorage.h
  1159. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1160. AuthConfigFactory is now part of DownloadEngine.
  1161. * src/AbstractProxyRequestCommand.cc
  1162. * src/AuthConfigFactory.h
  1163. * src/DownloadEngine.cc
  1164. * src/DownloadEngine.h
  1165. * src/FtpConnection.cc
  1166. * src/FtpConnection.h
  1167. * src/FtpNegotiationCommand.cc
  1168. * src/HttpConnection.cc
  1169. * src/HttpRequest.cc
  1170. * src/HttpRequest.h
  1171. * src/HttpRequestCommand.cc
  1172. * src/HttpResponse.cc
  1173. * src/HttpResponseCommand.cc
  1174. * src/HttpSkipResponseCommand.cc
  1175. * src/MultiUrlRequestInfo.cc
  1176. * src/main.cc
  1177. * test/FtpConnectionTest.cc
  1178. * test/HttpRequestTest.cc
  1179. * test/HttpResponseTest.cc
  1180. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1181. Corrected catched exception type.
  1182. * src/ServerStatMan.cc
  1183. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1184. DNSCache is now part of DownloadEngine.
  1185. * src/DNSCache.h
  1186. * src/DownloadEngine.cc
  1187. * src/DownloadEngine.h
  1188. * src/InitiateConnectionCommand.cc
  1189. * src/MultiUrlRequestInfo.cc
  1190. * test/Makefile.am
  1191. * test/Makefile.in
  1192. * test/SimpleDNSCacheTest.cc
  1193. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1194. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  1195. DownloadEngine.
  1196. * src/ActivePeerConnectionCommand.cc
  1197. * src/BtSetup.cc
  1198. * src/CUIDCounter.h
  1199. * src/DHTSetup.cc
  1200. * src/DownloadCommand.cc
  1201. * src/DownloadEngine.cc
  1202. * src/DownloadEngine.h
  1203. * src/DownloadEngineFactory.cc
  1204. * src/FileAllocationDispatcherCommand.cc
  1205. * src/InitiatorMSEHandshakeCommand.cc
  1206. * src/PeerInitiateConnectionCommand.cc
  1207. * src/PeerInteractionCommand.cc
  1208. * src/PeerListenCommand.cc
  1209. * src/RequestGroup.cc
  1210. * src/StreamFileAllocationEntry.cc
  1211. * src/TrackerWatcherCommand.cc
  1212. * src/main.cc
  1213. * test/RequestGroupManTest.cc
  1214. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1215. Implemented commented code in BtSeederStateChoke
  1216. * src/BtSeederStateChoke.cc
  1217. * src/Peer.cc
  1218. * src/Peer.h
  1219. * src/PeerInteractionCommand.cc
  1220. * src/PeerSessionResource.cc
  1221. * src/PeerSessionResource.h
  1222. * test/MockBtMessageDispatcher.h
  1223. * test/PeerSessionResourceTest.cc
  1224. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1225. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  1226. its object.
  1227. * src/AbstractBtMessage.cc
  1228. * src/ActivePeerConnectionCommand.cc
  1229. * src/ActivePeerConnectionCommand.h
  1230. * src/BtContextAwareCommand.cc
  1231. * src/BtContextAwareCommand.h
  1232. * src/BtExtendedMessage.cc
  1233. * src/BtExtendedMessage.h
  1234. * src/BtInterestedMessage.cc
  1235. * src/BtInterestedMessage.h
  1236. * src/BtNotInterestedMessage.cc
  1237. * src/BtNotInterestedMessage.h
  1238. * src/BtRegistry.cc
  1239. * src/BtRegistry.h
  1240. * src/BtSeederStateChoke.cc
  1241. * src/BtSetup.cc
  1242. * src/DHTGetPeersCommand.cc
  1243. * src/DHTGetPeersCommand.h
  1244. * src/DHTPeerAnnounceEntry.cc
  1245. * src/DHTPeerAnnounceEntry.h
  1246. * src/DHTPeerAnnounceStorage.cc
  1247. * src/DHTPeerAnnounceStorage.h
  1248. * src/DHTPeerLookupTask.cc
  1249. * src/DHTPeerLookupTask.h
  1250. * src/DHTSetup.cc
  1251. * src/DHTSetup.h
  1252. * src/DHTTaskFactory.h
  1253. * src/DHTTaskFactoryImpl.cc
  1254. * src/DHTTaskFactoryImpl.h
  1255. * src/DefaultBtAnnounce.cc
  1256. * src/DefaultBtInteractive.cc
  1257. * src/DefaultBtInteractive.h
  1258. * src/DefaultBtMessageDispatcher.cc
  1259. * src/DefaultBtMessageDispatcher.h
  1260. * src/DefaultBtMessageFactory.cc
  1261. * src/DefaultBtMessageFactory.h
  1262. * src/DefaultBtMessageReceiver.cc
  1263. * src/DefaultBtProgressInfoFile.cc
  1264. * src/DefaultBtProgressInfoFile.h
  1265. * src/DefaultBtRequestFactory.cc
  1266. * src/DefaultBtRequestFactory.h
  1267. * src/DefaultExtensionMessageFactory.cc
  1268. * src/DefaultExtensionMessageFactory.h
  1269. * src/DefaultPeerStorage.cc
  1270. * src/DefaultPeerStorage.h
  1271. * src/DownloadEngine.cc
  1272. * src/DownloadEngine.h
  1273. * src/InitiatorMSEHandshakeCommand.cc
  1274. * src/InitiatorMSEHandshakeCommand.h
  1275. * src/MSEHandshake.cc
  1276. * src/MSEHandshake.h
  1277. * src/Makefile.am
  1278. * src/Makefile.in
  1279. * src/PeerChokeCommand.cc
  1280. * src/PeerChokeCommand.h
  1281. * src/PeerInitiateConnectionCommand.cc
  1282. * src/PeerInitiateConnectionCommand.h
  1283. * src/PeerInteractionCommand.cc
  1284. * src/PeerInteractionCommand.h
  1285. * src/PeerObject.h
  1286. * src/PeerReceiveHandshakeCommand.cc
  1287. * src/PeerReceiveHandshakeCommand.h
  1288. * src/ReceiverMSEHandshakeCommand.cc
  1289. * src/RequestGroup.cc
  1290. * src/RequestGroup.h
  1291. * src/RequestGroupMan.cc
  1292. * src/RequestGroupMan.h
  1293. * src/SeedCheckCommand.cc
  1294. * src/SeedCheckCommand.h
  1295. * src/ShareRatioSeedCriteria.h
  1296. * src/SimpleBtMessage.cc
  1297. * src/TrackerWatcherCommand.cc
  1298. * src/TrackerWatcherCommand.h
  1299. * src/UTPexExtensionMessage.cc
  1300. * src/UTPexExtensionMessage.h
  1301. * test/BtCancelMessageTest.cc
  1302. * test/BtChokeMessageTest.cc
  1303. * test/BtExtendedMessageTest.cc
  1304. * test/BtInterestedMessageTest.cc
  1305. * test/BtNotInterestedMessageTest.cc
  1306. * test/BtPieceMessageTest.cc
  1307. * test/BtPortMessageTest.cc
  1308. * test/BtRegistryTest.cc
  1309. * test/BtRejectMessageTest.cc
  1310. * test/BtRequestMessageTest.cc
  1311. * test/DHTPeerAnnounceEntryTest.cc
  1312. * test/DHTPeerAnnounceStorageTest.cc
  1313. * test/DefaultBtMessageDispatcherTest.cc
  1314. * test/DefaultBtMessageFactoryTest.cc
  1315. * test/DefaultBtProgressInfoFileTest.cc
  1316. * test/DefaultBtRequestFactoryTest.cc
  1317. * test/DefaultExtensionMessageFactoryTest.cc
  1318. * test/MSEHandshakeTest.cc
  1319. * test/MockDHTTaskFactory.h
  1320. * test/ShareRatioSeedCriteriaTest.cc
  1321. * test/UTPexExtensionMessageTest.cc
  1322. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1323. Fixed compiler warning.
  1324. * test/UtilTest.cc
  1325. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1326. Treat Cookie object as session cookie if expiry = 0 is given.
  1327. With this change, you can specify session scoped cookies in an external
  1328. file setting expiry value to 0.
  1329. * src/Cookie.cc
  1330. * src/Cookie.h
  1331. * test/CookieParserTest.cc
  1332. * test/CookieStorageTest.cc
  1333. * test/CookieTest.cc
  1334. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1335. Changed signature of DHTMessageFactory::createResponseMessage().
  1336. Removed unused validateIDMatch.
  1337. * src/DHTMessageFactory.h
  1338. * src/DHTMessageFactoryImpl.cc
  1339. * src/DHTMessageFactoryImpl.h
  1340. * src/DHTMessageTracker.cc
  1341. * test/DHTMessageFactoryImplTest.cc
  1342. * test/MockDHTMessageFactory.h
  1343. Dropped DHT message coming from same ID of localhost.
  1344. * src/DHTMessageReceiver.cc
  1345. Rejected adding node whose ID is the same as localhost's.
  1346. * src/DHTRoutingTable.cc
  1347. * test/BtPortMessageTest.cc
  1348. * test/DHTRoutingTableTest.cc
  1349. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1350. Pool connection when redirection occurs with Content-Length = 0.
  1351. * src/HttpSkipResponseCommand.cc
  1352. * src/HttpSkipResponseCommand.h
  1353. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1354. Fixed the bug that causes time out when redirection occurs with
  1355. content-length 0.
  1356. * src/HttpResponseCommand.cc
  1357. * src/HttpSkipResponseCommand.cc
  1358. * src/HttpSkipResponseCommand.h
  1359. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1360. Now each status legends is shown only when it appears in Download
  1361. Result. If Download Result has no item, then status legend will not
  1362. be printed.
  1363. * src/RequestGroupMan.cc
  1364. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1365. Removed duplicate creation of OptionHandlers.
  1366. * src/option_processing.cc
  1367. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1368. Fixed the bug that causes segmentation fault when accessing files which
  1369. don't exist or are not included in --select-file option while
  1370. validating chunk checksum.
  1371. * src/MultiDiskAdaptor.cc
  1372. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1373. Fixed compiler warning.
  1374. * test/UtilTest.cc
  1375. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1376. Included cstdlib. This fixed the compile error with g++-4.3.2.
  1377. * src/IteratableChecksumValidator.cc
  1378. * src/IteratableChunkChecksumValidator.cc
  1379. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1380. * Release 0.16.2
  1381. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1382. Added Serbian translation. Updated Ukrainian translation.
  1383. Thanks to all translators.
  1384. * po/sr.po
  1385. * po/uk.po
  1386. * po/LINGUAS
  1387. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1388. Bump up version number to 0.16.2
  1389. * configure.ac
  1390. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1391. Added length equality test to operator== to drop a piece message
  1392. whose length does not match to the requested one.
  1393. * src/RequestSlot.cc
  1394. * test/DefaultBtMessageDispatcherTest.cc
  1395. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1396. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  1397. recieved.
  1398. In this fix, if a request larger than 16KiB length is received, aria2
  1399. disconnects the peer.
  1400. * src/BtConstants.h
  1401. * src/PeerMessageUtil.cc
  1402. * src/PeerMessageUtil.h
  1403. * test/BtRequestMessageTest.cc
  1404. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1405. * Release 0.16.1
  1406. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1407. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  1408. * doc/aria2c.1.txt
  1409. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1410. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  1411. Updated French, Simplified Chinese and Japanese translations.
  1412. Thanks to all translators.
  1413. en@quot and en@boldquot are also added.
  1414. * po/LINGUAS
  1415. * po/fr.po
  1416. * po/ja.po
  1417. * po/uk.po
  1418. * po/vi.po
  1419. * po/zh_CN.po
  1420. * po/zh_TW.po
  1421. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1422. Bump up version number to 0.16.1.
  1423. * configure.ac
  1424. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1425. Updated README.
  1426. * README
  1427. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1428. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  1429. not to replace '--' with em dash character.
  1430. * doc/aria2c.1.txt
  1431. * doc/makeman
  1432. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1433. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  1434. every SEC seconds.
  1435. * src/DownloadEngineFactory.cc
  1436. * src/OptionHandlerFactory.cc
  1437. * src/option_processing.cc
  1438. * src/usage_text.h
  1439. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1440. Fixed compile warning on linux-amd64
  1441. * src/FtpConnection.cc
  1442. * src/IteratableChunkChecksumValidator.cc
  1443. * src/MultiDiskAdaptor.cc
  1444. Fixed the bug that unit test fails on linux-amd64
  1445. * test/UtilTest.cc
  1446. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1447. Added --dht-file-path option to change the path to dht.dat, which is a
  1448. serialized DHT routing table.
  1449. * src/OptionHandlerFactory.cc
  1450. * src/option_processing.cc
  1451. * src/usage_text.h
  1452. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1453. Fixed possible underflow.
  1454. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  1455. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1456. Fixed the bug that last character in URI is not encoded.
  1457. * src/Request.cc
  1458. * test/RequestTest.cc
  1459. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1460. Fixed the bug that referer header field contains fragment.
  1461. Now Request class removes fragment part of URI and encodes it
  1462. in Request::setUri() and setReferer().
  1463. * src/Request.h
  1464. * src/Request.cc
  1465. * test/RequestTest.cc
  1466. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1467. Added missing m4 macros.
  1468. * m4/cppunit.m4
  1469. * m4/libgcrypt.m4
  1470. * m4/libgnutls-extra.m4
  1471. * m4/libgnutls.m4
  1472. * m4/libxml2.m4
  1473. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1474. Fixed compile error with gcc-4.4(snapshot)
  1475. * src/File.cc
  1476. * src/FtpConnection.cc
  1477. * src/OptionHandlerImpl.h
  1478. * src/Util.cc
  1479. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1480. Removed assert()
  1481. * src/SocketBuffer.cc (SocketBuffer::send)
  1482. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1483. Changed the type of _numNewConnection to unsigned int.
  1484. * src/ActivePeerConnectionCommand.cc
  1485. * src/ActivePeerConnectionCommand.h
  1486. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1487. * Release 0.16.0
  1488. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1489. Updated doc
  1490. * README
  1491. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1492. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  1493. translations. Thanks to all translators.
  1494. * po/bg.po
  1495. * po/de.po
  1496. * po/fr.po
  1497. * po/ja.po
  1498. * po/zh_CN.po
  1499. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1500. Bump up version number to 0.16.0.
  1501. * configure.ac
  1502. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1503. Casted entry->maxConnections to int32_t for std::min<T> with T =
  1504. int32_t.
  1505. Changed the type of count to int32_t.
  1506. * src/Metalink2RequestGroup.cc
  1507. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1508. Added test for Time::elapsed(time_t).
  1509. * test/TimeTest.cc
  1510. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1511. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  1512. Util::difftv() should be used instead.
  1513. * src/TimeA2.cc
  1514. * src/TimeA2.h
  1515. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1516. Made socket for dht connections non-blocking
  1517. * src/DHTAbstractMessage.cc
  1518. * src/DHTAbstractMessage.h
  1519. * src/DHTConnection.h
  1520. * src/DHTConnectionImpl.cc
  1521. * src/DHTConnectionImpl.h
  1522. * src/DHTMessage.h
  1523. * src/DHTMessageDispatcherImpl.cc
  1524. * src/DHTMessageDispatcherImpl.h
  1525. * src/DHTUnknownMessage.cc
  1526. * src/DHTUnknownMessage.h
  1527. * src/SocketCore.cc
  1528. * src/SocketCore.h
  1529. * test/MockDHTMessage.h
  1530. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1531. Changed the type of offset to int.
  1532. * src/ParameterizedStringParser.cc
  1533. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1534. Made getAsInt() return int32_t
  1535. * src/Option.h
  1536. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1537. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  1538. build.
  1539. * configure.ac
  1540. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1541. Use sqlite3_open if sqlite3_open_v2 is not available.
  1542. * src/Sqlite3MozCookieParser.cc
  1543. * src/Sqlite3MozCookieParser.h
  1544. * m4/sqlite3.m4
  1545. * test/Sqlite3MozCookieParserTest.cc
  1546. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1547. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  1548. * src/BtPieceMessage.cc
  1549. * src/DHTPeerAnnounceStorage.cc
  1550. * src/DefaultPieceStorage.cc
  1551. * src/DownloadCommand.cc
  1552. * src/DownloadEngine.cc
  1553. * src/FtpConnection.cc
  1554. * src/PeerConnection.cc
  1555. * src/PeerMessageUtil.cc
  1556. * src/RequestGroup.cc
  1557. * src/RequestGroupMan.cc
  1558. * src/SimpleBtMessage.cc
  1559. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1560. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  1561. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  1562. * src/AbstractDiskWriter.cc
  1563. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1564. Don't set Request::supportsPersistentConnection() in HttpConnection
  1565. since this code is also used in AbstractProxyResponseCommand.
  1566. Moved those code to HttpResponse.
  1567. * src/HttpResponse.cc
  1568. * src/HttpResponse.h
  1569. * src/HttpConnection.cc
  1570. * src/HttpConnection.h
  1571. * src/HttpResponseCommand.cc
  1572. * test/HttpResponseTest.cc
  1573. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1574. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  1575. The configuration is minimum: no torrent, no metalink, so there may be
  1576. other compile error on their code.
  1577. * src/a2netcompat.h
  1578. * src/File.cc
  1579. * src/File.h
  1580. * src/SocketCore.cc
  1581. * src/SocketCore.h
  1582. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1583. Made a socket of incoming peer non-blocking.
  1584. * src/PeerListenCommand.cc
  1585. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1586. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  1587. whole message data is not sent in one send() call.
  1588. * src/BtPieceMessage.cc
  1589. * src/BtPieceMessage.h
  1590. * src/PeerConnection.cc
  1591. * src/PeerConnection.h
  1592. * src/SimpleBtMessage.cc
  1593. * src/SimpleBtMessage.h
  1594. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1595. Fixed the bug that aria2 downloads faster than max-download-limit when
  1596. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  1597. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  1598. , instead of sum of them.
  1599. * src/ActivePeerConnectionCommand.cc
  1600. * src/DefaultBtInteractive.cc
  1601. * src/DownloadCommand.cc
  1602. * src/PeerInteractionCommand.cc
  1603. * src/PeerReceiveHandshakeCommand.cc
  1604. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1605. Fixed the bug that HTTPS download fails.
  1606. * src/AbstractCommand.cc
  1607. * src/AbstractCommand.h
  1608. * src/DownloadCommand.cc
  1609. * src/FtpConnection.cc
  1610. * src/HttpConnection.cc
  1611. * src/HttpRequestCommand.cc
  1612. * src/HttpResponseCommand.cc
  1613. * src/HttpSkipResponseCommand.cc
  1614. * src/MSEHandshake.cc
  1615. * src/PeerConnection.cc
  1616. * src/SocketCore.cc
  1617. * src/SocketCore.h
  1618. Fixed the bug that aria2 doesn't download whole content body and cannot
  1619. reuse connection if chunked transfer encoding and gzip content encoding
  1620. are set.
  1621. * src/DownloadCommand.cc
  1622. * src/HttpSkipResponseCommand.cc
  1623. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1624. Updated man page.
  1625. * doc/aria2c.1.txt
  1626. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1627. When error occurred while aria2 was parsing an .aria2.conf file, print
  1628. the usage of the option that caused error.
  1629. * src/option_processing.cc
  1630. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1631. Fixed compile error on OptionHandlerException
  1632. * src/Makefile.am
  1633. * src/OptionHandlerException.cc
  1634. * src/OptionHandlerException.h
  1635. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1636. Moved message of the error to OptionHandlerException.h
  1637. * src/NameMatchOptionHandler.h
  1638. * src/OptionHandlerException.h
  1639. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1640. When error occurs while aria2 is parsing an command-line option, print
  1641. the usage of the option.
  1642. * src/Makefile.am
  1643. * src/NameMatchOptionHandler.h
  1644. * src/OptionHandlerException.h
  1645. * src/option_processing.cc
  1646. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1647. Reverted previous change.
  1648. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  1649. username is not in URI.
  1650. * src/HttpRequest.cc
  1651. * src/Request.cc
  1652. * test/HttpRequestTest.cc
  1653. * test/RequestTest.cc
  1654. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1655. Now colon is required for username and password in FTP URL, like:
  1656. ftp://username:password@host.
  1657. If colon is not there, aria2 don't parse it as a username. For example,
  1658. aria2 don't retrieve username from ftp://username@host.
  1659. This fix was made in order to login FTP server via non-transparent ftp
  1660. proxy.
  1661. * src/Request.cc
  1662. * test/RequestTest.cc
  1663. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1664. Use netrc for HTTP.
  1665. Now FTP user/password is sent in Authorization header when
  1666. --ftp-via-http-proxy=get is given.
  1667. * src/AuthConfigFactory.cc
  1668. * src/HttpRequest.cc
  1669. * src/HttpRequest.h
  1670. * src/NetrcAuthResolver.cc
  1671. * src/NetrcAuthResolver.h
  1672. * src/OptionHandlerFactory.cc
  1673. * src/option_processing.cc
  1674. * src/prefs.cc
  1675. * src/prefs.h
  1676. * test/AuthConfigFactoryTest.cc
  1677. * test/HttpRequestTest.cc
  1678. * test/NetrcAuthResolverTest.cc
  1679. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1680. Issue PWD command first and get working directory and use it as a prefix
  1681. for CWD command.
  1682. * src/DownloadEngine.cc
  1683. * src/DownloadEngine.h
  1684. * src/FtpConnection.cc
  1685. * src/FtpConnection.h
  1686. * src/FtpFinishDownloadCommand.cc
  1687. * src/FtpInitiateConnectionCommand.cc
  1688. * src/FtpNegotiationCommand.cc
  1689. * src/FtpNegotiationCommand.h
  1690. * test/FtpConnectionTest.cc
  1691. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1692. Removed default user/pass for FTP user/pass, since it should not have
  1693. precedence over netrc configuration by default.
  1694. * src/OptionHandlerFactory.cc
  1695. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1696. Added debug log for socket event.
  1697. * src/AbstractCommand.cc
  1698. * src/PeerAbstractCommand.cc
  1699. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1700. Log microseconds.
  1701. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1702. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1703. Replaced HelpItem.cc with OptionHandler.cc.
  1704. * po/POTFILES.in
  1705. Updated po files with 'make update-po'
  1706. * po/aria2c.pot
  1707. * po/*.po
  1708. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1709. Removed possible values from the text.
  1710. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  1711. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1712. Removed unused preferences:
  1713. PREF_NO_PREALLOCATION
  1714. PREF_STDOUT_LOG
  1715. PREF_TRACKER_MAX_TRIES
  1716. PREF_DIRECT_DOWNLOAD_TIMEOUT
  1717. PREF_MIN_SEGMENT_SIZE
  1718. * src/option_processing.cc
  1719. * src/prefs.cc
  1720. * src/prefs.h
  1721. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1722. Integrated HelpItem into OptionParser to ease the workload for adding
  1723. new options. Removed default value from usage text.
  1724. * src/HelpItem.cc: Removed.
  1725. * src/HelpItem.h: Removed.
  1726. * src/HelpItemFactory.cc: Removed.
  1727. * src/HelpItemFactory.h: Removed.
  1728. * src/Makefile.am
  1729. * src/Makefile.in
  1730. * src/NameMatchOptionHandler.h
  1731. * src/OptionHandler.cc
  1732. * src/OptionHandler.h
  1733. * src/OptionHandlerFactory.cc
  1734. * src/OptionHandlerImpl.h
  1735. * src/OptionParser.cc
  1736. * src/OptionParser.h
  1737. * src/TagContainer.cc: Removed.
  1738. * src/TagContainer.h: Removed.
  1739. * src/TaggedItem.cc: Removed.
  1740. * src/TaggedItem.h: Removed.
  1741. * src/main.cc
  1742. * src/option_processing.cc
  1743. * src/usage_text.h
  1744. * src/version_usage.cc
  1745. * test/HelpItemTest.cc: Removed.
  1746. * test/Makefile.am
  1747. * test/Makefile.in
  1748. * test/OptionHandlerTest.cc
  1749. * test/OptionParserTest.cc
  1750. * test/TagContainerTest.cc: Removed.
  1751. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1752. Moved `TransferStat stat = ...' to inside the `if' clause.
  1753. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  1754. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1755. Fixed the bug that a block in a piece is requested when same block is
  1756. already requested to the same peer in end game mode.
  1757. * src/BtRequestFactory.h
  1758. * src/DefaultBtInteractive.cc
  1759. * src/DefaultBtRequestFactory.cc
  1760. * src/DefaultBtRequestFactory.h
  1761. * src/DefaultPieceStorage.cc
  1762. * src/DefaultPieceStorage.h
  1763. * src/PieceStorage.h
  1764. * src/UnknownLengthPieceStorage.cc
  1765. * src/UnknownLengthPieceStorage.h
  1766. * test/DefaultBtRequestFactoryTest.cc
  1767. * test/DefaultPieceStorageTest.cc
  1768. * test/MockBtRequestFactory.h
  1769. * test/MockPieceStorage.h
  1770. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1771. Removed _uploadLength and _downloadLength from PeerSessionResource
  1772. and use PeerStat::_sessionUploadLength and
  1773. PeerStat::_sessionDownloadLength.
  1774. * src/PeerSessionResource.cc
  1775. * src/PeerSessionResource.h
  1776. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1777. Fixed the bug that prefixLength of split bucket which doesn't include
  1778. local node ID is incremented.
  1779. * src/DHTBucket.cc
  1780. * src/DHTBucket.h
  1781. * test/DHTBucketTest.cc
  1782. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1783. Added cookies.sqlite to EXTRA_DIST
  1784. * test/Makefile.am
  1785. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1786. Added Turkish translation. Updated French, German, Russian and
  1787. Simplified Chinese translations. Thanks to all translators.
  1788. * po/LINGUAS
  1789. * po/de.po
  1790. * po/fr.po
  1791. * po/ru.po
  1792. * po/tr.po
  1793. * po/zh_CN.po
  1794. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1795. Added deliminating text to the beginning of the log so that one can find
  1796. where the log starts easily.
  1797. * src/main.cc
  1798. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1799. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  1800. to fix compile error when async DNS is not enabled by configuration.
  1801. * src/AbstractCommand.cc
  1802. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1803. If establishing conneciton to a server is failed, then mark error on
  1804. its ServerStat.
  1805. Added the cause of error to log when error event occurred.
  1806. Moved message string to message.h for translation.
  1807. * src/AbstractCommand.cc
  1808. * src/AbstractCommand.h
  1809. * src/FtpNegotiationCommand.cc
  1810. * src/HttpRequestCommand.cc
  1811. * src/PeerAbstractCommand.cc
  1812. * src/message.h
  1813. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1814. Added the function to get error message from socket.
  1815. * src/SocketCore.cc
  1816. * src/SocketCore.h
  1817. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1818. Added convenient method RequestGroupMan::getOrCreateServerStat()
  1819. * src/RequestGroupMan.cc
  1820. * src/RequestGroupMan.h
  1821. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1822. If error event is received in epoll, then abort download immediately.
  1823. * src/AbstractCommand.cc
  1824. * src/Command.cc
  1825. * src/Command.h
  1826. * src/DownloadEngine.cc
  1827. * src/PeerAbstractCommand.cc
  1828. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1829. Added usage message for --uri-selector, --server-stat-of,
  1830. --server-stat-in, --server-stat-timeout options.
  1831. * src/HelpItemFactory.cc
  1832. * src/usage_text.h
  1833. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1834. Added upper limit of FTP response buffer. The current implementation
  1835. uses 4096bytes as a limit.
  1836. * src/FtpConnection.cc
  1837. * src/FtpConnection.h
  1838. * test/FtpConnectionTest.cc
  1839. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1840. Use non-blocking socket for TCP communication to avoid possible
  1841. blocking due to buffer full.
  1842. * src/AbstractProxyRequestCommand.cc
  1843. * src/FtpConnection.cc
  1844. * src/FtpConnection.h
  1845. * src/FtpNegotiationCommand.cc
  1846. * src/FtpNegotiationCommand.h
  1847. * src/HttpConnection.cc
  1848. * src/HttpConnection.h
  1849. * src/HttpRequestCommand.cc
  1850. * src/InitiatorMSEHandshakeCommand.cc
  1851. * src/InitiatorMSEHandshakeCommand.h
  1852. * src/MSEHandshake.cc
  1853. * src/MSEHandshake.h
  1854. * src/Makefile.am
  1855. * src/PeerConnection.cc
  1856. * src/PeerConnection.h
  1857. * src/PeerInteractionCommand.cc
  1858. * src/PeerListenCommand.cc
  1859. * src/ReceiverMSEHandshakeCommand.cc
  1860. * src/ReceiverMSEHandshakeCommand.h
  1861. * src/SocketBuffer.cc
  1862. * src/SocketBuffer.h
  1863. * src/SocketCore.cc
  1864. * src/SocketCore.h
  1865. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1866. Call setStatusRealtime() in constructor.
  1867. * src/RealtimeCommand.cc
  1868. * src/RealtimeCommand.h
  1869. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1870. Call Download::setNoWait(true) to execute newly created command without
  1871. a pause.
  1872. * src/AbstractCommand.cc
  1873. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1874. Added --max-file-not-found=NUM option. If aria2 receives `file not
  1875. found' error from HTTP/FTP server NUM times without getting single
  1876. bytes of data, then force the download to fail.
  1877. Basically aria2 tris all URIs available. So if long list of URIs are
  1878. specified in Metalink, then aria2 will take a long time to fail
  1879. eventually if all URIs are outdated. This option eases this situation
  1880. to limit the number of servers to try.
  1881. * src/FtpNegotiationCommand.cc
  1882. * src/HelpItemFactory.cc
  1883. * src/HttpResponseCommand.cc
  1884. * src/OptionHandlerFactory.cc
  1885. * src/PeerStat.h
  1886. * src/RequestGroup.cc
  1887. * src/RequestGroup.h
  1888. * src/SegmentMan.cc
  1889. * src/SegmentMan.h
  1890. * src/option_processing.cc
  1891. * src/prefs.cc
  1892. * src/prefs.h
  1893. * src/usage_text.h
  1894. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1895. Fixed the bug that bulkReceiveResponse() reads all received data as a
  1896. response even if more than one response is in it.
  1897. * src/FtpConnection.cc
  1898. * src/FtpConnection.h
  1899. * test/FtpConnectionTest.cc
  1900. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1901. Merged from stable-0.15
  1902. * m4/libcares.m4
  1903. Use pkg-config
  1904. * m4/sqlite3.m4
  1905. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1906. Removed unnecessary if statement.
  1907. * src/DefaultPieceStorage.cc (initPieceStorage)
  1908. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1909. Added --connect-timeout option to specify connect timeout in seconds.
  1910. This option is in effect for HTTP/FTP/proxy server. The timeout for
  1911. connecting to BitTorrent peer is not controlled by this option.
  1912. * src/AbstractProxyRequestCommand.cc
  1913. * src/FtpNegotiationCommand.cc
  1914. * src/HelpItemFactory.cc
  1915. * src/HttpRequestCommand.cc
  1916. * src/OptionHandlerFactory.cc
  1917. * src/option_processing.cc
  1918. * src/prefs.cc
  1919. * src/prefs.h
  1920. * src/usage_text.h
  1921. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1922. Added help message for -R option.
  1923. * src/HelpItemFactory.cc
  1924. * src/usage_text.h
  1925. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1926. Added the message that the time is in local time zone.
  1927. * src/RequestGroup.cc
  1928. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1929. Implemented the ability to get timestamp from remote FTP server using
  1930. MDTM command described in RFC3659.
  1931. * src/FtpConnection.cc
  1932. * src/FtpConnection.h
  1933. * src/FtpNegotiationCommand.cc
  1934. * src/FtpNegotiationCommand.h
  1935. * test/FtpConnectionTest.cc
  1936. * test/Makefile.am
  1937. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1938. Implemented the ability to get timestamp from remote HTTP server and
  1939. apply it to local file. To enable this feature, --remote-time option
  1940. is added. No usage text has been written yet.
  1941. If several servers returns difference timestamp, then aria2 uses latest
  1942. one.
  1943. * src/CopyDiskAdaptor.cc
  1944. * src/CopyDiskAdaptor.h
  1945. * src/DirectDiskAdaptor.cc
  1946. * src/DirectDiskAdaptor.h
  1947. * src/DiskAdaptor.h
  1948. * src/File.cc
  1949. * src/File.h
  1950. * src/HttpHeader.cc
  1951. * src/HttpHeader.h
  1952. * src/HttpResponse.cc
  1953. * src/HttpResponse.h
  1954. * src/HttpResponseCommand.cc
  1955. * src/HttpResponseCommand.h
  1956. * src/MultiDiskAdaptor.cc
  1957. * src/MultiDiskAdaptor.h
  1958. * src/OptionHandlerFactory.cc
  1959. * src/RequestGroup.cc
  1960. * src/RequestGroup.h
  1961. * src/RequestGroupMan.cc
  1962. * src/option_processing.cc
  1963. * src/prefs.cc
  1964. * src/prefs.h
  1965. * test/CopyDiskAdaptorTest.cc
  1966. * test/FileTest.cc
  1967. * test/Makefile.am
  1968. * test/Makefile.in
  1969. * test/MultiDiskAdaptorTest.cc
  1970. * test/TestUtil.cc
  1971. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1972. Fixed the bug that DiskWriterEntry is not created when its
  1973. FileEntry.isRequested() is false and it doesn't share a piece with
  1974. other FileEntries that are requested. This bug causes segmentation fault
  1975. in the end.
  1976. * src/MultiDiskAdaptor.cc
  1977. * src/MultiDiskAdaptor.h
  1978. * src/MultiFileAllocationIterator.cc
  1979. * test/MultiDiskAdaptorTest.cc
  1980. * test/MultiFileAllocationIteratorTest.cc
  1981. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1982. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  1983. called if the number of file entries are greater than max open files.
  1984. * src/AbstractSingleDiskAdaptor.cc
  1985. * src/AbstractSingleDiskAdaptor.h
  1986. * src/DiskAdaptor.h
  1987. * src/MultiDiskAdaptor.cc
  1988. * src/MultiDiskAdaptor.h
  1989. * test/MultiDiskAdaptorTest.cc
  1990. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1991. Added a constuctor that receives struct timeval.
  1992. Added operator<.
  1993. * src/TimeA2.cc
  1994. * src/TimeA2.h
  1995. * test/TimeTest.cc
  1996. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1997. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  1998. * src/CookieParser.cc
  1999. * test/CookieParserTest.cc
  2000. * test/HttpResponseTest.cc
  2001. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2002. Implmented the functions to parse date.
  2003. * src/TimeA2.cc
  2004. * src/TimeA2.h
  2005. * test/TimeTest.cc
  2006. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2007. Added "Firefox3 Cookie" feature to FeatureConfig
  2008. * src/FeatureConfig.cc
  2009. * src/FeatureConfig.h
  2010. * test/FeatureConfigTest.cc
  2011. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2012. Bump up version number to 0.16.0b
  2013. * configure.ac
  2014. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2015. Use pkg-config if is is available.
  2016. * m4/openssl.m4
  2017. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2018. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  2019. * src/BtAnnounce.h
  2020. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2021. If an error occurred with a URI, remove identical URI from remaining
  2022. URI list because it is likely that same error occurred in the end and it
  2023. is waste of time.
  2024. * src/AbstractCommand.cc
  2025. * src/RequestGroup.cc
  2026. * src/RequestGroup.h
  2027. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2028. Removed wrong comment.
  2029. * src/DefaultPeerStorage.cc
  2030. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2031. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  2032. Added return value of getpid() to argument of srand() to achieve more
  2033. randomized value.
  2034. * src/SimpleRandomizer.cc
  2035. * src/SimpleRandomizer.h
  2036. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2037. Contact tracker frequently when the number of connections are 0 and
  2038. download is not finished yet.
  2039. * src/ActivePeerConnectionCommand.cc
  2040. * src/BtAnnounce.h
  2041. * src/DefaultBtAnnounce.cc
  2042. * src/DefaultBtAnnounce.h
  2043. * test/MockBtAnnounce.h
  2044. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2045. Moved threshold values to UTPexExtensionMessage.
  2046. * src/DefaultBtInteractive.cc
  2047. * src/Peer.cc
  2048. * src/Peer.h
  2049. * src/UTPexExtensionMessage.cc
  2050. * src/UTPexExtensionMessage.h
  2051. * test/UTPexExtensionMessageTest.cc
  2052. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2053. Added _incoming member to Peer class and made it true if the peer
  2054. initiated connection. Don't add those peer to UTPex message.
  2055. If extended handshake is received, assign _incoming to false.
  2056. * src/DefaultBtInteractive.cc
  2057. * src/HandshakeExtensionMessage.cc
  2058. * src/Peer.cc
  2059. * src/Peer.h
  2060. * src/PeerListenCommand.cc
  2061. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2062. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  2063. Encoding Decoder. Removed size threshold for turning off on the fly
  2064. inflation because resulting file may or may not be inflated depending
  2065. on the file size and I think it is not expected by users.
  2066. This change fixes segmentation fault when Metalink file contains gzipped
  2067. file and its filesize is provided.
  2068. * src/HttpResponseCommand.cc
  2069. * src/HttpResponseCommand.h
  2070. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2071. Made Cookie immutable.
  2072. * src/Cookie.cc
  2073. * src/Cookie.h
  2074. * src/CookieParser.cc
  2075. * src/CookieParser.h
  2076. * src/CookieStorage.cc
  2077. * test/CookieParserTest.cc
  2078. * test/CookieStorageTest.cc
  2079. * test/NsCookieParserTest.cc
  2080. * test/Sqlite3MozCookieParserTest.cc
  2081. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2082. Removed CookieBox, CookieBoxFactory.
  2083. * src/CookieBox.cc
  2084. * src/CookieBox.h
  2085. * src/CookieBoxFactory.cc
  2086. * src/CookieBoxFactory.h
  2087. * src/Makefile.am
  2088. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2089. Use CookieStorage class instead of CookieBox class.
  2090. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  2091. * src/AbstractProxyRequestCommand.cc
  2092. * src/CookieStorage.cc
  2093. * src/DownloadEngine.cc
  2094. * src/DownloadEngine.h
  2095. * src/HttpConnection.cc
  2096. * src/HttpConnection.h
  2097. * src/HttpRequest.cc
  2098. * src/HttpRequest.h
  2099. * src/HttpRequestCommand.cc
  2100. * src/HttpResponse.cc
  2101. * src/HttpResponseCommand.cc
  2102. * src/HttpSkipResponseCommand.cc
  2103. * src/Makefile.am
  2104. * src/MultiUrlRequestInfo.cc
  2105. * src/Request.cc
  2106. * src/Request.h
  2107. * src/main.cc
  2108. * test/AllTest.cc
  2109. * test/CookieStorageTest.cc
  2110. * test/CookieTest.cc
  2111. * test/HttpRequestTest.cc
  2112. * test/HttpResponseTest.cc
  2113. * test/Makefile.am
  2114. * test/NsCookieParserTest.cc
  2115. * test/Sqlite3MozCookieParserTest.cc
  2116. * test/nscookietest.txt
  2117. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2118. Updated
  2119. * test/Cookies.sqlite
  2120. * test/nscookietest.txt
  2121. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2122. Added tests for CookieStorage::load()
  2123. * test/CookieStorageTest.cc
  2124. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2125. Added CookieStorage class which is based on RFC2109 and manages cookies
  2126. more strictly than CookieBox and CookieBoxFactory class.
  2127. * src/CookieStorage.cc
  2128. * src/CookieStorage.h
  2129. * src/Cookie.cc
  2130. * src/Cookie.h
  2131. * test/CookieStorageTest.cc
  2132. * test/CookieTest.cc
  2133. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2134. Fixed the bug that commands are created more than the number of pieces.
  2135. * src/RequestGroup.cc
  2136. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2137. Fixed infinite loop bug in FTP when SIZE command failed.
  2138. * src/FtpNegotiationCommand.cc
  2139. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2140. Removed DirectDiskAdaptorTest.h
  2141. * test/Makefile.am
  2142. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2143. Fixed chunk checksum validation cannot detect trailing garbage data.
  2144. BUG#2074141
  2145. * src/AbstractSingleDiskAdaptor.cc
  2146. * src/AbstractSingleDiskAdaptor.h
  2147. * src/CheckIntegrityEntry.cc
  2148. * src/CheckIntegrityEntry.h
  2149. * src/DiskAdaptor.h
  2150. * src/MultiDiskAdaptor.cc
  2151. * src/MultiDiskAdaptor.h
  2152. * src/RequestGroup.cc
  2153. * test/DirectDiskAdaptorTest.cc
  2154. * test/MultiDiskAdaptorTest.cc
  2155. * test/TestUtil.cc
  2156. * test/TestUtil.h
  2157. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2158. Bump up version number of dht.dat file to 3. In version 3 format, time
  2159. is stored in 64bit, network byte order.
  2160. New build can load old format(version 2) but it saves the file in new
  2161. format. It means once you used new build, your dht.dat becomes
  2162. incompatible with older build.
  2163. * src/DHTRoutingTableDeserializer.cc
  2164. * src/DHTRoutingTableSerializer.cc
  2165. * test/DHTRoutingTableSerializerTest.cc
  2166. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2167. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  2168. * test/Makefile.am
  2169. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2170. Bump up version number of .aria2 control file to 0001.
  2171. New aria2 can still load version 0000 file but it saves the file in
  2172. version 0001 format. It means that new aria2 can resume download
  2173. started by old aria2 but the opposite is not true.
  2174. * src/DefaultBtProgressInfoFile.cc
  2175. * src/DefaultBtProgressInfoFile.h
  2176. * test/DefaultBtProgressInfoFileTest.cc
  2177. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2178. Added ntoh64 and hton64 as inline functions.
  2179. * src/Util.cc
  2180. * test/UtilTest.cc
  2181. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2182. Added sqlite3 depenency and Firefox3 cookie support.
  2183. * README
  2184. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2185. State that firefox3 cookie is supported explicitly in the usage.
  2186. * src/usage_text.h
  2187. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2188. Externalized message.
  2189. * src/RequestGroupMan.cc
  2190. * src/message.h
  2191. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2192. Save temporary file first and rename to the destination on success.
  2193. Added test cases.
  2194. * src/RequestGroupMan.cc
  2195. * test/RequestGroupManTest.cc
  2196. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2197. Fixed the bug that the number of connected peer is exceeding the limit
  2198. (55 by default) in seeding mode.
  2199. Multiplied 0.8 to _maxUploadSpeedLimit.
  2200. * src/ActivePeerConnectionCommand.cc
  2201. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2202. Clear table item.
  2203. * src/Dictionary.cc
  2204. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2205. Fixed error handling of lseek.
  2206. * src/AbstractDiskWriter.cc
  2207. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2208. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  2209. style cookie file.
  2210. * src/usage_text.h
  2211. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2212. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  2213. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  2214. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  2215. * src/Util.cc
  2216. * src/Util.h
  2217. * src/CookieParser.cc
  2218. * test/UtilTest.cc
  2219. * test/CookieParserTest.cc
  2220. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2221. Separate the implementation to load old mozilla format of cookie to
  2222. NsCookieParser class.
  2223. * src/CookieBoxFactory.cc
  2224. * src/CookieBoxFactory.h
  2225. * src/NsCookieParser.cc
  2226. * src/NsCookieParser.h
  2227. * test/NsCookieParserTest.cc
  2228. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2229. Made parse() const
  2230. * src/Sqlite3MozCookieParser.cc
  2231. * src/Sqlite3MozCookieParser.h
  2232. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2233. Added firefox3 cookie support based on the patch submitted by
  2234. tizianomueller.
  2235. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  2236. this functionality.
  2237. * configure.ac
  2238. * m4/sqlite3.m4
  2239. * src/CookieBoxFactory.cc
  2240. * src/CookieBoxFactory.h
  2241. * src/Makefile.am
  2242. * src/Makefile.in
  2243. * src/Sqlite3MozCookieParser.cc
  2244. * src/Sqlite3MozCookieParser.h
  2245. * src/main.cc
  2246. * test/CookieBoxFactoryTest.cc
  2247. * test/Makefile.am
  2248. * test/Makefile.in
  2249. * test/Sqlite3MozCookieParserTest.cc
  2250. * test/badcookies.sqlite
  2251. * test/cookies.sqlite
  2252. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2253. Added Danish and Greek translations.
  2254. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  2255. Great thanks to all translators.
  2256. * po/LINGUAS
  2257. * po/el.po
  2258. * po/da.po
  2259. * po/es.po
  2260. * po/ca.po
  2261. * po/nn.po
  2262. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2263. Fixed man page: --follow-bittorrent should be --follow-torrent
  2264. * doc/aria2c.1.txt
  2265. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2266. Fixed: numCommand is less than the value specified in -C option.
  2267. * src/RequestGroup.cc
  2268. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2269. Fixed occasional assertion failure in PieceSegment.
  2270. Calling PieceStorage::getMissingPiece(size_t) was missing after
  2271. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  2272. creation of duplicate segments and one of the segment was finished then
  2273. assertion failure was caused.
  2274. * src/SegmentMan.cc
  2275. * test/SegmentManTest.cc
  2276. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2277. Added options to load/save the server's performance/status to a file
  2278. and the timeout to drop their data.
  2279. --server-stat-of=FILE specifies the file to which performance data
  2280. is saved.
  2281. --server-stat-if=FILE specifies the file to read previously saved
  2282. by --server-stat-of option. Might be used with --uri-selector=feedback.
  2283. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  2284. TIMEOUT is specified in seconds and the default value is 24hours.
  2285. * src/MultiUrlRequestInfo.cc
  2286. * src/OptionHandlerFactory.cc
  2287. * src/RequestGroupMan.cc
  2288. * src/RequestGroupMan.h
  2289. * src/ServerStatMan.cc
  2290. * src/ServerStatMan.h
  2291. * src/option_processing.cc
  2292. * src/prefs.cc
  2293. * src/prefs.h
  2294. * test/ServerStatManTest.cc
  2295. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2296. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  2297. * src/ServerStatMan.cc
  2298. * src/ServerStatMan.h
  2299. * test/ServerStatManTest.cc
  2300. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2301. Implemented ServerStatMan::load(...) function and its test case.
  2302. * src/ServerStat.cc
  2303. * src/ServerStat.h
  2304. * src/ServerStatMan.cc
  2305. * test/ServerStatManTest.cc
  2306. * test/ServerStatTest.cc
  2307. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2308. Use time_t instead of int32_t. Use int64_t where milli second is
  2309. expected.
  2310. * src/TimeA2.cc
  2311. * src/TimeA2.h
  2312. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2313. Implemented ServerStatMan::save(...) function and its test case.
  2314. * src/ServerStat.cc
  2315. * src/ServerStat.h
  2316. * src/ServerStatMan.cc
  2317. * src/ServerStatMan.h
  2318. * test/ServerStatManTest.cc
  2319. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2320. Now aria2 uses name attribute in Metalink as local filename in
  2321. BitTorrent downloads. BUG#2033999
  2322. * src/BtContext.h
  2323. * src/BtDependency.cc
  2324. * src/DefaultBtContext.cc
  2325. * src/DefaultBtContext.h
  2326. * src/SingleFileDownloadContext.cc
  2327. * src/SingleFileDownloadContext.h
  2328. * test/BtDependencyTest.cc
  2329. * test/DefaultBtContextTest.cc
  2330. * test/MockBtContext.h
  2331. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2332. Added AC_C_BIGENDIAN
  2333. * src/configure.ac
  2334. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2335. Limited numCommand less than or equal to the number of piece.
  2336. * src/RequestGroup.cc
  2337. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2338. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  2339. directive.
  2340. * test/DefaultPieceStorageTest.cc
  2341. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2342. Fixed memory leak in test code
  2343. * test/AnnounceListTest.cc
  2344. * test/DefaultPeerListProcessorTest.cc
  2345. * test/DefaultPeerStorageTest.cc
  2346. * test/MetaFileUtilTest.cc
  2347. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2348. Fixed wrong argument passing to BitfieldMan::isBitSet()
  2349. * src/DefaultPieceStorage.cc
  2350. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2351. Initialized _directIOAllowed
  2352. * src/MultiDiskAdaptor.cc
  2353. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2354. Fixed memory leak
  2355. * src/GZipDecoder.cc
  2356. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2357. Fixed memory leak
  2358. * src/MetalinkParserStateMachine.cc
  2359. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2360. Fixed memory leak
  2361. * src/Dictionary.cc
  2362. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2363. Fixed memory leak
  2364. * src/IteratableChunkChecksumValidator.h
  2365. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2366. Fixed unmatched malloc/free.
  2367. * src/IteratableChunkChecksumValidator.cc
  2368. * src/IteratableChecksumValidator.cc
  2369. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2370. Removed max chunk size check. This change fixes BUG#2040169
  2371. * src/ChunkedDecoder.cc
  2372. * src/ChunkedDecoder.h
  2373. * test/ChunkedDecoderTest.cc
  2374. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2375. Implemented download speed based URI selection algorithm.
  2376. Introduced new option --uri-selector.
  2377. If --uri-selector=feedback is given, aria2 uses download speed observed
  2378. in the previous downloads and chooses fastest server in the URI list.
  2379. Currently at most 10 URIs are considered to introduce randomeness for
  2380. finding better servers. The speed is average download speed in the
  2381. downloads.
  2382. On the other hand, if --uri-selector=inorder is given, which is default,
  2383. URI is tried in order in URI list.
  2384. The usage text for the new option has not been written yet.
  2385. * src/AbstractCommand.cc
  2386. * src/DownloadCommand.cc
  2387. * src/DownloadEngine.cc
  2388. * src/DownloadEngineFactory.cc
  2389. * src/InOrderURISelector.cc
  2390. * src/InOrderURISelector.h
  2391. * src/OptionHandlerFactory.cc
  2392. * src/PeerStat.h
  2393. * src/RequestGroup.cc
  2394. * src/RequestGroup.h
  2395. * src/RequestGroupMan.cc
  2396. * src/RequestGroupMan.h
  2397. * src/SegmentMan.cc
  2398. * src/SegmentMan.h
  2399. * src/ServerStat.cc
  2400. * src/ServerStat.h
  2401. * src/ServerStatMan.cc
  2402. * src/ServerStatMan.h
  2403. * src/ServerStatURISelector.cc
  2404. * src/ServerStatURISelector.h
  2405. * src/URISelector.h
  2406. * src/option_processing.cc
  2407. * src/prefs.cc
  2408. * src/prefs.h
  2409. * test/InOrderURISelectorTest.cc
  2410. * test/RequestGroupManTest.cc
  2411. * test/ServerStatManTest.cc
  2412. * test/ServerStatURISelectorTest.cc
  2413. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2414. * Release 0.15.1+2
  2415. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2416. Bump up version number to 0.15.1+2
  2417. * configure.ac
  2418. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2419. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  2420. * m4/aria2_arg.m4
  2421. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2422. * Release 0.15.1+1
  2423. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2424. Bump up version number to 0.15.1+1
  2425. * configure.ac
  2426. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2427. Fixed the bug that causes segmentaion fault when resuming download
  2428. using metalink without size tag. Reproducible only using HTTP URI.
  2429. * src/HttpResponseCommand.cc
  2430. * src/FtpNegotiationCommand.cc
  2431. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2432. * Release 0.15.1
  2433. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2434. Updated Bulgarian and French translations, thanks to all translators.
  2435. * po/bg.po
  2436. * po/fr.po
  2437. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2438. Bump up version number to 0.15.1
  2439. * configure.ac
  2440. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2441. Avoid repeated call of gettimeofday() when calculating speed.
  2442. * src/SpeedCalc.cc
  2443. * src/SpeedCalc.h
  2444. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2445. Removed writable check when socket's send buffer is full in BitTorrent
  2446. downloads to lower CPU usage.
  2447. * src/PeerInteractionCommand.cc
  2448. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2449. Fixed broken gzip inflation.
  2450. Turn off segmented downloading if gzip content is smaller than or equal
  2451. to 1MiB and inflate the data on the fly, because HTTP response header
  2452. doesn't contain the length of inflated file we can't determin where
  2453. the chunk of data should be written.
  2454. On the other hand, if gzip content is larger than 1MB, then turn off
  2455. on the fly inflation, because some servers returns "content-type: gzip"
  2456. for *.tgz, *.gz files.
  2457. * src/DownloadCommand.cc
  2458. * src/HttpResponseCommand.cc
  2459. * src/HttpResponseCommand.h
  2460. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2461. Applied tizianomueller's patch to fix compile error.
  2462. * test/BitfieldManTest.cc
  2463. * test/BtRequestMessageTest.cc
  2464. * test/DefaultBtContextTest.cc
  2465. * test/DefaultDiskWriterTest.cc
  2466. * test/DefaultPieceStorageTest.cc
  2467. * test/HttpHeaderProcessorTest.cc
  2468. * test/HttpResponseTest.cc
  2469. * test/Metalink2RequestGroupTest.cc
  2470. * test/MetalinkParserControllerTest.cc
  2471. * test/MetalinkProcessorTest.cc
  2472. * test/PeerSessionResourceTest.cc
  2473. * test/UtilTest.cc
  2474. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2475. * Release 0.15.0
  2476. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2477. Reordered src files in POTFILES.in so that usage text appears first.
  2478. * po/POTFILES.in
  2479. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2480. Bump up version number to 0.15.0
  2481. * configure.ac
  2482. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2483. Added Bulgarian translation.
  2484. Updated Catalan, Spanish, French and Japanese translations.
  2485. Thanks to all translators.
  2486. * po/LINGUAS
  2487. * po/bg.po
  2488. * po/ca.po
  2489. * po/es.po
  2490. * po/fr.po
  2491. * po/ja.po
  2492. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2493. Updated feature list. Added libz for dependency section.
  2494. Added a description about unit testing using CppUnit.
  2495. * README
  2496. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2497. Added a test for libz. Quoted where it is necessary.
  2498. * build_test.sh
  2499. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2500. Added GZip to `Enabled Features' list.
  2501. * src/FeatureConfig.cc
  2502. * src/FeatureConfig.h
  2503. * test/FeatureConfigTest.cc
  2504. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2505. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  2506. the transfer has not yet started.
  2507. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  2508. * src/SegmentMan.cc
  2509. * src/SegmentMan.h
  2510. * test/SegmentManTest.cc
  2511. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2512. Cache last calculated average download/upload speed.
  2513. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  2514. cached value.
  2515. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  2516. * src/PeerStat.h
  2517. * src/SpeedCalc.cc
  2518. * src/SpeedCalc.h
  2519. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2520. Call parseUrl directly.
  2521. * src/Request.cc (resetUrl)
  2522. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2523. Supported absolute/relative path in Location header field.
  2524. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  2525. * src/HttpHeader.cc
  2526. * src/HttpHeader.h
  2527. * src/HttpResponse.cc
  2528. * src/HttpSkipResponseCommand.cc
  2529. * src/Request.cc
  2530. * test/HttpHeaderTest.cc
  2531. * test/HttpResponseTest.cc
  2532. * test/RequestTest.cc
  2533. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2534. Changed help text for --load-cookie option.
  2535. * doc/aria2c.1.txt
  2536. * src/usage_text.h
  2537. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2538. Regenerated test/Makefile.in to remove stale ChangeLog.
  2539. * test/Makefile.in
  2540. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2541. Updated po files.
  2542. * po/aria2c.pot
  2543. * po/*.po
  2544. * po/*.gmo
  2545. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2546. Bump up version number to 0.15.0b
  2547. * configure.ac
  2548. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2549. Externalize messages.
  2550. * src/RequestGroupMan.cc
  2551. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  2552. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2553. Use File::exists() instead of File::isFile() to allow non-regular file
  2554. such as block special files.
  2555. * src/AbstractDiskWriter.cc
  2556. * src/MultiDiskWriter.cc
  2557. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2558. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  2559. * src/gai_strerror.h
  2560. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2561. Fixed compile error. Thanks gknauf for the patch.
  2562. * src/asctime_r.c
  2563. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2564. Included asctime_r.h from a2time.h.
  2565. * src/a2time.h
  2566. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2567. Added a message "aria2 doesn't verify signature" to log message when
  2568. signature file is saved.
  2569. * src/RequestGroupMan.cc
  2570. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2571. Added the ability to save signature when download is completed if
  2572. signature is available. The filename of signature file is the path to
  2573. download file followed by ".sig". If it already exists, then signature
  2574. will not be saved.
  2575. * src/RequestGroupMan.cc
  2576. * src/Signature.cc
  2577. * test/SignatureTest.cc
  2578. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2579. Updated the descriptions for --bt-seed-unverified.
  2580. * doc/aria2c.1
  2581. * doc/aria2c.1.html
  2582. * doc/aria2c.1.txt
  2583. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2584. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  2585. that this is not going to verify files using piece hashes.
  2586. * src/HelpItemFactory.cc
  2587. * src/OptionHandlerFactory.cc
  2588. * src/RequestGroup.cc
  2589. * src/option_processing.cc
  2590. * src/prefs.cc
  2591. * src/prefs.h
  2592. * src/usage_text.h
  2593. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2594. Added the ability to retrieve signature from Metalink file.
  2595. A retrieved signature is stored in Signature class and it is held by
  2596. DownloadContext class. Note that aria2 doesn't verify signature.
  2597. * src/DownloadContext.cc
  2598. * src/DownloadContext.h
  2599. * src/Makefile.am
  2600. * src/Makefile.in
  2601. * src/Metalink2RequestGroup.cc
  2602. * src/MetalinkEntry.cc
  2603. * src/MetalinkEntry.h
  2604. * src/MetalinkParserController.cc
  2605. * src/MetalinkParserController.h
  2606. * src/MetalinkParserStateMachine.cc
  2607. * src/MetalinkParserStateMachine.h
  2608. * src/Signature.cc
  2609. * src/Signature.h
  2610. * src/SignatureMetalinkParserState.cc
  2611. * src/SignatureMetalinkParserState.h
  2612. * src/VerificationMetalinkParserState.cc
  2613. * src/VerificationMetalinkParserState.h
  2614. * test/Metalink2RequestGroupTest.cc
  2615. * test/MetalinkParserControllerTest.cc
  2616. * test/MetalinkProcessorTest.cc
  2617. * test/test.xml
  2618. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2619. Close DiskAdaptor after renaming file.
  2620. * src/RequestGroup.cc
  2621. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2622. Corrected indentation
  2623. * src/DefaultBtProgressInfoFile.cc
  2624. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2625. Moved the calls of std::ios::exceptions() inside of try-catch block
  2626. because if an error occurred in constructor of std::fstream, then
  2627. exception is thrown immediately when std::ios::exceptions() is called
  2628. which results unhandled exception and aria2c aborts.
  2629. * src/DefaultBtProgressInfoFile.cc
  2630. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2631. Added the test for the previous change in DefaultBtContext.cc
  2632. * test/DefaultBtContextTest.cc
  2633. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2634. Fixed the bug that causes infinite loop when the number of pieces are
  2635. fewer than allowed fast set size which is 10 by default.
  2636. * src/DefaultBtContext.cc
  2637. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2638. Updated the descriptions for -j, -s. Added --bt-seed.
  2639. * doc/aria2c.1
  2640. * doc/aria2c.1.html
  2641. * doc/aria2c.1.txt
  2642. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2643. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  2644. aria2 seeds previously downloaded files without validating piece hashs.
  2645. * src/HelpItemFactory.cc
  2646. * src/OptionHandlerFactory.cc
  2647. * src/RequestGroup.cc
  2648. * src/option_processing.cc
  2649. * src/prefs.cc
  2650. * src/prefs.h
  2651. * src/usage_text.h
  2652. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2653. Updated DESCRIPTION of man page.
  2654. * doc/aria2c.1
  2655. * doc/aria2c.1.html
  2656. * doc/aria2c.1.txt
  2657. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2658. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  2659. Don't define `struct addrinfo' when __sun is defined.
  2660. * src/getaddrinfo.h
  2661. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2662. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  2663. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  2664. second argument is of type `struct _stati64'. Otherwise it is defined as
  2665. `struct stat'.
  2666. * src/AbstractDiskWriter.cc
  2667. * src/File.cc
  2668. * src/File.h
  2669. * src/a2io.h
  2670. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2671. Fixed the compile error in hurd-i386
  2672. See the original bug report:
  2673. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  2674. * src/a2io.h
  2675. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2676. Code cleanup.
  2677. * src/PeerAbstractCommand.cc
  2678. * src/PeerAbstractCommand.h
  2679. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2680. Removed TransferEncoding.
  2681. * src/DownloadCommand.cc
  2682. * src/DownloadCommand.h
  2683. * src/HttpResponseCommand.cc
  2684. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2685. Updated po files.
  2686. * po/aria2c.pot
  2687. * po/*.po
  2688. * po/*.gmo
  2689. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2690. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  2691. * src/A2STR.cc
  2692. * src/A2STR.h
  2693. * src/ChunkedDecoder.cc
  2694. * src/ChunkedDecoder.h
  2695. * src/ChunkedEncoding.cc: Removed
  2696. * src/ChunkedEncoding.h: Removed
  2697. * src/DownloadCommand.cc
  2698. * src/DownloadCommand.h
  2699. * src/HttpDownloadCommand.cc
  2700. * src/HttpResponse.cc
  2701. * src/HttpResponse.h
  2702. * src/HttpResponseCommand.cc
  2703. * src/HttpSkipResponseCommand.cc
  2704. * src/HttpSkipResponseCommand.h
  2705. * src/Makefile.am
  2706. * src/TransferEncoding.h: Removed
  2707. * test/ChunkedDecoderTest.cc
  2708. * test/ChunkedEncodingTest.cc: Removed
  2709. * test/HttpResponseTest.cc
  2710. * test/Makefile.am
  2711. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2712. Use append instead of insert.
  2713. * src/GZipDecoder.cc
  2714. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2715. Updated doc
  2716. * src/Decoder.h
  2717. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2718. Updated usage text for -s option.
  2719. * src/usage_text.h
  2720. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2721. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  2722. * src/Request.cc
  2723. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2724. Cleaned up configure.ac.
  2725. * configure.ac
  2726. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2727. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  2728. AC_ARG_ENABLE.
  2729. * configure.ac
  2730. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2731. Added gzip, deflate decoding support in HTTP using libz. If compiled
  2732. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  2733. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  2734. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  2735. fly and writes decoded data to a local disk.
  2736. * README
  2737. * README.html
  2738. * configure.ac
  2739. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  2740. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  2741. * m4/libz.m4
  2742. * src/Decoder.h
  2743. * src/DownloadCommand.cc
  2744. * src/DownloadCommand.h
  2745. * src/Exception.h
  2746. * src/GZipDecoder.cc
  2747. * src/GZipDecoder.h
  2748. * src/HttpHeader.cc
  2749. * src/HttpHeader.h
  2750. * src/HttpRequest.cc
  2751. * src/HttpRequest.h
  2752. * src/HttpResponse.cc
  2753. * src/HttpResponse.h
  2754. * src/HttpResponseCommand.cc
  2755. * src/Makefile.am
  2756. * test/GZipDecoderTest.cc
  2757. * test/HttpRequestTest.cc
  2758. * test/HttpResponseTest.cc
  2759. * test/Makefile.am
  2760. * test/Makefile.in
  2761. * test/gzip_decode_test.gz
  2762. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2763. Clarified usage of -j option.
  2764. * src/usage_text.h
  2765. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2766. Disabled getting size from the response of RETR.
  2767. If SIZE command failed, then disable resuming and segmented downloading.
  2768. * src/FtpConnection.cc
  2769. * src/FtpConnection.h
  2770. * src/FtpNegotiationCommand.cc
  2771. * src/FtpNegotiationCommand.h
  2772. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2773. Use digits to find first byte of file size, which makes the intention
  2774. of the code clearer.
  2775. * src/FtpConnection.cc
  2776. Don't call validateTotalLength() when size is 0.
  2777. * src/FtpNegotiationCommand.cc
  2778. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2779. Updated po files.
  2780. * po/aria2c.pot
  2781. * po/*.gmo
  2782. * po/*.po
  2783. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2784. Clarified usage text for --split option.
  2785. * src/usage_text.h
  2786. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2787. Bump up version number to 0.15.0dev. "dev" means "development"
  2788. version, which means I started the development of the next release!
  2789. * src/configure.ac
  2790. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2791. If FTP server returns negative response with REST raw command and
  2792. requested range is not 0, throw exception. If requested range is 0,
  2793. continue download a file from 0 byte.
  2794. * src/FtpNegotiationCommand.cc
  2795. * src/FtpNegotiationCommand.h
  2796. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2797. Supported FTP server which don't recognize SIZE raw command.
  2798. If SIZE raw command is failed, aria2 will try to get file size
  2799. from the response of RETR raw command. If both attempts are failed,
  2800. then resuming and segmented downloading are disabled.
  2801. * src/FtpConnection.cc
  2802. * src/FtpConnection.h
  2803. * src/FtpNegotiationCommand.cc
  2804. * src/FtpNegotiationCommand.h
  2805. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2806. * Release 0.14.0+1
  2807. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2808. Bump up version number to 0.14.0+1
  2809. * src/configure.ac
  2810. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2811. Fixed the code that refers static member variable from non-static
  2812. context.
  2813. * src/DefaultPeerStorage.cc
  2814. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2815. * Release 0.14.0
  2816. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2817. Added build test script
  2818. * build_test.sh
  2819. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2820. Updated ja.po
  2821. * src/ja.po
  2822. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2823. Bump up version number to 0.14.0
  2824. * src/configure.ac
  2825. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2826. Updated ja.po and fr.po. Great thanks for french translators and
  2827. Sebastien WILLEMIJNS.
  2828. * po/fr.po
  2829. * po/ja.po
  2830. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2831. Added configure option to enable/disable epoll support.
  2832. * configure.ac
  2833. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2834. Updated man page.
  2835. * doc/aria2c.1.txt
  2836. * doc/aria2c.1
  2837. * doc/aria2c.1.html
  2838. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2839. Added missing default value '5' to the usage of --split option.
  2840. * src/HelpItemFactory.cc
  2841. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2842. Filled up pieces based on the number of missing blocks, rather than
  2843. simplay the number of piece * block length.
  2844. * src/BtRequestFactory.h
  2845. * src/DefaultBtInteractive.cc
  2846. * src/DefaultBtInteractive.h
  2847. * src/DefaultBtRequestFactory.cc
  2848. * src/DefaultBtRequestFactory.h
  2849. * src/Piece.cc
  2850. * src/Piece.h
  2851. * test/BitfieldManTest.cc
  2852. * test/DefaultBtRequestFactoryTest.cc
  2853. * test/MockBtRequestFactory.h
  2854. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2855. Made _epEvents a member variable.
  2856. * src/DownloadEngine.cc
  2857. * src/DownloadEngine.h
  2858. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2859. Cancel download if http redirect is bounded more than 20 times.
  2860. * src/AbstractCommand.cc
  2861. * src/HttpSkipResponseCommand.cc
  2862. * src/Request.cc
  2863. * src/Request.h
  2864. * test/RequestTest.cc
  2865. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2866. Fixed unhandled exception(removed keyword `new').
  2867. * src/SocketCore.cc (initEPOLL)
  2868. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2869. Removed visit(const MetaEntry*)
  2870. * src/MetaEntryVisitor.h:
  2871. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  2872. and made them virtual.
  2873. * src/BencodeVisitor.h
  2874. * src/BencodeVisitor.cc
  2875. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2876. Updated po files.
  2877. * po/aria2c.pot
  2878. * po/*.po
  2879. * po/*.gmo
  2880. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2881. Moved the call setWriteCheckSocket inside the previous clause to reduce
  2882. the number of socket to watch out.
  2883. * src/PeerInteractionCommand.cc
  2884. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2885. When there is not enough space in disk when writing a chunk of data,
  2886. aria2 now prints the message to the console to warn user and aborts
  2887. its download. Not all downloads are canceled because some downloads
  2888. may use another disk or partition. BUG#1640332
  2889. * src/AbstractDiskWriter.cc
  2890. * src/PeerAbstractCommand.cc
  2891. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  2892. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  2893. setHaltRequested(true) to cancel download.
  2894. * src/PeerInteractionCommand.h
  2895. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2896. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  2897. socket from int to sock_t as sockets are unsigned in Windows.
  2898. For AsyncNameResolver, DownloadEngine, I did additional modification
  2899. for the portion of the code changed according to epoll support.
  2900. I defined sock_t in a2netcompat.h to use sock_t without including
  2901. SocketCore.h.
  2902. * src/AsyncNameResolver.cc
  2903. * src/AsyncNameResolver.h
  2904. * src/DownloadEngine.cc
  2905. * src/DownloadEngine.h
  2906. * src/SocketCore.cc
  2907. * src/SocketCore.h
  2908. * src/a2netcompat.h
  2909. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2910. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  2911. changes in the patch were applied.
  2912. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  2913. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  2914. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  2915. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2916. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  2917. a2io.h and common.h were modified.
  2918. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  2919. MinGW.
  2920. * src/common.h: Changed off_t to 64 bit in MinGW.
  2921. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2922. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2923. only a2netcompat.h is modified.
  2924. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  2925. directives.
  2926. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2927. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  2928. only gai_strerror.h is modified.
  2929. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  2930. winsock errors in MinGW.
  2931. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2932. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  2933. follow sources are applied.
  2934. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  2935. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  2936. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  2937. I included locale.h from Platform.cc.
  2938. * src/main.cc: Moved common setup/teardown code to Platform class.
  2939. * test/AllTest.cc: Use Platform class.
  2940. Set locale to C in AllTest.cc to prevent the messages to be localized.
  2941. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2942. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  2943. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  2944. * test/HttpRequestTest.cc: Casted to off_t where it should.
  2945. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2946. Applied Ross's aria2-0.13.2+1-mingw.patch and
  2947. aria2-0.13.2+1-mingw-2.patch.
  2948. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  2949. systems which don't have termious.h. I moved the directive inside of
  2950. if(isTTY) { ... clause so that line is wiped out without termious.h.
  2951. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  2952. anyway.
  2953. * src/asctime_r.h
  2954. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  2955. I added 2nd argument to the prototype declaration.
  2956. * src/StringFormat.cc: Get rid of vasprintf.
  2957. * src/getaddrinfo.h: Fixed constants.
  2958. * configure.ac: Added the check for asctime_r function.
  2959. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  2960. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2961. Added writable test for Socket when the sending message is in progress.
  2962. Usually the sending message is piece message. Without wriable check,
  2963. upload latency is dropped to more than 1sec.
  2964. * src/PeerInteractionCommand.cc
  2965. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2966. Create only requested files and files which shares a piece with
  2967. requested file in multi-torrent downloads. Directory structures are
  2968. also created in the same rule.
  2969. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  2970. DiskWriterEntry as in the previous implementation.
  2971. * src/MultiDiskWriter.cc
  2972. * src/MultiFileAllocationIterator.cc
  2973. * src/MultiFileAllocationIterator.h
  2974. * test/MultiFileAllocationIteratorTest.cc
  2975. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2976. Commented out -lprofiler
  2977. * src/Makefile.am
  2978. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2979. Bump up version number to 0.14.0b.
  2980. * src/configure.ac
  2981. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2982. Actively establish connection to peers in seeding, when peer cache
  2983. is not full and max upload speed limit is not reached.
  2984. * src/ActivePeerConnectionCommand.cc
  2985. * src/ActivePeerConnectionCommand.h
  2986. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2987. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  2988. to make room more fleshy, recently found peers.
  2989. Peer::_badConditionStartTime is not used anymore. Consider to remove
  2990. it.
  2991. * src/DefaultPeerStorage.cc
  2992. * test/DefaultPeerStorageTest.cc
  2993. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2994. Returns cached data only when the previous receiveHandshake() is called
  2995. with peek = true.
  2996. * src/PeerConnection.cc (receiveHandshake)
  2997. * src/PeerConnection.h (receiveHandshake)
  2998. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2999. Changed default value of -s option from 1 to 5.
  3000. Also max value of -s option is changed from 5 to 16.
  3001. * src/HelpItemFactory.cc
  3002. * src/OptionHandlerFactory.cc
  3003. * src/option_processing.cc
  3004. * src/usage_text.h
  3005. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3006. Changed -s options behavior. Now it means the number of connections
  3007. made simultaneously in each http/ftp download.
  3008. If 1 URL is specified, the behavior is the same with old implementation.
  3009. If -s N is given and more than N URLs are specified, first N URLs are
  3010. used and remaining URLs are used for backup. If less than N URLs are
  3011. specified, some of URLs are used more than once so that totally N
  3012. connections are made simultaneously.
  3013. * src/main.cc
  3014. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3015. Included missing iosfwd or ostream header.
  3016. * src/RequestGroupMan.cc
  3017. * src/TaggedItem.cc
  3018. * src/TaggedItem.h
  3019. * src/Util.cc
  3020. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3021. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  3022. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  3023. * src/HttpConnection.cc: Included missing sstream.
  3024. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3025. Added --bt-max-open-files option.
  3026. * src/DefaultPieceStorage.cc
  3027. * src/HelpItemFactory.cc
  3028. * src/MultiDiskAdaptor.cc
  3029. * src/MultiDiskAdaptor.h
  3030. * src/OptionHandlerFactory.cc
  3031. * src/option_processing.cc
  3032. * src/prefs.cc
  3033. * src/prefs.h
  3034. * src/usage_text.h
  3035. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3036. Fixed the bug that aria2 aborts when a path to a directory is given
  3037. in command-line.
  3038. * src/ProtocolDetector.cc
  3039. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3040. Limited the number files opened in each BitTorrent download. The default
  3041. value is 100. The option to change this value will be added.
  3042. * src/MultiDiskAdaptor.cc
  3043. * src/MultiDiskAdaptor.h
  3044. * src/MultiFileAllocationIterator.cc
  3045. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3046. Fixed the bug that HTTP downloads don't start with old libraries.
  3047. * src/HttpHeaderProcessor.cc
  3048. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3049. Use empty() instead of size() > 0.
  3050. * src/HttpConnection.cc
  3051. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3052. Drop connection if the incoming peer ID is the same with localhost's
  3053. one. The previous implementation drops connection when incoming peer's
  3054. IP address is the same with localhost's one.
  3055. * src/PeerListenCommand.cc
  3056. * src/DefaultBtInteractive.cc
  3057. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3058. Returns cached data without checking whether socket is readable
  3059. if the cache is available.
  3060. * src/PeerConnection.cc (receiveHandshake)
  3061. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3062. Included stdint.h
  3063. * src/common.h
  3064. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3065. Removed duplicate HAVE_GETTIMEOFDAY
  3066. * src/Makefile.am
  3067. * src/Makefile.in
  3068. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3069. Use interval as a minInterval when minInterval is not supplied.
  3070. * src/DefaultBtAnnounce.cc
  3071. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3072. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  3073. attempt is failed, then 2nd attempt get kicked out more quickly.
  3074. And it is now static const member of DefaultBtAnnounce.
  3075. * src/DefaultBtAnnounce.h
  3076. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3077. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  3078. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  3079. * src/ActivePeerConnectionCommand.cc
  3080. * src/BtConstants.h
  3081. * src/BtRuntime.h
  3082. * src/DHTGetPeersCommand.cc
  3083. * src/DefaultBtAnnounce.cc
  3084. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  3085. BtRuntime::MAX_PEERS.
  3086. * src/DefaultPeerStorage.h
  3087. * src/InitiatorMSEHandshakeCommand.cc
  3088. * src/PeerInitiateConnectionCommand.cc
  3089. * src/PeerInteractionCommand.cc
  3090. * src/PeerReceiveHandshakeCommand.cc
  3091. * src/TrackerWatcherCommand.cc
  3092. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3093. Always Connect to _numNewConnection
  3094. * src/ActivePeerConnectionCommand.cc
  3095. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3096. Made `begin' unsigned int.
  3097. * src/GrowSegment.h
  3098. * src/Piece.cc
  3099. * src/Piece.h
  3100. * src/PiecedSegment.cc
  3101. * src/PiecedSegment.h
  3102. * src/Segment.h
  3103. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3104. Calculate piece hash when data is arrived if the data is arrived in
  3105. order. This removes additional read operation for hash calculation.
  3106. If the data is arrived in out of order, the hash is calucated when the
  3107. piece is completed. This is the same behavior as the old implementation.
  3108. * src/BtPieceMessage.cc
  3109. * src/DefaultBtProgressInfoFile.cc
  3110. * src/DefaultPieceStorage.cc
  3111. * src/DownloadCommand.cc
  3112. * src/DownloadCommand.h
  3113. * src/DownloadEngine.cc
  3114. * src/GrowSegment.cc
  3115. * src/GrowSegment.h
  3116. * src/Piece.cc
  3117. * src/Piece.h
  3118. * src/PiecedSegment.cc
  3119. * src/PiecedSegment.h
  3120. * src/Segment.h
  3121. * test/PieceTest.cc
  3122. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3123. Try to keep the ordering of outgoing piece message.
  3124. * src/DefaultBtMessageDispatcher.cc
  3125. (DefaultBtMessageDispatcher::sendMessages)
  3126. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3127. Fixed busy loop when error/hup epoll events occur.
  3128. * src/AbstractCommand.cc
  3129. * src/PeerAbstractCommand.cc
  3130. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3131. Added --bt-request-peer-speed-limit option, which was a constant
  3132. SLOW_SPEED_THRESHOLD.
  3133. * src/ActivePeerConnectionCommand.cc
  3134. * src/ActivePeerConnectionCommand.h
  3135. * src/BtConstants.h
  3136. * src/HelpItemFactory.cc
  3137. * src/OptionHandlerFactory.cc
  3138. * src/PeerReceiveHandshakeCommand.cc
  3139. * src/option_processing.cc
  3140. * src/prefs.cc
  3141. * src/prefs.h
  3142. * src/usage_text.h
  3143. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3144. Removed repeated call of getTopDirPath(). Instead, call it once and
  3145. cache the result.
  3146. * src/MultiDiskAdaptor.cc
  3147. * src/MultiDiskAdaptor.h
  3148. (mkdir, openFile, initAndOpenFile, openExistingFile)
  3149. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3150. Fixed compile error on debian etch.
  3151. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  3152. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  3153. it is undefined.
  3154. * src/Util.cc (ULLONG_MAX)
  3155. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3156. Added epoll support. Use epoll if it is available. If not, use select.
  3157. When async dns is enabled in compile time, epoll support is enabled
  3158. only when aria2 is built with c-ares. This condition statement is
  3159. defined in a2io.h.
  3160. Currently aria2 supports both c-ares and ares, but ares is maintained
  3161. for quite a while and debian already has c-ares package, ares support
  3162. will be dropped in the future version.
  3163. * configure.ac
  3164. * src/AbstractCommand.cc
  3165. * src/AsyncNameResolver.cc
  3166. * src/AsyncNameResolver.h
  3167. * src/Command.cc
  3168. * src/Command.h
  3169. * src/DownloadEngine.cc
  3170. * src/DownloadEngine.h
  3171. * src/PeerAbstractCommand.cc
  3172. * src/SocketCore.cc
  3173. * src/SocketCore.h
  3174. * src/a2io.h
  3175. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3176. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  3177. directive.
  3178. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3179. Do not do write operation to /dev/null file.
  3180. * src/LogFactory.cc
  3181. * src/SimpleLogger.cc
  3182. Replaced vasprintf with vsnprintf
  3183. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3184. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3185. * src/BtRequestMessage.cc
  3186. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  3187. for segmentation fault caused by previous commit.
  3188. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3189. Reduced the usage of gettimeofday().
  3190. * src/DefaultBtMessageDispatcher.cc
  3191. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  3192. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3193. * src/RequestSlot.cc
  3194. * src/RequestSlot.h
  3195. (RequestSlot::isTimeout)
  3196. Made RequestSlot have a reference to Piece object to avoid find
  3197. Piece repeatedly.
  3198. * src/DefaultBtMessageDispatcher.cc
  3199. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3200. * src/RequestSlot.cc
  3201. * src/RequestSlot.h
  3202. (RequestSlot::getPiece)
  3203. * test/DefaultBtMessageDispatcherTest.cc
  3204. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3205. * src/TimeA2.cc
  3206. * src/TimeA2.h
  3207. (Time::difference): New function.
  3208. (Time::elapsed): Done optimization.
  3209. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3210. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  3211. directive.
  3212. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3213. * src/option_processing.cc: Added missing `defined' keyword to #if
  3214. directive.
  3215. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3216. Bump up version number to 0.13.2+1
  3217. * src/configure.ac
  3218. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3219. Refactored broken outstanding piece handling.
  3220. * src/DefaultPieceStorage.cc
  3221. * src/DefaultPieceStorage.h
  3222. * src/Piece.cc
  3223. * src/Piece.h
  3224. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3225. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  3226. name collision of static variable and predefined macro.
  3227. * src/BtContext.cc
  3228. * src/BtContext.h
  3229. * src/CookieBoxFactory.cc
  3230. * src/CookieBoxFactory.h
  3231. * src/CookieParser.cc
  3232. * src/CookieParser.h
  3233. * src/DefaultBtContext.cc
  3234. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3235. * src/RequestGroup.cc
  3236. (RequestGroup::createInitialCommand): Use empty() instead of size().
  3237. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3238. * Release 0.13.2
  3239. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3240. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  3241. * po/fr.po
  3242. * po/ja.po
  3243. * po/aria2c.pot
  3244. * po/*.po
  3245. * po/*.gmo
  3246. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3247. Bump up version number to 0.13.2
  3248. * src/configure.ac
  3249. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3250. Refactord.
  3251. * src/RequestGroupMan.cc
  3252. (removeStoppedGroup)
  3253. (fillRequestGroupFromReserver)
  3254. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3255. Fixed compile error on Ubuntu.
  3256. * src/BtPieceMessage.cc
  3257. * src/MessageDigestHelper.cc
  3258. * src/Util.cc
  3259. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3260. Fixed compile error when configured with --disable-bittorrent
  3261. * test/DownloadHandlerFactoryTest.cc
  3262. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3263. Done make update-po
  3264. * po/aria2c.pot
  3265. * po/*.po
  3266. * po/*.gmo
  3267. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3268. Bump up version number to 0.13.2rc.
  3269. * src/configure.ac
  3270. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Made option name bold. Updated SYNOPSIS to make it more readable.
  3272. * doc/aria2c.1.txt
  3273. * doc/aria2c.1
  3274. * doc/aria2c.1.html
  3275. * src/version_usage.cc
  3276. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3277. Refactored. Use std::string instead of size and char*.
  3278. * Data.cc
  3279. * Data.h
  3280. * test/Data.cc
  3281. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3282. Added trimSelf(). Rewritten trim() to use trimSelf().
  3283. * Util.cc
  3284. * Util.h
  3285. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3286. * src/ChunkChecksum.h (getChecksum): Return const reference.
  3287. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3288. Fixed compile error when configured with --disable-metalink.
  3289. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  3290. * test/FeatureConfigTest.cc
  3291. * test/DownloadHandlerFactoryTest.cc
  3292. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3293. Fixed compile error when configured with --without-gnutls
  3294. --without-openssl
  3295. * src/main.cc
  3296. * test/DefaultBtProgressInfoFileTest.cc
  3297. * test/SegmentManTest.cc
  3298. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3299. Fixed compile error with OpenSSL.
  3300. * src/IteratableChunkChecksumValidator.cc
  3301. * src/LibsslDHKeyExchange.h
  3302. * src/MessageDigestHelper.cc
  3303. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3304. Revert the default value of --max-concurrent-downloads to 5.
  3305. Revert the default value of --metalink-servers to 5.
  3306. Man pages was also updated.
  3307. * src/option_processing.cc
  3308. * doc/aria2c.1.txt
  3309. * doc/aria2c.1.html
  3310. * doc/aria2c.1
  3311. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3312. Returns const reference:
  3313. DownloadContext::getPieceHash, DownloadContext::getName,
  3314. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  3315. BtContext::getInfoHashAsString,
  3316. * src/BtContext.h
  3317. * src/DefaultBtContext.cc
  3318. * src/DefaultBtContext.h
  3319. * src/DownloadContext.h
  3320. * src/SingleFileDownloadContext.h
  3321. * test/MockBtContext.h
  3322. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3323. * src/RequestGroup.h (getDir): Removed.
  3324. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3325. Returns const reference. The internal urlencode function was optimized
  3326. a little bit.
  3327. * src/Request.cc
  3328. * src/Request.h
  3329. * src/HttpRequest.cc
  3330. * src/HttpRequest.h
  3331. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3332. Defined option name and possible values as std::string to reduce
  3333. temporary string object creation in runtime.
  3334. * src/HelpItemFactory.cc
  3335. * src/LogFactory.cc
  3336. * src/Option.cc
  3337. * src/OptionHandlerFactory.cc
  3338. * src/option_processing.cc
  3339. * src/prefs.cc
  3340. * src/prefs.h
  3341. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3342. Return const reference.
  3343. * src/DownloadHandlerConstants.cc
  3344. * src/DownloadHandlerConstants.h
  3345. (getMetalinkExtensions)
  3346. (getMetalinkContentTypes)
  3347. (getBtExtensions)
  3348. (getBtContentTypes)
  3349. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3350. * src/HttpHeader.cc (get): Rewritten.
  3351. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Make HttpHeader::getFirst(...) return const reference.
  3353. * src/HttpHeader.cc
  3354. * src/HttpHeader.h
  3355. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3356. Use Option::getAsBool(...) instead of Option::get(...) and compare
  3357. it with V_TRUE.
  3358. * src/DefaultPieceStorage.cc
  3359. * src/DownloadCommand.cc
  3360. * src/FtpNegotiationCommand.cc
  3361. * src/HttpRequest.cc
  3362. * src/InitiateConnectionCommand.cc
  3363. * src/RequestGroup.cc
  3364. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3365. Made Option::get(...) return const reference of std::string.
  3366. * src/Option.cc
  3367. * src/Option.h
  3368. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3369. Replaced std:copy with insert.
  3370. * src/DefaultBtMessageDispatcher.cc
  3371. * src/DefaultPieceStorage.cc
  3372. * src/DownloadEngineFactory.cc
  3373. * src/RequestGroup.cc
  3374. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3375. Included SocketCore.h to fix compiler warning.
  3376. * src/InitiateConnectionCommand.cc
  3377. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3378. Put piece selection strategy algorithm to RarestPieceSelector class,
  3379. Added a switch to choose whether randomized selection so that unit
  3380. tests emit same results in, possibly, win32.
  3381. * src/DefaultPieceStorage.cc
  3382. * src/DefaultPieceStorage.h
  3383. * src/RarestPieceSelector.cc
  3384. * src/RarestPieceSelector.h
  3385. * test/DefaultPieceStorageTest.cc
  3386. * test/RarestPieceSelectorTest.cc
  3387. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3388. Don't pool connection if HTTP proxy is enabled.
  3389. * src/FtpFinishDownloadCommand.cc
  3390. * src/FtpNegotiationCommand.cc
  3391. * src/HttpSkipResponseCommand.cc
  3392. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3393. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  3394. * src/AbstractCommand.cc
  3395. * src/AbstractCommand.h
  3396. * src/ActivePeerConnectionCommand.cc
  3397. * src/FtpInitiateConnectionCommand.cc
  3398. * src/HttpInitiateConnectionCommand.cc
  3399. * src/InitiateConnectionCommandFactory.cc
  3400. * src/PeerAbstractCommand.cc
  3401. * src/PeerAbstractCommand.h
  3402. * src/PeerInitiateConnectionCommand.cc
  3403. * src/TrackerWatcherCommand.cc
  3404. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3405. Sort RequestSlot in ascending order and manipulate them using
  3406. lower_bound.
  3407. * src/DefaultBtMessageDispatcher.cc
  3408. * src/DefaultBtMessageDispatcher.h
  3409. (getMessageQueue): Added const qualifier.
  3410. (getRequestSlots): Added const qualifier.
  3411. (sendMessages): Use empty() instead of size().
  3412. (doCancelSendingPieceAction): Use HandleEvent object.
  3413. (doAbortOutstandingRequestAction): Rewritten.
  3414. (doChokedAction): Rewritten.
  3415. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  3416. (isOutstandingRequest): Rewritten.
  3417. (getOutstandingRequest): Rewritten.
  3418. (removeOutstandingRequest): Rewritten.
  3419. (addOutstandingRequest): Rewritten.
  3420. * src/RequestSlot.cc
  3421. * src/RequestSlot.h
  3422. (operator=): Rewritten.
  3423. (operator!=): New function.
  3424. (operator<): New function.
  3425. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3426. * src/DefaultBtRequestFactory.cc
  3427. (doChokedAction): Rewritten.
  3428. (removeCompletedPiece): Rewritten.
  3429. (removeTargetPiece): Rewritten.
  3430. (createRequestMessages): Added the debug log.
  3431. (createRequestMessagesOnEndGame: Added the debug log.
  3432. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3433. Added the debug log message.
  3434. * src/BtPieceMessage.cc (doReceivedAction)
  3435. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3436. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  3437. used lower_bound to process them rather than linear search.
  3438. * src/DHTPeerAnnounceStorage.cc
  3439. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3440. Call subtractPieceStats from ~PeerInteractionCommand only when the
  3441. peer has at least one completed piece.
  3442. * src/Peer.cc
  3443. * src/Peer.h
  3444. * src/PeerInteractionCommand.cc
  3445. * src/PeerSessionResource.cc
  3446. * src/PeerSessionResource.h
  3447. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3448. Removed unnecessary sorting
  3449. * src/DefaultPieceStorage (DefaultPieceStorage)
  3450. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3451. Rewritten the portion of the code that mangaes allowed fast indexes.
  3452. * src/PeerSessionResource.cc
  3453. * src/PeerSessionResource.h
  3454. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3455. Removed the invalid string including '\r' from ru.po and
  3456. did make update-po.
  3457. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3458. Added --log-level and --summary-interval to man page.
  3459. * doc/aria2c.1.txt
  3460. * doc/aria2c.1.html
  3461. * doc/aria2c.1
  3462. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3463. Added --log-level option to specify log level. Log messages under
  3464. the specified level are not output. Default value is `debug'.
  3465. * src/HelpItemFactory.cc
  3466. * src/LogFactory.cc
  3467. * src/LogFactory.h
  3468. * src/Logger.h
  3469. * src/OptionHandlerFactory.cc
  3470. * src/SimpleLogger.cc
  3471. * src/SimpleLogger.h
  3472. * src/main.cc
  3473. * src/option_processing.cc
  3474. * src/prefs.h
  3475. * src/usage_text.h
  3476. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3477. Print download progress summary of all parallel downloads in specified
  3478. interval, default 60 secs. While aria2 could download several files
  3479. in parallel (see -j option), it displayed just first download progress,
  3480. and the other downloads are hidden from the users. This new feature
  3481. prints all downloads currently in-progress to the console so that you
  3482. can check the status of all downloads. The interval can be adjusted
  3483. by --summary-interval option.
  3484. The progress readout is now cut so that all fits in the one line of
  3485. console.
  3486. * src/ConsoleStatCalc.cc
  3487. * src/ConsoleStatCalc.h
  3488. * src/HelpItemFactory.cc
  3489. * src/OptionHandlerFactory.cc
  3490. * src/RequestGroupMan.cc
  3491. * src/RequestGroupMan.h
  3492. * src/main.cc
  3493. * src/option_processing.cc
  3494. * src/prefs.h
  3495. * src/usage_text.h
  3496. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3497. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  3498. * src/DownloadEngine.cc (DownloadEngine)
  3499. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3500. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  3501. defined.
  3502. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  3503. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3504. Use erase+lower_bound+insert instead of sort.
  3505. * src/DefaultPieceStorage.cc (addPieceStats)
  3506. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3507. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  3508. * src/A2STR.cc
  3509. * src/A2STR.h
  3510. * src/OptionParser.cc (parse)
  3511. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3512. Defined fake filename `[tracker.announce]' as static const std::string.
  3513. * src/TrackerWatcherCommand.cc (createRequestGroup)
  3514. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3515. Defined default filename `index.html' as static const std::string
  3516. * src/SingleFileDownloadContext.cc
  3517. * src/SingleFileDownloadContext.h
  3518. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3519. Defined "[MEMORY]" as static const std::string.
  3520. * src/MemoryBufferPreDownloadHandler.cc (execute)
  3521. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3522. Defined control file's version number as static const std::string.
  3523. * src/DefaultBtProgressInfoFile.cc
  3524. * src/DefaultBtProgressInfoFile.h
  3525. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3526. Use Request::METHOD_GET
  3527. * src/RequestGroup.cc (createNextCommandWithAdj)
  3528. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3529. Defined "OK", "ERR", "INPR" as static const std::string
  3530. * src/RequestGroupMan.cc (showDownloadResults)
  3531. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3532. Defined default client used in extended handshake as static const
  3533. std::string
  3534. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  3535. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3536. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  3537. * src/HttpConnection.cc (eraseConfidentialInfo)
  3538. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3539. Defined default ftp user and password as static const std::string
  3540. * src/AuthConfigFactory.cc
  3541. * src/AuthConfigFactory.h
  3542. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3543. Defined strings used in netrc as static const std::string
  3544. * src/Netrc.cc
  3545. * src/Netrc.h
  3546. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3547. Defined HTTP status as static const std::string
  3548. * src/AbstractProxyResponseCommand.cc
  3549. * src/HttpHeader.cc
  3550. * src/HttpHeader.h
  3551. * src/HttpResponse.cc
  3552. * src/HttpResponseCommand.cc
  3553. * src/HttpSkipResponseCommand.cc
  3554. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3555. Defined "\r\n", "A", "I" as static const std::string
  3556. * src/A2STR.cc
  3557. * src/A2STR.h
  3558. * src/FtpConnection.cc
  3559. * src/FtpConnection.h
  3560. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3561. Added COLON_C(".") and used it in Request::parseUrl()
  3562. * src/A2STR.cc
  3563. * src/A2STR.h
  3564. * src/Request.cc (parseUrl)
  3565. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3566. Changed the type of padName from `const std::string&' to `const char*'.
  3567. * src/MSEHandshake.cc (verifyPadLength)
  3568. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3569. Defined "sha1" as static const std::string.
  3570. * src/MetalinkParserController.cc
  3571. * src/MetalinkParserController.h
  3572. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3573. Defined message digest algorithm name as static const std::string
  3574. * src/DHTTokenTracker.cc
  3575. * src/DHTUtil.cc
  3576. * src/DefaultBtContext.cc
  3577. * src/MSEHandshake.cc
  3578. * src/MessageDigestHelper.cc
  3579. * src/Peer.cc
  3580. * src/messageDigest.cc
  3581. * src/messageDigest.h
  3582. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3583. Made string literals used in SAX parser static const std::string.
  3584. * src/FileMetalinkParserState.cc
  3585. * src/FileMetalinkParserState.h
  3586. * src/FilesMetalinkParserState.cc
  3587. * src/FilesMetalinkParserState.h
  3588. * src/InitialMetalinkParserState.cc
  3589. * src/InitialMetalinkParserState.h
  3590. * src/MetalinkMetalinkParserState.cc
  3591. * src/MetalinkMetalinkParserState.h
  3592. * src/PiecesMetalinkParserState.cc
  3593. * src/PiecesMetalinkParserState.h
  3594. * src/ResourcesMetalinkParserState.cc
  3595. * src/ResourcesMetalinkParserState.h
  3596. * src/VerificationMetalinkParserState.cc
  3597. * src/VerificationMetalinkParserState.h
  3598. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3599. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  3600. * src/A2STR.cc
  3601. * src/A2STR.h
  3602. * src/File.cc
  3603. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3604. Defined static const std::string IP("ip"), PORT("port") and use them
  3605. instead of string literals.
  3606. * src/DefaultPeerListProcessor.cc
  3607. * src/DefaultPeerListProcessor.h
  3608. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3609. Made string literals for torrent file processing static const
  3610. std::string.
  3611. * src/BtContext.cc
  3612. * src/BtContext.h
  3613. * src/DefaultBtContext.cc
  3614. * src/DefaultBtContext.h
  3615. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3616. Made string literal for tracker response static const std::string
  3617. * src/BtAnnounce.cc
  3618. * src/BtAnnounce.h
  3619. * src/DefaultBtAnnounce.cc
  3620. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3621. Use DHTMessage::T instead of "t".
  3622. * src/DHTMessageTracker.cc (messageArrived)
  3623. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3624. Made keyName static const. Made trimmed charset static const
  3625. std::string.
  3626. * src/Util.cc (getContentDispositionFilename)
  3627. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3628. Made USER_AGENT const. Made "/" static const std::string.
  3629. * src/A2STR.cc
  3630. * src/A2STR.h
  3631. * src/HttpRequest.cc
  3632. * src/HttpRequest.h
  3633. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3634. Made string listeral to static const std::string:
  3635. "Content-Range", "Content-Length"
  3636. * src/HttpHeader.cc
  3637. * src/HttpHeader.h
  3638. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3639. Made string listeral to static const std::string.
  3640. * src/HttpConnection.cc
  3641. * src/HttpHeader.cc
  3642. * src/HttpHeader.h
  3643. * src/HttpResponse.cc
  3644. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3645. Made string listeral to static const std::string.
  3646. * src/A2STR.cc
  3647. * src/A2STR.h
  3648. * src/SimpleLogger.cc
  3649. * src/SimpleLogger.h
  3650. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3651. Made string literal to static const std::string.
  3652. Rewritten CookieParser::setField.
  3653. * src/A2STR.cc
  3654. * src/A2STR.h
  3655. * src/CookieBoxFactory.cc
  3656. * src/CookieBoxFactory.h
  3657. * src/CookieParser.cc
  3658. * src/CookieParser.h
  3659. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3660. Made string literal to static const std::string
  3661. * src/DHTAbstractMessage.cc
  3662. * src/DHTAnnouncePeerMessage.cc
  3663. * src/DHTAnnouncePeerMessage.h
  3664. * src/DHTAnnouncePeerReplyMessage.cc
  3665. * src/DHTAnnouncePeerReplyMessage.h
  3666. * src/DHTFindNodeMessage.cc
  3667. * src/DHTFindNodeMessage.h
  3668. * src/DHTFindNodeReplyMessage.cc
  3669. * src/DHTFindNodeReplyMessage.h
  3670. * src/DHTGetPeersMessage.cc
  3671. * src/DHTGetPeersMessage.h
  3672. * src/DHTGetPeersReplyMessage.cc
  3673. * src/DHTGetPeersReplyMessage.h
  3674. * src/DHTMessage.cc
  3675. * src/DHTMessage.h
  3676. * src/DHTMessageFactoryImpl.cc
  3677. * src/DHTMessageReceiver.cc
  3678. * src/DHTPingMessage.cc
  3679. * src/DHTPingMessage.h
  3680. * src/DHTPingReplyMessage.cc
  3681. * src/DHTPingReplyMessage.h
  3682. * src/DHTQueryMessage.cc
  3683. * src/DHTQueryMessage.h
  3684. * src/DHTResponseMessage.cc
  3685. * src/DHTResponseMessage.h
  3686. * src/DHTUnknownMessage.cc
  3687. * src/DHTUnknownMessage.h
  3688. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3689. Made string literal to static const std::string
  3690. * src/BtChokeMessage.cc (toString)
  3691. * src/BtHaveAllMessage.cc (toString)
  3692. * src/BtHaveNoneMessage.cc (toString)
  3693. * src/BtInterestedMessage.cc (toString)
  3694. * src/BtNotInterestedMessage.cc (toString)
  3695. * src/BtUnchokeMessage.cc (toString)
  3696. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3697. Replaced "" with static const variable A2STR::NIL.
  3698. Replaced string comparison against "" with std::string::empty().
  3699. Added PROTO_* to Request class and use them as a protocol string
  3700. constant.
  3701. Made "started", "stopped", "completed" static const variable in
  3702. AnnounceList class.
  3703. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3704. Updated translations. Great thanks to translators.
  3705. * po/ca.po
  3706. * po/de.po
  3707. * po/fr.po
  3708. * po/it.po
  3709. * po/ja.po
  3710. * po/ru.po
  3711. * po/zh_CN.po
  3712. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3713. Updated man page; categorized options and fixed typo.
  3714. * doc/aria2c.1.txt
  3715. * doc/aria2c.1.html
  3716. * doc/aria2c.1
  3717. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3718. Removed const ref
  3719. * src/MetalinkEntry.cc (AddProtocolPreference)
  3720. * src/RequestGroup.cc (FindServerHostByHostname)
  3721. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3722. Rewritten Accept-Features handling.
  3723. * src/HttpRequestCommand.cc (createHttpRequest)
  3724. * src/a2functional.h
  3725. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3726. Changed method signature:
  3727. DHTAbstractNodeLookupTask::toEntries
  3728. * src/DHTAbstractNodeLookupTask.cc
  3729. * src/DHTAbstractNodeLookupTask.h
  3730. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3731. Changed method signature:
  3732. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  3733. * src/BtContext.h
  3734. * src/DefaultBtContext.cc
  3735. * src/DefaultBtContext.h
  3736. * src/DefaultBtInteractive.cc
  3737. * test/DefaultBtContextTest.cc
  3738. * test/MockBtContext.h
  3739. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3740. Changed method signature:
  3741. MultiFileAllocationIterator::makeDiskWriterEntries
  3742. * src/MultiFileAllocationIterator.cc
  3743. * src/MultiFileAllocationIterator.h
  3744. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3745. Changed method sinature:
  3746. MetalinkEntry::toFileEntry,
  3747. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  3748. Metalinker::queryEntry
  3749. * src/Metalink2RequestGroup.cc
  3750. * src/MetalinkEntry.cc
  3751. * src/MetalinkEntry.h
  3752. * src/MetalinkHelper.cc
  3753. * src/MetalinkHelper.h
  3754. * src/Metalinker.cc
  3755. * src/Metalinker.h
  3756. * src/main.cc
  3757. * test/MetalinkHelperTest.cc
  3758. * test/MetalinkerTest.cc
  3759. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3760. Changed method sinature:
  3761. RequestGroup::getURIs
  3762. * src/RequestGroup.cc
  3763. * src/RequestGroup.h
  3764. * test/Metalink2RequestGroupTest.cc
  3765. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3766. Changed method signature:
  3767. PeerListProcessor::extractPeer
  3768. * src/CompactPeerListProcessor.cc
  3769. * src/CompactPeerListProcessor.h
  3770. * src/DefaultBtAnnounce.cc
  3771. * src/DefaultPeerListProcessor.cc
  3772. * src/DefaultPeerListProcessor.h
  3773. * src/DelegatingPeerListProcessor.cc
  3774. * src/DelegatingPeerListProcessor.h
  3775. * src/PeerListProcessor.h
  3776. * src/UTPexExtensionMessage.cc
  3777. * test/DefaultPeerListProcessorTest.cc
  3778. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3779. Changed method signature:
  3780. BtRequestFactory::createRequestMessages,
  3781. BtRequestFactory::createRequestMessagesOnEndGame
  3782. * src/BtRequestFactory.h
  3783. * src/DefaultBtInteractive.cc
  3784. * src/DefaultBtRequestFactory.cc
  3785. * src/DefaultBtRequestFactory.h
  3786. * test/DefaultBtRequestFactoryTest.cc
  3787. * test/MockBtRequestFactory.h
  3788. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3789. Changed method signature:
  3790. PieceStorage::getInFlightPieces
  3791. * src/DefaultBtProgressInfoFile.cc
  3792. * src/DefaultPieceStorage.cc
  3793. * src/DefaultPieceStorage.h
  3794. * src/PieceStorage.h
  3795. * src/UnknownLengthPieceStorage.cc
  3796. * src/UnknownLengthPieceStorage.h
  3797. * test/DefaultBtProgressInfoFileTest.cc
  3798. * test/MockPieceStorage.h
  3799. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3800. Changed method signature:
  3801. PostDownloadHandler::getNextRequestGroups
  3802. Metalink2RequestGroup::generate
  3803. RequestGroup::postDownloadProcessing
  3804. * src/BtPostDownloadHandler.cc
  3805. * src/BtPostDownloadHandler.h
  3806. * src/Metalink2RequestGroup.cc
  3807. * src/Metalink2RequestGroup.h
  3808. * src/MetalinkPostDownloadHandler.cc
  3809. * src/MetalinkPostDownloadHandler.h
  3810. * src/PostDownloadHandler.h
  3811. * src/RequestGroup.cc
  3812. * src/RequestGroup.h
  3813. * src/RequestGroupMan.cc
  3814. * src/main.cc
  3815. * test/BtPostDownloadHandlerTest.cc
  3816. * test/Metalink2RequestGroupTest.cc
  3817. * test/MetalinkPostDownloadHandlerTest.cc
  3818. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3819. Rewritten AccRequestGroup
  3820. * src/main.cc
  3821. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3822. Rewritten.
  3823. * src/TaggedItem.cc (toTagString)
  3824. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3825. Rewritten Accept-Features handling.
  3826. * src/HttpRequestCommand.cc (createHttpRequest)
  3827. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3828. Rewritten accept types handling.
  3829. * HttpRequest.cc (createRequest)
  3830. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3831. Rewritten
  3832. * src/FeatureConfig.cc (featureSummary)
  3833. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3834. Changed method signature:
  3835. PeerStorage::getActivePeers
  3836. * src/DHTPeerAnnounceEntry.cc
  3837. * src/DefaultPeerStorage.cc
  3838. * src/DefaultPeerStorage.h
  3839. * src/PeerStorage.h
  3840. * test/DefaultPeerStorageTest.cc
  3841. * test/MockPeerStorage.h
  3842. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3843. Changed method signature:
  3844. DHTPeerAnnounceStorage::getPeers,
  3845. DHTPeerAnnounceEntry::getPeers
  3846. * src/DHTGetPeersMessage.cc
  3847. * src/DHTPeerAnnounceEntry.cc
  3848. * src/DHTPeerAnnounceEntry.h
  3849. * src/DHTPeerAnnounceStorage.cc
  3850. * src/DHTPeerAnnounceStorage.h
  3851. * test/DHTAnnouncePeerMessageTest.cc
  3852. * test/DHTPeerAnnounceEntryTest.cc
  3853. * test/DHTPeerAnnounceStorageTest.cc
  3854. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3855. Changed method signature:
  3856. NameResolver::resolve
  3857. * src/DHTEntryPointNameResolveCommand.cc
  3858. * src/InitiateConnectionCommand.cc
  3859. * src/NameResolver.cc
  3860. * src/NameResolver.h
  3861. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. Changed method signature:
  3863. PieceStorage::getAdvertisedPieceIndexes
  3864. * src/DefaultBtInteractive.cc
  3865. * src/DefaultPieceStorage.cc
  3866. * src/DefaultPieceStorage.h
  3867. * src/PieceStorage.h
  3868. * src/UnknownLengthPieceStorage.h
  3869. * test/MockPieceStorage.h
  3870. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Changed method signature:
  3872. SegmentMan::getInFlightSegment
  3873. * src/AbstractCommand.cc
  3874. * src/SegmentMan.cc
  3875. * src/SegmentMan.h
  3876. * test/SegmentManTest.cc
  3877. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3878. Changed method signature:
  3879. DHTAbstractNodeLookupTask::getNodesFromMessage
  3880. * src/DHTAbstractNodeLookupTask.cc
  3881. * src/DHTAbstractNodeLookupTask.h
  3882. * src/DHTNodeLookupTask.cc
  3883. * src/DHTNodeLookupTask.h
  3884. * src/DHTPeerLookupTask.cc
  3885. * src/DHTPeerLookupTask.h
  3886. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3887. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  3888. * src/AbstractCommand.cc
  3889. * src/BtCheckIntegrityEntry.cc
  3890. * src/BtCheckIntegrityEntry.h
  3891. * src/BtFileAllocationEntry.cc
  3892. * src/BtFileAllocationEntry.h
  3893. * src/BtSetup.cc
  3894. * src/BtSetup.h
  3895. * src/CheckIntegrityCommand.cc
  3896. * src/CheckIntegrityEntry.h
  3897. * src/ChecksumCheckIntegrityEntry.cc
  3898. * src/ChecksumCheckIntegrityEntry.h
  3899. * src/DHTSetup.cc
  3900. * src/DHTSetup.h
  3901. * src/DownloadEngine.cc
  3902. * src/FileAllocationCommand.cc
  3903. * src/FileAllocationEntry.h
  3904. * src/RequestGroup.cc
  3905. * src/RequestGroup.h
  3906. * src/RequestGroupMan.cc
  3907. * src/RequestGroupMan.h
  3908. * src/StreamCheckIntegrityEntry.cc
  3909. * src/StreamCheckIntegrityEntry.h
  3910. * src/StreamFileAllocationEntry.cc
  3911. * src/StreamFileAllocationEntry.h
  3912. * src/TrackerWatcherCommand.cc
  3913. * src/a2functional.h
  3914. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3915. Changed method signature:
  3916. BNode::findClosestKNodes, BNode:: enumerateBucket,
  3917. DHTBucket::getGoodNodes,
  3918. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  3919. * src/BNode.cc
  3920. * src/BNode.h
  3921. * src/DHTAbstractNodeLookupTask.cc
  3922. * src/DHTAutoSaveCommand.cc
  3923. * src/DHTBucket.cc
  3924. * src/DHTBucket.h
  3925. * src/DHTBucketRefreshTask.cc
  3926. * src/DHTFindNodeMessage.cc
  3927. * src/DHTGetPeersMessage.cc
  3928. * src/DHTRoutingTable.cc
  3929. * src/DHTRoutingTable.h
  3930. * test/BNodeTest.cc
  3931. * test/DHTBucketTest.cc
  3932. * test/DHTRoutingTableTest.cc
  3933. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3934. In piece selection functions, Pass std::deque<...> by reference rather
  3935. than returning it.
  3936. * src/BitfieldMan.cc
  3937. * src/BitfieldMan.h
  3938. * src/DefaultBtRequestFactory.cc
  3939. * src/DefaultPieceStorage.cc
  3940. * src/Piece.cc
  3941. * src/Piece.h
  3942. * test/BitfieldManTest.cc
  3943. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3944. Implemented rarest piece first piece selection strategy.
  3945. * src/AbstractBtMessage.cc
  3946. * src/AbstractBtMessage.h
  3947. * src/BitfieldMan.cc
  3948. * src/BitfieldMan.h
  3949. * src/BtBitfieldMessage.cc
  3950. * src/BtHaveAllMessage.cc
  3951. * src/BtHaveMessage.cc
  3952. * src/DefaultPieceStorage.cc
  3953. * src/DefaultPieceStorage.h
  3954. * src/PeerInteractionCommand.cc
  3955. * src/PieceStorage.h
  3956. * src/UnknownLengthPieceStorage.h
  3957. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3958. Rewritten readData and writeData.
  3959. * src/MultiDiskAdaptor.cc
  3960. * src/MultiDiskAdaptor.h
  3961. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3962. Move \n out of the message "Usage: ...".
  3963. * src/version_usage.cc
  3964. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3965. Bump up version number to 0.13.2b.
  3966. * configure.ac
  3967. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3968. Added const qualifier to argument Exception& e.
  3969. * src/Logger.h
  3970. * src/SimpleLogger.cc
  3971. * src/SimpleLogger.h
  3972. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3973. Pool connection when CWD, SIZE command fails.
  3974. * src/FtpNegotiationCommand.cc
  3975. * src/FtpNegotiationCommand.h
  3976. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3977. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  3978. * src/HttpResponseCommand.cc
  3979. * src/HttpSkipResponseCommand.cc
  3980. * src/HttpSkipResponseCommand.h
  3981. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3982. Pool connection when a server returns 4xx, 5xx responses.
  3983. * src/HttpNullDownloadCommand.cc
  3984. * src/HttpNullDownloadCommand.h
  3985. * src/HttpResponse.cc
  3986. * src/HttpResponse.h
  3987. * src/HttpResponseCommand.cc
  3988. * src/HttpResponseCommand.h
  3989. * test/HttpResponseTest.cc
  3990. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Print usage when no URL is specifed or bad command-line option is
  3992. specified.
  3993. * src/HelpItemFactory.cc
  3994. * src/help_tags.h
  3995. * src/option_processing.cc
  3996. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3997. Removed duplicate log message.
  3998. * src/AbstractCommand.cc (asyncResolveHostname)
  3999. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4000. Updated man page: --async-dns and --ftp-reuse-connection were added.
  4001. Changed -j option's default value from 5 to 1.
  4002. Added new examples using protocol auto detection feature.
  4003. Removed -T, -M usage where it can be omitted.
  4004. * doc/aria2c.1.txt
  4005. * doc/aria2c.1.html
  4006. * doc/aria2c.1.txt
  4007. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4008. Updated command-line usage text, so that it tells users that they
  4009. can specify any number of torrent files and metalink files in
  4010. command-line.
  4011. * src/version_usage.cc
  4012. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4013. Changed the default value of -j option to 1.
  4014. * src/HelpItemFactory.cc
  4015. * src/option_processing.cc
  4016. * src/usage_text.h
  4017. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4018. Added the ability to reuse connection in FTP and it is enabled by
  4019. default. It can be disabled by --ftp-reuse-connection=false option.
  4020. * src/Command.cc
  4021. * src/DownloadCommand.cc
  4022. * src/FtpDownloadCommand.cc
  4023. * src/FtpDownloadCommand.h
  4024. * src/FtpFinishDownloadCommand.cc
  4025. * src/FtpFinishDownloadCommand.h
  4026. * src/FtpInitiateConnectionCommand.cc
  4027. * src/FtpNegotiationCommand.cc
  4028. * src/FtpNegotiationCommand.h
  4029. * src/HelpItemFactory.cc
  4030. * src/Makefile.am
  4031. * src/Makefile.in
  4032. * src/OptionHandlerFactory.cc
  4033. * src/option_processing.cc
  4034. * src/prefs.h
  4035. * src/usage_text.h
  4036. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4037. Call Command::transitStatus() before calling Command::execute(),
  4038. so that the status change made in execute() is not cleared.
  4039. * src/DownloadEngine.cc
  4040. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4041. Removed forward declaration of SocketCore class.
  4042. * src/HttpDownloadCommand.h
  4043. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4044. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  4045. in InitiateConnectionCommandFactory. They should be set only when
  4046. the protocol is HTTP or HTTPS.
  4047. * src/InitiateConnectionCommandFactory.cc
  4048. * src/RequestGroup.cc
  4049. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. Fixed infinite loop in checksum checking.
  4051. * src/IteratableChecksumValidator.cc
  4052. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4053. Set _supportsPersistentConnection to true by default.
  4054. * src/Request.cc
  4055. * src/RequestGroup.cc
  4056. * test/HttpRequestTest.cc
  4057. * test/RequestTest.cc
  4058. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4059. Added timeout to socket pool. The default timeout is 15 seconds,
  4060. which is the same value Apache uses.
  4061. * src/DownloadEngine.cc
  4062. * src/DownloadEngine.h
  4063. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4064. Fixed misuse of multimap::find()
  4065. * src/HttpHeader.cc
  4066. * test/HttpHeaderTest.cc
  4067. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4068. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  4069. option.
  4070. The asynchronous DNS is not capable of IPv6 yet.
  4071. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  4072. least for HTTP download.
  4073. * src/AbstractCommand.cc
  4074. * src/AbstractCommand.h
  4075. * src/AsyncNameResolver.cc
  4076. * src/AsyncNameResolver.h
  4077. * src/DHTEntryPointNameResolveCommand.cc
  4078. * src/DHTEntryPointNameResolveCommand.h
  4079. * src/DownloadEngine.cc
  4080. * src/DownloadEngine.h
  4081. * src/FtpInitiateConnectionCommand.cc
  4082. * src/FtpInitiateConnectionCommand.h
  4083. * src/HelpItemFactory.cc
  4084. * src/HttpInitiateConnectionCommand.cc
  4085. * src/HttpInitiateConnectionCommand.h
  4086. * src/InitiateConnectionCommand.cc
  4087. * src/InitiateConnectionCommand.h
  4088. * src/Makefile.am
  4089. * src/Makefile.in
  4090. * src/NameResolver.cc
  4091. * src/NameResolver.h
  4092. * src/OptionHandlerFactory.cc
  4093. * src/SocketCore.cc
  4094. * src/SocketCore.h
  4095. * src/Util.cc
  4096. * src/Util.h
  4097. * src/option_processing.cc
  4098. * src/prefs.h
  4099. * src/usage_text.h
  4100. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4101. Updated man page: --quiet, --header were added.
  4102. --metalink-servers and --enable-http-keep-alive option were updated.
  4103. * doc/aria2c.1
  4104. * doc/aria2c.1.html
  4105. * doc/aria2c.1.txt
  4106. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4107. Enable HTTP keep-alive by default.
  4108. * src/HelpItemFactory.cc
  4109. * src/option_processing.cc
  4110. * src/usage_text.h
  4111. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4112. Disable http keep-alive if the remote server is not HTTP/1.1.
  4113. * src/HttpConnection.cc
  4114. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4115. Receive content body of 302 response so that the connection can be
  4116. reused later when http keep-alive is enabled.
  4117. * src/HttpNullDownloadCommand.cc
  4118. * src/HttpNullDownloadCommand.h
  4119. * src/HttpResponseCommand.cc
  4120. * src/HttpResponseCommand.h
  4121. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4122. const SharedHandle<Request> -> const SharedHandle<Request>&
  4123. * src/FtpDowndloadCommand.cc
  4124. * src/FtpDowndloadCommand.h
  4125. * src/HttpDownloadCommand.cc
  4126. * src/HttpDownloadCommand.h
  4127. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4128. Fixed the bug that the control file(.aria2 file) is not renamed
  4129. according to tryAutoFileRenaming().
  4130. tryAutoFileRenaming() was rewritten so that if both renamed file and
  4131. its control file exist, use them and continue download.
  4132. The old implementation didn't take into account of control file's
  4133. existence, so basically you couldn't continue download of renamed file.
  4134. * src/BtProgressInfoFile.h
  4135. * src/DefaultBtProgressInfoFile.cc
  4136. * src/DefaultBtProgressInfoFile.h
  4137. * src/NullProgressInfoFile.h
  4138. * src/RequestGroup.cc
  4139. * test/DefaultBtProgressInfoFileTest.cc
  4140. * test/MockBtProgressInfoFile.h
  4141. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4142. Change the default value of --metalink-servers option from `5' to `1'.
  4143. * src/HelpItemFactory.cc
  4144. * src/option_processing.cc
  4145. * src/usage_text.h
  4146. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4147. Reimplemented transparent metalink using Accept request header.
  4148. * src/HttpRequest.cc
  4149. * src/HttpRequest.h
  4150. * src/HttpRequestCommand.cc
  4151. * src/Metalink2RequestGroup.cc
  4152. * src/RequestGroup.cc
  4153. * src/RequestGroup.h
  4154. * test/HttpRequestTest.cc
  4155. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4156. Bump up version number to 0.13.2a
  4157. * configure.ac
  4158. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4159. Updated configure.ac using the result of autoscan.
  4160. * configure.ac
  4161. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4162. Fixed compilation error without gcrypt/openssl.
  4163. * src/DownloadCommand.cc
  4164. * src/DownloadCommand.h
  4165. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4166. Reorganized version information so that it can be displayed in a
  4167. standard terminal screen without scrolling.
  4168. Removed http, ftp from Configuration section, because they are always
  4169. enabled.
  4170. * src/FeatureConfig.cc
  4171. * src/FeatureConfig.h
  4172. * src/main.cc
  4173. * src/messageDigest.cc
  4174. * src/messageDigest.h
  4175. * src/version_usage.cc
  4176. * test/FeatureConfigTest.cc
  4177. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4178. Masked user ID in log.
  4179. * src/FtpConnection.cc (sendUser)
  4180. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4181. Removed query part from filename in HTTP download. The query part means
  4182. the substring after "?" in URL. Firefox seems do the same thing.
  4183. A query part is sometimes very long and not suitable to filename,
  4184. so I think it is better to remove it from filename.
  4185. * src/HttpRequest.cc
  4186. * src/HttpRequest.h
  4187. * src/Request.cc
  4188. * src/Request.h
  4189. * test/HttpRequestTest.cc
  4190. * test/RequestTest.cc
  4191. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Rewritten Exception class. Throw exception object, not its pointer and
  4193. catch by reference, so that remove problematic delete operator for
  4194. catched exception.
  4195. * src/Exception.cc
  4196. * src/Exception.h
  4197. * test/ExceptionTest.cc
  4198. * src/*: All files throwing/catching exception.
  4199. * test/*: All files throwing/catching exception.
  4200. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4201. Now auto protocol detection is enabled without -Z option.
  4202. But there is a important difference between with/without -Z optoin.
  4203. For example, if you type:
  4204. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  4205. then, aria2 interprets there are 3 request groups:
  4206. (1) http://host/file, http://mirror/file <-- multi-source download
  4207. (2) file1.torrent
  4208. (3) file2.metalink
  4209. On the other hand, if you invoke above command with -Z option, it is
  4210. interpreted as 4 request groups:
  4211. (1) http://host/file
  4212. (2) file1.torrent
  4213. (3) file2.metalink
  4214. (4) http://mirror/file
  4215. I think usually user don't mix multi-source URLs and torrent files, so
  4216. there is no big problem here.
  4217. * src/main.cc
  4218. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4219. Fixed the bug that causes segmentaion fault when reading XML containing
  4220. unescapsed character like '&'.
  4221. Also a modification was made which avoids adding unnecessary
  4222. characters stack and appending unused string.
  4223. * src/ExpatMetalinkProcessor.cc
  4224. * src/FileMetalinkParserState.h
  4225. * src/FilesMetalinkParserState.h
  4226. * src/FinMetalinkParserState.h
  4227. * src/HashMetalinkParserState.h
  4228. * src/InitialMetalinkParserState.h
  4229. * src/LanguageMetalinkParserState.h
  4230. * src/MetalinkMetalinkParserState.h
  4231. * src/MetalinkParserState.h
  4232. * src/MetalinkParserStateMachine.cc
  4233. * src/MetalinkParserStateMachine.h
  4234. * src/OSMetalinkParserState.h
  4235. * src/PieceHashMetalinkParserState.h
  4236. * src/PiecesMetalinkParserState.h
  4237. * src/ResourcesMetalinkParserState.h
  4238. * src/SizeMetalinkParserState.h
  4239. * src/SkipTagMetalinkParserState.h
  4240. * src/URLMetalinkParserState.h
  4241. * src/VerificationMetalinkParserState.h
  4242. * src/VersionMetalinkParserState.h
  4243. * src/XML2SAXMetalinkProcessor.cc
  4244. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4245. Added StringFormat class, which internally calls vasprintf.
  4246. operator<< is defined for this class, so it can be used with iostream
  4247. classes nicely. SimpleLogger and following functions are rewritten
  4248. using StringFormat class.
  4249. Besides, now Logger class's methods are non-const, many classes
  4250. that has a const Logger* as a member variable are modified to remove
  4251. const qualifier from the variable declaration.
  4252. * src/HelpItemFactory.cc
  4253. * src/Request.cc
  4254. * src/SimpleLogger.cc
  4255. * src/StringFormat.cc
  4256. * src/StringFormat.h
  4257. * src/Util.cc
  4258. * src/option_processing.cc
  4259. * src/version_usage.cc
  4260. * test/StringFormatTest.cc
  4261. * src/*.h: The classes that has const Logger* as a member variable.
  4262. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4263. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  4264. failed. Also fixed memory link when exception is thrown there.
  4265. * src/main.cc (AccRequestGroup)
  4266. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4267. Added build-in "Accept-Features" support. For now only "metalink" is
  4268. used in this header field.
  4269. This "metalink" value is removed from the list when connecting URLs
  4270. fed by metalink file to avoid loop in "transparent" metlaink.
  4271. * src/HttpRequest.cc
  4272. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  4273. header is also held in this variable. Also renamed setUserHeaders as
  4274. addHeader and it was rewritten to add header not just to clear the old
  4275. value.
  4276. * src/HttpRequestCommand.cc
  4277. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  4278. from "Accept-Features" list.
  4279. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  4280. default.
  4281. * src/RequestGroup.h
  4282. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  4283. * src/a2functional.h: Included <string> because Concat class depends on
  4284. it.
  4285. * test/HttpRequestTest.cc
  4286. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4287. Added comment
  4288. * src/RequestGroup.cc (createNextCommand)
  4289. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4290. Capitalized METHOD_GET and METHOD_HEAD
  4291. * src/Request.cc
  4292. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4293. Added getDownloadResults() method
  4294. * src/RequestGroupMan.cc
  4295. * src/RequestGroupMan.h
  4296. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4297. Fixed the bug that aria2 exits when commands is empty() but
  4298. _routineCommands are not.
  4299. * src/DownloadEngine.cc
  4300. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4301. Use the default value pulled from Option object in HelpItemFactory.
  4302. except options whose defualt value is embedded in a usage text.
  4303. * src/HelpItemFactory.cc
  4304. * src/HelpItemFactory.h
  4305. * src/option_processing.cc
  4306. * src/version_usage.cc
  4307. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4308. Added --quiet option to make aria2 quiet (no console output).
  4309. --quiet option is tagged with ADVANCED.
  4310. * src/HelpItemFactory.cc
  4311. * src/LogFactory.cc
  4312. * src/LogFactory.h
  4313. * src/MultiUrlRequestInfo.cc
  4314. * src/MultiUrlRequestInfo.h
  4315. * src/NullStatCalc.h: New class. This class prints nothing.
  4316. * src/OptionHandlerFactory.cc
  4317. * src/main.cc
  4318. * src/option_processing.cc
  4319. * src/prefs.h
  4320. * src/usage_text.h
  4321. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4322. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  4323. * src/HelpItemFactory.cc (createHelpItems):
  4324. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4325. Fixed compilation error in ExpatMetalinkProcessor.cc
  4326. * src/ExpatMetalinkProcessor.cc
  4327. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4328. Reuse socket if the origin server supports HTTP keep-alive and
  4329. --enable-http-keep-alive or --enable-http-pipelining is given.
  4330. The current implementation doesn't reuse the connections established
  4331. against proxy server.
  4332. * src/AbstractCommand.cc
  4333. * src/DownloadEngine.cc
  4334. * src/DownloadEngine.h
  4335. * src/HttpDownloadCommand.cc
  4336. * src/HttpInitiateConnectionCommand.cc
  4337. * src/HttpResponseCommand.cc
  4338. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4339. Rewritten HTTP keep-alive and pipelining routine.
  4340. * src/AbstractCommand.cc
  4341. * src/HttpConnection.cc
  4342. * src/HttpDownloadCommand.cc
  4343. * src/HttpRequest.cc
  4344. * src/HttpRequestCommand.cc
  4345. * src/HttpResponseCommand.cc
  4346. * src/Request.cc
  4347. * src/Request.h
  4348. * src/RequestGroup.cc
  4349. * test/HttpRequestTest.cc
  4350. * test/HttpResponseTest.cc
  4351. * test/RequestTest.cc
  4352. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4353. Added missing setUserHeaders call
  4354. * src/HttpRequestCommand.cc
  4355. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4356. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  4357. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  4358. waste of time because it is more likey false.
  4359. * src/FileAllocationDispatcherCommand.cc (execute)
  4360. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4361. Now HTTP status and version are a member variable of HttpHeader.
  4362. HTTP status is processed as a string, not integer.
  4363. * src/AbstractProxyResponseCommand.cc
  4364. * src/HttpConnection.cc
  4365. * src/HttpHeader.cc
  4366. * src/HttpHeader.h
  4367. * src/HttpHeaderProcessor.cc
  4368. * src/HttpHeaderProcessor.h
  4369. * src/HttpResponse.cc
  4370. * src/HttpResponse.h
  4371. * test/HttpHeaderProcessorTest.cc
  4372. * test/HttpResponseTest.cc
  4373. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4374. Added --header option. You can specify any number of additional HTTP headers
  4375. like:
  4376. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  4377. Unlike other commad-line option, you can use --header option multiple times.
  4378. * src/HelpItemFactory.cc
  4379. * src/HttpRequest.{cc, h}
  4380. * src/HttpRequestCommand.cc
  4381. * src/OptionHandlerFactory.cc
  4382. * src/OptionHandlerImpl.h
  4383. * src/option_processing.cc
  4384. * src/prefs.h
  4385. * src/usage_text.h
  4386. * test/HttpRequestTest.cc (testUserHeaders)
  4387. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4388. Eliminates the time lag between sequential downloads and commands in
  4389. the same RequestGroup.
  4390. In old implementation, aria2 occasionally waits 1 seconds before
  4391. executing next command or RequestGroup.
  4392. This is really a waste of time, and new implementation eliminates
  4393. this unnecessary time lag.
  4394. * src/AbstractCommand.cc
  4395. * src/AutoSaveCommand.cc
  4396. * src/CheckIntegrityCommand.cc
  4397. * src/Command.{cc, h}
  4398. * src/DownloadEngine.{cc, h}
  4399. * src/DownloadEngineFactory.cc
  4400. * src/FileAllocationCommand.cc
  4401. * src/FileAllocationDispatcherCommand.cc
  4402. * src/FillRequestGroupCommand.cc
  4403. * src/FtpInitiateConnectionCommand.cc
  4404. * src/HaveEraseCommand.cc
  4405. * src/HttpInitiateConnectionCommand.cc
  4406. * src/HttpResponseCommand.cc
  4407. * src/RealtimeCommand.cc
  4408. * src/RequestGroup.cc
  4409. * src/RequestGroupMan.cc
  4410. * src/StreamFileAllocationEntry.cc
  4411. * src/TimeBasedCommand.{cc, h}
  4412. * src/TimedHaltCommand.cc
  4413. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4414. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  4415. keyword explicit and SharedHandle's default constructor initializes
  4416. its internal obj to null, old implementation initializes it using
  4417. obj's default constructor.
  4418. To assign null, write SharedHandle<T> x(...); x.reset();
  4419. TODO: test/SharedHandleTest.cc needs more tests.
  4420. * src/SharedHandle.h
  4421. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4422. Fixed type in man page.
  4423. * doc/aria2c.1.txt
  4424. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4425. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  4426. * src/SimpleLogger.{cc, h}
  4427. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4428. Implemented auto protocol detection.
  4429. Now you can do:
  4430. aria2c -Z http://host/file file1.torrent file2.metalink
  4431. (Note: -Z option is required for auto protcol detection.)
  4432. Then aria2c downloads 3 files simultaneously:
  4433. 1. http://host/file
  4434. 2. file1.torrent <-- read local torrent file
  4435. 3. file2.metalink <-- read local Metalink file.
  4436. Same thing goes with -i option. Assume your uris.txt contans:
  4437. http://host/file
  4438. file1.torrent
  4439. file2.metalink
  4440. Then you can do: aria2c -i uris.txt
  4441. (Note: -Z option is not needed if -i option is given.)
  4442. * src/main.cc
  4443. * src/ProtocolDetector.{cc, h}
  4444. * test/ProtocolDetectorTest.cc
  4445. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  4447. installed
  4448. * src/ARC4Encryptor.h
  4449. * src/ARC4Decryptor.h
  4450. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4451. Renamed argument from 'errno' to 'err', since errno is confused with
  4452. errno defined in errno.h.
  4453. * src/LibgcryptARC4Decryptor.h
  4454. * src/LibgcryptARC4Context.h
  4455. * src/LibgcryptDHKeyExchange.h
  4456. * src/LibgcryptARC4Encryptor.h
  4457. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4458. Rewritten choking algorithm.
  4459. * src/PeerChokeCommand.{cc, h}
  4460. * src/BtInterestedMessage.cc
  4461. * src/PeerSessionResource.{cc, h}
  4462. * src/DefaultPeerStorage.{cc, h}
  4463. * src/BtNotInterestedMessage.cc
  4464. * src/DefaultBtMessageDispatcher.{cc, h}
  4465. * src/BtMessageDispatcher.h
  4466. * src/Peer.{cc, h}
  4467. * src/BtLeecherStateChoke.{cc, h}
  4468. * src/BtSetup.cc
  4469. * src/BtSeederStateChoke.{cc, h}
  4470. * src/PeerStorage.h
  4471. * test/MockPeerStorage.h
  4472. * test/MockBtMessageDispatcher.h
  4473. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4474. Fixed compilation error on x84-64 platform.
  4475. * src/AuthConfig.cc: Included ostream.
  4476. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4477. Rewritten getBasename() and getDirname(), without standard library
  4478. basename(), dirname().
  4479. * src/File.cc
  4480. * test/FileTest.cc
  4481. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4482. Added Simplified Chinese translation. Also updated the following
  4483. translations: Polish, Dutch, German. Great thanks to all translators.
  4484. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4485. Suppress content-range error when 'Content-Range' response header
  4486. doesn't contains bytes-unit specifier 'bytes'
  4487. * src/HttpHeader.cc (getRange)
  4488. * test/HttpHeaderTest.cc
  4489. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4490. Fixed compilation error with g++-4.3
  4491. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4492. Added missing include files for MinGW
  4493. * test/HttpHeaderProcessorTest.cc
  4494. * test/DHTRoutingTableSerializerTest.cc
  4495. * test/DHTRoutingTableDeserializerTest.cc
  4496. * test/UriListParserTest.cc
  4497. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4498. Now download line is printed nicely with no garbage at the end of
  4499. line. I use ioctl to get the columns of terminal.
  4500. If stdout is redirected to another device, instead of carriage return,
  4501. end of line '\n' character is used. This is feature request#1909659
  4502. * src/ConsoleStatCalc.cc (calculateStat)
  4503. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4504. Included a2time.h
  4505. * src/DHTMessageDispatcher.h
  4506. * src/DHTMessageEntry.h
  4507. * src/DHTReplaceNodeTask.h
  4508. * src/DHTMessageTracker.h
  4509. * src/Util.h
  4510. * src/CookieBox.h
  4511. * src/SocketCore.h
  4512. * src/DefaultBtMessageDispatcher.h
  4513. * src/SocketCore.cc
  4514. * src/Util.cc
  4515. * src/DHTPingTask.h
  4516. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4517. Fixed high memory footprint when DHT is enabled.
  4518. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  4519. queued than it is processed and the queue is getting longer. As a
  4520. consequence, momory usage is increased.
  4521. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  4522. replacement cache in DHTBucket which is described in Kademlia paper.
  4523. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  4524. DHTReplaceNodeTask.
  4525. * src/DHTBucket.{h, cc}
  4526. (cacheNode): New function.
  4527. (getCachedNodes): New function.
  4528. (dropNode): Push back cached node to _nodes.
  4529. * test/DHTBucketTest.cc
  4530. (testCacheNode): New test
  4531. (testDropNode): New test
  4532. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4533. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  4534. the unused 4KB memory when ssl is not used.
  4535. * src/SocketCore.cc
  4536. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4537. Added summary log for peer announce storage.
  4538. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  4539. Removed cast
  4540. * src/DefaultPeerStorage.cc (addPeer)
  4541. Log exception message
  4542. * src/DHTMessageTracker.cc (handleTimeout)
  4543. Fixed casting
  4544. * test/HttpRequestTest.cc
  4545. * test/MetalinkProcessorTest.cc
  4546. * test/PieceTest.cc
  4547. * test/MetalinkEntryTest.cc
  4548. * test/SequenceTest.cc
  4549. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4550. * src/ParameterizedStringParser.cc (createLoop):
  4551. Removed unused variable sstep.
  4552. * src/AlphaNumberDecorator.h (decode): Rewritten.
  4553. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. * src/Util.{h, cc}
  4555. (parseUInt): New function.
  4556. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  4557. The actual range is uint32_t.
  4558. * test/UtilTest.cc
  4559. * src/ParameterizedStringParser.cc:
  4560. Use Util::parseUInt() for loop variables.
  4561. * test/ParameterizedStringParserTest.cc
  4562. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  4563. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4564. Rewritten the functions for binding port.
  4565. * src/DHTConnectionImpl.{h, cc}
  4566. * src/PeerListenCommand.{h, cc}
  4567. * src/DHTSetup.cc
  4568. * src/BtSetup.cc
  4569. * test/DHTConnectionImplTest.cc
  4570. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4571. type cleanup for allmost all remaining files.
  4572. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4573. Type clarification
  4574. * src/PeerSessionResource.{h, cc}
  4575. * src/DefaultPieceStorage.{h, cc}
  4576. * src/Peer.{h, cc}
  4577. * test/PeerSessionResourceTest.cc
  4578. Use div function
  4579. * src/BtPieceMessage.cc (erasePieceOnDisk)
  4580. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4581. Type clarification
  4582. * src/DefaultPeerStorage.{h, cc}
  4583. * test/DefaultPeerStorageTest.cc
  4584. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4585. Type clarification: size_t for length or size, uint64_t for file
  4586. length, off_t for file offset.
  4587. * src/DefaultBtProgressInfoFile.cc
  4588. * src/DefaultBtContext.{h, cc}
  4589. * src/DefaultBtInteractive.cc
  4590. * src/DownloadCommand.{h, cc}
  4591. * src/IteratableChunkChecksumValidator.{h, cc}
  4592. * src/SegmentMan.{h, cc}
  4593. * src/SingleFileDownloadContext.{h, cc}
  4594. * src/IteratableChecksumValidator.{h, cc}
  4595. * src/BtContext.h
  4596. * src/IteratableValidator.h
  4597. * src/DownloadContext.h
  4598. * test/SingleFileDownloadContextTest.cc
  4599. * test/DefaultBtContextTest.cc
  4600. * test/MockBtContext.h
  4601. * test/Metalink2RequestGroupTest.cc
  4602. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4603. Type clarification: size_t for length or size, uint64_t for file
  4604. length, off_t for file offset.
  4605. * src/PiecedSegment.cc
  4606. * src/GrowSegment.h
  4607. * src/DefaultBtRequestFactory.h
  4608. * src/DefaultBtProgressInfoFile.cc
  4609. * src/UnknownLengthPieceStorage.h
  4610. * src/DefaultPieceStorage.cc
  4611. * src/UnknownLengthPieceStorage.cc
  4612. * src/DefaultBtInteractive.cc
  4613. * src/GrowSegment.cc
  4614. * src/BitfieldMan.h
  4615. * src/DownloadCommand.cc
  4616. * src/BtRequestFactory.h
  4617. * src/PiecedSegment.h
  4618. * src/DefaultPieceStorage.h
  4619. * src/Piece.cc
  4620. * src/DefaultBtRequestFactory.cc
  4621. * src/PieceStorage.h
  4622. * src/Segment.h
  4623. * src/Piece.h
  4624. * src/BitfieldMan.cc
  4625. * src/Util.cc
  4626. * test/DefaultBtProgressInfoFileTest.cc
  4627. * test/DefaultPieceStorageTest.cc
  4628. * test/MockPieceStorage.h
  4629. * test/BtRequestMessageTest.cc
  4630. * test/DefaultBtMessageDispatcherTest.cc
  4631. * test/BitfieldManTest.cc
  4632. * test/GrowSegmentTest.cc
  4633. * test/PieceTest.cc
  4634. * test/SegmentTest.cc
  4635. * test/SegmentManTest.cc
  4636. * test/DefaultBtRequestFactoryTest.cc
  4637. * test/MockBtRequestFactory.h
  4638. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4639. Fixed compilation error with --disable-nls
  4640. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  4641. in gettext.h causes the problem.
  4642. * src/common.h
  4643. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4644. Removed subPiece related functions.
  4645. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  4646. * src/DefaultPieceStorage.{h, cc}
  4647. * test/PieceTest.cc
  4648. * test/DefaultPieceStorageTest.cc
  4649. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4650. Use unsigned char for data store.
  4651. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4652. Bump up version number to 0.13.0+1
  4653. * configure.ac
  4654. * Release 0.13.0+1
  4655. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4656. Changed inactive connection timeout to 120.
  4657. To accept more mulually interested peers, disconnect peer when there
  4658. is no interest between us after certain time passed.
  4659. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  4660. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4661. Fixed the bug that aria2 only uses first dns server in resolv.conf
  4662. when compiled with async DNS support.
  4663. * src/DownloadEngine.cc
  4664. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  4665. value '10' will be a little bit short when some DNS servers are
  4666. offline and several DNS servers are tried. It should be configured
  4667. by command-line option.
  4668. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4669. Merged Ross's mingw patch.
  4670. * src/DHTRoutingTableDeserializer.cc
  4671. * src/DHTRoutingTableSerializer.cc
  4672. * src/Platform.{h, cc}
  4673. * src/timegm.h
  4674. * src/gettimeofday.h
  4675. * src/getaddrinfo.h
  4676. * src/SocketCore.h
  4677. * src/common.h
  4678. * src/inet_aton.h
  4679. * src/DownloadEngine.h
  4680. * src/gai_strerror.h
  4681. * src/a2netcompat.h
  4682. * configure.ac
  4683. * configure
  4684. * aclocal.m4
  4685. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4686. Included missing iostream.
  4687. * test/AllTest.cc
  4688. * test/BtDependencyTest.cc
  4689. * test/BtExtendedMessageTest.cc
  4690. * test/DHTConnectionImplTest.cc
  4691. * test/DHTMessageFactoryImplTest.cc
  4692. * test/DHTMessageTrackerEntryTest.cc
  4693. * test/DHTNodeTest.cc
  4694. * test/DHTRoutingTableSerializerTest.cc
  4695. * test/DefaultBtAnnounceTest.cc
  4696. * test/DefaultBtContextTest.cc
  4697. * test/DefaultBtMessageFactoryTest.cc
  4698. * test/DefaultExtensionMessageFactoryTest.cc
  4699. * test/HandshakeExtensionMessageTest.cc
  4700. * test/HttpResponseTest.cc
  4701. * test/MetalinkProcessorTest.cc
  4702. * test/MultiFileAllocationIteratorTest.cc
  4703. * test/SocketCoreTest.cc
  4704. * test/UTPexExtensionMessageTest.cc
  4705. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. Reorganized includes.
  4707. * src/NameResolver.cc
  4708. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. Fixed compilation error without ares/c-ares
  4710. * src/NameResolver.h:
  4711. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4712. Added a test for large file.
  4713. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  4714. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4715. Fixed the bug that file size is ignored if size > INT32_MAX
  4716. * src/SizeMetalinkParserState.cc (endElement):
  4717. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4718. Bump up version number to 0.13.0
  4719. * configure.ac
  4720. * Release 0.13.0
  4721. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4722. Updated Makfefile.am to make 'make dist' work.
  4723. Now packaged filename is aria2c-VERSION.tar.bz2.
  4724. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  4725. Added LICENSE.OpenSSL to dist_noinst_DATA.
  4726. Large file support is now configured by configure script.
  4727. * configure.ac
  4728. Removed unsused source files
  4729. * src/
  4730. * test/
  4731. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  4732. Peer.h and BtContext.h respectively.
  4733. * src/Peer.h
  4734. * src/BtContext.h
  4735. Updated translations.
  4736. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  4737. translations. Great thanks to all translators!;)
  4738. * po/*.{po, gmo}
  4739. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4740. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  4741. statically declared sha1 MessageDigestContext.
  4742. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  4743. initialization of short-lived MessageDigestContext.
  4744. * src/MessageDigestHelper.{h, cc}
  4745. * src/main.cc
  4746. Now DownloadCommand has a reference to MessageDigestContext to avoid
  4747. the initialization of MessageDigestContext every time in validating
  4748. chunk checksum.
  4749. * src/DownloadCommand.{h, cc}
  4750. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4751. Add a file descriptor which connected to fast peer(latency<1500) to
  4752. select(). This change reduced CPU load.
  4753. * src/PeerInteractionCommand.cc
  4754. * src/DefaultBtInteractive.{h, cc}
  4755. * src/BtInteractive.h
  4756. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. Fixed the previous insufficient fix for possible busy loop.
  4758. * src/MSEHandshake.cc (identifyHandshakeType)
  4759. Removed unused functions.
  4760. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  4761. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4762. Fixed possible busy loop if first 20 bytes are not received for a few
  4763. minutes.
  4764. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  4765. * src/ReceiverMSEHandshakeCommand.cc
  4766. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4767. Fixed compilation error
  4768. * src/ExpatMetalinkProcessor.cc
  4769. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4770. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  4771. * src/DHTBucket.cc
  4772. Removed unnecessary cast.
  4773. * src/HandshakeExtensionMessage.cc
  4774. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4775. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  4776. is missing.
  4777. * src/OptionHandlerFactory.cc
  4778. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4779. Fixed the bug that HAVE message is not sent for a piece they are
  4780. downloaded fom http/ftp server before any BitTorrent handshake is done
  4781. with peers.
  4782. * src/DefaultBtInteractive.cc
  4783. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4784. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  4785. * src/Makefile.am
  4786. * src/Makefile.in
  4787. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4788. Updated README. Added html version of README and man page.
  4789. * README
  4790. * README.html
  4791. * readme2html: Shell script to generate README.html from README using
  4792. asciidoc.
  4793. * doc/aria2c.1.html
  4794. * doc/makeman: Added the line to generate aria2c.1.html
  4795. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4796. Fixed offset calculation.
  4797. * src/LibgcryptDHKeyExchange.h (computeSecret)
  4798. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Rewritten itos and uitos using template. llitos and ullitos are
  4800. replaced with itos and uitos respectively.
  4801. * src/Util.{h, cc}
  4802. * test/UtilTest.cc
  4803. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4804. Fixed the bug that DH key exchange sometimes fails due to bad handling
  4805. of the number of bytes required for storing public key and shared
  4806. secret.
  4807. * src/LibgcryptDHKeyExchange.h
  4808. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  4809. * src/MSEHandshake.cc
  4810. * test/DHKeyExchangeTest.cc
  4811. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4812. Removed since they are not used.
  4813. * src/Xml2MetalinkProcessor.{h, cc}
  4814. * src/Socket.cc
  4815. * src/SegmentSplitter.{h, cc}
  4816. * test/Xml2MetalinkProcessorTest.cc
  4817. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4818. Fixed the bug that prevents aria2 from stopping other than by pressing
  4819. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  4820. option. aria2 doesn't stop even after --seed-time is satisfied and
  4821. continues to output blank lines in the console.
  4822. * src/ReceiverMSEHandshakeCommand.cc
  4823. * src/PeerReceiveHandshakeCommand.cc
  4824. * src/PeerListenCommand.cc
  4825. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4826. Bump up version number to 0.13.0rc
  4827. * configure.ac
  4828. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4829. Updated man page and some usage text.
  4830. * doc/aria2c.1.txt
  4831. * src/usage_text.h
  4832. * po/*.{po, gmo}
  4833. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4834. Updated translations. Added Finnish and Hebrew translations.
  4835. Great thanks to all translators!
  4836. * po/*.{po, gmo}
  4837. * po/LINGUAS
  4838. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4839. Log more detailed information about each message.
  4840. * src/DHTQueryMessage.{h, cc}
  4841. * src/DHTGetPeersMessage.{h, cc}
  4842. * src/DHTFindNodeReplyMessage.{h, cc}
  4843. * src/DHTGetPeersReplyMessage.{h, cc}
  4844. * src/DHTAnnouncePeerMessage.{h, cc}
  4845. * src/DHTResponseMessage.{h, cc}
  4846. * src/DHTFindNodeMessage.{h, cc}
  4847. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4848. Use constants defined in prefs.h
  4849. * src/option_processing.cc
  4850. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4851. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  4852. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4853. Make room for future enchancements for IPv6 addresses.
  4854. Bump up version number of dht.dat file format to 2.
  4855. Not compatible with previous version.
  4856. * src/DHTRoutingTableSerializer.cc
  4857. * src/DHTRoutingTableDeserializer.cc
  4858. * test/DHTRoutingTableSerializerTest.cc
  4859. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. Added handling for the return values from
  4861. PeerMessageUtil::createcompact().
  4862. * src/DefaultBtContext.cc (computeFastSet):
  4863. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4864. Fixed abort when peer's ip address is IPv4-mapped address.
  4865. * src/DefaultBtContext.cc (computeFastSet)
  4866. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  4867. cannot handle IPv4-mapped addresses.
  4868. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  4869. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4870. Proper return value handling for OpenSSL functions.
  4871. * src/LibsslDHKeyExchange.h
  4872. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4873. Random bytes generation using libgcrypt and OpenSSL.
  4874. * src/DHTUtil.{h, cc}
  4875. * test/DHTUtilTest.cc
  4876. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4877. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  4878. received.
  4879. * src/DHTMessageReceiver.cc (receiveMessage)
  4880. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4881. Fixed the bug that a return code is always 0. BUG#1897704
  4882. If error occurred during the download or there exist unfinished
  4883. downloads, aria2 returns with code 1.
  4884. * src/RequestGroupMan.{h, cc}
  4885. * src/MultiUrlRequestInfo.{h, cc}
  4886. * src/main.cc
  4887. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4888. IPv6 support for SocketCore class.
  4889. TODO: In SocketCore::establishConnection(), this is insufficient to
  4890. determin the failure of connect() here because the socket is
  4891. non-blocking state. The next addresses should be tried after select().
  4892. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  4893. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  4894. instead which address family independent.
  4895. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  4896. information in a compact peer format which is for IPv4 only.
  4897. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  4898. this is a spec of BitTorrent protocol.
  4899. * src/SocketCore.{h, cc}
  4900. * src/PeerMessageUtil.cc
  4901. * test/SocketCoreTest.cc
  4902. * test/PeerMessageUtilTest.cc
  4903. * test/DHTConnectionImplTest.cc
  4904. Handle IPv4-mapped addresses.
  4905. * src/DHTNode.cc: Now identity is determined by node id.
  4906. * src/DHTMessageTrackerEntry.cc
  4907. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  4908. should handle it.
  4909. * src/DHTRoutingTableDeserializer.cc
  4910. * src/DHTMessageFactoryImpl.cc
  4911. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4912. Change the unit of --stop option from a minute to a second.
  4913. * src/usage_text.h
  4914. * src/DownloadEngineFactory.cc
  4915. * src/OptionHandlerFactory.cc
  4916. * src/message.h
  4917. * src/TimedHaltCommand.cc
  4918. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4919. Make listening socket non-block mode.
  4920. * src/FtpConnection.cc
  4921. * src/FtpNegotiationCommand.{h, cc}
  4922. * src/PeerListenCommand.cc
  4923. Fixed the bug that cause slow ftp negotiation.
  4924. * src/FtpNegotiationCommand.{h, cc}
  4925. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4926. Added basic tag to --enable-dht, --dht-listen-port option.
  4927. * src/HelpItemFactory.cc (createHelpItems)
  4928. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4929. Updated text.
  4930. * src/usage_text.h
  4931. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4932. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  4933. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4934. Determin _threadtholdSpeed in each constructor for
  4935. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  4936. * src/ActivePeerConnectionCommand.{h, cc}
  4937. * src/PeerReceiveHandshakeCommand.{h, cc}
  4938. * src/BtSetup.cc
  4939. * src/BtConstants.h
  4940. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4941. Added --bt-min-crypto-level and --bt-require-crypto options.
  4942. * src/OptionHandlerFactory.cc
  4943. * src/MSEHandshake.cc
  4944. * src/HelpItemFactory.cc
  4945. * src/option_processing.cc
  4946. * src/ReceiverMSEHandshakeCommand.cc
  4947. * src/prefs.h
  4948. * src/DefaultBtAnnounce.cc
  4949. * src/InitiatorMSEHandshakeCommand.cc
  4950. * src/usage_text.h
  4951. * test/MSEHandshakeTest.cc
  4952. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. Bump version number to 0.13.0b
  4954. * configure.ac
  4955. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4956. Updated doc.
  4957. * src/MessageDigestHelper.h:
  4958. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4959. Use raw message digest as a token instead of its hexadecimal
  4960. representation.
  4961. * src/DHTTokenTracker.cc (generateToken)
  4962. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Added Message Stream Encryption(MSE) support.
  4964. Currently, aria2 accepts incoming connections with Obfuscation Header
  4965. and legacy BitTorrent Header and establishes connections with
  4966. Obfuscation Header first and if failed then retry with legacy
  4967. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  4968. choose ARC4. The new option to change the default behavior is planned.
  4969. For tracker extension, "supportcrypto=1" is added statically.
  4970. * src/PeerInitiateConnectionCommand.{h, cc}
  4971. * src/PeerConnection.{h, cc}
  4972. * src/HandleRegistry.h
  4973. * src/SocketCore.h
  4974. * src/PeerReceiveHandshakeCommand.{h, cc}
  4975. * src/BtRegistry.{h, cc}
  4976. * src/PeerListenCommand.cc
  4977. * src/InitiatorMSEHandshakeCommand.{h, cc}
  4978. * src/ReceiverMSEHandshakeCommand.{h, cc}
  4979. * src/MSEHandshake.{h, cc}
  4980. * src/ARC4Encryptor.h
  4981. * src/ARC4Decryptor.h
  4982. * src/LibgcryptARC4Encryptor.h
  4983. * src/LibgcryptARC4Decryptor.h
  4984. * src/LibgcryptARC4Context.h
  4985. * src/LibsslARC4Encryptor.h
  4986. * src/LibsslARC4Decryptor.h
  4987. * src/LibsslARC4Context.h
  4988. * src/DHKeyExchange.h
  4989. * src/LibgcryptDHKeyExchange.h
  4990. * src/LibsslDHKeyExchange.h
  4991. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  4992. * test/DefaultBtAnnounceTest.cc
  4993. * test/ARC4Test.cc
  4994. * test/DHKeyExchangeTest.cc
  4995. Removed prepareForRetry() because it is not used.
  4996. * src/PeerAbstractCommand.{h, cc}
  4997. * src/PeerInteractionCommand.{h, cc}
  4998. * src/PeerInitiateConnectionCommand.{h, cc}
  4999. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5000. Added the ability to load nodes from torrent file. These nodes are
  5001. added to the routing table when downloading that torrent.
  5002. * src/BtContext.h
  5003. * src/DefaultBtContext.{h, cc}
  5004. * src/DHTSetup.cc
  5005. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  5006. hostname and port pair, and resolves all of them.
  5007. * src/NameResolver.{h, cc}: Added reset().
  5008. * src/RequestGroup.cc
  5009. * test/DefaultBtContextTest.cc
  5010. * test/MockBtContext.h
  5011. Removed assert() from DefaultBtContext and throw exception instead.
  5012. * src/DefaultBtContext.cc
  5013. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5014. Fixed segmentation fault bug when exiting if dht is disabled.
  5015. * src/RequestGroup.cc
  5016. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5017. Fixed typo in log message and define the message in message.h
  5018. * src/TimedHaltCommand.cc
  5019. * src/message.h
  5020. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Included RecoverableException.h to fix compilation error.
  5022. * test/DHTMessageFactoryImplTest.cc
  5023. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5024. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  5025. * test/DHTPingMessageTest.cc
  5026. * test/DHTGetPeersMessageTest.cc
  5027. * test/DHTFindNodeMessageTest.cc
  5028. * test/DHTAnnouncePeerMessageTest.cc
  5029. * test/MockDHTMessage.h
  5030. * test/MockDHTMessageFactory.h
  5031. * test/MockDHTMessageDispatcher.h: New class.
  5032. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5033. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  5034. virtual.
  5035. * src/DHTMessageDispatcher.h
  5036. * src/DHTMessageDispatcherImpl.{h, cc}
  5037. * src/DHTSetup.cc
  5038. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5039. Adding handling of DHT error message. Just log error message and
  5040. throw exception.
  5041. * src/DHTMessageFactoryImpl.cc
  5042. * test/DHTMessageFactoryImplTest.cc
  5043. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5044. Added handling of dynamic cast failure.
  5045. * src/DHTNodeLookupTask.cc
  5046. * src/DHTPeerLookupTask.cc
  5047. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5048. Added the ability to stop aria2 itself when given time has passed
  5049. from start. Use --stop option to specify time in minutes.
  5050. When 0 is given, this feature is disabled.
  5051. * src/OptionHandlerFactory.cc
  5052. * src/TimeBasedCommand.h: Make _interval protected scope.
  5053. * src/HelpItemFactory.cc
  5054. * src/option_processing.cc
  5055. * src/prefs.h
  5056. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  5057. before calling RequestGroupMan::fillRequestGroupFromReserver().
  5058. Without this modification, the result list shows "ERR" when aria2 is
  5059. stopped by --stop option. It should be "INPR".
  5060. * src/DownloadEngine.{h, cc}
  5061. * src/DownloadEngineFactory.cc
  5062. * src/usage_text.h
  5063. * src/TimedHaltCommand.{h, cc}: New class.
  5064. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5065. Bootstrap through node added by port message.
  5066. Currently bootstrap is executed if the number of buckets in routing
  5067. table is 1.
  5068. * src/BtPortMessage.{h, cc}
  5069. * src/DefaultBtMessageFactory.{h, cc}
  5070. * src/PeerInteractionCommand.cc
  5071. * test/BtPortMessageTest.cc
  5072. * test/MockDHTTask.h
  5073. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5074. Extract the Peer class's member variables, which are only needed after
  5075. PeerInteractionCommand, into PeerSessionResource class.
  5076. This class is instantiated in PeerInteractionCommand class's ctor and
  5077. released in its dtor.
  5078. This will make Peer class lightweight and uses less memory for peers
  5079. which are not connected and wait in the queue.
  5080. * src/PeerChokeCommand.cc
  5081. * src/PeerSessionResource.{h, cc}
  5082. * src/PeerInteractionCommand.cc
  5083. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  5084. * src/DefaultBtInteractive.cc
  5085. * src/BtPieceMessage.cc
  5086. * src/BtInterestedMessage.cc
  5087. * src/BtUnchokeMessage.cc
  5088. * src/DefaultPeerStorage.{h, cc}
  5089. * src/PeerInitiateConnectionCommand.cc
  5090. * src/ActivePeerConnectionCommand.cc
  5091. * src/BtNotInterestedMessage.cc
  5092. * src/DefaultBtMessageDispatcher.cc
  5093. * src/BtChokeMessage.cc
  5094. * src/BtRequestMessage.cc
  5095. * src/Peer.{h, cc}
  5096. * src/BtRegistry.h
  5097. * src/TrackerWatcherCommand.cc
  5098. * src/PeerReceiveHandshakeCommand.cc
  5099. * test/BtExtendedMessageTest.cc
  5100. * test/BtAllowedFastMessageTest.cc
  5101. * test/BtCancelMessageTest.cc
  5102. * test/DefaultPieceStorageTest.cc
  5103. * test/BtBitfieldMessageTest.cc
  5104. * test/BtHaveMessageTest.cc
  5105. * test/BtNotInterestedMessageTest.cc
  5106. * test/BtRequestMessageTest.cc
  5107. * test/PeerSessionResourceTest.cc
  5108. * test/DefaultBtMessageDispatcherTest.cc
  5109. * test/PeerTest.cc
  5110. * test/BtInterestedMessageTest.cc
  5111. * test/BtRejectMessageTest.cc
  5112. * test/BtChokeMessageTest.cc
  5113. * test/DefaultPeerStorageTest.cc
  5114. * test/BtHaveNoneMessageTest.cc
  5115. * test/BtHaveAllMessageTest.cc
  5116. * test/DefaultExtensionMessageFactoryTest.cc
  5117. * test/BtUnchokeMessageTest.cc
  5118. * test/DefaultBtMessageFactoryTest.cc
  5119. * test/HandshakeExtensionMessageTest.cc
  5120. * test/UTPexExtensionMessageTest.cc
  5121. * test/DefaultBtRequestFactoryTest.cc
  5122. * test/BtPieceMessageTest.cc
  5123. Removed typedef PeerStats.
  5124. * src/PeerStat.h
  5125. * src/SegmentMan.cc
  5126. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5127. Added std namespace to copy, remove_copy, back_inserter,
  5128. front_inserter.
  5129. * src/RequestGroupMan.cc
  5130. * src/DefaultPieceStorage.cc
  5131. * src/StreamFileAllocationEntry.cc
  5132. * src/BtFileAllocationEntry.cc
  5133. * src/RequestGroup.cc
  5134. * src/MetalinkEntry.cc
  5135. * src/DelegatingPeerListProcessor.cc
  5136. * src/DefaultBtRequestFactory.cc
  5137. * src/DefaultBtMessageDispatcher.cc
  5138. * src/version_usage.cc: Included <algorithm>
  5139. * src/main.cc
  5140. * src/MetalinkParserController.cc
  5141. * src/DefaultBtContext.cc
  5142. * src/DownloadEngineFactory.cc
  5143. * src/a2algo.h
  5144. Removed.
  5145. * test/StreamUriListParserTest.cc
  5146. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5147. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  5148. ActivePeerConnectionCommand when it is given and
  5149. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  5150. * src/ActivePeerConnectionCommand.{h, cc}
  5151. * src/BtSetup.cc
  5152. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5153. Only add socket to DownloadEngine's select routine when peer or
  5154. localhost is unchoked and interested. This lowers CPU usage a
  5155. little bit.
  5156. * src/PeerInteractionCommand.cc
  5157. * src/PeerAbstractCommand.{h, cc}
  5158. * src/BtInteractive.h
  5159. * src/DefaultBtInteractive.{h, cc}
  5160. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5161. Revert previous change because get_peers message is needed for
  5162. announce_peer anyway.
  5163. * src/DHTGetPeersCommand.cc
  5164. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5165. Request peers thought DHT only when download hasn't finished.
  5166. * src/DHTGetPeersCommand.cc
  5167. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5168. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  5169. * src/DHTBucketRefreshTask.{h, cc}
  5170. * src/DHTSetup.cc
  5171. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5172. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  5173. standard classes.
  5174. Included string.h where mem* function are used.
  5175. Added namespace aria2.
  5176. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5177. Create directory before saving DHT routing table.
  5178. Now ios::failure is now handled properly.
  5179. * src/DHTAutoSaveCommand.cc
  5180. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5181. Removed unnecessary cerr.
  5182. * src/DownloadEngine.cc
  5183. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5184. Catch exception inside DHTMessageReceiver::receiveMessage().
  5185. Log unknown message.
  5186. * src/DHTMessageReceiver.{h, cc}
  5187. * src/DHTMessageFactory.h
  5188. * src/DHTMessageFactoryImpl.{h, cc}
  5189. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  5190. * src/DHTInteractionCommand.cc
  5191. * src/DHTUnknownMessage.{h, cc}
  5192. * test/DHTUnknownMessageTest.cc
  5193. * test/MockDHTMessageFactory.h
  5194. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5195. Commented out ip address comparison because a host can have multiple
  5196. ip addresses and it is hard to predict the hostname is resolved into
  5197. which one.
  5198. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  5199. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5200. * po/Makefile.in: Removed since this is generated by configure.
  5201. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5202. Fixed compiler warning about redefinition of SIZE_MAX.
  5203. Use common.h instead of config.h directly here.
  5204. * src/Platform.{h, cc}
  5205. The check of ENABLE_NLS is made in gettext.h, so it is not required
  5206. here.
  5207. * common.h
  5208. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  5209. Updated gettext related files.
  5210. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  5211. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  5212. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5213. Added DHT functionality, compatible with mainline.
  5214. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  5215. You may need to specify entry point to DHT network using
  5216. --dht-entry-point. DHT uses UDP port to listen incoming message.
  5217. Use --dht-listen-port to specify port number. Make sure that your
  5218. firewall configuration can pass through UDP traffic to the port.
  5219. The routing table is saved in $HOME/.aria2/dht.dat.
  5220. * src/DHT*
  5221. * src/BNode.{h, cc}
  5222. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  5223. particular torrent.
  5224. * src/Data.cc: Rewritten ctor.
  5225. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  5226. --dht-entry-point.
  5227. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  5228. * src/RequestGroup.cc: Initialize DHT functionality. When download
  5229. ends, remove BtContext from DHTPeerAnnounceStorage.
  5230. * src/BtPortMessage.{h, cc}: Rewritten.
  5231. * src/message.h
  5232. * src/OptionHandlerImpl.cc
  5233. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  5234. --dht-entry-point.
  5235. * src/Dictionary.{h, cc} (remove): New function.
  5236. * src/prefs.h
  5237. * src/DefaultBtMessageFactory.h
  5238. * src/BtHandshakeMessage.cc
  5239. * src/ActivePeerConnectionCommand.cc
  5240. * src/SocketCore.{h, cc}: Added datagram socket support.
  5241. * src/DefaultBtMessageFactory.cc
  5242. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  5243. Create DHT commands.
  5244. * src/BtMessageFactory.h
  5245. * src/PeerMessageUtil.{h, cc}
  5246. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5247. Fixed the bug that log file is not written when configuration file doesn't exist.
  5248. This is caused by using Logger class before LogFactory is not configured.
  5249. BUG #1875079
  5250. * src/option_processing.cc
  5251. Warning message "configuration doesn't exist" is only printed when --conf is
  5252. given.
  5253. * src/option_processing.cc
  5254. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5255. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  5256. ShaVisitor is now deprecated and slated to be removed.
  5257. * src/DefaultBtContext.cc
  5258. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5259. Externalize message to message.h
  5260. * src/Platform.cc
  5261. * src/message.h
  5262. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5263. Set default domain and default path to cookie.
  5264. * src/HttpResponse.cc
  5265. * src/CookieBox.{h, cc}
  5266. * src/CookieParser.{h, cc}
  5267. * test/CookieParserTest.cc
  5268. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5269. Added --no-conf and --conf-path command-line option.
  5270. --no-conf option disables loading aria2.conf file.
  5271. --conf-path option changes the configuration file path. The default
  5272. file path is $HOME/.aria2/aria2.conf
  5273. Added a warning message when the configuration file is not found.
  5274. * src/HelpItemFactory.cc
  5275. * src/option_processing.cc
  5276. * src/prefs.h
  5277. * src/usage_text.h
  5278. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5279. Added the message to inform users that other help categories are
  5280. available in -h option.
  5281. * src/version_usage.cc
  5282. * src/TagContainer.{h, cc}
  5283. * test/TagContainerTest.cc
  5284. * src/TaggedItem.{h, cc}
  5285. * test/TaggedItemTest.cc
  5286. * src/HelpItem.h
  5287. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5288. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  5289. from PiecedSegment's ctor.
  5290. Previously Piece::getAllMissingBlockIndexes() is called from
  5291. PiecedSegment() but it is rather expensive since only first element is
  5292. used.
  5293. * src/PiecedSegment.cc
  5294. * src/Piece.{h, cc}
  5295. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5296. Rewritten get*Missing*Index functions. Now no need to allocate memory
  5297. each time these functions are called.
  5298. * src/BitfieldMan.{h, cc}
  5299. * test/BitfieldManTest.cc
  5300. * src/array_fun.h
  5301. * test/array_funTest.cc
  5302. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  5303. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  5304. filtered. Removed unnecessary cast to int32_t.
  5305. * src/BitfieldMan.{h, cc}
  5306. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  5308. payload length(4bytes) are received. This happens because lenbufLength
  5309. is not updated in this particular case and successive call of
  5310. receiveMessage() overwrites payload length with bytes recieved which
  5311. are payload body.
  5312. * src/PeerConnection.{h, cc}
  5313. * src/message.h
  5314. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5315. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  5316. peer if there are peers that have same ipaddr and port.
  5317. I've experiened segmentation fault and "pure virtual function was
  5318. called" error.
  5319. * src/Peer.h
  5320. * test/PeerTest.cc
  5321. * src/DefaultPeerStorage.cc
  5322. * test/DefaultPeerStorageTest.cc
  5323. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5324. Removed a call to isPowerOf() because it is no longer necessary here
  5325. and a request block is not always power of 2.
  5326. BUG#1866924
  5327. * src/PeerMessageUtil.cc (checkLength)
  5328. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Fixed the bug that always first found Segment is removed from
  5330. usedSegmentEntries. Removed unused functions.
  5331. * src/SegmentMan.{h, cc}
  5332. * test/SegmentManTest.cc
  5333. Fixed the bug that ServerHost is not removed.
  5334. * src/RequestGroup.cc
  5335. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5336. Fixed the bug that SegmentMan::completeSegment() is not called
  5337. even if Segment is complete when --lowest-speed-limit is enabled.
  5338. BUG#1864525
  5339. * src/DownloadCommand.{h, cc}
  5340. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5341. Fixed: hash algorithm 'sha1' is always used.
  5342. * src/DownloadCommand.cc (validatePieceHash)
  5343. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5344. Added --enable-peer-exchange command-line option.
  5345. * src/OptionHandlerFactory.cc
  5346. * src/HelpItemFactory.cc
  5347. * src/option_processing.cc
  5348. * src/usage_text.h
  5349. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5350. Move extension from BtRuntime to ExtensionMessageFactory, because
  5351. extension can be specified per peer, not per torrent.
  5352. * src/DefaultBtInteractive.cc
  5353. * src/BtRuntime.h
  5354. * src/ExtendedMessagingAware.h
  5355. * src/ExtensionMessageFactory.h
  5356. * src/DefaultExtensionMessageFactory.cc
  5357. * test/DefaultExtensionMessageFactoryTest.cc
  5358. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5359. Added categorized option help. Specify category using --help option.
  5360. Also added the ability to search options in forward match.
  5361. * src/HelpItem.{h, cc}
  5362. * test/HelpItemTest.cc
  5363. * src/HelpItemFactory.{h, cc}
  5364. * src/TagContainer.{h, cc}
  5365. * test/TagContainerTest.cc
  5366. * src/option_processing.cc
  5367. * src/prefs.h
  5368. * src/TaggedItem.{h, cc}
  5369. * test/TaggedItemTest.cc
  5370. * src/version_usage.cc
  5371. * src/help_tags.h
  5372. * src/usage_text.h
  5373. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5374. Fixed segmentation fault when bad torrent metainfo is parsed.
  5375. Added dynamic_cast properly to detect the misconfiguration of metainfo
  5376. and then throw exception or skip it.
  5377. * src/DefaultBtContext.{h, cc}
  5378. * test/DefaultBtContextTest.cc
  5379. * src/AnnounceList.cc
  5380. * src/CompactPeerListProcessor.cc
  5381. * src/message.h
  5382. * src/DefaultBtAnnounce.{h, cc}
  5383. * test/DefaultBtAnnounceTest.cc
  5384. * src/BencodeVisitor.cc
  5385. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5386. Added missing "B"(=Byte). So now the message looks like this:
  5387. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  5388. * src/message.h (MSG_SHARE_RATIO_REPORT)
  5389. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5390. Show the seed ratio after torrent downloads.
  5391. For example, after torrent download completed and --seed-time and
  5392. --seed-ratio conditions are fulfilled, following message is printed
  5393. right after "Download complete: .....":
  5394. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  5395. * src/RequestGroupMan.cc
  5396. * src/RequestGroup.{h, cc}
  5397. * src/message.h
  5398. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5399. Remove a defunct control file. A defunct control file means that while
  5400. it exists, but the corresponding download file is missing.
  5401. After its removal, a download restarts from the beginning.
  5402. * src/RequestGroup.cc
  5403. * src/message.h
  5404. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5405. Allocate bitfield in Peer when it is really used. More specifically,
  5406. bitfield in Peer is allocated after the connection is established and
  5407. deallocated when the connection is dropped.
  5408. Since 2 parameters(piece length and total length) was removed from the
  5409. constructor of Peer class, many test classes were modified accordingly.
  5410. See svn log for more detailed information.
  5411. * src/PeerInteractionCommand.cc
  5412. * src/CompactPeerListProcessor.cc
  5413. * src/Peer.cc
  5414. * src/DefaultPeerListProcessor.cc
  5415. * src/PeerListenCommand.cc
  5416. * src/PeerReceiveHandshakeCommand.cc
  5417. Fixed memory leak
  5418. * src/Piece.cc
  5419. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5420. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  5421. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  5422. command-line options.
  5423. * src/option_processing.cc
  5424. * src/ActivePeerConnectionCommand.cc
  5425. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5426. Send have message to peer if it already has the piece.
  5427. * src/BtHaveMessage.{h, cc}
  5428. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5429. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  5430. port.
  5431. * src/DefaultPeerStorage.{h, cc}
  5432. * test/DefaultPeerStorageTest.cc
  5433. * src/HandshakeExtensionMessage.cc
  5434. * test/HandshakeExtensionMessageTest.cc
  5435. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  5436. * src/PeerStorage.h
  5437. * test/MockPeerStorage.h
  5438. * src/PeerListenCommand.cc
  5439. * src/PeerReceiveHandshakeCommand.cc
  5440. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Added --metalink-enable-unique-protocol option.
  5442. * src/Metalink2RequestGroup.cc
  5443. * src/option_processing.cc
  5444. * src/prefs.h
  5445. * src/version_usage.cc
  5446. * doc/aria2c.1.txt
  5447. * doc/aria2c.1
  5448. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5449. Allow a peer in incomingPeer to be added peers.
  5450. * src/DefaultPeerStorage.cc
  5451. * test/DefaultPeerStorageTest.cc
  5452. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5453. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  5454. I could reproduce this bug in following procedure:
  5455. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  5456. 2. Restart aria2.
  5457. 3. You see the download stopped around 99%.
  5458. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5459. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  5460. If timeout is reached, then _nextCommand is unused and it may contains
  5461. segments and they won't be canceled. Actually, timeout is not needed
  5462. here because if the server dropped connection, then retry is made.
  5463. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5464. Added uTorrent compatible Peer Exchange.
  5465. * src/BencodeVisitor.{h, cc}
  5466. * test/BencodeVisitorTest.cc
  5467. * src/BtConstants.h
  5468. * src/BtContext.h: Added 'private' flag.
  5469. * src/BtExtendedMessage.{h, cc}
  5470. * test/BtExtendedMessageTest.cc
  5471. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  5472. reserved field.
  5473. * test/BtHandshakeMessageTest.cc
  5474. * src/BtMessageFactory.h
  5475. * src/BtRegistry.h
  5476. * src/BtRuntime.h: This class holds default extension message IDs for
  5477. aria2. By default, aria2 uses ID 8 for ut_pex.
  5478. * src/DefaultBtContext.cc
  5479. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  5480. When it is true, aria2 enables ut_pex. This value is set by
  5481. PeerInteractionCommand.
  5482. * src/DefaultBtMessageFactory.{h, cc}
  5483. * test/DefaultBtMessageFactoryTest.cc
  5484. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  5485. handling to DefaultBtInteractive class.
  5486. * src/DefaultExtensionMessageFactory.{h, cc}
  5487. * test/DefaultExtensionMessageFactoryTest.cc
  5488. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  5489. the container(peers and incomingPeers. The equality is determined by
  5490. Peer::id).
  5491. * test/DefaultPeerStorageTest.cc
  5492. * src/ExtensionMessage.h
  5493. * test/MockExtensionMessage.h
  5494. * src/ExtensionMessageFactory.h
  5495. * test/MockExtensionMessageFactory.h
  5496. * src/HandshakeExtensionMessage.{h, cc}
  5497. * test/HandshakeExtensionMessageTest.cc
  5498. * src/MetaEntry.h
  5499. * src/Peer.{h, cc}
  5500. * src/PeerInteractionCommand.cc
  5501. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  5502. addIncomingPeer.
  5503. * src/PeerMessageUtil.{h, cc}
  5504. * src/PeerObject.h
  5505. * src/UTPexExtensionMessage.{h, cc}
  5506. * test/UTPexExtensionMessageTest.cc
  5507. * src/message.h
  5508. * src/prefs.h
  5509. Fixed the bug that returns incomplete data when it contains null
  5510. character. A convenient constructor was also added.
  5511. * src/Data.{h, cc}
  5512. Rewritten.
  5513. * src/CompactPeerListProcessor.cc
  5514. Fixed typos.
  5515. * src/message.h
  5516. * src/MetaFileUtil.cc
  5517. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5518. Added "Status Legend" label to the explanation text of 'stat' in
  5519. download result and moved it to the last. BUG#1848214
  5520. * src/RequestGroupMan.cc
  5521. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5522. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  5523. * src/Makefie.am
  5524. * test/Makefile.am
  5525. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5526. Fixed the bug that prevents aria2 from loading cookie file when expire
  5527. value is greater than 2^31-1. BUG#1851066
  5528. * src/CookieBoxFactory.cc
  5529. * test/CookieBoxFactoryTest.cc
  5530. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. Fixed possible memory leak when an exception is thrown.
  5532. * src/XML2SAXMetalinkProcessor.cc
  5533. Added Expat support. If both libxml2 and Expat are installed, then
  5534. libxml2 is used by default.
  5535. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  5536. ExpatMetalinkProcessor according to the configuration.
  5537. * src/ExpatMetalinkProcessor.{h, cc}
  5538. * src/main.cc: Removed libxml2 specific header and init/free function.
  5539. * src/MetalinkProcessorFactory.{h, cc}
  5540. * src/MetalinkHelper.cc
  5541. * src/Metalinker.h: Removed unnecessary libxml2 header.
  5542. * src/MetalinkProcessor.h
  5543. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  5544. MetalinkProcessorTest is used instead.
  5545. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  5546. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  5547. MetalinkProcessorFactory::newInstance().
  5548. * m4/libexpat.m4
  5549. * configure.ac: Added configuration options for libexpat.
  5550. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5551. Disabled -s option in metalink download.
  5552. * src/Metalink2RequestGroup.cc
  5553. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5554. If several protocols are available for a mirror in metalink file,
  5555. aria2 now use one of them. --metalink-preferred-protocol option was
  5556. added to specify the preference of protocol.
  5557. * src/AbstractCommand.cc
  5558. * src/OptionHandlerFactory.cc
  5559. * src/ServerHost.{h, cc}
  5560. * src/Metalink2RequestGroup.cc
  5561. * src/RequestGroup.{h, cc}
  5562. * test/RequestGroupTest.cc
  5563. * src/option_processing.cc
  5564. * src/prefs.h
  5565. * src/HttpResponseCommand.cc
  5566. * src/MetalinkResource.{h, cc}
  5567. * src/FtpNegotiationCommand.cc
  5568. * src/MetalinkEntry.{h, cc}
  5569. * src/MetalinkEntryTest.cc
  5570. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5571. Code cleanup and added debug log.
  5572. * src/PeerConnection.cc
  5573. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5574. Compiler error fix: applied the patch by Tiziano Mueller
  5575. * src/RequestGroup.cc
  5576. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5577. Fixed the bug: only first announce URL is tried in AnnounceTier,
  5578. in stopped and completed event.
  5579. * src/AnnounceList.{h, cc}
  5580. * test/AnnounceListTest.cc
  5581. * src/DefaultBtAnnounce.cc
  5582. * test/DefaultBtAnnounceTest.cc
  5583. Sorted URLs.
  5584. * test/Metalink2RequestGroupTest.cc
  5585. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5586. Removed unnecessary string copy. Updated doc and corrected indentation.
  5587. * src/Base64.cc
  5588. Fixed compilation warnings
  5589. * test/DataTest.cc
  5590. * test/HttpRequestTest.cc
  5591. * test/MetaFileUtilTest.cc
  5592. * test/RequestTest.cc
  5593. * Release 0.12.0
  5594. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5595. Updated translations
  5596. * po/{de,fr,ja,nl,ru}.po
  5597. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  5598. translations. Many thanks to translators.
  5599. * po/{ca,es,it,pt_BR,sv}.po
  5600. * po/LINGUAS
  5601. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5602. Added a notice about URL
  5603. * src/version_usage.cc
  5604. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  5605. Fixed the bug#1845750; CTRL+C does not stop torrent.
  5606. aria2 repeatedly sends stopped request when tracker returns error code.
  5607. * src/AnnounceList.cc
  5608. * test/AnnounceListTest.cc
  5609. * src/AnnounceTier.h
  5610. Added a message when ctrl-c is hit.
  5611. Now second ctrl-c is also handled in signal handler.
  5612. * src/RequestGroupMan.{h, cc}
  5613. * src/RequestGroup.{h, cc}
  5614. * src/MultiUrlRequestInfo.cc
  5615. * src/DownloadEngine.cc
  5616. * src/TrackerWatcherCommand.cc
  5617. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5618. Code cleanup
  5619. * src/Base64.cc (encode)
  5620. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5621. Changed Direct/IO enable/disable procesure in file allocation routine.
  5622. * src/SingleFileAllocationIterator.cc
  5623. (SingleFileAllocationIterator):
  5624. Disable directIO if offset is not multiple of 512.
  5625. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  5626. * src/MultiFileAllocationIterator.cc (allocateChunk):
  5627. Enable created SingleFileAllocationIterator's directIO.
  5628. * src/FileAllocationEntry.cc
  5629. (FileAllocationEntry): Enable directIO here.
  5630. (~FileAllocationEntry): Disable directIO here.
  5631. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5632. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  5633. * src/Peer.{h, cc}
  5634. * src/DefaultPieceStorage.cc
  5635. * test/DefaultPieceStorageTest.cc
  5636. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Rewritten direct I/O support routine
  5638. * src/SingleFileAllocationIterator.cc
  5639. * src/MultiDiskAdaptor.{h, cc}
  5640. * src/ByteArrayDiskWriter.h
  5641. * src/AbstractSingleDiskAdaptor.h
  5642. * src/AbstractDiskWriter.cc
  5643. * src/DefaultPieceStorage.cc
  5644. * src/DiskWriter.h
  5645. * src/BinaryStream.h
  5646. * src/IteratableChunkChecksumValidator.cc
  5647. * src/IteratableChecksumValidator.cc
  5648. * src/CheckIntegrityEntry.cc
  5649. * src/FileAllocationEntry.cc
  5650. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5651. Fixed typo
  5652. * src/version_usage.cc
  5653. Updated doc
  5654. * doc/aria2c.1.txt
  5655. * doc/aria2c.1
  5656. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5657. Fixed compile error without message digest support.
  5658. * src/FileMetalinkParserState.cc
  5659. * src/MetalinkParserController.{h, cc}
  5660. * test/XML2SAXMetalinkProcessorTest.cc
  5661. * test/MetalinkParserControllerTest.cc
  5662. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Enable direct I/O support in checksum checking.
  5664. * src/IteratableChunkChecksumValidator.{h, cc}
  5665. * test/IteratableChunkChecksumValidatorTest.cc
  5666. * src/CheckIntegrityEntry.cc
  5667. * src/PieceHashCheckIntegrityEntry.cc
  5668. * src/IteratableChecksumValidator.{h, cc}
  5669. * src/BtCheckIntegrityEntry.cc: Added doc.
  5670. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5671. Added --allow-piece-length-change option.
  5672. * src/DefaultBtProgressInfoFile.cc
  5673. * test/DefaultBtProgressInfoFileTest.cc
  5674. * src/OptionHandlerFactory.cc
  5675. * src/option_processing.cc
  5676. * src/prefs.h
  5677. * src/version_usage.cc
  5678. * doc/aria2c.1.txt
  5679. * doc/aria2c.1
  5680. Fixed: duplicated result entry appears when exception is thrown in
  5681. RequestGroup::createInitiateConnectionCommand().
  5682. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  5683. Add RequestGroup to _requestGroup after RequetGroup::
  5684. createInitiateConnectionCommand() succeeds.
  5685. Externalized message
  5686. * src/XML2SAXMetalinkProcessor.cc
  5687. * src/message.h
  5688. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5689. Forced download abort when received negative response from http/ftp
  5690. server.
  5691. * src/HttpResponseCommand.cc
  5692. * src/FtpNegotiationCommand.cc
  5693. * src/HttpResponse.cc
  5694. * src/FtpConnection.cc
  5695. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5696. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  5697. the predecessor, Xml2MetalinkParser class.
  5698. I tested them against 94KB metalink file with 1234 chunk checksums.
  5699. The new one parsed it in 22msec, while it took 6000msec with old one.
  5700. * src/XML2SAXMetalinkProcessor.{h, cc}
  5701. * test/XML2SAXMetalinkProcessorTest.cc
  5702. * src/MetalinkParserController.{h, cc}
  5703. * test/MetalinkParserControllerTest.cc
  5704. * src/MetalinkParserState.h: Also added 16 subclasses.
  5705. * src/main.cc
  5706. * src/Metalink2RequestGroup.cc
  5707. * src/MetalinkHelper.cc
  5708. * src/MetalinkEntry.cc
  5709. * src/ChunkChecksum.h
  5710. Rewritten Base64 class for better performance.
  5711. * src/Base64.{h, cc}
  5712. * test/Base64Test.cc
  5713. * src/HttpRequest.cc
  5714. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5715. Fixed the bug#1841757: aria2 will connect to server to only get
  5716. file size.
  5717. * src/StreamFileAllocationEntry.cc
  5718. * src/option_processing.cc
  5719. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  5720. downloads.
  5721. * src/FtpNegotiationCommand.cc
  5722. Suppressed wrong message when finding PreDownloadHandler
  5723. * src/RequestGroup.cc
  5724. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5725. Updated usage
  5726. * src/version_usage.cc
  5727. Updated man page
  5728. * doc/aria2c.1.txt
  5729. * doc/aria2c.1
  5730. Updated po files
  5731. * po/aria2c.pot
  5732. * po/*.po
  5733. * po/*.gmo
  5734. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5735. Eliminated g++-4.2 warning
  5736. * src/DownloadHandlerConstants.{h, cc}
  5737. * src/Util.cc
  5738. * test/MetaFileUtilTest.cc
  5739. * test/PStringBuildVisitorTest.cc
  5740. Fixed bug: --check-integrity doesn't work for multi file torrent.
  5741. * src/RequestGroup.cc
  5742. * src/BtCheckIntegrityEntry.cc
  5743. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5744. Fixed a2io.h
  5745. * src/a2io.h
  5746. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Added direct I/O support. The current implementation uses O_DIRECT,
  5748. which is not posix standard and is tested on linux 2.6.21.
  5749. Currently only file allocation uses direct I/O.
  5750. * src/SingleFileAllocationIterator.{h, cc}
  5751. * test/SingleFileAllocationIteratorTest.cc
  5752. * src/MultiFileAllocationIterator.{h, cc}
  5753. * test/MultiFileAllocationIteratorTest.cc
  5754. * src/BinaryStream.h
  5755. * src/DiskWriter.h
  5756. * src/AbstractDiskWriter.{h, cc}
  5757. * src/ByteArrayDiskWriter.h
  5758. * src/DiskAdaptor.h
  5759. * src/AbstractSingleDiskAdaptor.{h, cc}
  5760. * src/MultiDiskAdaptor.{h, cc}
  5761. * src/FileAllocationEntry.cc
  5762. * src/Util.{h, cc}
  5763. * src/OptionHandlerFactory.cc
  5764. * src/prefs.h
  5765. * src/version_usage.cc
  5766. * src/option_processing.cc
  5767. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  5768. handleException.
  5769. * src/MultiFileAllocationIterator.cc
  5770. Added EINTR handling
  5771. * src/SocketCore.cc
  5772. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Updated usage
  5774. * src/version_usage.cc
  5775. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5776. Applied Ross's patch for MinGW port.
  5777. * src/DownloadEngine.h
  5778. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5779. Set Content-Type to SingleFileDownloadContext when http response is
  5780. received.
  5781. * src/HttpResponseCommand.cc
  5782. * src/HttpResponse.{h, cc}
  5783. * test/HttpResponseTest.cc
  5784. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5785. Rewritten to add content-type support.
  5786. * src/DownloadHandler.{h, cc}
  5787. * src/BtPostDownloadHandler.{h, cc}
  5788. * test/BtPostDownloadHandlerTest.cc
  5789. * src/MetalinkPostDownloadHandler.{h, cc}
  5790. * test/MetalinkPostDownloadHandlerTest.cc
  5791. * src/PostDownloadHandler.{h, cc}
  5792. * src/DownloadHandlerConstants.{h, cc}
  5793. * src/RequestGroup.cc
  5794. * src/HttpResponseCommand.cc
  5795. * src/FtpNegotiationCommand.cc
  5796. * src/SingleFileDownloadContext.{h, cc}
  5797. * src/RequestGroup.h
  5798. * src/RequestGroupCriteria.h
  5799. * src/ContentTypeRequestGroupCriteria.h
  5800. Added 'mem' option value for --follow-metalink, --follow-torrent.
  5801. If it is give, metalink/torrent file is not written to the disk, but
  5802. just is kept in memory. Parsing is occurred on memory.
  5803. * src/MetalinkHelper.{h, cc}
  5804. * src/MetalinkProcessor.h
  5805. * src/Xml2MetalinkProcessor.{h, cc}
  5806. * test/Xml2MetalinkProcessorTest.cc
  5807. * src/DownloadHandlerFactory.{h, cc}
  5808. * test/DownloadHandlerFactoryTest.cc
  5809. * src/PreDownloadHandler.{h, cc}
  5810. * src/OptionHandlerFactory.cc
  5811. * src/DefaultBtContext.{h, cc}
  5812. * test/DefaultBtContextTest.cc
  5813. * src/version_usage.cc
  5814. * src/Metalink2RequestGroup.{h, cc}
  5815. * src/RequestGroup.{h, cc}
  5816. * src/a2functional.h
  5817. * test/a2functionalTest.cc
  5818. * src/MemoryBufferPreDownloadHandler.{h, cc}
  5819. * src/OptionHandlerImpl.h
  5820. * src/prefs.h
  5821. * src/Util.{h, cc}
  5822. * test/UtilTest.cc
  5823. Keep DownloadResult rather than RequestGroup after downloads to reduce
  5824. memory usage.
  5825. * src/RequestGroupMan.{h, cc}
  5826. * src/DownloadEngine.cc
  5827. * src/BtDependency.{h, cc}: Changed the type of dependee from
  5828. WeakHandle to SharedHandle because WeakHandle could be null.
  5829. * src/RequestGroup.{h, cc}
  5830. * src/DownloadEngineFactory.cc
  5831. * src/DownloadResult.h
  5832. Set totalLength after download finished
  5833. * src/UnknownLengthPieceStorage.{h, cc}
  5834. Keep torrent file specified in metalink in memory.
  5835. * src/Metalink2RequestGroup.cc
  5836. * src/BtDependency.cc
  5837. * src/TrueRequestGroupCriteria.h
  5838. Fixed the bug: seekg is used where seekp should be used.
  5839. * src/ByteArrayDiskWriter.cc
  5840. * test/ByteArraydiskWriterTest.cc
  5841. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5842. Fixed syntax error
  5843. * test/SequenceTest.cc
  5844. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5845. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5846. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  5847. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5848. * src/RequestGroup.cc (downloadFinishedByFileLength)
  5849. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5850. Added the check to see whether ares_host_callback accepts timeouts
  5851. with c-ares; only c-ares 1.5.0 or newer accepts it.
  5852. * src/NameResolver.{h, cc}
  5853. * m4/libcares.m4
  5854. * configure.ac: Set C++ for language choice.
  5855. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5856. Fixed: compilation fails without c-ares/ares
  5857. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  5858. Generate http/ftp commands only when download is incomplete.
  5859. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  5860. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5861. Corrected typo. Examples are removed since they are available in man
  5862. page.
  5863. * src/version_usage.cc
  5864. Updated man page.
  5865. * doc/aria2c.1
  5866. * doc/aria2c.1.txt
  5867. * doc/makeman: Commented out sed command.
  5868. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. Throw DlAbortEx when a remote file is not found.
  5870. * src/HttpResponse.cc
  5871. * src/FtpNegotiationCommand.cc
  5872. * src/message.h
  5873. Overwrite an existing file if --allow-overwrite=true is given.
  5874. * src/RequestGroup.cc
  5875. Removed unused functions
  5876. * src/AbstractCommand.h
  5877. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5878. Removed 'extern' from 'extern typedef ...' in src/*.h
  5879. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. Updated usage
  5881. * src/version_usage.cc
  5882. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5883. Trim announce URL
  5884. * src/DefaultBtContext.cc
  5885. * test/ShaVisitorTest.cc
  5886. Trim argument s. Give trimed s to exception constructor.
  5887. * src/Util.cc (parseInt)(parseLLInt)
  5888. * test/UtilTest.cc
  5889. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Set precision back to 1.
  5891. * src/ConsoleStatCalc.cc (calculateStat)
  5892. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5893. Replaced strtol with Util::parseInt
  5894. * src/ChunkedEncoding.cc
  5895. * src/HttpConnection.cc
  5896. * src/CookieBoxFactory.cc
  5897. * src/ParameterizedStringParser.cc
  5898. * src/Util.cc
  5899. * test/UtilTest.cc
  5900. * test/OptionHandlerTest.cc
  5901. * src/Request.cc
  5902. Throw exception when empty string is given. The message for exception
  5903. changed.
  5904. * src/Util.cc (parseInt)(parseLLInt)
  5905. * src/message.h
  5906. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5907. Set precision to 2 because share ratio is rounded into 1.0 if precision
  5908. set to 1.
  5909. * src/ConsoleStatCalc.cc (calculateStat)
  5910. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5911. Preallocate non-requested file which is adjacent forward to requested
  5912. file('requested' files means the files given in --select-file option)
  5913. if they share a same piece.
  5914. This fixes long pause in the file system which doesn't support sparse
  5915. files like FAT32 while downloading.
  5916. * src/MultiFileAllocationIterator.{h, cc}
  5917. * test/MultiFileAllocationIteratorTest.cc
  5918. * src/FileEntry.{h, cc}
  5919. Removed unused _option.
  5920. * src/MultiDiskAdaptor.h
  5921. * test/MultiDiskAdaptorTest.cc
  5922. * src/DefaultPieceStorage.cc
  5923. Set the default value of --seed-ratio to 1.0.
  5924. If 0.0 is given, then seeding continues regardless of share ratio.
  5925. * src/version_usage.cc
  5926. * src/option_processing.cc
  5927. * src/BtSetup.cc
  5928. * doc/aria2c.1.txt
  5929. * doc/aria2c.1
  5930. Fixed: Selective download is not working in BitTorrent
  5931. * src/RequestGroup.cc
  5932. Introduced Sequence class. Use this instead of Util::unfoldRange()
  5933. * src/PieceStorage.h
  5934. * test/MockPieceStorage.h
  5935. * src/UnknownLengthPieceStorage.h
  5936. * src/DefaultPieceStorage.{h, cc}
  5937. * src/Metalink2RequestGroup.cc
  5938. * src/RequestGroup.cc
  5939. * src/Sequence.h
  5940. * test/SequenceTest.cc
  5941. * src/IntSequence.h
  5942. * src/message.h
  5943. * src/Util.{h, cc}
  5944. * test/UtilTest.cc
  5945. Added new function 'parse' to catch exception thrown by subclass's
  5946. parseArg
  5947. * src/OptionHandler.h
  5948. * src/OptionParser.cc
  5949. * src/NameMatchOptionHandler.h
  5950. * src/OptionHandlerImpl.h
  5951. * test/OptionHandlerTest.cc
  5952. Added IntegerRangeOptionHandler. Used for --listen-port and
  5953. --select-file. Now --listen-port accepts range of port.
  5954. * src/OptionHandlerFactory.cc
  5955. * src/version_usage.cc
  5956. * src/OptionHandlerImpl.h
  5957. * src/option_processing.cc
  5958. * src/BtSetup.cc
  5959. * src/PeerListenCommand.{h, cc}
  5960. * doc/aria2c.1.txt
  5961. * doc/aria2c.1
  5962. Implemented operator< for Exception class to provide easy way to print
  5963. exception stack trace.
  5964. * src/Exception.{h, cc}
  5965. * src/main.cc
  5966. * src/option_processing.cc
  5967. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5968. * src/version_usage.cc
  5969. (showVersion): Reworked.
  5970. (showUsage): Added examples.
  5971. Removed Hint for total length and file name.
  5972. * src/Metalink2RequestGroup.cc
  5973. * src/RequestGroup.{h, cc}
  5974. * src/HttpResponseCommand.cc
  5975. * src/FtpNegotiationCommand.cc
  5976. Now --follow-torrent and --follow-metalink option work properly.
  5977. * src/RequestGroup.cc
  5978. Updated man page
  5979. * doc/aria2c.1.txt
  5980. * doc/aria2c.1
  5981. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5982. Removed.
  5983. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  5984. Use Segment::operator==()
  5985. * src/HttpConnection.cc
  5986. * src/Segment.h
  5987. Updated usage
  5988. * src/version_usage.cc
  5989. Added EINTR treatment.
  5990. * src/SocketCore.cc
  5991. * src/AbstractDiskWriter.cc
  5992. Rewritten.
  5993. * src/Util.cc (rangedFileCopy)
  5994. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. Fixed typo.
  5996. * src/version_usage.cc
  5997. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5998. Implemented. Now -c option works fine.
  5999. * src/DefaultPieceStorage.cc (markPiecesDone)
  6000. * test/DefaultPieceStorageTest.cc
  6001. Removed.
  6002. * src/SegmentMan.{h, cc}
  6003. (markAllPiecesDone)
  6004. (markPieceDone)
  6005. Synchronized po files with
  6006. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  6007. * src/fr.po
  6008. * src/ru.po
  6009. * src/de.po
  6010. * src/ja.po
  6011. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6012. Added ifdef and some modifications to compile without BitTorrent,
  6013. Metalink, MessageDigest
  6014. support.
  6015. * src/PieceHashCheckIntegrityEntry.cc
  6016. * src/MetalinkEntry.h
  6017. * src/version_usage.cc
  6018. * src/main.cc
  6019. * src/DownloadEngine.{h, cc}
  6020. * src/Metalink2RequestGroup.cc
  6021. * src/Peer.cc
  6022. * src/RequestGroup.cc
  6023. * src/MetalinkHelper.cc
  6024. * test/DefaultPieceStorageTest.cc
  6025. * test/MetalinkPostDownloadHandlerTest.cc
  6026. * test/Metalink2RequestGroupTest.cc
  6027. Hide TOTAL SPD when all downloads complete.
  6028. * src/ConsoleStatCalc.cc
  6029. Log target system information.
  6030. * src/main.cc
  6031. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6032. Now --metalink-location accepts a comma-deliminated list of locations.
  6033. * src/MetalinkEntry.{h, cc}
  6034. * test/MetalinkEntryTest.cc
  6035. * src/version_usage.cc
  6036. * src/Metalink2RequestGroup.cc
  6037. * src/Xml2MetalinkProcessor.cc
  6038. * test/Xml2MetalinkProcessorTest.cc
  6039. * doc/aria2c.1.txt
  6040. * doc/aria2c.1
  6041. * src/Util.cc (toUpper)(toLower): Rewritten.
  6042. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6043. Added the ability to detect duplicate download entry which is about to
  6044. download the same file other RequestGroup is downloading.
  6045. * src/RequestGroup.cc
  6046. * src/HttpResponseCommand.cc
  6047. * src/FtpNegotiationCommand.cc
  6048. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6049. Recalculates download progress when loading a control file,
  6050. if the piece length of DownloadContext is different from the one saved
  6051. in the control file. Currently in-flight pieces are ignored.
  6052. * src/DefaultBtProgressInfoFile.cc
  6053. * test/DefaultBtProgressInfoFileTest.cc
  6054. * src/Util.{h, cc}
  6055. * test/UtilTest.cc
  6056. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6057. Do not rotate tiers in announce-list.
  6058. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  6059. AnnounceList::allTiersFailed() used instead to detect whether all
  6060. tiers are tried and failed.
  6061. * test/DefaultBtAnnounceTest.cc
  6062. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  6063. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  6064. * test/AnnounceListTest.cc
  6065. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  6066. clause. Catch RecoverableException instead of DlRetryEx instead.
  6067. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6068. Implemented checksum validation feature(1 checksum for each file)
  6069. The validation takes place after the download.
  6070. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  6071. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  6072. * src/CheckIntegrityCommand.cc: Changed log message.
  6073. * src/Metalink2RequestGroup.cc: Set checksum to
  6074. SingleFileDownloadContext.
  6075. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  6076. PieceHashCheckIntegrity class.
  6077. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  6078. PieceHashCheckIntegrity class.
  6079. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  6080. * src/IteratableValidator.h: New class.
  6081. * src/message.h
  6082. * src/CheckIntegrityEntry.{h, cc}
  6083. * src/IteratableChunkChecksumValidator.{h, cc}
  6084. * src/SingleFileDownloadContext.h
  6085. * src/DownloadCommand.cc
  6086. --allow-overwrite=true is no longer needed to check file integrity
  6087. before download in BitTorrent download.
  6088. * src/RequestGroup.cc (getInitialCommand)
  6089. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  6090. throws exception.
  6091. * src/RequestGroupMan.cc (getInitialCommands)
  6092. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6093. urlencode the given url inside Request::parseUrl(...)
  6094. * src/Request.{h, cc}
  6095. * src/Util.{h, cc}
  6096. * test/RequestTest.cc
  6097. Removed #!metalink3! notation support because it is deleted from
  6098. the metalink specification.
  6099. * src/Request.{h, cc}
  6100. * test/RequestTest.cc
  6101. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6102. Don't connect server before checking file integrity at startup, if
  6103. filesize and output file path are known.
  6104. * src/AbstractCommand.cc
  6105. * src/StreamFileAllocationEntry.cc
  6106. * src/Metalink2RequestGroup.cc
  6107. * src/RequestGroup.{h, cc}
  6108. * src/HttpResponseCommand.cc
  6109. * src/FtpNegotiationCommand.cc
  6110. Added DownloadFailureException. If it is thrown, RequestGroup should
  6111. halt.
  6112. * src/AbstractCommand.cc
  6113. * src/DownloadFailureException.h
  6114. * src/RequestGroup.cc
  6115. Catch RecoverableException, instead of DlAbortEx.
  6116. * src/RequestGroupMan.cc
  6117. * src/FillRequestGroupCommand.cc
  6118. * src/MetaFileUtil.cc
  6119. * src/IteratableChunkChecksumValidator.cc
  6120. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  6121. getGID())
  6122. * src/CheckIntegrityCommand.cc
  6123. * src/message.h
  6124. Print gid instead of idx.
  6125. * src/RequestGroupMan.cc
  6126. Removed exception throwers declaration.
  6127. * src/DirectDiskAdaptor.{h, cc}
  6128. * src/SocketCore.{h, cc}
  6129. * src/MultiDiskAdaptor.{h, cc}
  6130. * src/HttpConnection.{h, cc}
  6131. * src/HttpResponse.{h, cc}
  6132. * src/DiskAdaptor.{h, cc}
  6133. * src/CopyDiskAdaptor.{h, cc}
  6134. * src/MultiDiskAdaptor.{h, cc}
  6135. * src/HttpHeaderProcessor.{h, cc}
  6136. * src/AbstractSingleDiskAdaptor.{h, cc}
  6137. * src/Util.{h, cc}
  6138. * test/UtilTest.cc
  6139. * src/DefaultDiskWriter.{h, cc}
  6140. * src/FtpConnection.{h, cc}
  6141. * src/AbstractDiskWriter.{h, cc}
  6142. Removed duplicate code.
  6143. * src/StreamCheckIntegrityEntry.cc
  6144. Removed unnecessary include.
  6145. * src/DiskWriter.h
  6146. Included Exception.h
  6147. * src/option_processing.cc
  6148. Included 2 files and added doc
  6149. * src/TrackerWatcherCommand.cc
  6150. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  6151. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6152. Changed CheckIntegrityEntry interface so that it can define
  6153. the action when all the chunk checksums are valid.
  6154. * src/CheckIntegrityEntry.h
  6155. * src/StreamCheckIntegrityEntry.{h, cc}
  6156. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  6157. are valid, then aira2 goes to seeding mode. Sometimes it is better
  6158. to exit rather than doing seeding. So, it would be good to toggle this
  6159. behavior.
  6160. * src/CheckIntegrityCommand.cc
  6161. * src/AbstractCommand.cc
  6162. * src/RequestGroup.cc
  6163. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6164. Reflect the download length of in-flight pieces.
  6165. It makes the download length readout more precise.
  6166. * src/DefaultPieceStorage.{h, cc}
  6167. * test/DefaultPieceStorageTest.cc
  6168. * src/a2functional.h
  6169. * test/a2functionalTest.cc
  6170. Lower CPU load when --max-download-limit is used.
  6171. There is up and down in speed indicator when enabling
  6172. http-pipelining but a download goes well. I think the problem is that
  6173. because http-pipelining is enabled, DownloadCommand is created for
  6174. each segment and in its constructor, PeerStat::downloadStart() is
  6175. called. In PeerStat::downloadStart(), speed calculation object is
  6176. reseted, which makes download speed zero.
  6177. * src/DownloadCommand.cc
  6178. Rewritten using accumulate.
  6179. * src/RequestGroupMan.cc (calculateStat)
  6180. Code clearnup.
  6181. * src/FtpNegotiationCommand.cc
  6182. * src/HttpResponseCommand.cc
  6183. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6184. Fixed: Can not resume: aria2 reports download already finished.
  6185. * src/AbstractCommand.{h, cc}
  6186. * src/HttpResponseCommand.cc
  6187. * src/FtpNegotiateCommand.cc
  6188. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6189. Now a file is stored in the directory specified in .metalnk file
  6190. (file[@name]).
  6191. * src/Metalink2RequestGroup.cc
  6192. Create the directory structure when opening the file if it doesn't
  6193. exist.
  6194. * src/AbstractDiskWriter.cc
  6195. * src/Util.{h, cc}
  6196. * src/File.h
  6197. * test/UtilTest.cc
  6198. Removed file name comparison
  6199. * src/Metalink2RequestGroup.cc
  6200. * src/HttpResponseCommand.cc
  6201. Rewritten using Util::mkdirs()
  6202. * src/FileEntry.cc (setupDir)
  6203. * test/FileEntryTest.cc
  6204. Updated doc
  6205. * src/SingleFileDownloadContext.h
  6206. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6207. Now SleepCommand dispatches nextCommand when halt is requested.
  6208. It avoids a possible long wait after hitting CTRL-C.
  6209. * src/SleepCommand.{h, cc}
  6210. * src/RequestGroupAware.{h, cc}
  6211. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6212. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  6213. to open listen port, then remove the port number from the tracker
  6214. request.
  6215. * src/DefaultBtAnnounce.cc
  6216. * test/DefaultBtAnnounceTest.cc
  6217. * test/MockPieceStorage.h
  6218. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  6219. them more testable.
  6220. * src/DefaultBtAnnounce.{h, cc}
  6221. * src/DefaultBtContext.{h, cc}
  6222. * src/Util.{h, cc}
  6223. * test/DefaultBtAnnounceTest.cc
  6224. * test/DefaultBtContextTest.cc
  6225. * test/UtilTest.cc
  6226. Added 'B' to upload bytes readout.
  6227. * src/ConsoleStatCalc.cc
  6228. Now the listen port for BitTorrent download is opened when it is
  6229. needed.
  6230. * src/DownloadEngineFactory.cc
  6231. * src/BtSetup.{h, cc}
  6232. * src/PeerListenCommand.{h, cc}
  6233. Now an exception thrown while parsing tracker response is now logged.
  6234. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  6235. called, which means no retry is made in this case, assuming a tracker
  6236. has a problem.
  6237. * src/TrackerWatcherCommand.cc
  6238. Fixed: downloading a file whose length is unkown fails.
  6239. * src/DownloadCommand.cc
  6240. Simplified prepareForNextSegment()
  6241. * src/DownloadCommand.cc
  6242. Updated
  6243. * po/POTFILES.in
  6244. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Re-implemented a file listing for Metalink, which was dropped while
  6246. http/ftp/torrent integration was being implemented.
  6247. * src/MetalinkHelper.{h, cc}: New class.
  6248. * test/MetalinkHelperTest.cc
  6249. * src/main.cc
  6250. * src/Metalink2RequestGroup.cc
  6251. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6252. Added the ability to display the detailed torrent file information.
  6253. Now -S option gives not only a file listing, but also total download
  6254. length, info hash, announce URI, piece length, the number of pieces,
  6255. and mode(single or multi-torrent).
  6256. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  6257. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  6258. KiB)
  6259. * test/UtilTest.cc
  6260. * src/main.cc
  6261. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6262. Added ftp://USER:PASSWD@Servername automatic parsing.
  6263. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  6264. _password. Recognize username and password in URI.
  6265. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  6266. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  6267. * src/RequestFactory.{h, cc}: Removed.
  6268. * src/AuthConfigFactory.{h, cc}: New class.
  6269. * src/FtpConnection.cc: Use AuthConfigFactory.
  6270. * src/HttpRequest.cc: Use AuthConfigFactory.
  6271. * test/HttpRequestTest.cc: Updated.
  6272. * test/RequestTest.cc: Updated.
  6273. * test/AuthConfigFactoryTest.cc: New class.
  6274. * test/RequestFactoryTest.cc: Removed.
  6275. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6276. Use RequestGroup::allDownloadFinished() to decide whether the control
  6277. file should be removed or saved.
  6278. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  6279. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  6280. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6281. Use File::renameTo()
  6282. * src/DefaultBtProgressInfoFile.cc
  6283. Added --no-file-allocation-limit command-line option.
  6284. * src/version_usage.cc
  6285. * src/option_processing.cc
  6286. * src/OptionHandlerFactory.cc
  6287. * src/RequestGroup.{h, cc}
  6288. * src/BtCheckIntegrityEntry.cc
  6289. * src/StreamCheckIntegrityEntry.cc
  6290. * src/prefs.h
  6291. * doc/aria2c.1.txt
  6292. * doc/aria2c.1
  6293. Now prealloc is the default value for --file-allocation option.
  6294. * src/version_usage.cc
  6295. * src/option_processing.cc
  6296. * doc/aria2c.1.txt
  6297. * doc/aria2c.1
  6298. Don't URL-encode user-agent.
  6299. * src/HttpRequest.cc
  6300. Updated translations
  6301. * po/LINGUAS: Added nl for Dutch translation.
  6302. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  6303. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  6304. * po/POTFILES.in: Updated.
  6305. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6306. Added the ability to recognize url-list in a torrent file.
  6307. The retrieved URLs are attached to the corresponding FileEntry.
  6308. * src/DefaultBtContext.{h, cc}
  6309. * src/FileEntry.{h, cc}
  6310. * test/DefaultBtContextTest.cc
  6311. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6312. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  6313. after the download finishes.
  6314. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6315. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  6316. the data smaller than block length.
  6317. A block length can be specified by constructor's argument.
  6318. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  6319. Get a missing piece in the range of given FileEntry. This function is
  6320. not used in the program yet.
  6321. * src/Util.h: Added some macros.
  6322. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6323. Added HTTP/1.1 keep alive and pipelining support.
  6324. See --enable-http-keep-alive and --enable-http-pipelining option.
  6325. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  6326. Segment.
  6327. * src/HttpDownloadCommand.{h, cc}
  6328. * src/OptionHandlerFactory.cc
  6329. * src/HttpConnection.{h, cc}
  6330. * src/version_usage.cc
  6331. * src/HttpInitiateConnectionCommand.cc
  6332. * src/FtpInitiateConnectionCommand.cc
  6333. * src/Segment.h
  6334. * src/HttpRequestCommand.{h, cc}
  6335. * src/option_processing.cc
  6336. * src/prefs.h
  6337. * src/HttpResponseCommand.cc
  6338. * src/SegmentMan.{h, cc}
  6339. * src/FtpNegotiateCommand.cc
  6340. * src/HttpProxyResponseCommand.cc
  6341. * src/Request.cc
  6342. * src/HttpRequest.cc
  6343. * src/DownloadCommand.cc
  6344. * test/HttpRequestTest.cc
  6345. * test/RequestTest.cc
  6346. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  6348. finished.
  6349. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6350. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  6351. catching it inside the method.
  6352. When no file entry is found in a metalink without querying user
  6353. preferences, throw the exception with the error message that suggests
  6354. metalink file is probably broken.
  6355. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  6356. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6357. Fixed the bug that prevents remote Metalink/Torrent file from begin
  6358. processed.
  6359. * src/RequestGroupMan.cc (removeStoppedGroup)
  6360. Added debug message.
  6361. * src/BtPostDownloadHandler.cc
  6362. * src/MetalinkPostDownloadHandler.cc
  6363. * src/PostDownloadHandler.{h, cc}
  6364. * src/RequestGroup.cc
  6365. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6366. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  6367. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6368. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  6369. stops and there are any unfinished or in-progress downloads.
  6370. Added the legend of "stat".
  6371. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6372. Throw exception when chunck checksum verification fails.
  6373. * src/DownloadCommand.cc (validatePieceHash): New function.
  6374. * src/PiecedSegment.{h, cc} (clear): New function.
  6375. * src/GrowSegment.{h, cc} (clear): New function.
  6376. * src/Segment.h (clear): New function.
  6377. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  6378. * test/SegmentTest.cc
  6379. * test/GrowSegmentTest.cc
  6380. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6381. Do not send referer when redirected.
  6382. * src/Request.cc (redirectUrl)
  6383. * test/RequestTest.cc
  6384. * test/HttpRequestTest.cc
  6385. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6386. Implemented BitTorrent/http/ftp integrated download.
  6387. I've rewritten lots of files and now some headers have forward
  6388. class declarations to reduce compile time.
  6389. The implementation is extremely alpha stage, I recommend to use this
  6390. for testing purpose only.
  6391. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6392. Fixed the compilation error on 64bit platform.
  6393. * test/HttpHeaderProcessorTest.cc
  6394. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6395. Merged Ross's patch that fixes compilation problem in MinGW
  6396. * test/DefaultBtProgressInfoFileTest.cc
  6397. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6398. Updated fr.po by sebone
  6399. * po/fr.po
  6400. Updated man page.
  6401. * doc/aria2c.1.txt
  6402. * Release 0.11.3
  6403. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6404. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  6405. failure in Metalink.
  6406. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6407. Automatically save *.aria2 control file of http/ftp download in every
  6408. 60 seconds.
  6409. * src/AutoSaveCommand.{h, cc}: New class.
  6410. * src/TimeBasedCommand.{h, cc}: New class.
  6411. * src/DownloadEngineFactory.cc (newConsoleEngine)
  6412. Disable parameterized URI support by default. Added -P option to
  6413. enable the feature.
  6414. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  6415. * src/OptionHandlerFactory.cc
  6416. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  6417. Updated Japanese translation.
  6418. * po/ja.po
  6419. Updated man page.
  6420. * doc/aria2c.1.txt
  6421. * Release 0.11.3-rc
  6422. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6423. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  6424. it is successful, then renamed to *.aria2.
  6425. This prevents *.aria2 file from being truncated or corrupted when
  6426. file system becomes out of space.
  6427. * src/DefaultBtProgressInfoFile.cc (save)
  6428. * src/SegmentMan.cc (save)
  6429. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  6430. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6431. Reduced the fragmentation of bitfield in http/ftp download.
  6432. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  6433. * test/BitfieldManTest.cc
  6434. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6435. Added the ability to disable segmented download in .metalink.
  6436. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  6437. 'url' tag.
  6438. * src/MetalinkEntry.{h, cc}
  6439. * src/RequestResource.{h, cc}
  6440. * src/MetalinkRequestInfo.cc
  6441. * src/Xml2MetalinkProcessor.cc
  6442. * test/Xml2MetalinkProcessorTest.cc
  6443. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6444. Added parameterized URI support.
  6445. * src/main.cc: -Z option added.
  6446. * src/OptionHandlerFactory.cc
  6447. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  6448. * src/PStringDatum.h: New class.
  6449. * src/PStringSegment.{h,cc}: New class.
  6450. * src/PStringNumLoop.h: New class.
  6451. * src/PStringSelect.h: New class.
  6452. * src/NumberDecorator.h: New class.
  6453. * src/FixedWidthNumberDecorator.h: New class.
  6454. * src/AlphaNumberDecorator.h: New class.
  6455. * src/PStringVisitor.h: New class.
  6456. * src/PStringBuildVisitor.{h,cc}: New class.
  6457. * src/ParameterizedStringParser.{h,cc}: New class.
  6458. * src/Util.{h,cc}
  6459. (isNumber): New function.
  6460. (isLowercase): New function.
  6461. (isUppercase): New function.
  6462. (alphaToNum): New function.
  6463. * test/ParameterizedStringParserTest.cc: New class.
  6464. * test/AlphaNumberDecoratorTest.cc: New class.
  6465. * test/PStringBuildVisitorTest.cc: New class.
  6466. * test/UtilTest.cc
  6467. (testIsNumber): New function.
  6468. (testIsLowercase): New function.
  6469. (testIsUppercase): New function.
  6470. (testAlphaToNum): New function.
  6471. Added '\n' after the error message
  6472. * src/RequestInfo.h (printDownloadAbortMessage)
  6473. Added auto file renaming feature in http(s)/ftp download.
  6474. * src/main.cc: Added --auto-file-renaming command-line option.
  6475. * src/OptionHandlerFactory.cc
  6476. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  6477. * src/RequestGroup.{h, cc}
  6478. (shouldCancelDownloadForSafety): Rewritten
  6479. (tryAutoFileRenaming): New function.
  6480. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  6481. * src/HttpResponseCommand.cc
  6482. (executeInternal): Removed the call to RequestGroupMan::
  6483. isSameFileBeingDownloaded()
  6484. * src/FtpNegotiateCommand.cc
  6485. (recvSize): Removed the call to RequestGroupMan::
  6486. isSameFileBeingDownloaded()
  6487. * test/RequestGroupTest.cc: New class.
  6488. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6489. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  6490. IO.
  6491. * src/DefaultBtProgressInfoFile.cc
  6492. * src/MetaFileUtil.cc
  6493. * src/SimpleLogger.cc
  6494. * src/SegmentMan.cc
  6495. * src/Util.cc
  6496. * src/Platform.cc
  6497. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  6499. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6500. Avoid sparse files if possible, because VFAT32 doesn't support it.
  6501. * src/DefaultDiskWriter.cc (initAndOpenFile)
  6502. Fixed the bug that prevents file allocation is not done when
  6503. dowloading multi-torrent file.
  6504. * src/AbstractDiskWriter.cc (openFile)
  6505. Increase the maximum number of -j option from 15 to 45.
  6506. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6507. Added fr.po, thanks to Charles Landemaine.
  6508. * po/fr.po
  6509. * po/LINGUAS
  6510. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6511. gcc 3.4.4 support:
  6512. * src/DefaultBtContext.cc: int32_t -> int
  6513. * src/main.cc: int -> int32_t, int32_t -> int
  6514. * src/messageDigest.h: uint32_t -> unsigned int
  6515. * src/NameResolver.h: int32_t -> int
  6516. * src/PeerConnection.cc: int -> int32_t
  6517. * src/SpeedCalc.cc: int32_t -> int
  6518. * src/TrackerUpdateCommand.h: int -> int32_t
  6519. * src/Util.cc: int32_t -> int
  6520. * src/Util.h: int32_t -> int
  6521. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  6522. * test/AnnounceListTest.cc: int -> int32_t
  6523. * test/ChunkedEncodingTest.cc: int -> int32_t
  6524. * test/DataTest.cc: int -> int32_t
  6525. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  6526. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  6527. * test/DefaultPieceStorageTest.cc: int -> int32_t
  6528. * test/FeatureConfigTest.cc: int -> int32_t
  6529. * test/MetalinkEntryTest.cc: int -> int32_t
  6530. * test/MockBtRequestFactory.h: int -> int32_t
  6531. * test/MockPieceStorage.h: int -> int32_t
  6532. * test/OptionTest.cc: int -> int32_t
  6533. * test/RequestTest.cc: int -> int32_t
  6534. * test/SegmentManTest.cc: int -> int32_t
  6535. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  6536. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6537. Move sleep functions to Util class:
  6538. * src/Util.cc
  6539. (sleep): New function.
  6540. (usleep): New function.
  6541. * src/DownloadCommand.cc: sleep -> Util::sleep
  6542. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  6543. MinGW build enhancements. The following files are added:
  6544. * src/timegm.{c,h}
  6545. Changes to support the above new files:
  6546. * configure.ac
  6547. * src/Makefile.am
  6548. * src/a2time.h
  6549. * src/Util.cc:
  6550. * src/strptime.c: Added support for %Z option.
  6551. Fixed MinGW non-blocking bug.
  6552. * src/SocketCore.cc
  6553. * src/HttpRequestCommand.cc
  6554. Miscellenous build fixes/enhancements.
  6555. * configure.ac: Added summary report.
  6556. * src/Platform.h: Tweaked #include's.
  6557. * src/a2netcompat.h: Tweaked #include's.
  6558. * src/strptime.h: Tweaked #include's.
  6559. * src/gai_strerror.c: Tweaked #include's.
  6560. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  6561. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  6562. * src/gettimeofday.h: Added HAVE_CONFIG_H
  6563. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6564. Increased the initial connection size in BitTorrent download to 40.
  6565. * src/BtRuntime.h
  6566. Added the usage message of --peer-id-prefix option.
  6567. * src/main.cc
  6568. * Release 0.11.2
  6569. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6570. MessageDigestHelper is introduced in order to simplify the use
  6571. of message digest. Removed repeated code.
  6572. The message digest algorithm is now specified by string, like "sha1",
  6573. "md5".
  6574. * src/messageDigest.{h, cc}
  6575. * src/MessageDigestHelper.{h, cc}: New class.
  6576. * src/DefaultPieceStorage.cc
  6577. * src/DefaultBtContext.{h, cc}
  6578. (computeFastSet): New function.
  6579. (setInfoHash): Added for unit testing.
  6580. (setNumPieces): Added for unit testing.
  6581. * src/DefaultBtInteractive.cc
  6582. * src/BtPieceMessage.cc
  6583. * src/Peer.cc
  6584. * src/Checksum.h
  6585. * src/message.h
  6586. * src/IteratableChecksumValidator.h
  6587. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  6588. inside it.
  6589. * src/SegmentMan.{h, cc}
  6590. (checkIntegrity): Removed.
  6591. * src/IteratableChunkChecksumValidator.{h, cc}
  6592. * src/Util.h
  6593. (sha1Sum): Removed.
  6594. (simpleMessageDigest): Removed.
  6595. (fileChecksum): Removed.
  6596. (computeFastSet): Removed.
  6597. * src/ShaVisitor.cc
  6598. * src/ChunkChecksum.h
  6599. * src/DownloadCommand.cc
  6600. Removed messageDigest virtual functions.
  6601. * src/MultiDiskAdaptor.{h, cc}
  6602. * src/DiskAdaptor.h
  6603. * src/ByteArrayDiskWriter.h
  6604. * src/DiskWriter.h
  6605. * src/DiskAdaptorWriter.h
  6606. * src/AbstractSingleDiskAdaptor.{h, cc}
  6607. * src/AbstractDiskWriter.{h, cc}
  6608. Fixed comilation error when message digest is disabled.
  6609. * src/MetalinkEntry.{h, cc}
  6610. * src/MetalinkRequestInfo.cc
  6611. Removed srandom and random.
  6612. * src/SimpleRandomizer.h
  6613. Added size() virtual function to DiskAdaptor
  6614. * src/MultiDiskAdaptor.h
  6615. Fixed the bug that causes that files are not opened correctly in
  6616. multi-file torrent.
  6617. * src/TorrentRequestInfo.cc
  6618. * src/MultiDiskAdaptor.cc
  6619. Added SHA256 support
  6620. * src/messageDigest.cc
  6621. * src/Xml2MetalinkProcessor.cc
  6622. Show supported message digest algorithms
  6623. * src/main.cc
  6624. Updated contact info.
  6625. * src/main.cc
  6626. Applied Ross's patch
  6627. * src/a2netcompat.h
  6628. * src/main.cc
  6629. Fixed the bug that prevents a remote metalink from not being processed
  6630. even if '-o foo.metalink' is specified.
  6631. * src/MetalinkRequestInfo.cc
  6632. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6633. Merged Dan's patch:
  6634. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  6635. Use va_copy to avoid core dump on amd64:
  6636. * src/SimpleLogger.cc
  6637. Updated contact info.
  6638. * src/main.cc
  6639. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  6640. digest is not available.
  6641. * src/MetalinkEntry.h
  6642. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Make a2netcompat.h include a2io.h to fix compilation error:
  6644. * src/a2netcompat.h
  6645. * src/SocketCore.cc: Removed include of a2io.h
  6646. * src/Util.cc: Removed include of a2io.h
  6647. Gather time related functions to a2time.h:
  6648. * src/a2time.h: New file.
  6649. * src/DefaultPeerStorage.cc
  6650. * src/SimpleLogger.cc
  6651. * src/Util.{h, cc}
  6652. * src/SimpleRandomizer.h
  6653. * src/TimeA2.{h,cc}
  6654. * src/DownloadCommand.cc
  6655. * src/main.cc
  6656. Removed #ifdef __MINGW32__ since gai_strerror is included in
  6657. a2netcompat.h:
  6658. * src/NameResolver.cc
  6659. Fixed compilation error without openssl:
  6660. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  6661. Added default block to suppress compiler warnings:
  6662. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  6663. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  6664. MinGW build enhancements. The following files are added:
  6665. * src/gai_strerror.{c,h}
  6666. * src/gettimeofday.{c,h}
  6667. Changes to support the above new files:
  6668. * configure.ac
  6669. * src/Makefile.am
  6670. * src/a2netcompat.h
  6671. * src/TimeA2.cc
  6672. * src/DefaultPeerStorage.cc
  6673. * src/NameResolver.cc: removed mingw_strerror() function.
  6674. * src/SocketCore.cc: removed mingw_strerror() function.
  6675. Miscellaneous MinGW build fixes.
  6676. * src/a2io.h: Use _lseeki64() instead of lseek()
  6677. * src/common.h
  6678. * src/DefaultFileAllocator.cc
  6679. * src/GlowFileAllocator.cc
  6680. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  6681. * src/NameResolver.cc
  6682. (callback): Changed int32_t to int.
  6683. (resolve): Changed int32_t to int.
  6684. * src/Platform.cc
  6685. * src/Platform.h
  6686. * test/MultiDiskWriterTest.cc
  6687. * test/PeerMessageUtilTest.cc
  6688. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  6689. Other enhancements and fixes.
  6690. * src/HttpRequestCommand.cc
  6691. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  6692. * src/SocketCore.cc:
  6693. (error): New function to abstract errno/WSAGetLastError().
  6694. (errorMsg): New function to abstract errno/WSAGetLastError().
  6695. (initiateSecureConnection): Added more detailed error reporting.
  6696. * src/SocketCore.h: Added private variable blocking, to allow
  6697. proper handling of OpenSSL psuedo-errors.
  6698. * src/message.h
  6699. (EX_SSL_INIT_FAILURE)
  6700. (EX_SSL_IO_ERROR)
  6701. (EX_SSL_PROTOCOL_ERROR)
  6702. (EX_SSL_UNKNOWN_ERROR)
  6703. (EX_SSL_CONNECT_ERROR)
  6704. (EX_SOCKET_BLOCKING)
  6705. (EX_SOCKET_NONBLOCKING)
  6706. (EX_SOCKET_UNKNOWN_ERROR)
  6707. * src/Util.cc
  6708. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  6709. reserved name.
  6710. (httpGMT): Fixed typo.
  6711. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6712. Merged Ross's win32 patch(manually)
  6713. In the course of merging, following files are added.
  6714. * src/strptime.{h,c}
  6715. * src/libgen.{h,c}
  6716. * src/inet_aton.{h,c}
  6717. * src/Platform.{h,cc}
  6718. * src/localtime_r.{h,c}
  6719. * src/getaddrinfo.{h,c}
  6720. I've gethered network related things, and put them to following file:
  6721. * src/a2netcompat.h
  6722. Also io related things are put to following file:
  6723. * src/a2io.h
  6724. Changed %lld to %s because mingw32 doesn't recognize %lld.
  6725. * src/message.h
  6726. (MSG_ALLOCATION_COMPLETED)
  6727. (EX_TOO_LARGE_FILE)
  6728. (EX_SIZE_MISMATCH)
  6729. (EX_FILE_OFFSET_OUT_OF_RANGE)
  6730. (EX_INVALID_CHUNK_CHECKSUM)
  6731. (EX_INVALID_RANGE_HEADER)
  6732. * src/FileAllocationCommand.cc
  6733. * src/HttpResponse.cc
  6734. * src/RequestGroup.cc
  6735. * src/MultiDiskAdaptor.cc
  6736. * src/OptionHandlerImpl.h
  6737. * src/HttpResponseCommand.cc
  6738. * src/FtpNegotiateCommand.cc
  6739. * src/IteratableChecksumValidator.cc
  6740. * src/SegmentMan.cc
  6741. * src/ChunkChecksumValidator.cc
  6742. Added Randomizer::getRandomNumber(long int)
  6743. * src/Randomizer.h (getRandomNumber)
  6744. * src/SimpleRandomizer.h (getRandomNumber)
  6745. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  6746. * src/Util.cc (randomAlpha): Use this new function.
  6747. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Converted int's to in32_t. long long int's are also converted to
  6749. int64_t
  6750. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6751. Fixed the bug that prevents cookies from being sent to the server
  6752. if the domain of cookie is FQDN and starts with ".".
  6753. * src/Cookie.cc (match)
  6754. To add the ability to change peer id.
  6755. * src/DefaultBtContext.h
  6756. (_peerIdPrefix): New variable
  6757. (setPeerIdPrefix): New function.
  6758. * src/torrentRequestInfo.cc
  6759. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  6760. DefaultBtContext.
  6761. * src/main.cc (main): Added peer-id-prefix command-line option.
  6762. The usage message is not added yet.
  6763. * src/DefaultBtContext.cc
  6764. (generatePeerId): Use _peerIdPrefix.
  6765. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  6766. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6767. Fixed the bug that prevents filename in content-disposition from
  6768. being retrieved when filename is not quoted.
  6769. * src/Util.cc (getContentDispositionFilename)
  6770. Fixed the bug that causes infinate loop and memory leak when file open
  6771. operation failed.
  6772. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6773. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6774. Fixed the bug that causes segfault when all URIs specified are
  6775. unsupported.
  6776. * src/RequestGroupMan.cc (getInitialCommands)
  6777. Check if RequestGroup::createNextCommand() returns empty list of
  6778. commands.
  6779. * src/RequestGroup.cc (createNextCommand)
  6780. Change log level from info to error so that users can notice that
  6781. an error occurred.
  6782. Fixed the bug that causes segfault when a zero-sized file is
  6783. downloaded.
  6784. * src/BitfieldMan.cc (isAllBitSet)
  6785. Return true if bitfieldLength is 0.
  6786. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6787. * src/main.cc
  6788. (showUsage): Added 3 usage examples for metalink download.
  6789. Replace MetalinkChunkChecksum with ChunkChecksum.
  6790. * src/MetalinkChunkChecksum.h: Removed.
  6791. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  6792. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  6793. * src/Xml2MetalinkProcessor.cc
  6794. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  6795. * src/MetalinkRequestInfo.cc (execute)
  6796. * Release 0.11.1
  6797. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6798. Reads URIs from stdin when "-i -" is specified.
  6799. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  6800. * src/UriListParser.h, src/UriListParser.cc: New class.
  6801. * src/StreamUriListParser.h: New class.
  6802. * src/FileUriListParser.h: New class.
  6803. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  6804. instead of UriFileListParser.
  6805. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6806. Made console readout more readable.
  6807. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6808. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6809. Fix the bug that causes -s option not to work.
  6810. * src/main.cc (main)
  6811. * src/a2algo.h: New file.
  6812. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6813. Create directory structure specified in metalink file.
  6814. * src/RequestGroup.h, src/RequestGroup.cc
  6815. (initAndOpenFile): Create a directory to store files if it does not
  6816. exist.
  6817. (getDir): New function.
  6818. Added ETA and download speed for an individual file to readout.
  6819. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6820. * src/RequestGroup.h
  6821. (calculateDownloadSpeed): New function.
  6822. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6823. Made -S option work with metalink file and provided selective download
  6824. to metalink.
  6825. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  6826. (filename): Removed.
  6827. (file): New variable.
  6828. (size): Removed.
  6829. (operator=): Updated.
  6830. (getPath): New function.
  6831. (getLength): New function.
  6832. (toFileEntry): New function.
  6833. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  6834. (execute): Use toStream.
  6835. (showFileEntry): Removed.
  6836. * src/MetalinkRequestInfo.h
  6837. (targetFiles): New variable.
  6838. (setTargetFiles): New variable.
  6839. * src/MetalinkRequestInfo.cc
  6840. (execute): Added the ability to print file information included in
  6841. a metalink file.
  6842. Added selective download mode to metalink.
  6843. * src/main.cc
  6844. (showUsage): Updated to denote that -S and --select-file options are
  6845. applicable to metalink.
  6846. * src/FileEntry.h
  6847. (operator=): New function.
  6848. (getBasename): New function.
  6849. (getDirname): New function.
  6850. * src/Util.h, src/Util.cc
  6851. (toStream): New function.
  6852. * src/Xml2MetalinkProcessor.cc: Updated.
  6853. Made aria2 work with metalink with directory structure.
  6854. * src/File.h, src/File.cc
  6855. (getBasename): New function.
  6856. (getDirname): New function.
  6857. * src/RequestGroup.h, src/RequestGroup.cc
  6858. (_topDir): New variable.
  6859. (setTopDir): New function.
  6860. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  6861. Rewrote HTTP header parsing with stringstream.
  6862. * src/HttpConnection.h, src/HttpConnection.cc
  6863. (HttpRequestEntry): New class.
  6864. (headerBuf): Removed.
  6865. (headerBufLength): Removed.
  6866. (outstandingHttpRequests): Now its element type is
  6867. HttpRequestEntryHandle.
  6868. (findEndOfHeader): Removed.
  6869. (receiveResponse): Rewritten.
  6870. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  6871. Updated doc for -j option to notice that it should be used with -i
  6872. option.
  6873. * src/main.cc (showUsage)
  6874. Removed unused classes.
  6875. * src/RequestInfo.h
  6876. (FileInfo): Removed.
  6877. (checksum): Removed.
  6878. (fileInfo): Removed.
  6879. (setChecksum): Removed.
  6880. (getChecksum): Removed.
  6881. (getFileInfo): Removed.
  6882. Use ISO units.
  6883. * src/ConsoleDownloadEngine.cc
  6884. * src/TorrentConsoleDownloadEngine.cc
  6885. * src/Util.cc (abbrevSize)
  6886. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6887. Added the default listening ports to the help message.
  6888. * src/main.cc (showUsage)
  6889. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6890. Reduce the number of calls to gettimeofday to lower CPU load.
  6891. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  6892. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  6893. * src/Peer.h (calculateUploadSpeed): New function.
  6894. (calculateDownloadSpeed): New function.
  6895. * src/DefaultPeerStorage.cc
  6896. (CalculateStat): Added _now variable.
  6897. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  6898. and Peer::calculateUploadSpeed(const struct timeval&)
  6899. Drop connection if no request or piece message is exchanged in
  6900. a certain interval.
  6901. * src/DefaultBtInteractive.h
  6902. (btRuntime): New variable.
  6903. (inactiveCheckPoint): New variable.
  6904. (checkActiveInteraction): New function.
  6905. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  6906. request or piece message is received.
  6907. (checkActiveInteraction): New function.
  6908. (doInteractionProcessing): Call checkActiveInteraction.
  6909. Fixed the bug that causes remote Metalink and Torrent files are not
  6910. processed.
  6911. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  6912. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6913. Changed format of log file.
  6914. * src/SimpleLogger.cc
  6915. * Release 0.11.0
  6916. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. * src/AbstractCommand.cc
  6918. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  6919. MSG_MAX_TRY from error to info.
  6920. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  6921. * src/message.h
  6922. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  6923. (MSG_DOWNLOAD_ABORTED): Added %s.
  6924. (MSG_RESTARTING_DOWNLOAD): Added %s.
  6925. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  6926. * src/PeerAbstractCommand.cc
  6927. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  6928. * src/Request.h
  6929. (cookieBox): Made ShardHandle.
  6930. * src/RequestGroup.h, src/RequestGroup.cc
  6931. (createNextCommandWithAdj): New function.
  6932. * src/FileAllocationCommand.cc
  6933. (executeInternal): Use createNextCommandWithAdj().
  6934. * src/CheckIntegrityCommand.cc
  6935. (executeInternal): Use createNextCommandWithAdj().
  6936. Added --load-cookies command-option.
  6937. * src/OptionHandlerFactory.cc
  6938. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  6939. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  6940. Now aria2 can handle cookie's expiration date.
  6941. * src/Cookie.h (expires): Changed its type to time_t.
  6942. * src/main.cc: Added --load-cookies command-line option.
  6943. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  6944. * src/Util.h, src/Util.cc (httpGMT): New function.
  6945. * src/Request.cc (Request): Initialize cookieBox using
  6946. CookieBoxFactory.
  6947. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  6948. * src/CookieParser.h, src/CookieParser.cc: New class.
  6949. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  6950. * src/HttpResponseCommand.cc
  6951. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  6952. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  6953. download.
  6954. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6955. Added -j command-line option.
  6956. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6957. * src/main.cc
  6958. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  6959. Rewritten using stringstream.
  6960. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  6961. Rewritten using stringstream.
  6962. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6963. Make download size shown in MB, KB.
  6964. * src/ConsoleDownloadEngine.h (sendStatistics)
  6965. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  6966. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6967. Accept incoming connections if download rate is low.
  6968. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  6969. (_lowestSpeedLimit): New variable.
  6970. (setLowestSpeedLimit): New function.
  6971. (execute): Accept incoming connections if download rate is low.
  6972. MAX_PEERS is ignored in this case.
  6973. Disable PREF_OUT in multiple concurrent download:
  6974. * src/RequestGroup.h, src/RequestGroup.cc
  6975. (setUserDefinedFilename): New function.
  6976. * src/DownloadEngineFactory.cc
  6977. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  6978. concurrent download.
  6979. * src/DefaultSegmentManFactory.cc
  6980. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  6981. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6982. RequestGroup::getNextCommand() was renamed to createNextCommand().
  6983. Added its overloaded method.
  6984. * src/RequestGroup.h
  6985. (_numConcurrentCommand): New variable.
  6986. (setNumConcurrentCommand): New function.
  6987. * src/RequestGroup.cc
  6988. Abort download if same file is being downloaded concurrently.
  6989. * src/RequestGroup.h, src/RequestGroupMan.cc
  6990. (isSameFileBeingDownloaded): New function.
  6991. * src/HttpResponseCommand.cc (executeInternal)
  6992. * src/FtpNegotiateCommand.cc (recvSize)
  6993. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  6994. * main.cc: Added help message for -i option.
  6995. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6996. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  6997. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  6998. * src/MetalinkEntry.h
  6999. (checksum): Changed to ChecksumHandle
  7000. * src/MetalinkRequestInfo.cc
  7001. (checksum): Changed to ChecksumHandle
  7002. * src/File.cc
  7003. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  7004. * src/common.h
  7005. (DIR_OPEN_MODE): New definition
  7006. * src/RequestGroup.cc
  7007. (prepareForNextAction): Added an argument.
  7008. * src/message.h
  7009. (MSG_GOOD_CHECKSUM): New definition
  7010. (MSG_BAD_CHECKSUM): New definition
  7011. * src/HttpResponseCommand.cc
  7012. (handleDefaultEncoding): Continue download sequence in new
  7013. non-segmented download.
  7014. * src/FileAllocationEntry.h
  7015. (_nextDownloadCommand): New variable.
  7016. * src/DownloadCommand.cc
  7017. (prepareForNextSegment): Create ChecksumCommand if checksum is
  7018. available.
  7019. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  7020. * src/IteratableChecksumValidator.h,
  7021. src/IteratableChecksumValidator.cc: New class.
  7022. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  7023. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Change file mode to 666:
  7025. * src/common.h (OPEN_MODE): New definition.
  7026. * src/File.cc
  7027. * src/Util.cc
  7028. * src/Directry.cc
  7029. * src/AbstractDiskWriter.cc
  7030. Change the level of log message "download aborted" to debug:
  7031. * src/PeerAbstractCommand.cc (execute)
  7032. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  7033. * src/TrackerWatcherCommand.cc
  7034. (createCommand): Sleep some seconds after request failed.
  7035. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  7036. then abort tracker request.
  7037. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7038. * Added the simultaneous download feature.
  7039. * src/main.cc: Print "Exception caught: " when exception is caught.
  7040. Use CUIDCounter instead of BtRuntime::getNewCuid():
  7041. * src/ActivePeerConnectionCommand.cc
  7042. * src/PeerInteractionCommand.cc
  7043. * src/BtRuntime.h
  7044. (cuidCounter): Removed.
  7045. (getNewCuid): Removed.
  7046. * src/DownloadEngineFactory.cc
  7047. * src/PeerListenCommand.cc
  7048. * src/TrackerUpdateCommand.cc
  7049. * src/PeerInitiateConnectionCommand.cc
  7050. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7051. * src/PeerAbstractCommand.cc
  7052. (onAbort): Call PeerStorage::returnPeer()
  7053. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  7054. (incomingPeers): New variable.
  7055. (addIncomingPeer): New function.
  7056. (returnPeer): New function.
  7057. (onErasingPeer): New function.
  7058. (addPeer): push_back -> push_front
  7059. (getActivePeers): Rewritten.
  7060. (calculateStat): Rewritten.
  7061. * src/PeerStorage.h
  7062. (TransferStat::copy): New function.
  7063. (TransferStat::TransferStat): New function.
  7064. (TransferStat::operator=): New function.
  7065. (addIncomingPeer): New function.
  7066. (returnPeer): New function.
  7067. * src/PeerListenCommand.cc
  7068. (execute): Use PeerStorage::addIncomingPeer() instead of
  7069. Peer::addPeer().
  7070. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7071. Connect to a peer actively when download speed is lower than specified
  7072. speed in torrent download:
  7073. * src/ActivePeerConnectionCommand.h: New class.
  7074. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. * src/HttpRequest.cc (createRequest): url-encode user-agent
  7076. * src/main.cc: Fixed the bug that prevents download if .netrc
  7077. doesn't exist.
  7078. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7079. To cache resolved hostname:
  7080. * src/AbstractCommand.h, src/AbstractCommand.cc
  7081. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  7082. Added dns cache.
  7083. * src/FtpInitiateConnectionCommand.cc
  7084. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  7085. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  7086. NameResolver working without ares.
  7087. * src/TorrentRequestInfo.cc
  7088. (execute): Don't cache dns in torrent download.
  7089. * src/HttpInitiateConnectionCommand.cc
  7090. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  7091. * src/DNSCache.h: New class.
  7092. * src/UrlRequestInfo.cc
  7093. (execute): Use dns cache.
  7094. In http request, suppress port number in http request header if port
  7095. is 80 or 443:
  7096. * src/HttpRequest.cc (getHostText): Suppress port number in http
  7097. request header if port is 80 or 443.
  7098. (createProxyRequest): Allways send port number.
  7099. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7100. To add the command-line option which disables netrc support:
  7101. * src/OptionHandlerFactory.cc
  7102. (createOptionHandlers): Added PREF_NO_NETRC.
  7103. * src/main.cc: Added -n option.
  7104. * src/prefs.h (PREF_NO_NETRC): New definition.
  7105. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  7106. V_TRUE.
  7107. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  7108. is V_FALSE. This may get configurable in the future release.
  7109. To clear peer's error status by time basis:
  7110. * src/PeerAbstractCommand.cc
  7111. (onAbort): Call Peer::startBadCondition().
  7112. * src/Peer.h, src/Peer.cc
  7113. (error): Removed.
  7114. (_badConditionStartTime): New variable.
  7115. (_badConditionInterval): New variable. Initialized to 10 seconds.
  7116. (startBadCondition): New function.
  7117. (isGood): New function.
  7118. * src/DefaultPeerStorage.cc
  7119. (addPeer): Use Peer::isGood().
  7120. (FindFinePeer): Use Peer::isGood().
  7121. Always include port number in http request header:
  7122. * src/HttpRequest.cc (getHostText): Always include port number in
  7123. http request header.
  7124. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7125. To the ability to read options from a config file:
  7126. * src/main.cc: Command-line parameter validation is delegated to
  7127. OptionHandler class.
  7128. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  7129. * src/Option.h, src/Option.cc (clear): New function.
  7130. * src/OptionParser.h, src/OptionParser.cc: New class.
  7131. * src/OptionHandler.h: New class.
  7132. * src/NameMatchOptionHandler.h: New class.
  7133. * src/OptionHandlerImpl.h: New classes.
  7134. * src/prefs.h: '_' -> '-'
  7135. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  7136. (FTP_PASV): New definition.
  7137. * src/Util.h, src/Util.cc (getRealSize): New function.
  7138. To disable netrc support if .netrc file does not have correct
  7139. permissions:
  7140. * src/File.h, src/File.cc (mode): New function.
  7141. To prevent confidential information to be logged:
  7142. * src/HttpConnection.h, src/HttpConnection.cc
  7143. (eraseConfidentialInfo): New function.
  7144. (sendRequest): Call eraseConfidentialInfo().
  7145. (sendProxyRequest): Call eraseConfidentialInfo().
  7146. * src/main.cc: Validate permissions of .netrc file.
  7147. To add --user-agent command-line option:
  7148. * src/main.cc: Added new command line option: --user-agent
  7149. * src/prefs.h (PREF_USER_AGENT): New definition.
  7150. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  7151. parameter to HttpRequest object.
  7152. * src/AbstractProxyRequestCommand.cc
  7153. (executeInternal): Set user-agent option parameter to HttpRequest
  7154. object.
  7155. Marged the patches from Dan Fandrich.
  7156. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Use filename and size from Metalink file instead of sending HEAD
  7158. request:
  7159. * src/UrlRequestInfo.h
  7160. (_filename): New variable.
  7161. (_totalLength): New variable.
  7162. (setTotalLength): New variable.
  7163. (setFilename): New variable.
  7164. * src/MetalinkRequestInfo.cc
  7165. (execute): Set filename and size to UrlRequestInfo
  7166. * src/UrlRequestInfo.cc
  7167. (execute): Use filename and size from Metalink instead of seding
  7168. HEAD request to servers.
  7169. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7170. To add the ability to resume downloading a partially downloaded file
  7171. which is downloaded from the beginning:
  7172. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  7173. takes this role.
  7174. * src/main.cc: Added -c option.
  7175. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  7176. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  7177. * src/prefs.h (PREF_CONTINUE): New definition.
  7178. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  7179. * src/DefaultDiskWriter.cc
  7180. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  7181. * src/AbstractDiskWriter.h
  7182. (glowFileAllocator): New variable.
  7183. * src/AbstractDiskWriter.cc
  7184. (openExistingFile): Now preallocate file space from the end of the
  7185. existing file if totalLength argument is specified and grater than 0.
  7186. * src/UrlRequestInfo.cc: If -c option is specified and the file
  7187. to download exists in local, continue the download of the file.
  7188. --allow-overwrite=true is assumed in this context.
  7189. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  7190. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  7191. Throw exception if --check-integrity=true is specified but chunk
  7192. checksums are not provided:
  7193. * src/UrlRequestInfo.cc
  7194. Do not print URLs to stdout:
  7195. * src/UrlRequestInfo.cc
  7196. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7197. * src/Request.h: Use AuthResolver to get authentication information.
  7198. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  7199. set to RequestFactory object.
  7200. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  7201. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  7202. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  7203. create Request object.
  7204. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  7205. To integrate Netrc into exsiting classes:
  7206. * src/Request.h
  7207. (_userDefinedAuthConfig): New variable.
  7208. (findNetrcAuthenticator): New function.
  7209. (segment): Removed.
  7210. (setUserDefinedAuthConfig): New function.
  7211. (resolveHttpAuthConfigItem): New function.
  7212. (resolveFtpAuthConfigItem): New function.
  7213. (resolveHttpProxyAuthConfigItem): New function.
  7214. * src/HttpRequest.h
  7215. (authConfig): Removed.
  7216. (proxyAuthConfig): Removed.
  7217. (setAuthConfig): Removed.
  7218. (setProxyAuthConfig): Removed.
  7219. * src/UrlRequest.h
  7220. (getHeadResult): Added a parameter: authConfigHandle
  7221. * src/common.h
  7222. (SingletonHolder.h): New include.
  7223. * src/main.cc
  7224. (Netrc.h): New include.
  7225. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  7226. Added initial value of PREF_NETRC_PATH.
  7227. Added the initialization of netrc.
  7228. * src/AuthConfig.h: New class.
  7229. * src/prefs.h
  7230. (PREF_NETRC_PATH): New definition.
  7231. * src/HttpAuthConfig.h: Removed.
  7232. * src/Netrc.cc
  7233. (getRequiredNextToken): New function.
  7234. (skipMacdef): New function.
  7235. (parse): Rewritten.
  7236. * src/Netrc.h
  7237. (getRequiredNextToken): New function.
  7238. (skipMacdef): New function.
  7239. * src/Util.h, src/Util.cc
  7240. (getHomeDir): New function.
  7241. * src/TrackerWatcherComand.cc
  7242. (createRequestCommand): Use AuthConfig.
  7243. * src/FtpConnection.cc
  7244. (sendUser): Use Request::resolveFtpAuthConfigItem().
  7245. (sendPass): Use Request::resolveFtpAuthConfigItem().
  7246. * src/Request.cc
  7247. (findNetrcAuthenticator): New function.
  7248. (resolveHttpAuthConfigItem): New function.
  7249. (resolveFtpAuthConfigItem): New function.
  7250. (resolveHttpProxyAuthConfigItem): New function.
  7251. * src/UrlRequestInfo.cc: Use AuthConfig.
  7252. * src/HttpRequest.cc
  7253. (createRequest): Use authConfig.
  7254. (getProxyAuthString): Use authConfig.
  7255. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  7256. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  7257. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7258. To reduce overhead to find commands whose socket is either
  7259. readable or writable in the download engine loop:
  7260. * src/Command.h, src/Command.cc
  7261. (STATUS): New enum.
  7262. (status): New variable.
  7263. (statusMatch): New function.
  7264. (setStatusActive): New function.
  7265. (setStatusInactive): New function.
  7266. * src/DownloadEngine.h, src/DownloadEngine.cc
  7267. (executeCommand): New function.
  7268. (run): Simplified.
  7269. (waitData): Call Command::setStatusActive() when command's socket is
  7270. readable or writable.
  7271. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7272. To handle Segment as SegmentHandle:
  7273. * src/AbstractCommand.cc (execute): Rewritten.
  7274. * src/SegmentMan.h: Segment -> SegmentHandle
  7275. Introducded HttpResponse class, HttpRequest class to improve code
  7276. extensiveness and make it clear:
  7277. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  7278. HttpResponse class.
  7279. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  7280. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  7281. * src/HttpConnection.cc: Contruction of http request were moved to
  7282. HttpRequest class.
  7283. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  7284. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  7285. * src/HttpAuthConfig.h: New class.
  7286. * src/Range.h: New class.
  7287. To make FtpTunnel{Request, Response}Command and
  7288. HttpProxy{Request, Response}Command derived from
  7289. AbstractProxy{Request, Response}Command:
  7290. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  7291. Derived from AbstractProxyRequestCommand class.
  7292. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  7293. Derived from AbstractProxyResponseCommand class.
  7294. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  7295. Derived from AbstractProxyRequestCommand class.
  7296. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  7297. Derived from AbstractProxyResponseCommand class.
  7298. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  7299. : New class.
  7300. * src/AbstractProxyResponseCommand.h,
  7301. src/AbstractProxyResponseCommand.cc: New class.
  7302. To add netrc support:
  7303. * src/Netrc.h, src/Netrc.cc: New class.
  7304. * src/Util.h, src/Util.cc (split): New function.
  7305. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  7306. "Content-Range" header instead of "Range" header.
  7307. * src/HttpHeader.h
  7308. (getStatus): Removed.
  7309. (setStatus): Removed.
  7310. * src/Segment.h
  7311. (getPositionToWrite): New function.
  7312. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7313. * src/HttpHeader.h
  7314. (Range.h): New include.
  7315. (status): New variable.
  7316. (HttpHeader): Initialized status with 0.
  7317. (getStatus): New function.
  7318. (setStatus): New function.
  7319. (getRange): New function.
  7320. (HttpHeaderHandle): New function.
  7321. * src/HttpHeader.cc
  7322. (getRange): New function.
  7323. * src/Request.h
  7324. (RequestWeakHandle): New definition.
  7325. * src/HttpConnection.h
  7326. (HttpConnectionHandle): New type definition.
  7327. * src/HttpConnection.cc
  7328. (receiveResponse): Set HTTP status to headers.
  7329. * src/main.cc
  7330. (showUsage): Fixed typo.
  7331. * src/Segment.h
  7332. (SegmentHandle): New type definition.
  7333. * src/BitfieldMan.h
  7334. (getMissingUnusedLength): New function.
  7335. * src/BitfieldMan.cc
  7336. (getMissingUnusedLength): New function.
  7337. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7338. To fix static initialization order problem:
  7339. * src/BitfieldManFactory.h
  7340. (defaultRandomizer): Removed.
  7341. (factory): New variable.
  7342. (getNewFactory): Removed.
  7343. (getFactoryInstance): New function.
  7344. (setDefaultRandomizer): Rewritten.
  7345. (getDefaultRandomizer): Rewritten.
  7346. * src/BitfieldManFactory.cc
  7347. (defaultRandomizer): Removed.
  7348. (factory): Initialized to 0.
  7349. (BitfieldManFactory): Initialized randomizer to 0.
  7350. * src/DefaultPieceStorage.cc
  7351. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  7352. * src/Peer.cc
  7353. (Peer): getNewFactory() -> getFactoryInstance()
  7354. * src/SegmentMan.cc
  7355. (initBitfield): getNewFactory() -> getFactoryInstance()
  7356. * src/Piece.cc
  7357. (Piece): getNewFactory() -> getFactoryInstance()
  7358. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7359. To fix the bug that causes crash on Max OS X:
  7360. * src/SimpleRandomizer.h
  7361. (getInstance): Create new instance if the static variable is null.
  7362. * src/SimpleRandomizer.cc
  7363. (randomizer): Initialized to 0.
  7364. * src/BitfieldManFactory.h
  7365. (getNewFactory): Removed the call to setRandomizer().
  7366. To fix the miscalculation of the range of checksum:
  7367. * src/BitfieldMan.h
  7368. (isBitSetOffsetRange): New function.
  7369. * src/BitfieldMan.cc
  7370. (isBitSetOffsetRange): New function.
  7371. * src/SegmentMan.cc
  7372. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  7373. Use bitfield->getBlockLength() instead of segment.segmentLength.
  7374. * Release 0.10.1
  7375. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7376. To lower CPU usage in BitTorrent download when --max-upload-limit
  7377. command-line option specified:
  7378. * src/DefaultBtMessageDispatcher.cc
  7379. (sendMessages): Calculate uploading speed only when current message
  7380. is uploading data and is not sent yet.
  7381. * src/DefaultPeerStorage.h
  7382. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  7383. * src/HttpResponseCommand.cc
  7384. (handleDefaultEncoding): Added the cast to int32_t to itos.
  7385. This fixes compile error in Soralis 10.
  7386. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7387. To fix segfault in Metalink download:
  7388. * src/UrlRequestInfo.h
  7389. (filename): Removed.
  7390. (totalLength): Removed.
  7391. (setTotalLength): Removed.
  7392. (setFilename): Removed.
  7393. * src/MetalinkRequestInfo.cc
  7394. (execute): Do not set filename and totalLength to reqInfo.
  7395. Set chunk checksum to reqInfo if it is not null.
  7396. * src/HttpResponseCommand.cc
  7397. (executeInternal): Fixed filename in log.
  7398. (handleDefaultEncoding): Removed the call to initBitfield() and
  7399. markAllPiecesDone().
  7400. (handleOtherEncoding): Added HEAD method handling.
  7401. * src/FtpNegotiateCommand.cc
  7402. (executeInternal): Added SEQ_HEAD_OK handling.
  7403. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  7404. return false.
  7405. * src/FtpNegotiateCommand.h
  7406. (SEQ_HEAD_OK): New definition.
  7407. * src/SegmentMan.cc
  7408. (initBitfield): Delete bitfield.
  7409. (isChunkChecksumValidationReady): Fixed the condition.
  7410. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  7411. works fine.
  7412. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7413. * src/Xml2MetalinkProcessor.h
  7414. (xpathExists): New function.
  7415. * src/Xml2MetalinkProcessor.cc
  7416. (xpathExists): New function.
  7417. Not to send HEAD request if filename and size are available in Metalink
  7418. file:
  7419. * src/UrlRequestInfo.h
  7420. (filename): New variable.
  7421. (totalLength): New variable.
  7422. (setTotalLength): New function.
  7423. (setFilename): New function.
  7424. * src/MetalinkRequestInfo.cc
  7425. (execute): Set filename and size to UrlRequestInfo.
  7426. * src/MetalinkEntry.cc
  7427. (MetalinkEntry): Initialize size with 0.
  7428. * src/UrlRequestInfo.cc
  7429. (execute): Set filename and size to SegmentMan.
  7430. Not to download rest of the files after selected files are downloaded
  7431. in BitTorrent:
  7432. * src/PieceStorage.h
  7433. (allDownloadFinished): New function.
  7434. * src/DefaultBtAnnounce.cc
  7435. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  7436. downloadFinished.
  7437. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  7438. * src/DefaultPieceStorage.cc
  7439. (completePiece): Use allDownloadFinished instead of downloadFinished.
  7440. Commented out the call to finishSelectiveDownloadingMode().
  7441. (downloadFinished): Call isFilteredAllBitSet() instead of
  7442. isAllBitSet().
  7443. (allDownloadFinished): New function.
  7444. * src/DefaultBtInteractive.cc
  7445. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  7446. downloadFinished().
  7447. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  7448. * src/TorrentDownloadEngine.cc
  7449. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  7450. * src/BitfieldMan.h
  7451. (isFilteredAllBitSet): New function.
  7452. * src/ShareRatioSeedCriteria.h
  7453. (PieceStorage.h): New include.
  7454. (pieceStorage): New variable.
  7455. (evaluate):
  7456. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  7457. * src/BitfieldMan.cc
  7458. (isFilteredAllBitSet): New function.
  7459. (isAllBitSet): Filter is not took into account.
  7460. Rename --force-truncate as --allow-overwrite:
  7461. * src/TorrentRequestInfo.cc
  7462. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  7463. * src/main.cc
  7464. (showUsage): --force-truncate -> --allow-overwrite
  7465. * src/message.h
  7466. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  7467. * src/prefs.h
  7468. (PREF_FORCE_TRUNCATE): Removed.
  7469. (PREF_ALLOW_OVERWRITE): New definition.
  7470. * src/SegmentMan.cc
  7471. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  7472. * src/MetalinkRequestInfo.cc
  7473. (execute): Queueing message are now logged in info level.
  7474. * src/common.h
  7475. (LONG_LONG_MAX): Removed.
  7476. (LONG_LONG_MIN): Removed.
  7477. * src/HttpResponseCommand.cc
  7478. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  7479. * src/FtpNegotiateCommand.cc
  7480. (recvSize): LONG_LONG_MAX -> INT64_MAX
  7481. * src/main.cc
  7482. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  7483. command-line option.
  7484. (main): Added --check-integriy and --realtime-chunk-checksum
  7485. command-line option.
  7486. --force-truncate -> --allow-overwrite
  7487. Set initial value of --check-integrity option to false.
  7488. Don't show usage when error occurs while persing command-line options.
  7489. Removed deprecated --upload-limit option.
  7490. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7491. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  7492. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  7493. * src/BtAllowedFastMessage.cc:
  7494. * src/BtBitfieldMessage.cc
  7495. * src/BtCancelMessage.cc
  7496. * src/BtChokeMessage.cc
  7497. * src/BtHaveAllMessage.cc
  7498. * src/BtHaveMessage.cc
  7499. * src/BtHaveNoneMessage.cc
  7500. * src/BtInterestedMessage.cc
  7501. * src/BtNotInterestedMessage.cc
  7502. * src/BtPieceMessage.cc
  7503. * src/BtPortMessage.cc
  7504. * src/BtRejectMessage.cc
  7505. * src/BtRequestMessage.cc
  7506. * src/BtSuggestPieceMessage.cc
  7507. * src/BtUnchokeMessage.cc
  7508. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  7509. files are affected.
  7510. * src/ChunkChecksumValidator.cc
  7511. * src/SegmentMan.cc
  7512. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. To add chunk checksum validation:
  7514. * src/MetalinkEntry.h
  7515. (MetalinkChunkChecksum.h): New include.
  7516. (chunkChecksum): New variable.
  7517. * src/Request.h
  7518. (method): New variable.
  7519. (setMethod): New function.
  7520. (getMethod): New function.
  7521. (METHOD_GET): New static constant.
  7522. (METHOD_HEAD): New static constant.
  7523. * src/Xml2MetalinkProcessor.h
  7524. (getPieceHash): New function.
  7525. * src/PieceStorage.h
  7526. (markAllPiecesDone): New function.
  7527. (checkIntegrity): New function.
  7528. * src/FileAllocator.h
  7529. (NullFileAllocationMonitor.h): New include.
  7530. (FileAllocator): Initialize fileAllocationMonitor with new
  7531. NullFileAllocationMonitor().
  7532. * src/MultiDiskAdaptor.h
  7533. (messageDigest.h): Remove include.
  7534. (ctx): Removed.
  7535. (hashUpdate): Added ctx.
  7536. (MultiDiskAdaptor): Removed ctx.
  7537. (sha1Sum): Renamed as messageDigest.
  7538. (messageDigest): New function.
  7539. * src/UrlRequestInfo.h
  7540. (HeadResult): New class.
  7541. (digestAlgo): New variable.
  7542. (chunkChecksumLength): New variable.
  7543. (chunkChecksums): New variable.
  7544. (getHeadResult): New function.
  7545. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  7546. (setDigestAlgo): New function.
  7547. (setChunkChecksumLength): New function.
  7548. (setChunkChecksums): New function.
  7549. * src/DefaultPieceStorage.cc
  7550. (DiskAdaptorWriter.h): New include.
  7551. (ChunkChecksumValidator.h): New include.
  7552. (markAllPiecesDone): New function.
  7553. (checkIntegrity): New function.
  7554. * src/DefaultBtContext.h
  7555. (getPieceHashes): New function.
  7556. * src/TorrentRequestInfo.cc
  7557. (execute): Try to validate chunk checksum if file already exists and
  7558. .aria2 file doesn't there and user allows aria2 to overwrite it.
  7559. * src/messageDigest.h
  7560. (~MessageDigestContext): Added digestFree().
  7561. * src/MetalinkRequestInfo.cc
  7562. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  7563. * src/DiskAdaptor.h
  7564. (messageDigest.h): New include.
  7565. (sha1Sum): Renamed as messageDigest.
  7566. (messageDigest): New function.
  7567. * src/DownloadCommand.h
  7568. (PeerStat.h): New include.
  7569. (maxDownloadSpeedLimit): New variable.
  7570. (startupIdleTime): New variable.
  7571. (lowestDownloadSpeedLimit): New variable.
  7572. (peerStat): New variable.
  7573. (setMaxDownloadSpeedLimit): New function.
  7574. (setStartupIdleTime): New function.
  7575. (setLowestDownloadSPeedLimit): New function.
  7576. * src/BtContext.h
  7577. (getPieceHashes): New function.
  7578. * src/main.cc
  7579. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  7580. option to true for testing purpose.
  7581. * src/BtPieceMessage.cc
  7582. (checkPieceHash): Use messageDigest
  7583. * src/DownloadEngine.cc
  7584. (SetDescriptor): Removed.
  7585. (AccumulateActiveCommand): Removed.
  7586. (waitData): Rewritten.
  7587. (updateFdSet): Rewritten.
  7588. * src/MultiDiskAdaptor.cc
  7589. (hashUpdate): Added ctx.
  7590. (sha1Sum): Renamed as messageDigest.
  7591. (messageDigest): New function.
  7592. * src/BitfieldMan.h
  7593. (isBitRangeSet): New function.
  7594. (unsetBitRange): New function.
  7595. * src/ByteArrayDiskWriter.h
  7596. (sha1Sum): Renamed as messageDigest.
  7597. (messageDigest): New function.
  7598. * src/ConsoleDownloadEngine.cc
  7599. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  7600. * src/DiskWriter.h
  7601. (messageDigest.h): New include.
  7602. (sha1Sum): Renamed as messageDigest.
  7603. (messageDigest): New function.
  7604. * src/ChunkChecksumValidator.h: New class.
  7605. * src/DiskAdaptorWriter.h: New class.
  7606. * src/prefs.h
  7607. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  7608. (PREF_CHECK_INTEGRITY): New definition.
  7609. * src/HttpResponseCommand.cc
  7610. (handleDefaultEncoding): Added method "HEAD" handling.
  7611. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7612. (handleOtherEncoding):
  7613. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  7614. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  7615. startupIdleTime, lowestDownloadSpeedLimit to command.
  7616. * src/SegmentMan.h
  7617. (getSegmentEntryByIndex): New function.
  7618. (getSegmentEntryByCuid): New function.
  7619. (getSegmentEntryIteratorByCuid): New function.
  7620. (diskWriter): DiskWriter -> DiskWriterHandle
  7621. (pieceHashes): New variable.
  7622. (chunkHashLength): New variable.
  7623. (digestAlgo): New variable.
  7624. (FindPeerStat): Removed.
  7625. (getPeerStat): Rewritten.
  7626. (markAllPiecesDone): New function.
  7627. (checkIntegrity): New function.
  7628. (tryChunkChecksumValidation): New function.
  7629. (isChunkChecksumValidationReady): New function.
  7630. * src/BitfieldMan.cc
  7631. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  7632. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  7633. blocks to 0.
  7634. (isBitRangeSet): New function.
  7635. (unsetBitRange): New function.
  7636. * src/FtpNegotiateCommand.cc
  7637. (executeInternal): Set maxDownloadSpeedLimit,
  7638. startupIdleTime, lowestDownloadSpeedLimit to command.
  7639. (recvSize): Added method "HEAD" handling.
  7640. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7641. * src/AbstractSingleDiskAdaptor.cc
  7642. (sha1Sum): Renamed as messageDigest.
  7643. (messageDigest): New function.
  7644. * src/AbstractSingleDiskAdaptor.h
  7645. (sha1Sum): Renamed as messageDigest.
  7646. (messageDigest): New function.
  7647. * src/Util.h
  7648. (indexRange): New function.
  7649. * src/MetalinkEntry.cc
  7650. (MetalinkEntry): Initialized chunkChecksum to 0.
  7651. * src/ShaVisitor.cc
  7652. (~ShaVisitor): Removed the call to ctx.digestFree().
  7653. * src/SegmentMan.cc
  7654. (ChunkChecksumValidator.h): New include.
  7655. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  7656. to DIGEST_ALGO_SHA1.
  7657. (~SegmentMan): Removed diskWriter.
  7658. (FindSegmentEntryByIndex): Removed.
  7659. (FindSegmentEntryByCuid): Removed.
  7660. (checkoutSegment): Rewritten.
  7661. (findSlowerSegmentEntry): Rewritten.
  7662. (getSegment): Rewritten.
  7663. (updateSegment): Rewritten.
  7664. (completeSegment): Rewritten.
  7665. (markAllPiecesDone): New function.
  7666. (checkIntegrity): New function.
  7667. (isChunkChecksumValidationReady): New function.
  7668. (tryChunkChecksumValidation): New function.
  7669. * src/Xml2MetalinkProcessor.cc
  7670. (getEntry): Get size and set it to entry.
  7671. Get chunk checksum and set it to entry.
  7672. (getPieceHash): New function.
  7673. * src/Util.cc
  7674. (sha1Sum): Removed ctx.digestFree()
  7675. (fileChecksum): Removed ctx.digestFree()
  7676. (indexRange): New function.
  7677. * src/Request.cc
  7678. (METHOD_GET): New variable.
  7679. (METHOD_HEAD): New variable.
  7680. (Request): Added method.
  7681. * src/UrlRequestInfo.cc
  7682. (FatalException.h): New include.
  7683. (message.h): New include.
  7684. (operator<<): Added operator<< for class HeadResult.
  7685. (getHeadResult): New function.
  7686. (execute): Get filename and size in separate download engine.
  7687. * src/ChunkChecksumValidator.cc: New class.
  7688. * src/DownloadCommand.cc:
  7689. (DownloadCommand): Added peerStat.
  7690. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  7691. the value from Option.
  7692. The buffer size is now 16KB.
  7693. Use peerStat member instead of getting it from SegmentMan.
  7694. Use startupIdleTime member instead of gettingit from Option.
  7695. Added chunk checksum validation.
  7696. * src/AbstractDiskWriter.cc
  7697. (AbstractDiskWriter): Removed ctx.
  7698. (~AbstractDiskWriter): Removed ctx.digestFree()
  7699. (writeDataInternal): Returns the return value of write.
  7700. (readDataInternal): Returns the return value of read.
  7701. (sha1Sum): Renamed as messageDigest
  7702. (messageDigest): New function.
  7703. * src/AbstractDiwkWriter.h
  7704. (messageDigest.h): Removed include.
  7705. (ctx): Removed.
  7706. (sha1Sum): Renamed as messageDigest
  7707. (messageDigest): New function.
  7708. * src/DefaultPieceStorage.h
  7709. (markAllPiecesDone): New function.
  7710. (checkIntegrity): New function.
  7711. * src/NullFileAllocationMonitor.h: New class.
  7712. * src/MetalinkChunkChecksum.h: New class.
  7713. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7714. To decrease CPU usage in bittorrent download, calculation results in
  7715. BitfieldMan were cached and realtime fetching PeerObject was removed
  7716. with WeakHandle introduced. Option values are set to the objects
  7717. by setter before download begins.
  7718. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  7719. * src/DefaultBtRequestFactory.h
  7720. (dispatcher): BtMessageDispatcherHandle ->
  7721. BtMessageDispatcherWeakHandle.
  7722. (messageFactory): New variable.
  7723. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  7724. BtMessageDispatcherWeakHandle.
  7725. (setBtMessageFactory): New function.
  7726. * src/DefaultBtMessageDispatcher.cc:
  7727. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  7728. from Option.
  7729. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  7730. feating the value from Option.
  7731. Use messageFactory member.
  7732. * src/PeerInteractionCommand.cc
  7733. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  7734. Add reverse dependencies to factory object.
  7735. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  7736. dispatcher.
  7737. Set messageFactory to receiver.
  7738. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  7739. btInteractive.
  7740. Set receiver to peerObject.
  7741. Set maxDownloadSpeedLimit to this.
  7742. (executeInternal): Use maxDownloadSpeedLimit member.
  7743. * src/BtChokeMessage.cc
  7744. (doReceivedAction): Use dispatcher, requestFactory member.
  7745. (onSendComplete): Use dispatcher member.
  7746. * src/PeerInteractionCommand.h
  7747. (maxDownloadSpeedLimit): New variable.
  7748. * src/DefaultBtMessageReceiver.h
  7749. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7750. (dispatcher):
  7751. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7752. (messageFactory): New variable.
  7753. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7754. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7755. (setDispatcher):
  7756. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7757. (setBtMessageFactory): New function.
  7758. * src/DefaultBtInteractive.cc
  7759. (initiateHandshake): Use messageFactory member.
  7760. (addBitfieldMessageToQueue): Use messageFactory member.
  7761. (addAllowedFastMessageToQueue): Use messageFactory member.
  7762. (decideChoking): Use messageFactory member.
  7763. (checkHave): Use messageFactory member.
  7764. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  7765. (receiveMessages): Use maxDownloadSpeedLimit member.
  7766. (decideInterest): Use messageFactory member.
  7767. * src/BtRequestMessage.cc
  7768. (doReceivedAction): Use messageFactory, dispatcher member.
  7769. (onQueued): Use dispatcher member.
  7770. * src/BtPieceMessage.cc
  7771. (doReceivedAction): Use dispatcher member.
  7772. (send): Use peerConnection member.
  7773. (onWrongPiece): Use requestFactory member.
  7774. (handleChokingEvent): Use messageFactory, dispatcher member.
  7775. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  7776. * src/BtMessageDispatcher.h
  7777. (BtMessageDispatcherWeakHandle): New type definition.
  7778. * src/SimpleBtMessage.cc
  7779. (send): Use peerConnection member.
  7780. * src/BtRejectMessage.cc
  7781. (doReceivedAction): Use dispatcher member.
  7782. * src/DefaultBtMessageDispatcher.h
  7783. (Option.h): Removed include.
  7784. (messageFactory): New variable.
  7785. (option): Removed.
  7786. (maxUploadSpeedLimit): New variable.
  7787. (requestTimeout): New variable.
  7788. (DefaultBtMessageDispatcher): Removed option.
  7789. Added maxUploadSpeedLimit, requestTimeout.
  7790. (setOption): Removed.
  7791. (getOption): Removed.
  7792. (setMaxUploadSpeedLimit): New function.
  7793. (setRequestTimeout): New function.
  7794. (setBtMessageFactory): New function.
  7795. * src/DefaultBtInteractive.h
  7796. (btMessageReceiver):
  7797. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7798. (dispatcher):
  7799. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7800. (btRequestFactory):
  7801. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7802. (peerConnection):
  7803. PeerConnectionHandle -> PeerConnectionWeakHandle
  7804. (messageFactory): New variable.
  7805. (option): Removed.
  7806. (keepAliveInterval): New variable.
  7807. (maxDownloadSpeedLimit): New variable.
  7808. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  7809. (setBtMessageReceiver):
  7810. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7811. (setDispatcher):
  7812. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7813. (setBtRequestFactory):
  7814. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7815. (setPeerConnection):
  7816. PeerConnectionHandle -> PeerConnectionWeakHandle
  7817. (setOption): Removed.
  7818. (setKeepAliveInterval): New function.
  7819. (setMaxDownloadSpeedLimit): New function.
  7820. (setBtMessageFactory): New function.
  7821. * src/BitfieldMan.h
  7822. (cachedNumMissingBlock): New variable.
  7823. (cachedNumFilteredBlock): New variable.
  7824. (cachedCompletedLength): New variable.
  7825. (cachedFilteredComletedLength): New variable.
  7826. (cachedFilteredTotalLength): New variable.
  7827. (countMissingBlockNow): New function.
  7828. (countFilteredBlockNow): New function.
  7829. (getFilteredTotalLengthNow): New function.
  7830. (getCompletedLengthNow): New function.
  7831. (getFilteredCompletedLengthNow): New function.
  7832. (updateCache): New function.
  7833. * src/AbstractBtMessage.h
  7834. (BtMessageDispatcher.h): New include.
  7835. (PeerConnection.h): New include.
  7836. (BtRequestFactory.h): New include
  7837. (BtMessageFactory.h): New include.
  7838. (dispatcher): New variable.
  7839. (messageFactory): New variable.
  7840. (peerConnection: New variable.
  7841. (setBtMessageDispatcher): New function.
  7842. (setPeerConnection): New function.
  7843. (setBtMessageFactory): New function.
  7844. (setBtRequestFactory): New function.
  7845. * src/DefaultBtMessageFactory.cc
  7846. (setCommonProperty): Set dispatcher, requestFactory, this,
  7847. peerConnection to msg.
  7848. * src/BtRegistry.h
  7849. (BT_MESSAGE_RECEIVER): New macro.
  7850. * src/PeerConnection.h
  7851. (PeerConnectionWeakHandle): New type definition.
  7852. * src/BtMessageFactory.h
  7853. (BtMessageFactoryWeakHandle): New type definition.
  7854. * src/BitfieldMan.cc
  7855. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  7856. cachedCompletedLength, cachedFilteredComletedLength,
  7857. cachedFilteredTotalLength.
  7858. Call updateCache().
  7859. (countMissingBlock): Return cachedNumMissingBlock.
  7860. (countMissingBlockNow): New function.
  7861. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  7862. (countFilteredBlockNow): New function.
  7863. (setBit): Call updateCache().
  7864. (unsetBit): Call updateCache().
  7865. (setBitfield): Call updateCache().
  7866. (clearAllBit): Call updateCache().
  7867. (setAllBit): Use setBitInternal instead of setBit.
  7868. Call updateCache().
  7869. (addFilter): Call updateCache().
  7870. (enableFilter): Call updateCache().
  7871. (disableFilter): Call updateCache().
  7872. (clearFilter): Call updateCache().
  7873. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  7874. (getFilteredTotalLengthNow): New function.
  7875. (getCompletedLength): Return cachedCompletedLength.
  7876. (getCompletedLengthNow): New function.
  7877. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  7878. (getFilteredCompletedLengthNow): New function.
  7879. (updateCache): New function.
  7880. * src/BtMessageReceiver.h
  7881. (BtMessageReceiverWeakHandle): New type definition.
  7882. * src/DefaultBtMessageReceiver.cc
  7883. (receiveHandshake): Use messageFactory member.
  7884. (sendHandshake): Use messageFactory member.
  7885. (receiveMessage): Use messageFactory member.
  7886. * src/DefaultBtMessageFactory.h
  7887. (dispatcher): New variable.
  7888. (requestFactory): New variable.
  7889. (peerConnection): New variablle.
  7890. (setBtMessageDispatcher): New function.
  7891. (setBtRequestFactory): New function.
  7892. (setPeerConnection): New function.
  7893. * src/SharedHandle.h
  7894. (RefCount): New class.
  7895. (WeakHandle): New class.
  7896. * src/PeerObject.h
  7897. (BtMessageReceiver.h): New include.
  7898. (PeerObject): Added btMessageReceiver.
  7899. (btMessageReceiver): New variable.
  7900. * src/Util.cc
  7901. (countBit): Simplified.
  7902. * src/BtCancelMessage.cc
  7903. (doReceivedAction): Use dispatcher member.
  7904. * src/BtRequestFactory.h
  7905. (BtRequestFactoryWeakHandle): New type definition.
  7906. * src/PeerStorage.h
  7907. (downloadSpeed): int -> uint32_t
  7908. (uploadSpeed): int -> uint32_t
  7909. (sessionDownloadLength): long long int -> uint64_t
  7910. (sessionUploadLength): long long int -> uint64_t
  7911. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. To add RecoverableException, FatalException:
  7913. * src/AbstractCommand.cc
  7914. (onAbort): Exception -> RecoverableException
  7915. * src/PeerAbstractCommand.h
  7916. (RecoverableException.h): New include.
  7917. (onAbort): Exception -> RecoverableException.
  7918. * src/PeerInteractionCommand.cc
  7919. (onAbort): Exception -> RecoverableException.
  7920. * src/PeerAbstractCommand.cc
  7921. (execute): Exception -> RecoverableException.
  7922. (onAbort): Exception -> RecoverableException.
  7923. * src/TorrentRequestInfo.cc
  7924. (execute): Exception -> RecoverableException.
  7925. * src/MetalinkRequestInfo.cc
  7926. (execute): Exception -> RecoverableException.
  7927. * src/MetaFileUtil.cc: RecoverableException.
  7928. * src/AbstractCommand.h
  7929. (onAbort): Exception -> RecoverableException.
  7930. * src/DlRetryEx.h: Exception -> RecoverableException.
  7931. * src/DlAbortEx.h: Exception -> RecoverableException.
  7932. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  7933. * src/Util.cc: Exception -> RecoverableException.
  7934. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  7935. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  7936. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  7937. To make ID static const int
  7938. * src/BtInterestedMessage.h
  7939. (ID_t): Removed.
  7940. (ID): New variable.
  7941. (getId): Made non-const.
  7942. * src/BtPieceMessage.h
  7943. (ID_t): Removed.
  7944. (ID): New variable.
  7945. (getId): Made non-const.
  7946. * src/BtChokeMessage.h
  7947. (ID_t): Removed.
  7948. (ID): New variable.
  7949. (getId): Made non-const.
  7950. * src/BtHaveAllMessage.h
  7951. (ID_t): Removed.
  7952. (ID): New variable.
  7953. (getId): Made non-const.
  7954. * src/BtKeepAliveMessage.h
  7955. (ID_t): Removed.
  7956. (ID): New variable.
  7957. (getId): Made non-const.
  7958. * src/BtHandshakeMessage.h
  7959. (ID): New variable.
  7960. (getId): Made non-const.
  7961. * src/BtSuggestPieceMessage.h
  7962. (ID_t): Removed.
  7963. (ID): New variable.
  7964. (getId): Made non-const.
  7965. * src/BtPortMessage.h
  7966. (ID_t): Removed.
  7967. (ID): New variable.
  7968. (getId): Made non-const.
  7969. * src/AbstractBtMessage.h
  7970. (id): Removed.
  7971. (AbstractBtMessage): Removed id.
  7972. (getId): Removed.
  7973. * src/BtHaveMessage.h
  7974. (ID_t): Removed.
  7975. (ID): New variable.
  7976. (getId): Made non-const.
  7977. * src/BtAllowedFastMessage.h
  7978. (ID_t): Removed.
  7979. (ID): New variable.
  7980. (getId): Made non-const.
  7981. * src/BtCancelMessage.h
  7982. (ID_t): Removed.
  7983. (ID): New variable.
  7984. (getId): Made non-const.
  7985. * src/BtNotInterestedMessage.h
  7986. (ID_t): Removed.
  7987. (ID): New variable.
  7988. (getId): Made non-const.
  7989. * src/BtChokeMessage.h
  7990. (ID_t): Removed.
  7991. (ID): New variable.
  7992. (getId): Made non-const.
  7993. * src/BtRejectMessage.h
  7994. (ID_t): Removed.
  7995. (ID): New variable.
  7996. (getId): Made non-const.
  7997. * src/BtBitfieldMessage.h
  7998. (ID_t): Removed.
  7999. (ID): New variable.
  8000. (getId): Made non-const.
  8001. * src/BtUnchokeMessage.h
  8002. (ID_t): Removed.
  8003. (ID): New variable.
  8004. (getId): Made non-const.
  8005. * src/BtRequestMessage.h
  8006. (ID_t): Removed.
  8007. (ID): New variable.
  8008. (getId): Made non-const.
  8009. * src/BtHaveMessage.h
  8010. (ID_t): Removed.
  8011. (ID): New variable.
  8012. (getId): Made non-const.
  8013. To add --force-truncate command-line option and a check whether
  8014. the file already exists:
  8015. * src/DirectDiskAdaptor.h
  8016. (getFilePath): Made virtual public.
  8017. * src/MultiDiskAdaptor.h
  8018. (File.h): New include.
  8019. (DiskWriterEntry::fileEntry): Made private.
  8020. (DiskWriterEntry::fileExists): New function.
  8021. (DiskWriterEntry::getFileEntry): New function.
  8022. (fileExists): New function.
  8023. (getFilePath): New function.
  8024. * src/TorrentRequestInfo.cc
  8025. (FatalException.h): New include.
  8026. (message.h): New include.
  8027. (RecoverableException.h): New include.
  8028. (execute): Added a check whether file is already exists or not.
  8029. * src/DiskAdaptor.h
  8030. (fileExists): New function.
  8031. (getFilePath): New function.
  8032. * src/main.cc
  8033. (showUsage): Added an explanation of --force-truncate command-line
  8034. option.
  8035. (main): Added --force-truncate command-line option.
  8036. * src/Exception.h
  8037. (setMsg): buf[256] -> buf[1024]
  8038. * src/CopyDiskWriter.h
  8039. (getFilePath): Made public virtual.
  8040. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  8041. (fileExists): New function.
  8042. * src/DownloadEngineFactory.cc
  8043. (newTorrentConsoleEngine): Don't open file here.
  8044. * src/message.h
  8045. (EX_FILE_ALREADY_EXISTS): New definition.
  8046. * src/prefs.h
  8047. (PREF_FOECE_TRUNCATE): New definition.
  8048. * src/HttpResponseCommand.cc
  8049. (handleDefaultEncoding): Added a check whether the file already exists.
  8050. * src/SegmentMan.h
  8051. (fileExists): New function.
  8052. (shouldCancelDownloadForSafety): New function.
  8053. * src/FtpNegotiateCommand.cc
  8054. (recvSize): Added a check whether the file already exists.
  8055. * src/AbstractSingleDiskAdaptor.cc
  8056. (File.h): New include.
  8057. (fileExists): New function.
  8058. * src/AbstractSingleDiskAdaptor.h
  8059. (getFilePath): Removed.
  8060. (fileExists): New function.
  8061. * src/SegmentMan.cc
  8062. (fileExists): New function.
  8063. (shouldCancelDownloadForSafety): New function.
  8064. To fix regression bug in torrent downloading:
  8065. * src/DefaultBtRequestFactory.cc
  8066. (doChokedAction): New function.
  8067. * src/DefaultBtRequestFactory.h
  8068. (doChokedAction): New function.
  8069. * src/DefaultBtMessageDispatcher.cc
  8070. (doChokedAction): Do not delete request if its target is in allowed
  8071. fast set.
  8072. * src/DefaultBtInteractive.cc
  8073. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  8074. (sendKeepAlive): Send keep alive message even if the outgoing message
  8075. queue is not empty.
  8076. (decideInterest): Simplified the code.
  8077. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  8078. it is already called when BtChokeMessage is received from a peer.
  8079. * src/BtRequestFactory.h
  8080. (doChokedAction): New function.
  8081. To clean up code:
  8082. * src/PeerInteractionCommand.h
  8083. (executeInternal): Added virtual keyword explicitly.
  8084. (prepareForRetry): Added virtual keyword explicitly.
  8085. (prepareForNextPeer): Added virtual keyword explicitly.
  8086. (onAbort): Added virtual keyword explicitly.
  8087. * src/RequestSlot.cc
  8088. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  8089. * src/BtPieceMessage.cc
  8090. (doReceivedAction): Added a debug log of piece's bitfield.
  8091. * src/Piece.h
  8092. (getBitfieldLength): New function.
  8093. * src/ByteArrayDiskWriter.cc
  8094. (clear): Added buf = 0 to avoid double free corruption.
  8095. * src/FileAllocator.cc
  8096. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  8097. Added cp.reset().
  8098. * src/BitfieldMan.h
  8099. (operator=): Rewritten.
  8100. * src/BitfieldMan.cc
  8101. (BitfieldMan): Initialized bitfield, useBitfield.
  8102. * src/PeerConnection.cc
  8103. (receiveMessage): Added a call to socket->readable() after getting
  8104. message length to avoid possible EOF.
  8105. * src/Util.cc
  8106. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  8107. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. To add an ability to pre-allocate file space:
  8109. * src/DirectDiskAdaptor.h: Rewritten.
  8110. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  8111. * src/MultiDiskAdaptor.h: Rewritten.
  8112. * src/DefaultPieceStorage.cc
  8113. (MultiDiskWriter.h): Removed include.
  8114. (PreAllocationDiskWriter.h): Removed include.
  8115. (FileAllocationMonitor.h): New include.
  8116. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  8117. (initStorage): Rewritten.
  8118. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8119. * src/FileAllocator.h: New class.
  8120. * src/FileAllocator.cc: New class.
  8121. * src/FileAllocationMonitor.h: New class.
  8122. * src/FileAllocationMonitor.cc: New class.
  8123. * src/ConsoleFileAllocationMonitor.h: New class.
  8124. * src/ConsoleFileAllocationMonitor.cc: New class.
  8125. * src/AbstractSingleDiskAdaptor.h: New class.
  8126. * src/AbstractSingleDiskAdaptor.cc: New class.
  8127. * src/DiskAdaptor.h
  8128. (Directory.h): Removed include.
  8129. (DiskWriter.h): Removed include.
  8130. (FileEntry.h): Removed include.
  8131. (diskWriter): Removed.
  8132. (DiskAdaptor): Removed diskWriter.
  8133. (openFile): Made pure virtual.
  8134. (closeFile): Made pure virtual.
  8135. (openExistingFile): Made pure virtual.
  8136. (initAndOpenFile): Made pure virtual.
  8137. (writeData): Made pure virtual.
  8138. (readData): Made pure virtual.
  8139. (sha1Sum): Made pure virtual.
  8140. (getStoreDir): Returns const reference of storeDir.
  8141. (DiskAdaptorHandle): New type definition.
  8142. * src/main.cc
  8143. (ConsoleFileAllocationMonitor.h): New include.
  8144. (showUsage): Added default value description of -s option.
  8145. Added the description of --file-allocation option.
  8146. (main): Set default value of --file-allocation option to 'none'.
  8147. Added --file-allocation command-line option.
  8148. Setup FileAllocationMonitorFactory.
  8149. * src/FtpInitiateConnectionCommand.cc
  8150. (executeInternal): Removed diskWriter related processing, which was
  8151. moved to FtpNegotiationCommand.cc.
  8152. * src/DirectDiskAdaptor.cc
  8153. (getFilePath): Made non-const.
  8154. * src/CopyDiskAdaptor.h
  8155. (DiskAdaptor.h): Removed include.
  8156. (DiskWriter.h): Removed include.
  8157. (AbstractSingleDiskAdaptor.h): New include.
  8158. (getFilePath): Made non-const. Added virtual keyword.
  8159. (CopyDiskAdaptor): Removed diskWriter.
  8160. (getTempFile): Returns const reference.
  8161. (CopyDiskAdaptorHandle): New type definition.
  8162. * src/ByteArrayDiskWriter.cc
  8163. (clear): Simplified.
  8164. (initAndOpenFile): Rewritten.
  8165. (openFile): Call initAndOpenFile()
  8166. * src/MultiDiskAdaptor.cc: Rewritten.
  8167. * src/DownloadEngineFactory.cc
  8168. (FileAllocator.h): New include.
  8169. (FileAllocationMonitor.h): New include.
  8170. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  8171. create DefaultDiskWriter with file allocator.
  8172. * src/DiskWriter.h
  8173. (initAndOpenFile): Added totalLength argument.
  8174. (openFile): Added totalLength argument.
  8175. * src/prefs.h
  8176. (PREF_FILE_ALLOCATION): New definition.
  8177. (V_PREALLOC): New definition.
  8178. (V_NONE): New definition.
  8179. * src/HttpResponseCommand.cc
  8180. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  8181. size.
  8182. * src/FtpNegotiateCommand.cc
  8183. (Util.h): New include.
  8184. (recvSize): Open file here.
  8185. * src/Util.h
  8186. (ullitos): New function.
  8187. * src/CopyDiskWriter.h
  8188. (getFilePath): Made non-const.
  8189. * src/DefaultDiskWriter.h
  8190. (Option.h): New include.
  8191. (totalLength): Removed.
  8192. (DefaultDiskWriter): Removed totalLength.
  8193. (initAndOpenFile): Added totalLength argument.
  8194. (DefaultDiskWriterHandle): New type definition.
  8195. (createNewDiskWriter): New function.
  8196. * src/Util.cc
  8197. (ullitos): New function.
  8198. * src/DefaultDiskWriter.cc
  8199. (message.h): New include.
  8200. (FileAllocator.h): New include.
  8201. (prefs.h): New include.
  8202. (Util.h): New include.
  8203. (DefaultDiskWriter): Removed totalLength.
  8204. (initAndOpenFile): Added file allocation.
  8205. (createNewDiskWriter): New function. Just for temporary solution.
  8206. It will be rewritten later.
  8207. * src/DiskAdaptor.cc
  8208. (DiskAdaptor): Removed diskWriter.
  8209. * src/AbstractDiskWriter.cc
  8210. (LogFactory.h): New include.
  8211. (AbstractDiskWriter): Added fileAllocator, logger.
  8212. (openFile): Added totalLength argument.
  8213. * src/AbstractDiskWriter.h
  8214. (FileAllocator.h): New include.
  8215. (Logger.h): New include.
  8216. (fileAllocator): New variable.
  8217. (logger): New variable.
  8218. (openFile): Added totalLength argument. Added virtual keyword
  8219. explicitly.
  8220. (openExistingFile): Added totalLength argument. Added virtual keyword
  8221. explicitly.
  8222. (closeFile): Added virtual keyword explicitly.
  8223. (sha1Sum): Added virtual keyword explicitly.
  8224. (writeData): Added virtual keyword explicitly.
  8225. (readData): Added virtual keyword explicitly.
  8226. (setFileAllocator): New function.
  8227. * src/DefaultPieceStorage.h
  8228. (FileAllocator.h): New include.
  8229. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8230. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8231. * src/FileProgressMonitor.h: New class.
  8232. To compile aria2 on PC-BSD:
  8233. * src/DefaultBtContext.cc
  8234. (libgen.h): New include.
  8235. To fix memory leak:
  8236. * src/Exception.h
  8237. (~Exception): Delete cause. Fixed memory leak.
  8238. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8239. Rewritten a portion of bittorrent implementation:
  8240. * src/BtMessageValidator.h: New class.
  8241. * src/BtBitfieldMessageValidator.h: New class.
  8242. * src/BtHandshakeMessageValidator.h: New class.
  8243. * src/BtRequestMessageValidator.h: New class.
  8244. * src/BtSuggestPieceMessageValidator.h: New class.
  8245. * src/BtAllowedFastMessageValidator.h: New class.
  8246. * src/BtRejectMessageValidator.h: New class.
  8247. * src/BtCancelMessageValidator.h: New class.
  8248. * src/BtPieceMessageValidator.h: New class.
  8249. * src/BtHaveMessageValidator.h: New class.
  8250. * src/BtEventListener.h: New class.
  8251. * src/AbstractBtEventListener.h: New class.
  8252. * src/BtEvent.h: New class.
  8253. * src/BtChokingEvent.h: New class.
  8254. * src/BtChokedEvent.h: New class.
  8255. * src/BtCancelSendingPieceEvent.h: New class.
  8256. * src/BtAbortOutstandingRequestEvent.h: New class.
  8257. * src/Randomizer.h: New class.
  8258. * src/SimpleRandomizer.h: New class.
  8259. * src/BtMessage.h: New class.
  8260. * src/AbstractBtMessage.h: New class.
  8261. * src/SimpleBtMessage.h: New class.
  8262. * src/BtHaveMessage.h: New class.
  8263. * src/BtInterestedMessage.h: New class.
  8264. * src/BtAllowedFastMessage.h: New class.
  8265. * src/BtUnchokeMessage.h: New class.
  8266. * src/BtCancelMessage.h: New class.
  8267. * src/BtNotInterestedMessage.h: New class.
  8268. * src/BtChokeMessage.h: New class.
  8269. * src/BtHaveNoneMessage.h: New class.
  8270. * src/BtHandshakeMessage.h: New class.
  8271. * src/BtSuggestPieceMessage.h: New class.
  8272. * src/BtHaveMessage.h: New class.
  8273. * src/BtPieceMessage.h: New class.
  8274. * src/BtHaveAllMessage.h: New class.
  8275. * src/BtKeepAliveMessage.h: New class.
  8276. * src/BtPortMessage.h: New class.
  8277. * src/BtRejectMessage.h: New class.
  8278. * src/BtBitfieldMessage.h: New class.
  8279. * src/BtRequestMessage.h: New class.
  8280. * src/DefaultBtRequestFactory.h: New class.
  8281. * src/DefaultBtMessageReceiver.h: New class.
  8282. * src/BtInteractive.h: New class.
  8283. * src/BtMessageDispatcher.h: New class.
  8284. * src/DefaultBtMessageDispatcher.h: New class.
  8285. * src/DefaultBtInteractive.h: New class.
  8286. * src/BitfieldManFactory.h: New class.
  8287. * src/HandleRegistry.h: New class.
  8288. * src/BtMessageFactory.h: New class.
  8289. * src/BtMessageReceiver.h: New class.
  8290. * src/DefaultBtMessageFactory.h: New class.
  8291. * src/PeerObject.h: New class.
  8292. * src/BtRequestFactory.h: New class.
  8293. * src/SuggestPieceMessage.h: Removed.
  8294. * src/PortMessage.h: Removed.
  8295. * src/SuggestPieceMessage.h: Removed.
  8296. * src/KeepAliveMessage.h: Removed.
  8297. * src/HandshakeMessage.h: Removed.
  8298. * src/PeerInteraction.h: Removed.
  8299. * src/UnchokeMessage.h: Removed.
  8300. * src/PieceMessage.h: Removed.
  8301. * src/RequestMessage.h: Removed.
  8302. * src/InterestedMessage.h: Removed.
  8303. * src/HaveMessage.h: Removed.
  8304. * src/CancelMessage.h: Removed.
  8305. * src/RejectMessage.h: Removed.
  8306. * src/AllowedFastMessage.h: Removed.
  8307. * src/HaveNoneMessage.h: Removed.
  8308. * src/SimplePeerMessage.h: Removed.
  8309. * src/HaveAllMessage.h: Removed.
  8310. * src/BitfieldMessage.h: Removed.
  8311. * src/PeerMessageFactory.h: Removed.
  8312. * src/NotInterestedMessage.h: Removed.
  8313. * src/ChokeMessage.h: Removed.
  8314. * src/PeerMessage.h: Removed.
  8315. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8316. To know root cause of exception:
  8317. * src/Exception.h
  8318. (cause): New variable.
  8319. (Exception): Added a parameter.
  8320. (getMsg): Return const reference to msg.
  8321. (getCause): New function.
  8322. * src/DlRetryEx.h
  8323. (DlRetryEx): Added a parameter 'cause'.
  8324. Added an overloaded constructor.
  8325. (DlAbortEx): Added a parameter 'cause'.
  8326. Added an overloaded constructor.
  8327. * src/SimpleLogger.cc
  8328. (writeLog): Log nested exception messages recursively.
  8329. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8330. * src/DefaultBtProgressInfoFile.cc
  8331. (load): Fixed memory leak when the infohash doesn't match.
  8332. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8333. * src/DefaultPeerStorage.cc
  8334. (calculateStat): Simplified the code by combining 2 loops into 1.
  8335. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8336. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  8337. for BitTorrent download:
  8338. * src/PeerAbstractCommand.cc
  8339. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  8340. * src/main.cc:
  8341. (timeoutSpecified): Removed.
  8342. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  8343. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  8344. * src/TorrentRequestInfo.cc
  8345. (timeoutSpecified): Removed.
  8346. (torrentHandler): Removed timeoutSpecified and the adjustment of
  8347. timeout value.
  8348. * src/prefs.h
  8349. (PREF_BT_TIMEOUT): New definition.
  8350. Delete unused variables:
  8351. * src/TorrentRequestInfo.cc
  8352. (requestInfo): Removed.
  8353. Move setSignalHander to Util::setGlobalSignalHandler:
  8354. * src/TorrentRequestInfo.cc:
  8355. setSignalHander -> Util::setGlobalSignalHandler
  8356. * src/main.cc
  8357. (setSignalHander): Removed.
  8358. (main): setSignalHander -> Util::setGlobalSignalHandler
  8359. * src/Util.h
  8360. (setGlobalSignalHandler): New function.
  8361. * src/Util.cc
  8362. (setGlobalSignalHandler): New function.
  8363. * src/UrlRequestInfo.cc:
  8364. setSignalHander -> Util::setGlobalSignalHandler
  8365. Reset peer status in order to exit gracefully:
  8366. * src/PeerAbstractCommand.cc
  8367. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  8368. To fix the bug that causes the number of bytes uploaded is not saved
  8369. to .aria2 file:
  8370. * src/DefaultPeerStorage.h
  8371. (removedPeerSessionDownloadLength): New variable.
  8372. (removedPeerSessionUploadLength): New variable.
  8373. * src/DefaultPeerStorage.cc
  8374. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  8375. removedPeerSessionUploadLength(0).
  8376. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  8377. through all peers, and then add removedPeerSessionDownloadLength(
  8378. removedPeerSessionUploadLength) to it.
  8379. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  8380. (to) the peer to removedPeerSessionDownloadLength
  8381. (removedPeerSessionUploadLength).
  8382. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8383. To add Metalink location option:
  8384. * src/MetalinkRequestInfo.cc
  8385. (execute): Call MetalinkEntry::setLocationPreference()
  8386. * src/main.cc
  8387. (showUsage): Added the help message for --metalink-location option.
  8388. (main): Added --metalink-location option.
  8389. * src/prefs.h
  8390. (PREF_METALINK_LOCATION): New definition.
  8391. * src/MetalinkEntry.cc
  8392. (AddLocationPreference): New function object.
  8393. (setLocationPreference): New function.
  8394. * src/Xml2MetalinkProcessor.cc
  8395. (getResource): Set location attribute to MetalinkResource
  8396. To show URLs to download
  8397. * src/UrlRequestInfo.h
  8398. (printUrls): New function.
  8399. To add multiple <file> Metalink support:
  8400. * src/MetalinkEntry.h
  8401. (MetalinkResources): Removed.
  8402. (setLocationPreference): New function.
  8403. (MetalinkEntryHandle): New type definition.
  8404. (MetalinkEntries): New type definition.
  8405. * src/Xml2MetalinkProcessor.h
  8406. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8407. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8408. (parseFile): Metalinker* -> MetalinkerHandle
  8409. * src/UrlRequestInfo.h
  8410. (execute): RequestInfo* -> RequestInfos
  8411. * src/MetalinkRequestInfo.cc
  8412. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  8413. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  8414. (execute): RequestInfo* -> RequestInfos
  8415. Added multiple <file> support. Print filename when it is queued.
  8416. * src/MetalinkRequestInfo.h
  8417. (execute): RequestInfo* -> RequestInfos
  8418. (getDownloadEngine): Removed.
  8419. * src/RequestInfo.h
  8420. (RequestInfoHandle): New type definition.
  8421. (RequestInfos): New type definition.
  8422. (execute): RequestInfo* -> RequestInfos
  8423. (getDownloadEngine): Removed.
  8424. * src/MetalinkResource.h
  8425. (MetalinkResourceHandle): New type definition.
  8426. (MetalinkResources): New type definition.
  8427. * src/MetalinkEntry.cc
  8428. (~MetalinkEntry): Removed the deletion of the elements of resources,
  8429. because the element is now of type MetalinkResourceHandle.
  8430. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  8431. (Supported): MetalinkResource* -> MetalinkResourceHandle
  8432. (dropUnsupportedResource): Removed the deletion of the elements of
  8433. resources because the element is now of type MetalinkResourceHandle.
  8434. * src/Xml2MetalinkProcessor.cc
  8435. (parseFile): Metalinker* -> MetalinkerHandle
  8436. MetalinkEntry* -> MetalinkEntryHandle
  8437. Removed try-catch block.
  8438. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8439. MetalinkResource* -> MetalinkResourceHandle
  8440. Removed try-catch block.
  8441. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8442. Free result by using xmlXPathFreeObject()
  8443. * src/Metalinker.cc
  8444. (~Metalinker): Removed the deletion of entries.
  8445. MetalinkEntry* -> MetalinkEntryHandle
  8446. (queryEntry): Add multiple <file> Metalink support.
  8447. * src/Metalinker.h
  8448. (MetalinkEntries): Removed.
  8449. (queryEntry): MetalinkEntry* -> MetalinkEntries
  8450. * src/MetalinkProcessor.h
  8451. (parseFile): Metalinker* -> MetalinkerHandle
  8452. Bug fixes:
  8453. * src/PeerChokeCommand.cc
  8454. (execute): cat01->cat02
  8455. * src/DefaultPieceStorage.cc
  8456. (DefaultPieceStorage): Added diskAdaptor(0)
  8457. * src/TrackerWatcherComand.cc:
  8458. (execute): Use btAnnounce->noMoreAnnounce()
  8459. to determin whether the function returns true or not.
  8460. * src/TrackerUpdateCommand.cc:
  8461. (execute): Use btAnnounce->noMoreAnnounce()
  8462. to determin whether the function returns true or not.
  8463. * src/FtpConnection.cc
  8464. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  8465. This is the fix of the busy loop bug.
  8466. * src/DownloadCommand.cc
  8467. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  8468. cached PeerStat.
  8469. The value of "name" entry in torrent file is now set by
  8470. *DiskAdaptor::setTopDir(...) methods.
  8471. * src/MultiDiskAdaptor.h
  8472. (topDir): New variable.
  8473. (setTopDir): New function.
  8474. (getTopDir): New function.
  8475. * src/MultiDiskAdaptor.cc
  8476. (getFilePath): Concat storDir, "/" and topDir.
  8477. (mkdir): Use getFilePath() to get the directory path for output.
  8478. * src/DefaultPieceStorage.cc
  8479. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  8480. CopyDiskAdaptor.
  8481. * src/CopyDiskAdaptor.h
  8482. (topDir): New variable.
  8483. (setTopDir): New function.
  8484. (getTopDir): New function.
  8485. * src/CopyDiskAdaptor.cc
  8486. (fixFilename): Updated.
  8487. Misc
  8488. * src/UrlRequestInfo.h
  8489. (e): Removed.
  8490. (UrlRequestInfo): Removed e.
  8491. (getDownloadEngine): Removed.
  8492. * src/UrlRequestInfo.cc
  8493. (handler): Rewritten.
  8494. (printUrls): New function.
  8495. (execute): Call printUrls().
  8496. * src/HandshakeMessage.cc
  8497. (check): peerinteraction->getBtContext() -> btContext
  8498. * src/PeerInteraction.h
  8499. (getBtContext): Removed.
  8500. * src/TorrentRequestInfo.h
  8501. (execute): RequestInfo* -> RequestInfos
  8502. (getDownloadEngine): Removed.
  8503. * src/TorrentRequestInfo.cc
  8504. (haltRequested): Removed.
  8505. (btHaltRequested): New variable.
  8506. (torrentHandler): haltRequested -> btHaltRequested
  8507. (execute): RequestInfo* -> RequestInfos
  8508. * src/TorrentConsoleDownloadEngine.cc
  8509. (afterEachIteration): haltRequested -> btHaltRequested.
  8510. * src/ConsoleDownloadEngine.h
  8511. (initStatistics): Added virtual.
  8512. (calculateStatistics): Added virtual.
  8513. (onEndOfRun): Added virtual.
  8514. (afterEachIteration): Added virtual.
  8515. * src/ConsoleDownloadEngine.cc
  8516. (haltRequested): New variable.
  8517. (afterEachIteration): New function.
  8518. * src/main.cc
  8519. (requestInfo): Removed.
  8520. * src/SegmentMan.cc
  8521. (findSlowerSegmentEntry): Refactored.
  8522. * Release 0.9.0
  8523. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8524. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  8525. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  8526. * src/TorrentMan.h: Removed.
  8527. * src/TorrentMan.cc: Removed.
  8528. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  8529. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  8530. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  8531. * src/PeerAbstractCommand.cc: Use btRuntime.
  8532. * src/BtContextAwareCommand.h: New class.
  8533. * src/FileEntry.h: Added accessor methods for following variables.
  8534. (path): Made private.
  8535. (length): Made private.
  8536. (offset): Made private.
  8537. (extracted): Made private.
  8538. (requested): Made private.
  8539. (FileEntries): New definition.
  8540. (FileEntryHandle): New definition.
  8541. * src/FileEntry.cc: New file.
  8542. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  8543. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  8544. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  8545. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  8546. * src/PieceStorage.h: New file.
  8547. * src/PeerInteractionCommand.h: Use btContext.
  8548. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  8549. btRuntime.
  8550. * src/DefaultBtProgressInfoFile.h: New file.
  8551. * src/DefaultBtProgressInfoFile.cc: New file.
  8552. * src/File.cc
  8553. (Util.h): New include.
  8554. (mkdirs): New function.
  8555. * src/MultiDiskAdaptor.h
  8556. (mkdir): New function.
  8557. * src/PeerListProcessor.h
  8558. (Peers): Removed.
  8559. * src/PeerInteraction.h
  8560. (torrentMan): Removed.
  8561. (btContext): New variable.
  8562. (peerStorage): New variable.
  8563. (pieceStorage): New variable.
  8564. (btAnnounce): New variable.
  8565. (getTorrentMan): Removed.
  8566. (getBtContext): New function.
  8567. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  8568. btAnnounce.
  8569. * src/HandshakeMessage.h
  8570. (TorrentMan.h): Removed.
  8571. * src/HandshakeMessage.cc: Use btContext.
  8572. * src/DefaultBtAnnounce.cc: New file.
  8573. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  8574. * src/DefaultPieceStorage.cc: New file.
  8575. * src/DefaultBtContext.h: New file.
  8576. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  8577. Use the accessor methods of FileEntry.
  8578. * src/CookieBox.cc: Updated to use Util::slice().
  8579. * src/PieceMessage.cc: Use btContext, pieceStorage.
  8580. * src/common.h (SharedHandle.h): New include.
  8581. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  8582. pieceStorage.
  8583. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  8584. * src/DiskAdaptor.h
  8585. (topDir): Removed.
  8586. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  8587. (setTopDir): Removed.
  8588. (getTopDir): Removed.
  8589. * src/BtContext.h: New file.
  8590. * src/DefaultPeerStorage.h: New file.
  8591. * src/PieceMessage.h (TorrentMan.h): Removed.
  8592. * src/RequestMessage.h (TorrentMan.h): Removed.
  8593. * src/TorrentDownloadEngine.h
  8594. (uploadLength): New variable.
  8595. (btContext): New variable.
  8596. (btRuntime): New variable.
  8597. (pieceStorage): New variable.
  8598. (peerStorage): New variable.
  8599. (btAnnounce): New variable.
  8600. (btProgressInfoFile): New variable.
  8601. (torrentMan): Removed.
  8602. (setBtContext): New function.
  8603. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  8604. peerStorage, btAnnounce, btProgressInfoFile.
  8605. * src/Piece.h
  8606. (toString): New function.
  8607. (Pieces): New type definition.
  8608. * src/Peer.h
  8609. (active): New variable.
  8610. (Peer): Added active.
  8611. (activate): Set active to true.
  8612. (deactivate): Set active to false.
  8613. (isActive): New function.
  8614. (Peers): New type definition.
  8615. * src/DirectDiskAdaptor.cc
  8616. (getFilePath): Use the accessor methods of FileEntry.
  8617. * src/TorrentConsoleDownloadEngine.h
  8618. (afterEachIteration): New function.
  8619. * src/TorrentConsoleDownloadEngine.cc
  8620. (haltRequested): New variable.
  8621. (sendStatistics): Use pieceStorage, btRuntime.
  8622. (afterEachIteration): New function.
  8623. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  8624. * src/Directry.h
  8625. (Directory): New function.
  8626. (DirectoryHandle): New type definition.
  8627. * src/BtProgressInfoFile.h: New file.
  8628. * src/RequestMessage.cc: Use pieceStorage.
  8629. * src/BtRuntime.h: New file.
  8630. * src/DefaultBtContext.cc: New file.
  8631. * src/BitfieldMan.h
  8632. (getCompletedLength): New function(private).
  8633. (getCompletedLength): New function.
  8634. (getFilteredCompletedLength): New function.
  8635. * src/BitfieldMan.h
  8636. (getCompletedLength): New function(private).
  8637. (getCompletedLength): New function.
  8638. (getFilteredCompletedLength): New function.
  8639. * src/MultiDiskAdaptor.cc
  8640. (mkdir): New function.
  8641. (openFile): Call mkdir().
  8642. (initAndOpenFile): Call mkdir().
  8643. * src/CancelMessage.h
  8644. (TorrentMan.h): Removed.
  8645. * src/RejectMessage.h
  8646. (TorrentMan.h): Removed.
  8647. * src/DownloadEngineFactory.cc
  8648. (DefaultPieceStorage.h): New include.
  8649. (DefaultPeerStorage.h): New include.
  8650. (DefaultBtAnnounce.h): New include.
  8651. (DefaultBtProgressInfoFile.h): New include.
  8652. (newTorrentConsoleEngine): Rewritten.
  8653. * src/ShareRatioSeedCriteria.h
  8654. (torrentMan): Removed.
  8655. (btContext): New variable.
  8656. (peerStorage): New variable.
  8657. (btRuntime): New variable.
  8658. (evaluate): Use btContext, btRuntime, peerStorage.
  8659. * src/AnnounceTier.h: New file.
  8660. * src/BtAnnounce.h: New file.
  8661. * src/BtRegistry.h: New file.
  8662. * src/PeerInitiateConnectionCommand.h: Added btContext.
  8663. * src/PeerConnection.h (TorrentMan.h): Removed.
  8664. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  8665. * src/Util.h
  8666. (slice): Added an argument.
  8667. * src/Util.cc
  8668. (slice): Added an argument to control whether trim is made or not.
  8669. * src/PeerStorage.h: New file.
  8670. * src/BtRegistry.cc: New file.
  8671. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  8672. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  8673. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  8674. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  8675. * src/TorrentRequestInfo.h
  8676. (e): Removed.
  8677. (showFileEntry): Added an argument.
  8678. (getDownloadEngine): Return 0.
  8679. * src/DefaultBtAnnounce.h: New file.
  8680. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  8681. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  8682. * src/PeerMessageFactory.h
  8683. (btContext): New variable.
  8684. (pieceStorage): New variable.
  8685. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  8686. btAnnounce.
  8687. * src/DiskAdaptor.cc
  8688. (DiskAdaptor): Removed topDir.
  8689. (~DiskAdaptor): Removed topDir.
  8690. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  8691. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  8692. * src/File.h (mkdirs): New function.
  8693. * src/DefaultPeerStorage): New file.
  8694. * src/DownloadEngineFactory.h
  8695. (newTorrentConsoleEngine): Use btContext.
  8696. * src/BtContextAwareCommand.cc: New file.
  8697. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  8698. * src/PeerMessage.h
  8699. (btContext): New variable.
  8700. (peerStorage): New variable.
  8701. (pieceStorage): New variable.
  8702. (setBtContext): New function.
  8703. * src/Directry.cc
  8704. (Directory): New function.
  8705. (createDir): Do nothing if name.size() == 0.
  8706. * src/AnnounceList.h
  8707. (AnnounceTier): Removed.
  8708. (AnnounceTiers): Removed.
  8709. * src/DefaultPieceStorage.h: New file.
  8710. * src/Piece.cc (toString): New function.
  8711. To fix typo:
  8712. * src/main.cc (showVersion): Fixed typo.
  8713. To fix compile warning:
  8714. * src/DelegatingPeerListProcessor.cc
  8715. (canHandle): Added "return false".
  8716. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8717. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  8718. make the process of announce request testable.
  8719. * src/TrackerWatcherCommand.h
  8720. (TimeA2.h): Removed.
  8721. (interval): Removed.
  8722. (checkPoint): Removed.
  8723. (createRequestCommand): Added an argument 'url'.
  8724. (TrackerWatherCommand): Removed interval.
  8725. (createCommand): New function.
  8726. * src/DownloadEngineFactory.cc
  8727. (newTorrentConsoleEngine): Updated according to the changes in
  8728. TrackerWatherCommand.
  8729. * src/TorrentMan.cc
  8730. (DelegatingPeerListProcessor.h): New includes.
  8731. (TorrentMan): Added the initialization of announceInterval.
  8732. (isStoppedAnnounceReady): New function.
  8733. (isCompletedAnnounceReady): New function.
  8734. (isDefaultAnnounceReady): New function.
  8735. (isAnnounceReady): New function.
  8736. (getAnnounceUrl): New function.
  8737. (announceStart): New function.
  8738. (announceFailure): New function.
  8739. (announceSuccess): New function.
  8740. (isAllAnnounceFailed): New function.
  8741. (resetAnnounce): New function.
  8742. (processAnnounceResponse): New function.
  8743. (needMorePeerConnection): New function.
  8744. (noMoreAnnounce): New function.
  8745. * src/TrackerUpdateCommand.h
  8746. (getTrackerResponse): int->size_t
  8747. * src/TorrentMan.h
  8748. (isStoppedAnnounceReady): New function.
  8749. (isCompletedAnnounceReady): New function.
  8750. (isDefaultAnnounceReady): New function.
  8751. (announceInterval): New variable.
  8752. (isAnnounceReady): New function.
  8753. (getAnnounceUrl): New function.
  8754. (announceStart): New function.
  8755. (announceFailure): New function.
  8756. (announceSuccess): New function.
  8757. (isAllAnnounceFailed): New function.
  8758. (resetAnnounce): New function.
  8759. (processAnnounceResponse): New function.
  8760. (needMorePeerConnection): New function.
  8761. (noMoreAnnounce): New function.
  8762. * src/TrackerWatcherCommand.cc
  8763. (TrackerWatherCommand): Removed interval and checkPoint.
  8764. (execute): Rewritten.
  8765. (createCommand): New function.
  8766. (createRequestCommand): Rewritten.
  8767. * src/TrackerUpdateCommand.cc
  8768. (MetaFileUtil.h): Removed.
  8769. (DelegatingPeerListProcessor.h): Removed.
  8770. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  8771. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8772. Request -> RequestHandle:
  8773. * src/HttpResponseCommand.h: Request->RequestHandle
  8774. * src/AbstractCommand.cc: Request->RequestHandle
  8775. * src/HttpDownloadCommand.cc: Request->RequestHandle
  8776. * src/HttpRequestCommand.cc: Request->RequestHandle
  8777. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  8778. * src/AbstractCommand.h: Request->RequestHandle
  8779. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  8780. * src/HttpResponseCommand.cc: Request->RequestHandle
  8781. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  8782. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  8783. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  8784. * src/HttpConnection.h: Request->RequestHandle
  8785. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  8786. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  8787. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8788. * src/DownloadCommand.h: Request->RequestHandle
  8789. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  8790. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  8791. * src/HttpRequestCommand.h: Request->RequestHandle
  8792. * src/FtpNegotiateCommand.h: Request->RequestHandle
  8793. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8794. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  8795. * src/HttpDownloadCommand.h: Request->RequestHandle
  8796. * src/FtpConnection.cc: Request->RequestHandle
  8797. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  8798. * src/UrlRequestInfo.cc: Request->RequestHandle
  8799. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  8800. * src/HttpConnection.h: Request->RequestHandle
  8801. * src/DownloadCommand.cc: Request->RequestHandle
  8802. * src/FtpConnection.h: Request->RequestHandle
  8803. * src/FtpDowndloadCommand.h: Request->RequestHandle
  8804. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  8805. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  8806. * src/Request.h
  8807. (SharedHandle.h): New include.
  8808. (RequestHandle): New type definition.
  8809. (Requests): Redefined.
  8810. To add MULTITRACKER support:
  8811. * src/TrackerWatcherCommand.h
  8812. (createRequestCommand): New function.
  8813. * src/DownloadEngineFactory.cc
  8814. (newTorrentConsoleEngine): Removed req.
  8815. * src/prefs.h
  8816. (PREF_TRACKER_MAX_TRIES): New definition.
  8817. * src/TorrentMan.cc
  8818. (TorrentMan): Removed req. Added trackerNumTry.
  8819. (~TorrentMan): Removed req.
  8820. (setupInternal1): Added announceList.
  8821. * src/TorrentRequestInfo.cc
  8822. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  8823. announces is now specified by PREF_TRACKER_MAX_TRIES.
  8824. * src/main.cc
  8825. (main): Added PREF_TRACKER_MAX_TRIES.
  8826. * src/TorrentMan.h
  8827. (Request.h): Removed.
  8828. (AnnounceList.h): New include.
  8829. (trackerNumTry): New variable.
  8830. (req): Removed.
  8831. (announceList): New variable.
  8832. * src/TrackerWatcherCommand.cc
  8833. (execute): Rewritten.
  8834. (createRequestCommand): New function.
  8835. * src/TrackerUpdateCommand.cc
  8836. (execute): Updated with the use of AnnounceList.
  8837. * src/AnnounceList.cc: New class.
  8838. * src/AnnounceList.h: New class.
  8839. To fix typo:
  8840. * src/prefs.h
  8841. (PREF_MAX_TRIES): max_try->max_tries
  8842. To not to decode "+" as space in URL decode:
  8843. * src/Util.cc
  8844. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  8845. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8846. To add timeout to async name resolution:
  8847. * src/AbstractCommand.h
  8848. (nameResolveFinished): New function. This is not elegant way. It needs
  8849. to be more refined.
  8850. (nameResolverCheck): New variable.
  8851. * src/AbstractCommand.cc
  8852. (AbstractCommand): Added nameResolverCheck.
  8853. (execute): Added the check whether the name resolution has finished.
  8854. (setNameResolverCheck): Set nameResolverCheck to true.
  8855. (disableNameResolverCheck): Set nameResolverCheck to false.
  8856. (nameResolverFinished): New function.
  8857. * src/FtpInitiateConnectionCommand.h
  8858. (nameResolverFinished): New function.
  8859. * src/FtpInitiateConnectionCommand.cc
  8860. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8861. * src/HttpInitiateConnectionCommand.h
  8862. (nameResolverFinished): New function.
  8863. * src/HttpInitiateConnectionCommand.cc
  8864. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  8865. * src/prefs.h
  8866. (PREF_DNS_TIMEOUT): New definition.
  8867. * src/main.cc
  8868. (main): Added PREF_DNS_TIMEOUT.
  8869. To add the support for a non-compact response from a tracker:
  8870. * src/PeerListProcessor.h: New class.
  8871. * src/DefaultPeerListProcessor.h: New class.
  8872. * src/DefaultPeerListProcessor.cc: New class.
  8873. * src/CompactPeerListProcessor.h: New class.
  8874. * src/CompactPeerListProcessor.cc: New class.
  8875. * src/DelegatingPeerListProcessor.h: New class.
  8876. * src/DelegatingPeerListProcessor.cc: New class.
  8877. * src/TorrentMan.cc
  8878. (addPeer): New function(overload).
  8879. (addPeer): Delete unused peers only when new peer is added.
  8880. * src/TorrentMan.h
  8881. (PeerListProcessor.h): Included.
  8882. (Peers): Removed.
  8883. (addPeer): New function(overload).
  8884. * src/TrackerUpdateCommand.cc
  8885. (netinet/in.h): Removed.
  8886. (DelegatingPeerListProcessor.h): Included.
  8887. (execute): Updated to use DelegatingPeerListProcessor.
  8888. To fix the memory leak in TorrentMan::peers:
  8889. * src/PeerAbstractCommand.cc
  8890. (onAbort): Added peer->resetStatus().
  8891. * src/Peer.h
  8892. (resetStatus): Made public.
  8893. To improve the precision of the speed calculation:
  8894. * src/SpeedCalc.h
  8895. (nextInterval): New variable.
  8896. * src/SpeedCalc.cc
  8897. (reset): Added nextInterval.
  8898. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  8899. (changeSw): Set nextInterval to 15 seconds relative to the current
  8900. instant time.
  8901. * src/main.cc
  8902. (showVersion): Updated.
  8903. (showUsage): Updated.
  8904. * Release 0.8.1
  8905. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8906. * src/main.cc
  8907. (showUsage): Commented out --min-segment-size option.
  8908. (main): Commented out --min-segment-size option.
  8909. * Release 0.8.0
  8910. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8911. * src/*.{h,cc}:
  8912. Added an exception to the license which allows linking with OpenSSL.
  8913. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8914. * src/AbstractCommand.cc
  8915. (execute): Check whether the download has finished before checking
  8916. socket status.
  8917. Return true if peerStat->getStatus() == REQUEST_IDLE.
  8918. Do not exit even if no segment is available.
  8919. * src/prefs.h
  8920. (PREF_STARTUP_IDLE_TIME): New definition.
  8921. * src/PeerInteractionCommand.cc
  8922. (executeInternal): Removed max speed limit. Because it performs bad.
  8923. (receiveMessages): Added max speed limit. This was better than above,
  8924. but still a little bit to be desired. Sometimes the download speed
  8925. became much faster than I specified.
  8926. * src/SpeedCalc.h
  8927. (start): New variable.
  8928. (accumulatedLength): New variable.
  8929. (getAvgSpeed): New function.
  8930. * src/SpeedCalc.cc
  8931. (reset): Added start, accumulatedLength.
  8932. (update): Added calculation of an average speed.
  8933. (getAvgSpeed): New function.
  8934. * src/DownloadCommand.h
  8935. (sw): Removed.
  8936. * src/main.cc
  8937. (main): Added PREF_STARTUP_IDLE_TIME.
  8938. * src/PeerStat.h
  8939. (STATUS): Added REQUEST_IDLE.
  8940. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  8941. (getAvgDownloadSpeed): New function
  8942. (requestIdle): New function.
  8943. * src/SegmentMan.h
  8944. (SegmentEntryHandle): New type definition.
  8945. (SegmentEntries): Now holds SegmentEntryHandle.
  8946. (findSlowerSegmentEntry): New funtion.
  8947. * src/SegmentMan.cc
  8948. (save): Updated according to the changes in SegmentEntries.
  8949. (read): Updated according to the changes in SegmentEntries.
  8950. (FindSegmentEntryByIndex): Updated according to the changes in
  8951. SegmentEntries.
  8952. (FindSegmentEntryByCuid): Updated according to the changes in
  8953. SegmentEntries.
  8954. (checkoutSegment): Updated according to the changes in SegmentEntries.
  8955. (onNullBitfield): Updated according to the changes in SegmentEntries.
  8956. Renamed uitr as itr.
  8957. (findSlowerSegmentEntry): New function.
  8958. (getSegment): Updated according to the changes in SegmentEntries.
  8959. Added the feature that cancels the segment with slow server and fast
  8960. one takes it over.
  8961. (cancelSegment): Updated according to the changes in SegmentEntries.
  8962. (getDownloadLength): Updated according to the changes in
  8963. SegmentEntries.
  8964. (init): Assigned 0 to bitfield after deleting it.
  8965. * src/DownloadCommand.cc
  8966. (STARTUP_IDLE_TIME): Removed.
  8967. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  8968. * src/PeerChokeCommand.cc
  8969. (optUnchokingPeer): Updated according to the changes in Peer.
  8970. (ResetDelta): Removed.
  8971. (UploadFaster): Updated according to the changes in Peer.
  8972. (DownloadFaster): Updated according to the changes in Peer.
  8973. (execute): I clarify the meaning of "upload" and "download" here.
  8974. "upload" means the transfer from localhost to remote host.
  8975. "download" means the transfer from remote host to localhost.
  8976. Based on this rule, I swapped orderByUploadRate and
  8977. orderByDownloadRate.
  8978. * src/PeerInteractionCommand.cc
  8979. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  8980. (executeInternal): Removed the argument of
  8981. peerInteraction->sendMessages().
  8982. (receiveMessages): Rewritten download speed limit.
  8983. (sendKeepAlive): Removed peerInteraction->sendMessages().
  8984. * src/HttpResponseCommand.cc
  8985. (handleDefaultEncoding): If file size is unknown in torrent request,
  8986. do not call segmentMan->initBitfield() here.
  8987. Disabled persistent connection feature in torrent request.
  8988. * src/UrlRequestInfo.h
  8989. (UrlRequestInfo): Removed const qualifier from option.
  8990. * src/TorrentMan.h
  8991. (TransferStat): New class.
  8992. (deltaDownloadLength): Removed.
  8993. (deltaUploadLength): Removed.
  8994. (addDeltaDownloadLength): Removed.
  8995. (getDeltaDownloadLength): Removed.
  8996. (resetDeltaDownloadLength): Removed.
  8997. (addDeltaUploadLength): Removed.
  8998. (getDeltaUploadLength): Removed.
  8999. (resetDeltaUploadLength): Removed.
  9000. (addActivePeer): Added peer->activate().
  9001. (deleteActivePeer): Added peer->deactivate().
  9002. (calculateStat): New function.
  9003. * src/TorrentMan.cc
  9004. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  9005. (calculateStat): New function.
  9006. * src/PeerInteraction.h
  9007. (uploadLimit): Removed.
  9008. (option): New variable.
  9009. (setUploadLimit): Removed.
  9010. (getUploadSpeed): Removed.
  9011. (sendMessages): Removed the argument "currentUploadSpeed".
  9012. * src/PeerInteraction.cc
  9013. (prefs.h): Included.
  9014. (PeerInteraction): Removed uploadLimit. Added option.
  9015. (sendMessages): Rewritten upload speed limit.
  9016. (sendHandshake): Removed the argument from sendMessages().
  9017. (sendBitfield): Removed the argument from sendMessages().
  9018. * src/PeerAbstractCommand.cc
  9019. (execute): Commented out the portion of upload limit.
  9020. (onAbort): Removed peer->resetStatus().
  9021. * src/TorrentRequestInfo.cc
  9022. (timeoutSpecified): Declared extern.
  9023. (execute): Set timeout to 180 if timeout is not specified by.
  9024. command-line.
  9025. * src/PieceMessage.cc
  9026. (receivedAction): Added peer->updateDownloadLength().
  9027. Removed peer->addPeerUpload().
  9028. Removed torrentMan->addDeltaDownloadLength().
  9029. (send): Added peer->updateUploadLength().
  9030. Removed peer->addPeerDownload().
  9031. Removed torrentMan->addDeltaUploadLength().
  9032. * src/main.cc
  9033. (timeoutSpecified): New variable.
  9034. (main): Set timeoutSpecified to false.
  9035. If the command-line option "--upload-limit" is specified, then
  9036. timeoutSpecified is set to true. This option will remain in the next
  9037. release, but be deprecated in the future release.
  9038. * src/TorrentRequestInfo.h
  9039. (TorrentRequestInfo): Removed const qualifier from op.
  9040. * src/PeerStat.h
  9041. (uploadSpeed): New variable.
  9042. (PeerStat): Added default value to cuid.
  9043. (calculateUploadSpeed): New function.
  9044. (updateUploadLength): New function.
  9045. (getMaxUploadSpeed): New function.
  9046. (getAvgUploadSpeed): New function.
  9047. (reset): Added uploadSpeed. Set status to IDLE.
  9048. * src/TorrentDownloadEngine.h
  9049. (cp): Declared as Time.
  9050. (sessionDownloadLengthArray): Removed.
  9051. (sessionUploadLengthArray): Removed.
  9052. (currentCp): Removed.
  9053. (lastCalcStat): New variable
  9054. (lastElapsed): Removed.
  9055. (sessionDownloadLength): Removed.
  9056. (calculateStat): New function.
  9057. * src/TorrentDownloadEngine.cc
  9058. (initStatistics): Removed lastElapsed, cp[],
  9059. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  9060. currentCp, sessionDownloadLength.
  9061. Added cp.reset() and lastCalcStat.reset().
  9062. (calculateSpeed): Changed the name of the argument.
  9063. (calculateStatistics): Rewritten.
  9064. (calculateStat): New function.
  9065. * src/Peer.h
  9066. (PeerStat.h): Included.
  9067. (peerUpload): Removed.
  9068. (peerDownload): Removed.
  9069. (peerStat): New variable.
  9070. (sessionUploadLength): New variable.
  9071. (sessionDownloadLength): New variable.
  9072. (deltaUpload): Removed.
  9073. (deltaDownload): Removed.
  9074. (resetStatus): Made private.
  9075. (Peer): Added sessionUploadLength, sessionDownloadLength.
  9076. Removed peerUpload, peerDownload.
  9077. (updateUploadLength): New function.
  9078. (addDeltaUpload): Removed.
  9079. (updateDownloadLength): New function.
  9080. (resetDeltaUpload): Removed.
  9081. (getDeltaUpload): Removed.
  9082. (addDeltaDownload): Removed.
  9083. (calculateUploadSpeed): New function.
  9084. (resetDeltaDownload): Removed.
  9085. (getDeltaDownload): Removed.
  9086. (calculateDownloadSpeed): New function.
  9087. (getSessionUploadLength): New function.
  9088. (getSessionDownloadLength): New function.
  9089. (activate): New function.
  9090. (deactivate): New function.
  9091. (addPeerUpload): Removed.
  9092. (setPeerUpload): Removed.
  9093. (getPeerUpload): Removed.
  9094. (addPeerDownload): Removed.
  9095. (setPeerDownload): Removed.
  9096. (getPeerDownload): Removed.
  9097. * src/Peer.cc
  9098. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  9099. * src/MetalinkRequestInfo.h
  9100. (MetalinkRequestInfo): Removed const qualifier from op.
  9101. * src/RequestInfo.h
  9102. (op): Removed const qualifier.
  9103. (RequestInfo): Removed const qualifier from op.
  9104. * src/prefs.h
  9105. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  9106. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  9107. * src/PeerInteractionCommand.cc
  9108. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  9109. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  9110. * src/PeerInteraction.cc
  9111. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  9112. * src/main.cc
  9113. (showUsage): Updated the description of "--lowest-speed-limit" option.
  9114. Added the description of "--max-download-limit" option.
  9115. Removed the description of "--upload-limit" option.
  9116. Added the description of "--max-upload-limit" option.
  9117. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  9118. Added "--max-download-limit" option and "--max-upload-limit" option.
  9119. Added the warning message if "--upload-limit" option is used.
  9120. * src/DownloadCommand.cc
  9121. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  9122. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9123. To rewrite segment download mechanism for HTTP/FTP download.
  9124. Use BitfieldMan to manage segment download.
  9125. * src/HttpResponseCommand.h
  9126. (executeInternal): Pass the reference of segment.
  9127. * src/AbstractCommand.cc
  9128. (prepareForRetry): Call segmentMan->cancelSegment here.
  9129. (onAbort): Call segmentMan->cancelSegment here.
  9130. * src/HttpDownloadCommand.cc
  9131. (prepareForNextSegment): New function.
  9132. * src/DownloadEngineFactory.cc
  9133. (newConsoleEngine): Removed splitter.
  9134. (newTorrentConsoleEngine): Removed splitter.
  9135. * src/Request.h
  9136. (segment): Renamed from seg.
  9137. * src/FtpInitiateConnectionCommand.h
  9138. (executeInternal): Pass the reference of segment.
  9139. * src/AbstractCommand.h
  9140. (executeInternal): Pass the reference of segment.
  9141. * src/pref.h
  9142. (PREF_SEGMENT_SIZE): New definition.
  9143. * src/HttpProxyRequestCommand.h
  9144. (executeInternal): Pass the reference of segment.
  9145. * src/HttpResponseCommand.cc
  9146. (checkResponse): Allowed status 206 when a request range starts 0.
  9147. (handleDefaultEncoding): Rewritten the code related to Segment.
  9148. (handleOtherEncoding): Rewritten the code related to Segment.
  9149. * src/SegmentMan.h
  9150. (SegmentEntry): New class.
  9151. (SegmentEntries): New type definition.
  9152. (bitfield): New variable.
  9153. (usedSegmentEntries): New variable.
  9154. (onNullBitfield): New function.
  9155. (checkoutSegment): New function.
  9156. (segments): Removed.
  9157. (splitter): Removed.
  9158. (unregisterId): Removed.
  9159. (getSegment): New function(overload)
  9160. (getDownloadedSize): Removed.
  9161. (cancelSegment): New function.
  9162. (completeSegment): New function.
  9163. (initBitfield): New function.
  9164. (hasSegment): New function.
  9165. (getDownloadLength): New function.
  9166. * src/BitfieldMan.h
  9167. (getStartIndex): New function.
  9168. (getEndIndex): New function.
  9169. (getMissingUnusedIndex): New function(overload).
  9170. (getSparseMissingUnusedIndex): New function.
  9171. * src/BitfieldMan.cc
  9172. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  9173. (getMissingUnusedIndex): New function(overload).
  9174. (Range): New class.
  9175. (getStartIndex): New function.
  9176. (getEndIndex): New function.
  9177. (getSparseMissingUnusedIndex): New function.
  9178. (isBitSetInternal): Return false if the given index is less than 0.
  9179. * src/HttpInitiateConnectionCommand.h
  9180. (executeInternal): Pass the reference of segment.
  9181. * src/FtpNegotiateCommand.h
  9182. (executeInternal): Pass the reference of segment.
  9183. * src/FtpNegotiateCommand.cc
  9184. (recvSize): Initialize bitfield here.
  9185. * src/FtpTunnelResponseCommand.h
  9186. (executeInternal): Pass the reference of segment.
  9187. * src/HttpConnection.cc
  9188. (createRequest): Rewritten range header processing.
  9189. * src/DownloadCommand.h
  9190. (executeInternal): Pass the reference of segment.
  9191. (prepareForRetry): Removed.
  9192. (prepareForNextSegment): Added an argument segment. Made it a virtual
  9193. function.
  9194. * src/main.cc
  9195. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  9196. * src/SegmentMan.cc
  9197. (SegmentMan): Added bitfield. Removed splitter.
  9198. (~SegmentMan): Added bitfield. Removed splitter.
  9199. (unregisterId): Removed.
  9200. (getSegment): Rewritten.
  9201. (updateSegment): Rewritten.
  9202. (save): Rewritten.
  9203. (read): Rewritten.
  9204. (finished): Rewritten.
  9205. (getDownloadedSize): Removed.
  9206. (initBitfield): New function.
  9207. (FindSegmentEntryByIndex): New function object.
  9208. (FindSegmentEntryByCuid): New function object.
  9209. (checkoutSegment): New function.
  9210. (onNullBitfield): New function.
  9211. (getSegment): New function(overload).
  9212. (CancelSegment): New function object.
  9213. (cancelSegment): New function.
  9214. (completeSegment): New function.
  9215. (hasSegment): New function.
  9216. (getDownloadLength): New function.
  9217. * src/FtpInitiateConnectionCommand.cc
  9218. (executeInternal): Load .aria2 file after hostname resolution finishes.
  9219. * src/Segment.h: Rewritten.
  9220. * src/Segment.cc (operator<<): New function.
  9221. * src/HttpDownloadCommand.h
  9222. (prepareForNextSegment): New function.
  9223. * src/Request.cc
  9224. (resetUrl): Made segment null.
  9225. * src/DownloadEngine.cc
  9226. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  9227. * src/HttpProxyRequestCommand.h
  9228. (executeInternal): Pass the reference of segment.
  9229. * src/DownloadCommand.cc
  9230. (executeInternal): Rewritten the code related to Segment.
  9231. (prepareForRetry): Removed.
  9232. (prepareForNextSegment): Rewritten.
  9233. * src/FtpTunnelResponseCommand.h
  9234. (executeInternal): Pass the reference of segment.
  9235. To add HTTP 1.1 persistent connection support(experimental)
  9236. * src/HttpRequestCommand.cc
  9237. (executeInternal): Disable keep alive if it is disabled by
  9238. configuration.
  9239. * src/Request.h
  9240. (keepAlive): New variable.
  9241. (isKeepAlive): New function.
  9242. (setKeepAlive): New function.
  9243. * src/pref.h
  9244. (PREF_HTTP_KEEP_ALIVE): New definition.
  9245. * src/HttpResponseCommand.cc
  9246. (executeInternal): Check the remote server supports keep alive.
  9247. * src/HttpConnection.cc
  9248. (createRequest): Send "Connection: close" only if keep alive is
  9249. disabled.
  9250. * src/main.cc
  9251. (main):
  9252. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  9253. To add max download speed limit:
  9254. * src/pref.h
  9255. (PREF_MAX_SPEED_LIMIT): New definition.
  9256. * src/PeerInteractionCommand.cc
  9257. (executeInternal): Added max download speed limit. Not tested yet.
  9258. * src/SegmentMan.h
  9259. (PeerStats): New type definition.
  9260. (peerStats): New variable.
  9261. (registerPeerStat): New function.
  9262. (FindPeerStat): New function object.
  9263. (getPeerStat): New function.
  9264. (calculateDownloadSpeed): New function.
  9265. * src/SpeedCalc.h: New class.
  9266. * src/SpeedCalc.cc: New class.
  9267. * src/main.cc
  9268. (main):
  9269. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  9270. download speed is not restricted).
  9271. * src/PeerStat.h: New class.
  9272. * src/SegmentMan.cc
  9273. (registerPeerStat): New function.
  9274. (calculateDownloadSpeed): New function.
  9275. * src/DownloadCommand.cc
  9276. (STARTUP_IDLE_TIME): New definition.
  9277. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  9278. downloadStart.
  9279. (~DownloadCommand): Call peerStat->downloadStop.
  9280. (executeInternal): Added download speed limitter. Rewritten lowest
  9281. speed limitter.
  9282. * src/HttpConnection.cc
  9283. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  9284. * src/AbstractCommand.cc
  9285. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  9286. Added hostname to the error message.
  9287. * src/ConsoleDownloadEngine.cc
  9288. (calculateStatistics): Initialize psize with dlSize.
  9289. * src/PieceMessage.cc
  9290. (receivedAction): Do not call peerInteraction->abortPiece here.
  9291. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  9292. * src/BitfieldMan.h
  9293. (clearAllUseBit): New function.
  9294. (setAllUseBit): New function.
  9295. * src/BitfieldMan.cc
  9296. (clearAllBit): Do not clear useBitfield here.
  9297. (clearAllUseBit): New function.
  9298. (setAllUseBit): New function.
  9299. * src/Piece.cc
  9300. (clearAllBlock): Call bitfield->clearAllUseBit().
  9301. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9302. To make filename URL-decoded:
  9303. * src/HttpResponseCommand.h: Updated doc.
  9304. * src/HttpResponseCommand.cc
  9305. (determinFilename): Made filename URL-decoded.
  9306. * src/FtpInitiateConnectionCommand.cc
  9307. (executeInternal): Made filename URL-decoded.
  9308. * src/Util.h (urldecode): New function.
  9309. * src/Util.cc (urldecode): New function.
  9310. To fix a bug that caused assertion failure in ares_strerror:
  9311. * src/NameResolver.cc (callback): Fixed the bug.
  9312. * Release 0.7.3
  9313. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9314. To add --seed-time and --seed-ratio command-line option:
  9315. * src/Option.h (getAsDouble): New function.
  9316. * src/Option.cc (getAsDouble): New function.
  9317. * src/SeedCheckCommand.h: New class.
  9318. * src/SeedCheckCommand.cc: New class.
  9319. * src/DownloadEngineFactory.cc
  9320. (SeedCheckCommand.h): Included.
  9321. (UnionSeedCriteria.h): Included.
  9322. (TimeSeedCriteria.h): Included.
  9323. (ShareRatioSeedCriteria.h): Included.
  9324. (newTorrentConsoleEngine): Added the processing of seed option.
  9325. * src/SeedCriteria.h: New class.
  9326. * src/ShareRatioSeedCriteria.h: New class.
  9327. * src/TimeSeedCriteria.h: New class.
  9328. * src/UnionSeedCriteria.h: New class.
  9329. * src/prefs.h
  9330. (PREF_SEED_TIME): New definition.
  9331. (PREF_SEED_RATIO): New definition.
  9332. * src/main.cc
  9333. (showUsage): Added --seed-time and --seed-ratio option.
  9334. (main): Added --seed-time and --seed-ratio option.
  9335. Made default log file name "/dev/null".
  9336. * src/SharedHandle.h
  9337. (SharedHandle): Copy constructor. Made it assignable from the
  9338. SharedHandle of the subclasses.
  9339. (operator=): Made it assignable from the SharedHandle of the
  9340. subclasses.
  9341. (getRefCount): New function.
  9342. To add notice log level and the switch to write log to stdout. This
  9343. switch is configurable per log level.
  9344. * src/Logger.h
  9345. (notice): New function.
  9346. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  9347. constant.
  9348. * src/LogFactory.cc
  9349. (getInstance): The use of NullLogger was removed. A log message with
  9350. notice log level was made written to stdout along with log file.
  9351. * src/NullLogger.h
  9352. (notice): New function.
  9353. * src/SimpleLogger.h
  9354. (writeHeader): Added the 'file' argument.
  9355. (writeLog): Added the 'file' argument.
  9356. (writeFile): New function.
  9357. (stdoutField): New variable.
  9358. (SimpleLogger): Removed the default constructor.
  9359. (SimpleLogger): Made the default value of logfile 0.
  9360. (debug): Added 'virtual' keyword.
  9361. (info): Added 'virtual' keyword.
  9362. (warn): Added 'virtual' keyword.
  9363. (error): Added 'virtual' keyword.
  9364. (notice): New function.
  9365. (setStdout): New function.
  9366. * src/SimpleLogger.cc
  9367. (WRITE_LOG): Replaced writeLog with writeFile.
  9368. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  9369. (SimpleLogger): Removed the default constructor.
  9370. (setStdout): New function.
  9371. (writeLog): Added the handling of NOTICE log level.
  9372. (writeFile): New function.
  9373. (notice): New function.
  9374. * src/TorrentMan.h: Updated doc.
  9375. * src/BitfieldMan.h: Updated doc.
  9376. * src/TrackerWatcherCommand.cc
  9377. (execute): Return true if error occurred in the request to the tracker
  9378. and halt is requested.
  9379. * src/TrackerUpdateCommand.cc
  9380. (execute): Return true if error occurred in the request to the tracker
  9381. and halt is requested.
  9382. To call onDownloadComplete from TorrentMan::completePiece(), not from
  9383. DownloadEngine:
  9384. * src/TorrentConsoleDownloadEngine.h
  9385. (onSelectiveDownloadingCompletes): Removed.
  9386. * src/TorrentConsoleDownloadEngine.cc
  9387. (onSelectiveDownloadingCompletes): Removed.
  9388. * src/TorrentDownloadEngine.h
  9389. (onEndOfRun): Added 'virtual' keyword.
  9390. (afterEachIteration): Removed.
  9391. (onSelectiveDownloadingCompletes): Removed.
  9392. * src/TorrentDownloadEngine.cc
  9393. (onEndOfRun): Removed filenameFixed.
  9394. (afterEachIteration): Removed.
  9395. * src/TorrentMan.cc
  9396. (completePiece): Call onDownloadComplete here.
  9397. (onDownloadComplete): Added 2 log messages.
  9398. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9399. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  9400. * src/NameResolver.h: Added the prototype declaration of callback().
  9401. To support c-ares library:
  9402. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9403. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9404. * src/FtpInitiateConnectionCommand.h:
  9405. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9406. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9407. * src/HttpInitiateConnectionCommand.h:
  9408. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9409. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  9410. Added thes upport of c-ares's ares_strerror(the idea came from patch
  9411. #1542285 by tizianomueller)
  9412. * src/HttpInitiateConnectionCommand.cc:
  9413. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9414. * src/FtpInitiateConnectionCommand.cc:
  9415. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9416. * src/DownloadEngine.h:
  9417. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9418. * src/DownloadEngine.cc:
  9419. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9420. To fix the bug that causes compilation failure with metalink-support
  9421. disabled(bug#1543587):
  9422. * src/main.cc: Fixed with the patch by tizianomueller.
  9423. * Release 0.7.2
  9424. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9425. * src/main.cc
  9426. (main): Added a message to inform users that aria2 is starting to
  9427. verify checksum.
  9428. * src/RequestInfo.cc
  9429. (printDownloadAbortMessage): Added a message to inform users that
  9430. transfer can be resumed.
  9431. * src/FeatureConfig.cc
  9432. (FEATURE_ASYNC_DNS): New definition.
  9433. (FeatureConfig): Added aysnc DNS entry.
  9434. To replace CommandUuid with Command* in SocketEntry and
  9435. NameResolverEntry:
  9436. * src/DownloadEngine.h
  9437. (CommandUuids): Removed.
  9438. (SocketEntry::commandUuid): Removed.
  9439. (SocketEntry::command): New variable.
  9440. (SocketEntry::SocketEntry): Updated.
  9441. (SocketEntry::operator==): Updated.
  9442. (NameResolverEntry::commandUuid): Removed.
  9443. (NameResolverEntry::command): New variable.
  9444. (NameResolverEntry::NameResolverEntry): Updated.
  9445. (NameResolverEntry::operator==): Updated.
  9446. (waitData): Changed the argument type.
  9447. (addSocketForReadCheck): Changed the argument type.
  9448. (deleteSocketForReadCheck): Changed the argument type.
  9449. (addSocketForWriteCheck): Changed the argument type.
  9450. (deleteSocketForWriteCheck): Changed the argument type.
  9451. (addNameResolverCheck): Changed the argument type.
  9452. (deleteNameResolverCheck): Changed the argument type.
  9453. * src/DownloadEngine.cc
  9454. (FindCommand): Removed.
  9455. (run): Removed activeUuid. Added activeCommands instead.
  9456. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  9457. (AccumulateActiveCommand): New function object.
  9458. (waitData): Use AccumulateActiveCommand.
  9459. (addSocketForReadCheck): Use Command instead of CommandUuid.
  9460. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  9461. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  9462. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  9463. (addNameResolverCheck): Use Command instead of CommandUuid.
  9464. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  9465. * src/AbstractCommand.cc
  9466. (disableReadCheckSocket): Updated according to the changes in
  9467. DownloadEngine.
  9468. (setReadCheckSocket): Updated according to the changes in
  9469. DownloadEngine.
  9470. (disableWriteCheckSocket): Updated according to the changes in
  9471. DownloadEngine.
  9472. (setWriteCheckSocket): Updated according to the changes in
  9473. DownloadEngine.
  9474. (setNameResolverCheck): Updated according to the changes in
  9475. DownloadEngine.
  9476. (disableNameResolverCheck): Updated according to the changes in
  9477. DownloadEngine.
  9478. * src/AbstractCommand.cc
  9479. (disableReadCheckSocket): Updated according to the changes in
  9480. DownloadEngine.
  9481. (setReadCheckSocket): Updated according to the changes in
  9482. DownloadEngine.
  9483. (disableWriteCheckSocket): Updated according to the changes in
  9484. DownloadEngine.
  9485. (setWriteCheckSocket): Updated according to the changes in
  9486. DownloadEngine.
  9487. * release 0.7.1
  9488. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9489. To handle the case where some BitTorrent tracker requires all letters
  9490. except for [A-Za-z0-9] is URL encoded.
  9491. * src/Util.h
  9492. (torrentUrlencode): New function.
  9493. * src/Util.cc
  9494. (ctype.h): Included.
  9495. (torrentUrlencode): New function.
  9496. * src/TrackerWatcherCommand.cc
  9497. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  9498. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9499. To add asynchronous DNS support(libares):
  9500. * src/AbstractCommand.h
  9501. (setNameResolverCheck): New function.
  9502. (disableNameResolverCheck): New function
  9503. (resolveHostname): New function.
  9504. * src/AbstractCommand.cc
  9505. (setNameResolverCheck): New function.
  9506. (disableNameResolverCheck): New function
  9507. (resolveHostname): New function.
  9508. * src/FtpInitiateConnectionCommand.h
  9509. (nameResolver): New function.
  9510. * src/FtpInitiateConnectionCommand.cc
  9511. (Util.h): Included.
  9512. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  9513. disableWriteCheckSocket.
  9514. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  9515. (executeInternal): Added async DNS support.
  9516. * src/HttpInitiateConnectionCommand.h
  9517. (nameResolver): New function.
  9518. * src/HttpInitiateConnectionCommand.cc
  9519. (DlRetryEx.h): Included.
  9520. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  9521. disableWriteCheckSocket.
  9522. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  9523. (executeInternal): Added async DNS support.
  9524. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  9525. by extern "C" declaration.
  9526. * src/NameResolver.cc: New class.
  9527. * src/Util.h:
  9528. (isNumberAndDotsNotation): New function
  9529. * src/Util.cc
  9530. (isNumberAndDotsNotation): New function.
  9531. * src/DownloadEngine.h
  9532. (NameResolver.h): Included.
  9533. (NameResolverEntry): New class.
  9534. (NameResolverEntries): New type definition.
  9535. (addNameResolverCheck): New function.
  9536. (deleteNameResolverCheck): New function.
  9537. * src/DownloadEngine.cc
  9538. (run): Initialize cp with 0.
  9539. (SetDescriptor::operator()): Added for NameResolverEntry.
  9540. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  9541. (waitData): Check nameResolver entries.
  9542. (updateFdSet): Update fds in nameResolver entries.
  9543. (addNameResolverCheck): New function.
  9544. (deleteNameResolverCheck): new function.
  9545. * src/PeerInteractionCommand.cc
  9546. (executeInternal): Fixed wrong socket handling.
  9547. * src/main.cc
  9548. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  9549. * src/Util.cc
  9550. (fileChecksum): Removed the call to ctx.digestReset().
  9551. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9552. * po/ru.po: Azamat sent me Russian translation.
  9553. * src/FtpNegotiateCommand.cc
  9554. (recvGreeting): Call disableWriteCheckSocket just after
  9555. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  9556. (recvRetr): Recognized status code 125 as a acceptable response code.
  9557. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  9558. case-insesitive filesystem(BUG#1531057).
  9559. * src/Time.h: Renamed as TimeA2.h.
  9560. * src/Time.cc: Renamed as TimeA2.cc.
  9561. * src/TimeA2.h: New class.
  9562. * src/TimeA2.cc: New class.
  9563. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  9564. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  9565. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  9566. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  9567. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  9568. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9569. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  9570. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  9571. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  9572. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9573. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  9574. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  9575. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  9576. * release 0.7.0
  9577. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9578. * src/PeerChokeCommand.h
  9579. (PeerChokeCommand): Rearranged the arguments.
  9580. * src/PeerChokeCommand.cc
  9581. (PeerChokeCommand): Rearranged the arguments.
  9582. * src/MetalinkEntry.h
  9583. (Checksum.h): Included.
  9584. (md5): Removed.
  9585. (sha1): Removed.
  9586. (checksum): New variable.
  9587. (operator=): Updated.
  9588. (check): Removed.
  9589. * src/prefs.h
  9590. (PREF_LOWEST_SPEED_LIMIT): New definition.
  9591. (PREF_FOLLOW_TORRENT): New definition.
  9592. (PREF_SELECT_FILE): New definition.
  9593. (PREF_FOLLOW_METALINK): New definition.
  9594. * src/MetalinkResource.h
  9595. (TYPE_HTTPS): Added to enum TYPE.
  9596. * src/TorrentMan.cc
  9597. (~TorrentMan): Rewritten.
  9598. * src/MultiDiskWriter.cc
  9599. (MultiDiskAdaptor): Updated according to the changes in
  9600. MessageDigestContext.
  9601. (~MultiDiskAdaptor): Updated according to the changes in
  9602. MessageDigestContext.
  9603. (hashUpdate): Updated according to the changes in MessageDigestContext.
  9604. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9605. * src/Util.h
  9606. (fileChecksum): Updated according to the changes in
  9607. MessageDigestContext.
  9608. * src/Util.cc
  9609. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9610. (fileChecksum): Updated according to the changes in
  9611. MessageDigestContext.
  9612. * src/messageDigest.h: Rewritten.
  9613. * src/MetalinkEntry.cc
  9614. (check): Removed.
  9615. (Supported): Updated.
  9616. (dropUnsupportedResource): Fixed a memory leak.
  9617. * src/ShaVisitor.cc
  9618. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  9619. (~ShaVisitor): Updated according to the changes in
  9620. MessageDigestContext.
  9621. (visit): Updated according to the changes in MessageDigestContext.
  9622. * src/main.cc
  9623. (main): Rewritten the portion of download loop. --lowest-speed-limit
  9624. command-line option added.
  9625. * src/DownloadEngine.h
  9626. (SocketEntry): New class.
  9627. (SocketEntries): New definition.
  9628. (PairFind): Removed.
  9629. (SockCmdMap): Removed.
  9630. * src/DownloadEngine.cc
  9631. (DownloadEngine): Rewritten.
  9632. (~DownloadEngine): Rewritten.
  9633. (run): Renamed activeCommandUuids as activeUuids.
  9634. (SetDescriptor): Rewritten.
  9635. (AccumulateActiveCommandUuid): Removed.
  9636. (AccumulateActiveUuid): New function object.
  9637. (waitData): Rewritten.
  9638. (updateFdSet): Rewritten.
  9639. (addSocket): Rewritten.
  9640. (deleteSocket): Rewritten.
  9641. (addSocketForReadCheck): Rewritten.
  9642. (deleteSocketForReadCheck): Rewritten.
  9643. (addSocketForWriteCheck): Rewritten.
  9644. (deleteSocketForWriteCheck): Rewritten.
  9645. * src/Xml2MetalinkProcessor.cc
  9646. (getEntry): Rewritten the portion of MetalinkEntry creation.
  9647. * src/DownloadCommand.cc
  9648. (executeInternal): Added the check routine for lowest speed limit.
  9649. * src/AbstractDiskWriter.cc
  9650. (AbstractDiskWriter): Updated according to the changes in
  9651. MessageDigestContext.
  9652. (~AbstractDiskWriter): Updated according to the changes in
  9653. MessageDigestContext.
  9654. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9655. * src/RequestInfo.h: New class.
  9656. * src/UrlRequestInfo.h: New class.
  9657. * src/UrlRequestInfo.cc: New class.
  9658. * src/TorrentRequestInfo.h: New class.
  9659. * src/TorrentRequestInfo.cc: New class.
  9660. * src/MetalinkRequestInfo.h: New class.
  9661. * src/MetalinkRequestInfo.cc: New class.
  9662. * src/Checksum.h: New class.
  9663. * src/DownloadEngineFactory.h: New class.
  9664. * src/DownloadEngineFactory.cc: New class.
  9665. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9666. * src/Option.h
  9667. (getAsBool): New function.
  9668. * src/Option.cc
  9669. (prefs.h): Included.
  9670. (defined): 0-length value is now recognized as undefined.
  9671. (getAsInt): Rewritten.
  9672. (getAsLLInt): Rewritten.
  9673. (getAsBool): New function.
  9674. * src/FeatureConfig.h: Rewritten.
  9675. * src/FeatureConfig.cc: Rewritten.
  9676. * src/prefs.h
  9677. (PREF_STDOUT_LOG): New definition.
  9678. (PREF_LOG): New definition.
  9679. (PREF_DIR): New definition.
  9680. (PREF_OUT): New definition.
  9681. (PREF_SPLIT): New definition.
  9682. (PREF_DAEMON): New definition.
  9683. (PREF_REFERER): New definition.
  9684. (PREF_TORRENT_FILE): New definition.
  9685. (PREF_LISTEN_PORT): New definition.
  9686. (PREF_METALINK_FILE): New definition.
  9687. (PREF_METALINK_VERSION): New definition.
  9688. (PREF_METALINK_LANGUAGE): New definition.
  9689. (PREF_METALINK_OS): New definition.
  9690. (PREF_METALINK_SERVERS): New definition.
  9691. * src/main.cc
  9692. (main): Following command-line parameters are now put into Option
  9693. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  9694. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  9695. metalinkLanguage, metalinkOs, metalinkServers
  9696. To fix the bug that aria2 can not handle http response header properly.
  9697. * src/HttpHeader.cc
  9698. (put): Made name lowercased.
  9699. (defined): Made name lowercased.
  9700. (getFirst): Made name lowercased.
  9701. (get): Made name lowercased.
  9702. (getFirstAsInt): Rewritten.
  9703. (getFirstAsLLInt): Rewritten.
  9704. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9705. * src/TorrentMan.h:
  9706. (advertisePiece): Updated doc.
  9707. (getAdvertisedPieceIndexes): Updated doc.
  9708. (removeAdvertisedPiece); New function.
  9709. * src/TorrentMan.cc
  9710. (FindElapsedHave): New function object.
  9711. (removeAdvertisedPiece): New function.
  9712. * src/HaveEraseCommand.h: New class.
  9713. * src/HaveEraseCommand.cc: New class.
  9714. * src/FeatureConfig.h: New class.
  9715. * src/FeatureConfig.cc: New class.
  9716. * src/Request.h
  9717. (defaultPorts): Removed.
  9718. * src/Request.cc
  9719. (FeatureConfig.h): Included.
  9720. (Request): Removed the statements related to defaultPorts.
  9721. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  9722. A default port number is now retrieved from FeatureConfig.
  9723. * src/main.cc
  9724. (HaveEraseCommand.h): Included.
  9725. (showVersion): Added the output of feature list.
  9726. (main): Added HaveEraseCommand to command queue in BitTorrent
  9727. downloading.
  9728. * src/PeerInteractionCommand.h
  9729. (chokeCheckPoint): Commented out.
  9730. (periodicExecPoint): New variable.
  9731. * src/PeerInteractionCommand.cc
  9732. (executeInternal): Following methods are now called in at least every
  9733. 0.5 seconds to reduce CPU usage:
  9734. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  9735. checkHave(), sendKeepAlive().
  9736. (checkLongTimePeerChoking): Commented out.
  9737. * src/BitfieldMan.h
  9738. (getNthBitIndex): Changed the method signature.
  9739. (getMissingIndexRandomly): Changed the method signature.
  9740. * src/BitfieldMan.cc
  9741. (getNthBitIndex): Rewritten
  9742. (getMissingIndexRandomly): Rewritten.
  9743. (hasMissingPiece): Rewritten.
  9744. (getMissingIndex): Refactored.
  9745. (getMissingUnusedIndex); Refactored.
  9746. (getMissingIndex): Refactored.
  9747. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9748. * src/PeerMessage.h
  9749. (Piece.h): Included.
  9750. (SharedHandle.h): Included.
  9751. (invalidate): New variable.
  9752. (uploading): New variable.
  9753. (isInvalidate): New function.
  9754. (isUploading): New function.
  9755. (onPush): New function.
  9756. (onChoked): New function.
  9757. (onCanceled): New function.
  9758. (onAbortPiece): New function.
  9759. (PeerMessageHandle): New type definition.
  9760. * src/PeerMessage.cc
  9761. (PeerMessage): Added the initialization for invalidate and uploading.
  9762. * src/CancelMessage.h
  9763. (CancelMessage): Rewritten.
  9764. * src/RejectMessage.h
  9765. (RejectMessage): Rewritten.
  9766. * src/Metalinker.h
  9767. (operator=): Defined.
  9768. * src/MetaEntry.h
  9769. (operator=): Defined.
  9770. * src/MetalinkResource.h
  9771. (operator=): Defined.
  9772. * src/AllowedFastMessage.h
  9773. (AllowedFastMessage): Rewritten.
  9774. * src/HandshakeMessage.h
  9775. (HandshakeMessage): New function(overload).
  9776. * src/HandshakeMessage.cc
  9777. (HandshakeMessage): Rewritten.
  9778. (init): New function.
  9779. * src/HaveMessage.h
  9780. (HaveMessage): Rewritten.
  9781. * src/Time.h
  9782. (operator=): Defined the function body here.
  9783. * src/Time.cc
  9784. (operator=): Removed.
  9785. * src/SocketCore.h
  9786. (operator==): Defined here.
  9787. (operator!=): Defined here.
  9788. (operator<): Defined here.
  9789. * src/SocketCore.cc
  9790. (operator==): Removed.
  9791. (operator<): Removed.
  9792. * src/BitfieldMan.h
  9793. (operator=): Defined the function body here.
  9794. * src/BitfieldMan.cc
  9795. (operator=): Removed.
  9796. * src/TorrentMan.h
  9797. (deleteErrorPeer): Removed.
  9798. (deleteUnusedPeer); New function.
  9799. * src/TorrentMan.cc
  9800. (addPeer): Call deleteUnusedPeer.
  9801. (deleteErrorPeer): Removed.
  9802. (deleteUnusedPeer): New function.
  9803. * src/PeerAbstractCommand.h
  9804. (setNoCheck): New function.
  9805. (noCheck): New variable.
  9806. * src/PeerAbstractCommand.cc
  9807. (PeerAbstractCommand): Added the initialization of noCheck.
  9808. (execute): Added a check for noCheck.
  9809. (setNoCheck): New function.
  9810. * src/Util.h
  9811. (stdio.h): Included.
  9812. * src/Util.cc
  9813. (unistd.h): Included.
  9814. * src/DefaultDiskWriter.cc
  9815. (unistd.h): Included.
  9816. * src/Peer.h
  9817. (operator==): Defined the function body here.
  9818. (operator!=): Defined the function body here.
  9819. * src/Peer.cc
  9820. (operator==): Removed.
  9821. (operator!=): Removed.
  9822. * src/Piece.h
  9823. (Piece): Defined the function body here(copy constructor).
  9824. (operator=): Defined the function body here.
  9825. (operator==): Defined the function body here.
  9826. * src/Piece.cc
  9827. (Piece): Removed(copy constructor).
  9828. (operator=): Removed.
  9829. (operator==): Removed.
  9830. * src/PeerMessageUtil.h
  9831. (ChokeMessage.h): Removed.
  9832. (UnchokeMessage.h): Removed.
  9833. (InterestedMessage.h): Removed.
  9834. (NotInterestedMessage.h): Removed.
  9835. (HaveMessage.h): Removed.
  9836. (BitfieldMessage.h): Removed.
  9837. (RequestMessage.h): Removed.
  9838. (CancelMessage.h): Removed.
  9839. (PieceMessage.h): Removed.
  9840. (HandshakeMessage.h): Removed.
  9841. (KeepAliveMessage.h): Removed.
  9842. (PortMessage.h): Removed.
  9843. (HaveAllMessage.h): Removed.
  9844. (HaveNoneMessage.h): Removed.
  9845. (PeerConnection.h): Removed.
  9846. (HandshakeMessage.h): Included.
  9847. * src/BitfieldMessage.h
  9848. (init): New function.
  9849. (BitfieldMessage): Rewritten.
  9850. (BitfieldMessage): New function(overload).
  9851. * src/RequestSlot.h
  9852. (operator=): Defined the function body here.
  9853. (operator==): Defined the function body here.
  9854. * src/RequestSlot.cc
  9855. (operator=): Removed.
  9856. (operator==): Removed.
  9857. To remove the dependency on the PeerMessage subclass from
  9858. PeerInteraction:
  9859. * src/PeerMessageFactory.h: New class.
  9860. * src/PeerMessageFactory.cc: New class.
  9861. * src/SimplePeerMessage.cc
  9862. (send): If invalidate is true then do nothing.
  9863. * src/PeerInteractionCommand.cc
  9864. (HandshakeMessage.h): Included.
  9865. (KeepAliveMessage.h): Included.
  9866. (ChokeMessage.h): Included.
  9867. (UnchokeMessage.h): Included.
  9868. (HaveMessage.h): Included.
  9869. (executeInternal): Call setNoCheck().
  9870. Removed setWriteCheckSocket(socket).
  9871. * src/PeerInteraction.h
  9872. (ChokeMessage.h): Removed.
  9873. (UnchokeMessage.h): Removed.
  9874. (InterestedMessage.h): Removed.
  9875. (NotInterestedMessage.h): Removed.
  9876. (HaveMessage.h): Removed.
  9877. (BitfieldMessage.h): Removed.
  9878. (RequestMessage.h): Removed.
  9879. (CancelMessage.h): Removed.
  9880. (PieceMessage.h): Removed.
  9881. (HandshakeMessage.h): Removed.
  9882. (KeepAliveMessage.h): Removed.
  9883. (PortMessage.h): Removed.
  9884. (HaveAllMessage.h): Removed.
  9885. (HaveNoneMessage.h): Removed.
  9886. (RejectMessage.h): Removed.
  9887. (AllowedFastMessage.h): Removed.
  9888. (SuggestPieceMessage.h): Removed.
  9889. (PeerMessageFactory.h): Included.
  9890. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  9891. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  9892. (PeerMessageFactory): New variable.
  9893. (createPeerMessage): Removed.
  9894. (createHandshakeMessage): Removed.
  9895. (setPeerMessageCommonProperty): Removed.
  9896. (addRequestSlot): New function.
  9897. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9898. (getPeerMessageFactory): New function.
  9899. (createRequestMessage): Removed.
  9900. (createCancelMessage): Removed.
  9901. (createPieceMessage): Removed.
  9902. (createHaveMessage): Removed.
  9903. (createChokeMessage): Removed.
  9904. (createUnchokeMessage): Removed.
  9905. (createInterestedMessage): Removed.
  9906. (createNotInterestedMessage): Removed.
  9907. (createBitfieldMessage): Removed.
  9908. (createKeepAliveMessage): Removed.
  9909. (createHaveAllMessage): Removed.
  9910. (createHaveNoneMessage): Removed.
  9911. (createRejectMessage): Removed.
  9912. (createAllowedFastMessage): Removed.
  9913. * src/PeerInteraction.cc
  9914. (PeerInteraction): Allocate PeerMessageFactory here.
  9915. (~PeerInteraction): Deallocate PeerMessageFactory here.
  9916. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  9917. PieceMessage::ID.
  9918. (addMessage): Simplified by using PeerMessage::onPush().
  9919. (addRequestSlot): New function.
  9920. (rejectAllPieceMessageInQueue): Simplified by using
  9921. PeerMessage::onChoked().
  9922. (rejectPieceMessageInQueue): Simplified by using
  9923. PeerMessage::onCanceled().
  9924. (abortPiece): Simplified by using PeerMessage::abortPiece().
  9925. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  9926. (createHandshakeMessage): Removed.
  9927. (createPeerMessage): Removed.
  9928. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  9929. (setPeerMessageCommonProperty): Removed.
  9930. (createRequestMessage): Removed.
  9931. (createCancelMessage): Removed.
  9932. (createPieceMessage): Removed.
  9933. (createHaveMessage): Removed.
  9934. (createChokeMessage): Removed.
  9935. (createUnchokeMessage): Removed.
  9936. (createInterestedMessage): Removed.
  9937. (createNotInterestedMessage): Removed.
  9938. (createBitfieldMessage): Removed.
  9939. (createKeepAliveMessage): Removed.
  9940. (createHaveAllMessage): Removed.
  9941. (createHaveNoneMessage): Removed.
  9942. (createRejectMessage): Removed.
  9943. (createAllowedFastMessage): Removed.
  9944. * src/PieceMessage.h
  9945. (createRejectMessage): New function.
  9946. (PieceMessage): Rewritten.
  9947. (onChoked): New function.
  9948. (onCanceled): New function.
  9949. * src/PieceMessage.cc
  9950. (send): If invalidate is true then do nothing, just return.
  9951. (createRejectMessage): New function.
  9952. (onChoked): New function.
  9953. (onCanceled): New function.
  9954. * src/RequestMessage.h
  9955. (RequestMessage): Rewritten.
  9956. (onPush): New function.
  9957. (onAbortPiece): New function.
  9958. * src/RequestMessage.cc
  9959. (onPush): New function.
  9960. (onAbortPiece): New function.
  9961. Update fd_set when a socket is added or deleted in order to improve
  9962. performance:
  9963. * src/DownloadEngine.h
  9964. (rfdset): New variable.
  9965. (wfdset): New variable.
  9966. (updateFdSet): New function.
  9967. * src/DownloadEngine.cc
  9968. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  9969. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  9970. (waitData): Copy rfdset and wfdset.
  9971. (updateFdSet): New function.
  9972. (addSocket): Call updateFdSet.
  9973. (deleteSocket): Call updateFdSet.
  9974. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9975. To add the support for Metalink3.0 backward compatible links:
  9976. * src/Request.h
  9977. (SAFE_CHARS): Added '#'.
  9978. (METALINK_MARK): New definition.
  9979. * src/Request.cc
  9980. (parseUrl): Added the support for Metalink3.0 backward compatible
  9981. links.
  9982. etc
  9983. * src/PeerInteraction.cc
  9984. (MsgPushBack): Removed.
  9985. (sendMessages): Use STL copy and back_inserter.
  9986. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  9987. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  9988. * src/TorrentMan.h
  9989. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  9990. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9991. * src/SharedHandle.h: New class.
  9992. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  9993. * src/HttpResponseCommand.h
  9994. (HttpResponseCommand): Wrapped Socket.
  9995. * src/SocketCore.h
  9996. (operator==): New function.
  9997. (operator!=): New function.
  9998. (operator<): New function.
  9999. (getSockfd): New function.
  10000. (isOpen): New function.
  10001. (writeData): New function.
  10002. * src/SocketCore.cc
  10003. (operator==): New function.
  10004. (operator!=): New function.
  10005. (operator<): New function.
  10006. * src/AbstractCommand.h
  10007. (socket): Changed its type to SocketHandle.
  10008. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10009. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10010. (disableReadCheckSocket): New function.
  10011. (disableWriteCheckSocket): New function.
  10012. (readCheckTarget): Changed its type to SocketHandle.
  10013. (writeCheckTarget): Changed its type to SocketHandle.
  10014. (AbstractCommand): Replaced Socket with SocketHandle.
  10015. * src/AbstractCommand.cc
  10016. (AbstractCommand): Replaced Socket with SocketHandle.
  10017. (~AbstractCommand): Removed the deallocation for Socket object.
  10018. (disableReadCheckSocket): New function.
  10019. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10020. (disableWriteCheckSocket): New function.
  10021. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10022. * src/HttpDownloadCommand.cc
  10023. (DownloadCommand): Replaced Socket with SocketHandle.
  10024. * src/PeerAbstractCommand.h
  10025. (socket): Changed its type to SocketHandle.
  10026. (peer): Changed its type to PeerHandle.
  10027. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10028. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10029. (disableReadCheckSocket): New function.
  10030. (disableWriteCheckSocket): New function.
  10031. (readCheckTarget): Changed its type to SocketHandle.
  10032. (writeCheckTarget): Changed its type to SocketHandle.
  10033. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10034. Replaced Peer with PeerHandle.
  10035. * src/HttpRequestCommand.cc
  10036. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10037. Use disableReadCheckSocket.
  10038. * src/PeerInitiateConnectionCommand.h
  10039. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10040. * src/PeerChokeCommand.cc
  10041. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  10042. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  10043. (execute): Use PeerHandle.
  10044. * src/PeerConnection.h
  10045. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  10046. (socket): Changed its type to SocketHandle.
  10047. (PeerConnection): Replaced Socket with SocketHandle.
  10048. * src/PeerConnection.cc
  10049. (PeerConnection): Replaced Socket with SocketHandle.
  10050. * src/PeerInteractionCommand.h
  10051. (PeerInteractionCommand): Replaced socket with SocketHandle.
  10052. Replaced Peer with PeerHandle.
  10053. * src/PeerInteractionCommand.cc
  10054. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  10055. Replaced Peer with PeerHandle.
  10056. (executeInternal): Use disableWriteCheckSocket.
  10057. Use HandshakeMessageHandle.
  10058. (receiveMessages): Use PeerMessageHandle.
  10059. (prepareForNextPeer): Use PeerHandle.
  10060. * src/HttpProxyRequestCommand.h
  10061. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10062. * src/HttpResponseCommand.cc
  10063. (HttpResponseCommand): Replaced Socket with SocketHandle.
  10064. * src/TorrentMan.cc
  10065. (nullPeer): Added external reference.
  10066. (~TorrentMan): Removed the deallocation of the elements of peers.
  10067. (addPeer): Rewritten.
  10068. (isPeerAvailable): Use nullPeer.
  10069. (deleteOldpeers): Replaced with deleteErrorPeer.
  10070. (deleteErrorPeer): New function.
  10071. (getPeer): Use PeerHandle and nullPeer.
  10072. (hasMissingPiece): Replaced Peer with PeerHandle.
  10073. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10074. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10075. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10076. (getMissingPiece): Replaced Peer with PeerHandle.
  10077. * src/FtpNegotiateCommand.cc
  10078. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  10079. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  10080. (recvGreeting): Use disableWriteCheckSocket.
  10081. (recvPasv): Removed the allocation of Socket.
  10082. Use disableReadCheckSocket.
  10083. (sendRestPasv): Use disableWriteCheckSocket.
  10084. (recvRetr): Changed assertion.
  10085. * src/PeerInteraction.h
  10086. (SharedHandle.h): Included SharedHandle.h.
  10087. (PeerMessageHandle): New type definition.
  10088. (HandshakeMessageHandle): New type definition.
  10089. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  10090. (peer): Changed its type to PeerHandle.
  10091. (createHandshakeMessage): Replaced HandshakeMessage with
  10092. HandshakeMessageHandle.
  10093. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  10094. (PeerInteraction): Replaced Peer with PeerHandle.
  10095. Replaced Socket with SocketHandle.
  10096. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10097. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10098. (receiveHandshake): Replaced HandshakeMessage with
  10099. HandshakeMessageHandle.
  10100. * src/PeerInteraction.cc
  10101. (PeerInteraction): Replaced Peer with PeerHandle.
  10102. Replaced Socket with SocketHandle.
  10103. (~PeerInteraction): Removed the deallocation of the elements of
  10104. messageQueue.
  10105. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  10106. (isSendingMessageInProgress): Replaced PeerMessage with
  10107. PeerMessageHandle.
  10108. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  10109. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10110. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  10111. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  10112. (abortPiece): Use PeerMessageHandle.
  10113. (receiveHandshake): Replaced HandshakeMessage with
  10114. HandshakeMessageHandle. Removed try-catch block.
  10115. (createHandshakeMessage): Replaced HandshakeMessage with
  10116. HandshakeMessageHandle.
  10117. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10118. Removed try-catch block.
  10119. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  10120. * src/HttpProxyResponseCommand.cc
  10121. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10122. * src/FtpTunnelResponseCommand.h
  10123. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10124. * src/HttpConnection.cc
  10125. (HttpConnection): Replaced Socket with SocketHandle.
  10126. * src/PeerAbstractCommand.cc
  10127. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10128. (~PeerAbstractCommand): Removed the deallocation of socket.
  10129. Use disableReadCheckSocket, disableWriteCheckSocket.
  10130. (disableReadCheckSocket): New function.
  10131. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10132. (disableWriteCheckSocket): New function.
  10133. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10134. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  10135. * src/FtpTunnelRequestCommand.cc
  10136. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10137. (~FtpTunnelRequestCommand): Corrected indentation.
  10138. * src/DownloadCommand.h
  10139. (DownloadCommand): Replaced Socket with SocketHandle.
  10140. * src/PeerListenCommand.cc
  10141. (PeerListenCommand): Removed the initialization of socket.
  10142. (~PeerListenCommand): Removed the deallocation of socket.
  10143. (bindPort): Use SocketHandle.
  10144. (execute): Use SocketHandle and PeerHandle.
  10145. * src/FtpDowndloadCommand.cc
  10146. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10147. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  10148. * src/main.cc
  10149. (main): Corrected indentation.
  10150. * src/HttpInitiateConnectionCommand.cc
  10151. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  10152. (executeInternal): Removed the allocation of socket.
  10153. * src/HttpRequestCommand.h
  10154. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10155. * src/FtpNegotiationCommand.h
  10156. (dataSocket): Changed its type to SocketHandle.
  10157. (serverSocket): Changed its type to SocketHandle.
  10158. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  10159. * src/TorrentMan.h
  10160. (MAX_PEER_UPDATE): Removed.
  10161. (MAX_PEERS): New definition.
  10162. (Peers): The element is now of type PeerHandle.
  10163. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  10164. (getPeer): Replaced Peer with PeerHandle.
  10165. (deleteOldErrorPeers): Removed.
  10166. (deleteErrorPeer): New function.
  10167. (hasMissingPiece): Replaced Peer with PeerHandle.
  10168. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10169. (getMissingPiece): Replaced Peer with PeerHandle.
  10170. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10171. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10172. (addActivePeer): Replaced Peer with PeerHandle.
  10173. (deleteActivePeer): Replaced Peer with PeerHandle.
  10174. Added a check for the return value of find.
  10175. * src/FtpTunnelResponseCommand.cc
  10176. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10177. * src/FtpInitiateConnectionCommand.cc
  10178. (executeInternal): Removed the allocation of socket.
  10179. * src/DownloadEngine.h
  10180. (Sockets): An element is now of type SocketHandle.
  10181. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  10182. (CommandUuids): New type definition.
  10183. (rsockets): Changed its type to SockCmdMap.
  10184. (wsockets): Changed its type to SockCmdMap.
  10185. (addSocket): Rewritten.
  10186. (deleteSocket): Rewritten.
  10187. (addSocketForReadCheck): Rewritten.
  10188. (deleteSocketForReadCheck): Rewritten.
  10189. (addSocketForWriteCheck): Rewritten.
  10190. (deleteSocketForWriteCheck): Rewritten.
  10191. (PairFind): New template class.
  10192. * src/HttpDownloadCommand.h
  10193. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  10194. * src/FtpConnection.cc
  10195. (FtpConnection): Replaced Socket with SocketHandle.
  10196. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  10197. block.
  10198. * src/InitiateConnectionCommandFactory.cc
  10199. (DlAbortEx.h): Included DlAbortEx.h.
  10200. (createInitiateConnectionCommand): Throw exception if the protocol of
  10201. requested URI is not supported.
  10202. * src/Peer.cc
  10203. (nullPeer): Changed its type to PeerHandle.
  10204. (operator==): New function.
  10205. (operator!=): New function.
  10206. * src/Peer.h
  10207. (SharedHandle.h): Included SharedHandle.h.
  10208. (operator==): New function.
  10209. (operator!=): New function.
  10210. (Peer): Added the default constructor.
  10211. Use resetStatus() to initialize member variables.
  10212. (nullPeer): Removed.
  10213. * src/TrackerUpdateCommand.cc
  10214. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  10215. with MIN_PEERS.
  10216. * src/PeerListenCommand.h
  10217. (socket): Changed its type to SocketHandle.
  10218. * src/Command.h
  10219. (CommandUuid): New type definition.
  10220. (uuid): New variable.
  10221. (uuidGen): New variable.
  10222. (Command): Added the initialization of uuid.
  10223. (getUuid): New function.
  10224. * src/Socket.h
  10225. (Socket): Removed.
  10226. (SocketHandle): New type definition.
  10227. * src/DownloadEngine.h
  10228. (FindCommand): New function object.
  10229. (run): The portion of socket check was rewritten.
  10230. (SetDescriptor): New function object.
  10231. (AccumulateActiveCommandUuid): New function object.
  10232. (waitData): Rewritten.
  10233. (addSocket): Rewritten.
  10234. (deleteSocket): Rewritten.
  10235. (addSocketForReadCheck): Rewritten.
  10236. (addSocketForWriteCheck): Rewritten.
  10237. (deleteSocketForReadCheck): Rewritten.
  10238. (deleteSocketForWriteCheck): Rewritten.
  10239. * src/HttpProxyResponseCommand.h
  10240. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  10241. * src/HttpConnection.h
  10242. (socket): Changed its type to SocketHandle.
  10243. (HttpConnection): Replaced Socket with SocketHandle.
  10244. * src/PeerInitiateConnectionCommand.cc
  10245. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10246. (executeInternal): Removed the allocation of socket.
  10247. (prepareForNextPeer): Use PeerHandle.
  10248. * src/PeerMessage.h
  10249. (peer): Changed its type to PeerHandle.
  10250. (getPeer): Replaced Peer with PeerHandle.
  10251. (setPeer): Replaced Peer with PeerHandle.
  10252. * src/DownloadCommand.cc
  10253. (DownloadCommand): Replaced Socket with SocketHandle.
  10254. * src/FtpConnection.h
  10255. (socket): Changed its type to SocketHandle.
  10256. (FtpConnection): Replaced Socket with SocketHandle.
  10257. (sendPort); Replaced Socket with SocketHandle.
  10258. * src/FtpDowndloadCommand.h
  10259. (ctrlSocket): Changed its type to SocketHandle.
  10260. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10261. * src/HttpProxyRequestCommand.cc
  10262. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10263. * src/FtpTunnelRequestCommand.h
  10264. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10265. etc
  10266. * src/PeerChokeCommand.h
  10267. (setAllPeerChoked): Removed.
  10268. (setAllPeerResetDelta): Removed.
  10269. * src/PeerChokeCommand.cc
  10270. (setAllPeerChoked): Removed.
  10271. (ChokePeer): New function object.
  10272. (setAllPeerResetDelta): Removed.
  10273. (ResetDelta): New function object.
  10274. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  10275. (execute): Show download speed when the local node is a seeder.
  10276. setAllPeerChoked and setAllPeerResetDelta were rewritten
  10277. using STL.
  10278. * src/TrackerWatcherCommand.h
  10279. (MIN_PEERS): Removed.
  10280. * src/TorrentMan.cc
  10281. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  10282. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10283. To fix the bug that .aria2 file is not saved if downloading is stopped
  10284. by the errors:it results that aria2 can not resume downloading:
  10285. * src/main.cc
  10286. (normalDownload): Added the call to save().
  10287. (main): Added the deletion of the elements in 'reserved'.
  10288. To fix log:
  10289. * src/PeerInteraction.cc
  10290. (receiveHandshake): Fixed log.
  10291. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10292. To improve download performance in BitTorrent:
  10293. * src/TorrentMan.cc
  10294. (getPeer): Check the number of connections. Return nullPeer if
  10295. it is greater than MAX_PEER_UPDATE.
  10296. This code was originally here, but was removed in 0.5.1.
  10297. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10298. To improve the conditional compilation:
  10299. * src/MultiDiskWriter.h:
  10300. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10301. * src/MultiDiskWriter.cc:
  10302. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10303. * src/Util.h:
  10304. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10305. Added ENABLE_BITTORRENT around computeFastSet().
  10306. * src/Util.cc:
  10307. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10308. Added ENABLE_BITTORRENT around computeFastSet().
  10309. * src/messageDigest.h:
  10310. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  10311. * src/ShaVisitor.h:
  10312. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10313. * src/ShaVisitor.cc:
  10314. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10315. * src/main.cc:
  10316. Added ENABLE_BITTORRENT around includes and blocks related to
  10317. BitTorrent.
  10318. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  10319. digest support is not available.
  10320. * src/AbstractDiskWriter.h:
  10321. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10322. * src/AbstractDiskWriter.cc:
  10323. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10324. * src/MetalinkEntry.cc
  10325. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  10326. support is not available.
  10327. To add command-line options for Metalink:
  10328. * src/main.cc:
  10329. Added metalink-version, metalink-language, metalink-os,
  10330. follow-metalink.
  10331. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  10332. * src/main.cc: Use these definition.
  10333. * Release 0.6.0
  10334. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10335. To add Metalink support(http/ftp only):
  10336. * src/AbstractCommand.h
  10337. (tryReserved): New function.
  10338. * src/AbstractCommand.cc
  10339. (execute): Call tryReserved().
  10340. (tryReserved): New function.
  10341. * src/Request.h
  10342. (Requests): New type definition.
  10343. * src/SegmentMan.h
  10344. (reserved): New variable.
  10345. * src/Util.h
  10346. (fileChecksum): New function.
  10347. (toUpper): New function.
  10348. (toLower): New function.
  10349. * src/Util.cc
  10350. (messageDigest.h): Included.
  10351. (trim): Trim \r\n\t.
  10352. (fileChecksum): New function.
  10353. (toUpper): New function.
  10354. (toLower): New function.
  10355. * src/main.cc
  10356. (normalDownload): New function.
  10357. (main): Added 2 command-line options: metalink-file,
  10358. metalink-connection. Their usage has not been written yet.
  10359. * src/MetalinkProcessor.h: New class.
  10360. * src/Xml2MetalinkProcessor.h: New class.
  10361. * src/Xml2MetalinkProcessor.cc: New class.
  10362. * src/MetalinkEntry.h: New class.
  10363. * src/MetalinkEntry.cc: New class.
  10364. * src/MetalinkResource.h: New class.
  10365. * src/MetalinkResource.cc: New class.
  10366. To add md5 message digest checking:
  10367. * src/messageDigest.h: Rewritten.
  10368. * src/MultiDiskWriter.cc: Updated according to the changes in
  10369. messageDigest.h.
  10370. * src/ShaVisitor.cc: Updated according to the changes in
  10371. messageDigest.h.
  10372. * src/Util.cc: Updated according to the changes in messageDigest.h.
  10373. * src/AbstractDiskWriter.cc: Updated according to the changes in
  10374. messageDigest.h.
  10375. To fix a bug that causes segfault when the payload length in peer
  10376. message is less than 0:
  10377. * src/PeerConnection.cc:
  10378. (receiveMessage): Fixed the bug.
  10379. * src/PeerMessageUtil.cc
  10380. (checkLength): Throw an exception if length is less than or equals to
  10381. 0.
  10382. To add new interfaces to Base64 encoding/decoding:
  10383. * src/Base64.h
  10384. (part_encode): Changed the method signature.
  10385. (encode): New function(overload).
  10386. (decode): New function(overload).
  10387. * src/Base64.cc
  10388. (part_encode): Rewritten.
  10389. (encode): Rewritten.
  10390. (encode): New function(overload).
  10391. To prevent a peer to download same piece if there is an error in
  10392. checksum:
  10393. * src/PieceMessage.cc
  10394. (receivedAction): Call peerInteraction->abortPiece().
  10395. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10396. To fix the bug that causes same have message is sent many times to
  10397. a single peer.
  10398. * src/Time.cc
  10399. (isNewer): Use Util::difftv().
  10400. * src/Util.cc
  10401. (difftv): Added a cast to (long long int).
  10402. * src/TorrentMan.cc
  10403. (advertisePiece): Use push_front.
  10404. (getAdvertisedPieceIndexes): A performance improvement was made.
  10405. To fix the bug that sends tracker requests without a sleep interval
  10406. when the number of connections is less than 15.
  10407. * src/TrackerWatcherCommand.cc
  10408. (execute): Now the number of connections is not a factor to decide
  10409. whether or not a tracker request should be sent or not.
  10410. * src/Time.h
  10411. (setTimeInSec): New function.
  10412. * src/Time.cc
  10413. (setTimeInSec): New function.
  10414. etc.
  10415. * src/ChokeMessage.cc
  10416. (receivedAction): Removed peer->snubbing = false
  10417. * src/PeerConnection.h
  10418. (receiveHandshake): Updated doc.
  10419. * src/TorrentMan.h
  10420. (getAdvertisedPieceIndexes): Updated the method signature.
  10421. * src/TorrentMan.cc
  10422. (getAdvertisedPieceIndexes): Updated the method signature.
  10423. * src/Time.h
  10424. (getTimeInMicros): Added a cast to (long long int).
  10425. (getTimeInMillis): Added a cast to (long long int).
  10426. * Release 0.5.2
  10427. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10428. To make a listening socket non-block:
  10429. * src/SocketCore.h
  10430. (setNonBlockingMode): New function.
  10431. * src/SocketCore.cc
  10432. (setNonBlockingMode): New function.
  10433. (beginListen): Added a call to setNonBlockingMode().
  10434. (acceptConnection): Call setNonBlockingMode().
  10435. (setBlockingMode): Updated.
  10436. To handle tracker's NAT-checking:
  10437. * src/PeerConnection.cc
  10438. (receiveHandshake): 'msg' param is filled with received data and
  10439. its length is assigned to 'length' param, even if all handshake
  10440. message is not yet received.
  10441. * src/PeerInteractionCommand.cc
  10442. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  10443. a new peer connects to localhost.
  10444. A call to peerInteraction->sendHandshake() was removed because
  10445. it is called from peerInteraction->receiveHandshake(true).
  10446. * src/PeerInteraction.h
  10447. (quickReplied): New variable.
  10448. (receiveHandshake): Added an argument.
  10449. * src/PeerInteraction.cc
  10450. (PeerInteraction): Added the initialization of quickReplied.
  10451. (receiveHandshake): Send handshake message as soon as the info hash
  10452. in a handshake message from a peer is correct.
  10453. To change the random part of peer id and key parameter:
  10454. * src/TorrentMan.h
  10455. (key): New variable.
  10456. * src/TorrentMan.cc
  10457. (setupInternal1): Use Util::randomAlpha() to generate random part
  10458. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  10459. key is also generated by Util::randomAlpha() and it is now 8 character
  10460. long.
  10461. * src/Util.h
  10462. (randomAlpha): New function.
  10463. * src/Util.cc
  10464. (randomAlpha): New function.
  10465. * src/TrackerWatcherCommand.cc
  10466. (execute): In a tracker request: Use torrentMan->key as key parameter.
  10467. Added no_peer_id=1.
  10468. Set snubbing flag to false when a choke message is received from a
  10469. snubbed peer.
  10470. * src/ChokeMessage.cc
  10471. (receivedAction): Set snubbing flag to false.
  10472. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10473. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  10474. * src/SimpleLogger.h (writeHeader): New function.
  10475. * src/SimpleLogger.cc (writeHeader): New function.
  10476. (writeLog): Fixed the bug that causes segfaults if exception message
  10477. contains an unescaped "%" character.
  10478. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  10479. when a tracker request fails.
  10480. * src/Request.cc (parseUrl): Query string is now handled properly.
  10481. * Release 0.5.1
  10482. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10483. To add Time class which represents a specific instant in time and
  10484. its precision is microseconds. Time checking procedures were rewritten
  10485. using this object.
  10486. * src/Time.h: New class.
  10487. * src/Time.cc: New class.
  10488. * src/AbstractCommand.h
  10489. (updateCheckPoint): Removed.
  10490. (isTimeoutDetected): Removed.
  10491. (checkPoint): Changed the type to Time.
  10492. (timeout): New variable.
  10493. (setTimeout): New function.
  10494. * src/AbstractCommand.cc
  10495. (AbstractCommand): Removed the initialization of checkPoint.
  10496. Added the initialization of timeout.
  10497. (updateCheckPoint): Removed.
  10498. (isTimeoutDetected): Removed.
  10499. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10500. * src/PeerChokeCommand.h
  10501. (checkPoint): Changed the type to Time.
  10502. * src/PeerChokeCommand.cc
  10503. (PeerChokeCommand): Removed the initialization of checkPoint.
  10504. (execute): Rewritten using Time object.
  10505. * src/TrackerWatcherCommand.h
  10506. (checkPoint): Changed the type to Time.
  10507. * src/TrackerWatcherCommand.cc
  10508. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  10509. (execute): Rewritten.
  10510. * src/ConsoleDownloadEngine.h
  10511. (cp): Changed the type to Time.
  10512. (startup): Changed the type to Time.
  10513. * src/ConsoleDownloadEngine.cc
  10514. (initStatistics): Use cp.reset(), startup.reset().
  10515. (calculateStatistics): Rewritten using Time object.
  10516. * src/PeerAbstractCommand.h
  10517. (updateCheckPoint): Removed.
  10518. (isTimeoutDetected): Removed.
  10519. (checkPoint): Changed the type to Time.
  10520. * src/PeerAbstractCommand.cc
  10521. (PeerAbstractCommand): Removed the initialization of checkPoint.
  10522. (updateCheckPoint): Removed.
  10523. (isTimeoutDetected): Removed.
  10524. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10525. * src/PeerInteractionCommand.cc
  10526. (PeerInteractionCommand): Removed the initializations of struct
  10527. timeval variables.
  10528. * src/PeerInteractionCommand.h
  10529. (keepAliveCheckPoint): Changed the type to Time.
  10530. (chokeCheckPoint): Changed the type to Time.
  10531. (freqCheckPoint): Changed the type to Time.
  10532. (haveCheckTime): Changed the type to Time.
  10533. * src/PeerInteractionCommand.cc
  10534. (executeInternal): Rewritten using Time object.
  10535. (detectMessageFlooding): Rewritten using Time object.
  10536. (checkLongTimePeerChoking): Rewritten using Time object.
  10537. (sendKeepAlive): Rewritten using Time object.
  10538. (checkHave): Rewritten using Time object.
  10539. * src/SleepCommand.h
  10540. (checkPoint): Changed the type to Time.
  10541. * src/SleepCommand.cc
  10542. (SleepCommand): Removed the initialization of checkPoint.
  10543. (execute): Rewritten using Time object.
  10544. * src/TorrentAutoSaveCommand.h
  10545. (checkPoint): Changed the type to Time.
  10546. * src/TorrentAutoSaveCommand.cc
  10547. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  10548. (execute): Rewritten.
  10549. * src/DownloadCommand.h
  10550. (sw): Changed the type to Time.
  10551. * src/DownloadCommand.cc
  10552. (DownloadCommand): Removed the initialization of sw.
  10553. (executeInternal): Rewritten.
  10554. * src/RequestSlot.h
  10555. (dispatchedTime): Changed the type to Time.
  10556. * src/RequestSlot.cc
  10557. (RequestSlot): Removed the call to setDispatchedTime().
  10558. (setDispatchedTime): Rewirtten.
  10559. (isTimeout): Rewritten.
  10560. (getLatencyInMillis): Rewritten.
  10561. * src/TorrentDownloadEngine.h
  10562. (cp): Changed the type to Time[2].
  10563. (startup): Changed the type to Time.
  10564. * src/TorrentDownloadEngine.cc
  10565. (initStatistics): Rewritten.
  10566. (calculateStatistics): Rewritten.
  10567. * src/DownloadEngine.cc
  10568. (run): Rewritten.
  10569. To detect all attempts to connect to the tracker are failed:
  10570. * src/AbstractCommand.cc
  10571. (execute): Increment e->segmentMan->errors if a command aborted.
  10572. * src/SegmentMan.h
  10573. (errors): New variable.
  10574. * src/SegmentMan.cc
  10575. (SegmentMan): Added the initialization of errors.
  10576. (init): Added the initialization of errors.
  10577. * src/TrackerWatcherCommand.cc
  10578. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  10579. request was failed.
  10580. To handle snubbed peers:
  10581. * src/PeerChokeCommand.cc
  10582. (optUnchokingPeer): Snubbed peers don't get unchoked.
  10583. (execute): Snubbed peers don't get unchoked.
  10584. * src/PeerInteraction.h
  10585. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  10586. * src/PeerInteraction.cc
  10587. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  10588. back the requested 16k block in 60 seconds.
  10589. * src/PieceMessage.cc
  10590. (receivedAction): A peer's snubbed state is cleard if it sends
  10591. the requested 16k block in 60 seconds.
  10592. * src/Peer.h
  10593. (snubbing): New variable.
  10594. * src/Peer.cc
  10595. (resetStatus): Added snubbed = false.
  10596. To fix the bug that causes have message is not sent:
  10597. * src/PeerInteractionCommand.cc
  10598. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  10599. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  10600. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  10601. * src/TorrentMan.h
  10602. (HaveEntry): New class.
  10603. (advertisePiece): Rewritten.
  10604. (getAdvertisedPieceIndexes): Rewritten.
  10605. (Haves): Changed the type.
  10606. (getAdvertisedPieceIndexes): Added an argument.
  10607. Others:
  10608. * src/TorrentMan.h
  10609. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  10610. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  10611. * src/TorrentMan.cc
  10612. (getPeer): Don't check the number of connections here.
  10613. (setupInternal1): Changed peerId.
  10614. * src/PeerInteractionCommand.h
  10615. (KEEP_ALIVE_INTERVAL): New definition.
  10616. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  10617. * src/main.cc
  10618. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  10619. * src/DownloadEngine.h: Removed unnecessary header includes.
  10620. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10621. To fix the bug that causes segfaults if a tracker returns a zero-length
  10622. list as "peers":
  10623. * src/TrackerUpdateCommand.cc
  10624. (execute): Added a check to see wether the type of peers is Data*.
  10625. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10626. * Release 0.5.0
  10627. To fix compile issue with gcc3:
  10628. * src/CancelMessage.h
  10629. (ID): Renamed as ID_t
  10630. (ID_t): New enum.
  10631. * src/RejectMessage.h
  10632. (ID): Renamed as ID_t
  10633. (ID_t): New enum.
  10634. * src/SuggestPieceMessage.h
  10635. (ID): Renamed as ID_t
  10636. (ID_t): New enum.
  10637. * src/AllowedFastMessage.h
  10638. (ID): Renamed as ID_t
  10639. (ID_t): New enum.
  10640. * src/PortMessage.h
  10641. (ID): Renamed as ID_t
  10642. (ID_t): New enum.
  10643. * src/HaveNoneMessage.h
  10644. (ID): Renamed as ID_t
  10645. (ID_t): New enum.
  10646. * src/KeepAliveMessage.h
  10647. (ID): Renamed as ID_t
  10648. (ID_t): New enum.
  10649. * src/HaveAllMessage.h
  10650. (ID): Renamed as ID_t
  10651. (ID_t): New enum.
  10652. * src/UnchokeMessage.h
  10653. (ID): Renamed as ID_t
  10654. (ID_t): New enum.
  10655. * src/BitfieldMessage.h
  10656. (ID): Renamed as ID_t
  10657. (ID_t): New enum.
  10658. * src/PieceMessage.h
  10659. (ID): Renamed as ID_t
  10660. (ID_t): New enum.
  10661. * src/RequestMessage.h
  10662. (ID): Renamed as ID_t
  10663. (ID_t): New enum.
  10664. * src/NotInterestedMessage.h
  10665. (ID): Renamed as ID_t
  10666. (ID_t): New enum.
  10667. * src/ChokeMessage.h
  10668. (ID): Renamed as ID_t
  10669. (ID_t): New enum.
  10670. * src/InterestedMessage.h
  10671. (ID): Renamed as ID_t
  10672. (ID_t): New enum.
  10673. * src/HaveMessage.h
  10674. (ID): Renamed as ID_t
  10675. (ID_t): New enum.
  10676. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10677. * src/PeerAbstractCommand.h
  10678. (beforeSocketCheck): Removed.
  10679. * src/PeerAbstractCommand.cc
  10680. Modified in order to call executeInternal() even if socket check
  10681. and upload limit check fail.
  10682. * src/PeerInteractionCommand.h
  10683. (keepAlive): Removed.
  10684. (sendKeepAlive): New function.
  10685. (checkHave): New function.
  10686. (beforeSocketCheck): Removed.
  10687. * src/PeerInteractionCommand.cc
  10688. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  10689. calls to checkHave() and sendKeepAlive().
  10690. (keepAlive): Renamed to sendKeepAlive().
  10691. (sendKeepAlive): New function.
  10692. (beforeSocketCheck): Removed.
  10693. (checkHave): New function.
  10694. * src/BitfieldMan.cc
  10695. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  10696. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  10697. 0.
  10698. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  10699. * src/TorrentMan.h
  10700. (UsedPieces): Removed.
  10701. (Pieces): New type definition.
  10702. * src/Piece.h: Updated doc.
  10703. * src/Peer.h
  10704. (totalLength): Removed.
  10705. * src/Peer.cc
  10706. (updateLatency): Fixed the latency calculation.
  10707. * src/TorrentMan.cc
  10708. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  10709. than or equal to MAX_PEER_LIST_SIZE.
  10710. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  10711. then return false.
  10712. (deleteOldErrorPeers): Rewritten.
  10713. (deleteUsedPiece): Fixed the miss use of STL remove.
  10714. * src/PeerInteraction.h
  10715. (Pieces): Removed.
  10716. (deleteTimeoutRequestSlot): Removed.
  10717. (deleteCompletedRequestSlot): Removed.
  10718. (checkRequestSlot): New function.
  10719. * src/PeerInteraction.cc
  10720. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  10721. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  10722. (checkRequestSlot): New function.
  10723. * src/DownloadEngine.cc
  10724. (run): Clear activeSockets before calling waitData().
  10725. (waitData): Removed a call to activeSockets.clear().
  10726. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10727. To attempt to handle EINTR:
  10728. * src/SocketCore.cc
  10729. (isReadable): Added EINTR handling.
  10730. (isWritable): Added EINTR handling.
  10731. To improve the performance:
  10732. * src/AbstractCommand.cc
  10733. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10734. * src/PeerInteractionCommand.h
  10735. (receiveMessage): Renamed as receiveMessages().
  10736. (receiveMessages): New function.
  10737. * src/PeerInteractionCommand.cc
  10738. (executeInternal): receiveMessage loop is moved to new receiveMessages
  10739. () function. detectMessageFlooding() is moved here.
  10740. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  10741. (). The flooding detection for have message is comment out.
  10742. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  10743. Util::difftv().
  10744. (receiveMessage): Renamed as receiveMessages().
  10745. (receiveMessages): New function.
  10746. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  10747. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  10748. * src/SleepCommand.cc
  10749. (execute): Use Util::difftvsec() instead of Util::difftv().
  10750. * src/BitfieldMan.h
  10751. (getNthBitIndex): New function.
  10752. (hasMissingPiece): New function.
  10753. (getAllMissingIndexes): New function.
  10754. * src/BitfieldMan.cc
  10755. (countSetBit): Rewritten.
  10756. (getNthBitIndex): New function.
  10757. (getMissingIndexRandomly): Rewritten.
  10758. (hasMissingPiece): New function.
  10759. (getAllMissingIndexes): New function.
  10760. * src/TorrentMan.cc
  10761. (hasMissingPiece): New function.
  10762. (deleteUsedPiece): Rewritten using STL.
  10763. * src/PeerInteraction.cc
  10764. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  10765. is a little bit faster then TorrentMan::getMissingPieceIndex().
  10766. (addRequests): Updated the number of pending requests.
  10767. * src/PeerAbstractCommand.cc
  10768. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10769. (execute): Returns true if TorrentMan::isHalt() is true.
  10770. Corrected the condition of upload limit checking.
  10771. * src/Util.h
  10772. (countBit): New function.
  10773. * src/Util.cc
  10774. (nbits): New variable.
  10775. (countBit): New function.
  10776. * src/DownloadEngine.h
  10777. (SockCmdMap): New type definition.
  10778. (waitData): Added an argument.
  10779. (addSocket): Added an argument.
  10780. (addSocketForReadCheck): Added an argument.
  10781. (addSocketForWriteCheck): Added an argument.
  10782. * src/DownloadEngine.cc
  10783. (run): Executes only commands whose sockets are ready to read or write.
  10784. All commands are executed in every 1 second.
  10785. (waitData): Calls select() again if it returned
  10786. EINTR.
  10787. (addSocket): Saves socket and command object pair to the map.
  10788. (deleteSocket): Deletes socket and command object pair from the map.
  10789. (addSocketForReadCheck): Added an argument.
  10790. (addSocketForWriteCheck): Added an argument.
  10791. * src/DownloadCommand.cc
  10792. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  10793. To send "event=stopped" to the tracker when the application finishes:
  10794. * src/PeerChokeCommand.h
  10795. (checkPoint): New variable.
  10796. * src/PeerChokeCommand.cc
  10797. (PeerChokeCommand): Added the initialization of checkPoint.
  10798. (execute): The interval check is now done by checkPoint, not
  10799. SleepCommand. Return true if TorrentMan::isHalt() is true.
  10800. * src/TorrentMan.h
  10801. (halt): New function.
  10802. (hasMissingPiece): New function.
  10803. (isHalt): New function.
  10804. (setHalt): New function.
  10805. * src/TorrentMan.cc
  10806. (TorrentMan): Added the initialization of halt.
  10807. * src/TorrentAutoSaveCommand.h
  10808. (checkPoint): New variable.
  10809. * src/PeerListenCommand.cc
  10810. (execute): Returns true if TorrentMan::isHalt() is true.
  10811. * src/main.cc
  10812. (setSignalHander): Added flags argument.
  10813. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  10814. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  10815. Removed printDownloadAbortMessage() after torrent downloading loop.
  10816. * src/TorrentAutoSaveCommand.cc
  10817. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  10818. (execute): Returns true if TorrentMan::isHalt() is true.
  10819. The interval check is now done by checkPoint, not SleepCommand.
  10820. * src/TrackerWatcherCommand.cc
  10821. (execute): If TorrentMan::isHalt(), then create a tracker request with
  10822. event=stopped.
  10823. * src/TrackerUpdateCommand.cc
  10824. (prepareForRetry): Do not use SleepCommand here.
  10825. (execute): Returns true if TorrentMan::isHalt() is true.
  10826. Others:
  10827. * src/TorrentMan.cc
  10828. (getMissingPieceIndex): Updated log message.
  10829. * src/PeerInteraction.cc
  10830. (createPeerMessag): Updated log message.
  10831. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10832. To add the ability to download several pieces in mix in a command and
  10833. increase the number of request slots according to request-cancel
  10834. latency:
  10835. * src/PeerInteractionCommand.cc
  10836. (executeInternal): The number of messages to be received at a time
  10837. is increased from 10 to 50.
  10838. * src/LogFactory
  10839. (getInstance): Added NullLogger.
  10840. * src/NullLogger.h: New class.
  10841. * src/BitfieldMan.h
  10842. (getMissingIndex): New function.
  10843. * src/BitfieldMan.cc
  10844. (getMissingIndex): New function.
  10845. * src/TorrentMan.h
  10846. (checkOutPiece): New function.
  10847. (getMissingPieceIndex): New function.
  10848. (getMissingFastPieceIndex): New function.
  10849. (getMissingFastPiece): New function.
  10850. * src/TorrentMan.cc
  10851. (updatePiece): Rewritten using STL.
  10852. (syncPiece): Rewritten using STL.
  10853. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  10854. checkOutPiece().
  10855. (getMissingPieceIndex): New function.
  10856. (getMissingFastPieceIndex): New function.
  10857. (getMissingFastPiece): New function.
  10858. (checkOutPiece): New function.
  10859. * src/PeerInteraction.h
  10860. (Pieces): New type definition.
  10861. (piece): Removed.
  10862. (pieces): New variable.
  10863. (getNewPieceAndSendInterest): Added the "piece" argument.
  10864. (abortPiece): Added the "piece" argument.
  10865. (abortAllPieces): New function.
  10866. (isInRequestSlot): New function.
  10867. (hasDownloadPiece): Added the "index" argument.
  10868. (setDownloadPiece): Removed.
  10869. (getDownloadPiece): Added the "index" argument.
  10870. (updatePiece): New function.
  10871. (createRequestMessage): Added the "index" argument.
  10872. * src/PeerInteraction.cc
  10873. (onChoked): Rewritten.
  10874. (abortPiece): Rewirtten.
  10875. (abortAllPieces): New function.
  10876. (deleteTimeoutRequestSlot): Rewritten.
  10877. Clarified code a little bit.
  10878. (deleteCompletedRequestSlot): Rewritten.
  10879. (isInRequestSlot): New function.
  10880. (syncPiece): Rewritten.
  10881. (updatePiece): New function.
  10882. (getNewPieceAndSendInterest): Rewritten.
  10883. (addRequests): Rewritten.
  10884. (getDownloadPiece): Rewritten.
  10885. (hasDownloadPiece): Rewritten.
  10886. (createRequestMessage): Added the "index" argument.
  10887. * src/common.h
  10888. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  10889. (DIV_FLOOR): New definition.
  10890. * src/PieceMessage.cc
  10891. (receivedAction): Update request-piece latency here.
  10892. * src/RequestSlot.h
  10893. (getLatencyInMillis): New function.
  10894. * src/RequestSlot.cc
  10895. (isTimeout): Rewritten using getLatencyInMillis.
  10896. (getLatencyInMillis): New function.
  10897. * src/Piece.h
  10898. (operator==): New function.
  10899. (getMissingBlockIndex): New function.
  10900. * src/Piece.cc
  10901. (operator==): New function.
  10902. (getMissingBlockIndex): New function.
  10903. * src/Peer.h
  10904. (DEFAULT_LATENCY): New definition.
  10905. (latency): New variable.
  10906. (updateLatency): New function.
  10907. (getLatency): New function.
  10908. * src/Peer.cc
  10909. (resetStatus): Reset latecy.
  10910. (updateLatency): New function.
  10911. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10912. * src/SocketCore.cc
  10913. (isReadable): Added secure to the condition.
  10914. * src/HttpConnection.cc
  10915. (receiveResponse): Fixed a bug that causes no response header
  10916. exception.
  10917. * src/Peer.h
  10918. (getFastSet): Fixed the return value type.
  10919. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10920. To remove a wait from download loop:
  10921. * src/DownloadEngine.cc
  10922. (run): Comment out shortSleep.
  10923. To rewrite the message handling:
  10924. * src/SimplePeerMessage.h: New class.
  10925. * src/SimplePeerMessage.cc: New class.
  10926. * src/CancelMessage.h: Derived from SimplePeerMessage.
  10927. (msg): New variable.
  10928. (create): New function.
  10929. (send): Removed.
  10930. (getMessage): New function.
  10931. (getMessageLength): New function.
  10932. * src/CancelMessage.cc
  10933. (create): New function.
  10934. (receivedAction): Replaced deleteRequestMessageInQueue with
  10935. rejectPieceMessageInQueue.
  10936. (send): Removed.
  10937. (getMessage): New function.
  10938. (getMessageLength): New function.
  10939. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  10940. (msg): New variable.
  10941. (msgLength): New variable.
  10942. (~BitfieldMessage): Deleted msg.
  10943. (send): Removed.
  10944. (getMessage): New function.
  10945. (getMessageLength): New function.
  10946. * src/BitfieldMessage.cc
  10947. (create): New function.
  10948. (send): Removed.
  10949. (getMessage): New function.
  10950. (getMessageLength): New function.
  10951. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  10952. (msg): New variable.
  10953. (sendPredicate): New function.
  10954. (onSendComplete): New function.
  10955. (send): Removed.
  10956. (getMessage): New function.
  10957. (getMessageLength): New function.
  10958. (create): New function.
  10959. * src/ChokeMessage.cc
  10960. (create): New function.
  10961. (send): Removed.
  10962. (sendPredicate): New function.
  10963. (getMessage): New function.
  10964. (getMessageLength): New function.
  10965. (onSendComplete): New function.
  10966. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  10967. (msg): New variable.
  10968. (send): Removed.
  10969. (getMessage): New function.
  10970. (getMessageLength): New function.
  10971. * src/KeepAliveMessage.cc
  10972. (send): Removed.
  10973. (getMessage): New function.
  10974. (getMessageLength): New function.
  10975. * src/PortMessage.h
  10976. (create): New function.
  10977. (receivedAction): Updated log message.
  10978. * src/PortMessage.cc: New file.
  10979. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  10980. (msg): New variable.
  10981. (sendPredicate): New function.
  10982. (onSendComplete): New function.
  10983. (create): New function.
  10984. (send): Removed.
  10985. (getMessage): New function.
  10986. (getMessageLength): New function.
  10987. * src/UnchokeMessage.cc
  10988. (create): New function.
  10989. (send): Removed.
  10990. (sendPredicate): New function.
  10991. (getMessage): New function.
  10992. (getMessageLength): New function.
  10993. (onSendComplete): New function.
  10994. * src/PieceMessage.h
  10995. (leftPieceDataLength): Removed.
  10996. (leftDataLength): New variable.
  10997. (headerSend): New variable.
  10998. (pendingCount): New variable.
  10999. (msgHeader): New variable.
  11000. (sendPieceData): New function.
  11001. (incrementPendingCount): New function.
  11002. (isPendingCountMax): New function.
  11003. (create): New function.
  11004. (getMessageHeader): New function.
  11005. (getMessageHeaderLength): New function.
  11006. * src/PieceMessage.cc
  11007. (create): New function.
  11008. (getMessageHeader): New function.
  11009. (getMessageHeaderLength): New function.
  11010. (send): Rewritten.
  11011. (sendPieceData): New function.
  11012. * src/HaveMessage.h: Derived from SimplePeerMessage.
  11013. (msg): New variable.
  11014. (create): New function.
  11015. (getMessage): New function.
  11016. (getMessageLength): New function.
  11017. * src/HaveMessage.cc
  11018. (create): New function.
  11019. (send): Removed.
  11020. (sendPieceData): New function.
  11021. (getMessage): New function.
  11022. (getMessageLength): New function.
  11023. * src/RequestMessage.h: Derived from SimplePeerMessage.
  11024. (msg): New variable.
  11025. (create): New function.
  11026. (send): Removed.
  11027. (getMessage): New function.
  11028. (getMessageLength): New function.
  11029. * src/RequestMessage.cc
  11030. (create): New function.
  11031. (receivedAction): Added the handling of fast extension.
  11032. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  11033. (send): Removed.
  11034. (getMessage): New function.
  11035. (getMessageLength): New function.
  11036. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  11037. (msg): New variable.
  11038. (sendPredicate): New function.
  11039. (onSendComplete): New function.
  11040. (create): New function.
  11041. (getMessage): New function.
  11042. (getMessageLength): New function.
  11043. * src/InterestedMessage.cc
  11044. (create): New function.
  11045. (send): Removed.
  11046. (sendPieceData): New function.
  11047. (getMessage): New function.
  11048. (getMessageLength): New function.
  11049. (onSendComplete): New function.
  11050. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  11051. (msg): New variable.
  11052. (sendPieceData): New function.
  11053. (onSendComplete): New function.
  11054. (create): New function.
  11055. (send): Removed.
  11056. (getMessage): New function.
  11057. (getMessageLength): New function.
  11058. * src/NotInterestedMessage.cc
  11059. (create): New function.
  11060. (send): Removed.
  11061. (sendPredicate): New function.
  11062. (getMessage): New function.
  11063. (getMessageLength): New function.
  11064. (onSendComplete): New function.
  11065. * src/AllowedFastMessage.h: New class.
  11066. * src/AllowedFastMessage.cc: New class.
  11067. * src/RejectMessage.h: New class.
  11068. * src/RejectMessage.cc: New class.
  11069. * src/SuggestPieceMessage.h: New class.
  11070. * src/SuggestPieceMessage.cc: New class.
  11071. * src/HaveAllMessage.h: New class.
  11072. * src/HaveAllMessage.cc: New class.
  11073. * src/HaveNoneMessage.h: New class.
  11074. * src/HaveNoneMessage.cc: New class.
  11075. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  11076. (msg): New variable.
  11077. (reserved): New variable.
  11078. (create): New function.
  11079. (getId): New function.
  11080. (receivedAction): New function.
  11081. (getMessage): New function.
  11082. (getMessageLength): New function.
  11083. (isFastExtensionSupported): New function.
  11084. * src/HandshakeMessage.cc
  11085. (HandshakeMessage): Moved here from HandshakeMessage.h.
  11086. (create): New function.
  11087. (getMessage): New function.
  11088. (getMessageLength): New function.
  11089. (toString): Added the output of reserved field.
  11090. (check): Added const qualifier.
  11091. (isFastExtensionSupported): New function.
  11092. * src/PeerMessageUtil.h
  11093. (createChokeMessage): Removed.
  11094. (createUnchokeMessage): Removed.
  11095. (createInterestedMessage): Removed.
  11096. (createNotInterestedMessage): Removed.
  11097. (createHaveMessage): Removed.
  11098. (createBitfieldMessage): Removed.
  11099. (createRequestMessage): Removed.
  11100. (createCancelMessage): Removed.
  11101. (createPieceMessage): Removed.
  11102. (createPortMessage): Removed.
  11103. (createChokeMessage): Removed.
  11104. (createUnchokeMessage): Removed.
  11105. (createInterestedMessage): Removed.
  11106. (createNotInterestedMessage): Removed.
  11107. (createHaveMessage): Removed.
  11108. (createBitfieldMessage): Removed.
  11109. (createRequestMessage): Removed.
  11110. (createCancelMessage): Removed.
  11111. (createPieceMessage): Removed.
  11112. (createKeepAliveMessage): Removed.
  11113. (createHandshakeMessage): Removed.
  11114. (setIntParam): New function.
  11115. (createPeerMessageString): New function.
  11116. * src/PeerMessageUtil.cc
  11117. (createChokeMessage): Removed.
  11118. (createUnchokeMessage): Removed.
  11119. (createInterestedMessage): Removed.
  11120. (createNotInterestedMessage): Removed.
  11121. (createHaveMessage): Removed.
  11122. (createBitfieldMessage): Removed.
  11123. (createRequestMessage): Removed.
  11124. (createCancelMessage): Removed.
  11125. (createPieceMessage): Removed.
  11126. (createPortMessage): Removed.
  11127. (createRequestMessage): Removed.
  11128. (createCancelMessage): Removed.
  11129. (createPieceMessage): Removed.
  11130. (createHaveMessage): Removed.
  11131. (createChokeMessage): Removed.
  11132. (createUnchokeMessage): Removed.
  11133. (createInterestedMessage): Removed.
  11134. (createNotInterestedMessage): Removed.
  11135. (createBitfieldMessage): Removed.
  11136. (createKeepAliveMessage): Removed.
  11137. (createHandshakeMessage): Removed.
  11138. (setIntParam): New function.
  11139. (createPeerMessageString): New function.
  11140. * src/PeerConnection.h
  11141. (peer): Removed.
  11142. (torrentMan): Removed.
  11143. (createNLengthMessage): Removed.
  11144. (setIntParam): Removed.
  11145. (writeOutgoingMessageLog): Removed all overloaded functions.
  11146. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11147. (sendMessage): New function.
  11148. (sendHandshake): Removed.
  11149. (sendKeepAlive): Removed.
  11150. (sendChoke): Removed.
  11151. (sendUnchoke): Removed.
  11152. (sendInterested): Removed.
  11153. (sendNotInterested): Removed.
  11154. (sendHave): Removed.
  11155. (sendBitfield): Removed.
  11156. (sendRequest): Removed.
  11157. (sendPiece): Removed.
  11158. (sendPieceHeader): Removed.
  11159. (sendPieceData): Removed.
  11160. (sendCancel): Removed.
  11161. (getPeer): Removed.
  11162. * src/PeerConnection.cc
  11163. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11164. (sendHandshake): Removed.
  11165. (sendKeepAlive): Removed.
  11166. (createNLengthMessage): Removed.
  11167. (setIntParam): Removed.
  11168. (writeOutgoingMessageLog): Removed all overloaded functions.
  11169. (sendChoke): Removed.
  11170. (sendUnchoke): Removed.
  11171. (sendInterested): Removed.
  11172. (sendNotInterested): Removed.
  11173. (sendHave): Removed.
  11174. (sendBitfield): Removed.
  11175. (sendRequest): Removed.
  11176. (sendPiece): Removed.
  11177. (sendPieceHeader): Removed.
  11178. (sendPieceData): Removed.
  11179. (sendMessage): New function.
  11180. (sendCancel): Removed.
  11181. * src/PeerInteractionCommand.cc
  11182. (PeerInteractionCommand): Call setUploadLimit.
  11183. (executeInternal): Call setUploadLimit.
  11184. Added the handling of "inProgress" state of handshake message.
  11185. Call sendBitfield() or sendAllowdFast() instead of deprecated
  11186. sendNow().
  11187. (keepAlive): Call addMessage and sendMessage instead of deprecated
  11188. sendNow().
  11189. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  11190. * src/TorrentMan.h
  11191. (PEER_ID_LENGTH): New definition.
  11192. (hasAllPieces): New function.
  11193. * src/TorrentMan.cc
  11194. (getMissingPiece): Added the handling of fast extension.
  11195. (cancelPiece): Call updatePiece().
  11196. (hasAllPieces): New function.
  11197. * src/PeerInteraction.h
  11198. (fastSet): New variable.
  11199. (getNewPieceAndSendInterest): Changed the return type to void.
  11200. (send): Renamed as sendMessages.
  11201. (deleteAllRequestSlot): Removed.
  11202. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11203. (cancelAllRequest): Removed all overloaded functions.
  11204. (deleteAllRequestSlot): Removed.
  11205. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11206. (rejectPieceMessageInQueue): New function.
  11207. (rejectAllPieceMessageInQueue): New function.
  11208. (onChoked): New function.
  11209. (isSendingMessageInProgress): New function.
  11210. (getCorrespondingRequestSlot): Changed its arguments.
  11211. (isInFastSet): New function.
  11212. (addFastSetIndex): New function.
  11213. (addRequests): New function.
  11214. (sendNow): Removed.
  11215. (trySendNow): Removed.
  11216. (sendBitfield): New function.
  11217. (sendAllowdFast): New function.
  11218. (createHaveAllMessage): New function.
  11219. (createHaveNoneMessage): New function.
  11220. (createRejectMessage): New function.
  11221. (createAllowedFastMessage): New function.
  11222. * src/PeerInteraction.cc
  11223. (send): Renamed as sendMessages.
  11224. (sendMessages): New function.
  11225. (MsgPushBack): New class.
  11226. (isSendingMessageInProgress): New function.
  11227. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11228. (rejectAllPieceMessageInQueue): New function.
  11229. Added the handling of fast extension.
  11230. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11231. (rejectPieceMessageInQueue): New function.
  11232. Added the handling of fast extension.
  11233. (deleteRequestSlot): Replaced for loop with std::find.
  11234. (onChoked): New function.
  11235. (deleteAllRequestSlot): Removed.
  11236. (abortPiece): Rewirtten.
  11237. (deleteTimeoutRequestSlot): Updated log messages.
  11238. (getCorrespondingRequestSlot): Changed its arguments.
  11239. (cancelAllRequest): Removed all overloaded functions.
  11240. (receiveHandshake): Added the check to see whether an incoming peer
  11241. supports fast extension.
  11242. (createHandshakeMessage): Use HandshakeMessage::create instead of
  11243. PeerMessageUtil.
  11244. (createPeerMessage): Use create() of each message class instead of
  11245. PeerMessageUtil.
  11246. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  11247. AllowedFastMessage were added.
  11248. (getNewPieceAndSendInterest): Changed its return value type to void.
  11249. Added the handling of fast extension.
  11250. (addRequests): New function.
  11251. (sendNow): Removed.
  11252. (sendHandshake): Rewritten.
  11253. (trySendNow): Removed.
  11254. (sendBitfield): New function.
  11255. (sendAllowdFast): New function.
  11256. (isInFastSet): New function.
  11257. (addFastSetIndex): New function.
  11258. (createRequestMessage): Use RequestMessage::create instead of
  11259. PeerMessageUtil.
  11260. (createCancelMessage): Use CancelMessage::create instead of
  11261. PeerMessageUtil.
  11262. (createPieceMessage): Use PieceMessage::create instead of
  11263. PeerMessageUtil.
  11264. (createHaveMessage): Use HaveMessage::create instead of
  11265. PeerMessageUtil.
  11266. (createChokeMessage): Use ChokeMessage::create instead of
  11267. PeerMessageUtil.
  11268. (createUnchokeMessage): Use UnchokeMessage::create instead of
  11269. PeerMessageUtil.
  11270. (createInterestedMessage): Use InterestedMessage::create instead of
  11271. PeerMessageUtil.
  11272. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  11273. of PeerMessageUtil.
  11274. (createBitfieldMessage): Use BitfieldMessage::create instead of
  11275. PeerMessageUtil.
  11276. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  11277. PeerMessageUtil.
  11278. (createHaveAllMessage): New function.
  11279. (createHaveNoneMessage): New function.
  11280. (createRejectMessage): New function.
  11281. (createAllowedFastMessage: New function.
  11282. * src/Util.h
  11283. (sha1Sum): New function.
  11284. (computeFastSet): New function.
  11285. * src/Util.cc
  11286. (sha1Sum): New function.
  11287. (computeFastSet): New function.
  11288. * src/Peer.h
  11289. (fastExtensionEnabled): New variable.
  11290. (fastSet): New variable.
  11291. (setAllBitfield): New function.
  11292. (setFastExtensionEnabled): New function.
  11293. (isFastExtensionEnabled): New function.
  11294. (addFastSetIndex): New function.
  11295. (getFastSet): New function.
  11296. (isInFastSet): New function.
  11297. (countFastSet): New function.
  11298. * src/Peer.cc
  11299. (isInFastSet): New function.
  11300. (addFastSetIndex): New function.
  11301. (setAllBitfield): New function.
  11302. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  11303. sockets.
  11304. * src/PeerAbstractCommand.cc
  11305. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  11306. and uploadLimit.
  11307. (execute): Changed the procedure of checking sockets. The upload speed
  11308. checking were added.
  11309. (setUploadLimit): New function.
  11310. (setUploadLimitCheck): New function.
  11311. * src/PeerAbstractCommand.h
  11312. (setUploadLimit): New function.
  11313. (setUploadLimitCheck): New function.
  11314. (uploadLimit): New variable.
  11315. (uploadLimitCheck): New variable.
  11316. To contact a tracker regularly:
  11317. * src/TrackerWatcherCommand.h (interval): New variable.
  11318. (checkPoint): New variable.
  11319. (TrackerWatcherCommand): Added interval argument.
  11320. * src/TrackerWatcherCommand.cc
  11321. (TrackerWatcherCommand): Initialized checkPoint.
  11322. (execute): Now a tracker is contacted in every specified period.
  11323. If peer list is not needed, send request with numwant=0.
  11324. * src/TrackerUpdateCommand.cc
  11325. (execute): Updated log messages.
  11326. * src/DownloadEngine.cc
  11327. (~DownloadEngine): Removed two asserts.
  11328. (waitData): Uncommented wfds. May be a bug fix.
  11329. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11330. * src/PeerInteractionCommand.h
  11331. (checkInactiveConnection): Removed.
  11332. * src/PeerInteractionCommand.cc
  11333. (executeInternal): Removed following function calls:
  11334. detectMessageFlooding(), checkLongTimePeerChoking and
  11335. checkInactiveConnection().
  11336. (checkInactiveConnection): Removed.
  11337. (detectMessageFlooding): Removed function call to
  11338. checkInactiveConnection().
  11339. * src/PeerMessageUtil.h
  11340. (createChokeMessage): New function. Overload.
  11341. (createUnchokeMessage): New function. Overload.
  11342. (createInterestedMessage): New function. Overload.
  11343. (createNotInterestedMessage): New function. Overload.
  11344. (createHaveMessage): New function. Overload.
  11345. (createBitfieldMessage): New function. Overload.
  11346. (createRequestMessage): New function. Overload.
  11347. (createCancelMessage): New function. Overload.
  11348. (createPieceMessage): New function. Overload.
  11349. (createKeepAliveMessage): New function. Overload.
  11350. * src/PeerMessageUtil.cc
  11351. (createChokeMessage): New function. Overload.
  11352. (createUnchokeMessage): New function. Overload.
  11353. (createInterestedMessage): New function. Overload.
  11354. (createNotInterestedMessage): New function. Overload.
  11355. (createHaveMessage): New function. Overload.
  11356. (createBitfieldMessage): New function. Overload.
  11357. (createRequestMessage): New function. Overload.
  11358. (createCancelMessage): New function. Overload.
  11359. (createPieceMessage): New function. Overload.
  11360. (createKeepAliveMessage): New function. Overload.
  11361. * src/SendMessageQueue.cc
  11362. (createRequestMessage): Use PeerMessageUtil.
  11363. (createCancelMessage): Use PeerMessageUtil.
  11364. (createPieceMessage): Use PeerMessageUtil.
  11365. (createHaveMessage): Use PeerMessageUtil.
  11366. (createChokeMessage): Use PeerMessageUtil.
  11367. (createUnchokeMessage): Use PeerMessageUtil.
  11368. (createInterestedMessage): Use PeerMessageUtil.
  11369. (createNotInterestedMessage): Use PeerMessageUtil.
  11370. (createBitfieldMessage): Use PeerMessageUtil.
  11371. (createKeepAliveMessage): Use PeerMessageUtil.
  11372. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  11373. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  11374. * src/PeerInteraction.h: New class.
  11375. * src/PeerInteraction.cc: New class.
  11376. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11377. Each peer message has its own class.
  11378. * src/PendingMessages.h: Removed.
  11379. * src/PendingMessages.cc: Removed. The sending process was moved to
  11380. each message class.
  11381. * src/RequestSlotMan.h: Removed.
  11382. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  11383. SendMessageQueue.
  11384. * src/RequestMessage.h: New class.
  11385. * src/RequestMessage.cc: New class.
  11386. * src/CancelMessage.h: New class.
  11387. * src/CancelMessage.cc: New class.
  11388. * src/BitfieldMessage.h: New class.
  11389. * src/BitfieldMessage.cc: New class.
  11390. * src/ChokeMessage.h: New class.
  11391. * src/ChokeMessage.cc: New class.
  11392. * src/KeepAliveMessage.h: New class.
  11393. * src/KeepAliveMessage.cc: New class.
  11394. * src/PortMessage.h: New class.
  11395. * src/UnchokeMessage.h: New class.
  11396. * src/UnchokeMessage.cc: New class.
  11397. * src/PieceMessage.h: New class.
  11398. * src/PieceMessage.cc: New class.
  11399. * src/HaveMessage.h: New class.
  11400. * src/HaveMessage.cc: New class.
  11401. * src/BitfieldMessage.h: New class.
  11402. * src/BitfieldMessage.cc: New class.
  11403. * src/NotInterestedMessage.h: New class.
  11404. * src/NotInterestedMessage.cc: New class.
  11405. * src/InterestedMessage.h: New class.
  11406. * src/InterestedMessage.cc: New class.
  11407. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  11408. (getSendMessageQueue): New function.
  11409. (setSendMessageQueue): New function.
  11410. * src/HandshakeMessage.cc: New class.
  11411. * src/PeerConnection.h (receiveMessage): Changed return value and
  11412. arguments.
  11413. (receiveHandshake): Changed return value and arguments.
  11414. * src/PeerConnection.cc (receiveMessage): Do not create message class
  11415. here.
  11416. (receiveHandshake): Do not create handshake class here.
  11417. * src/PeerInteractionCommand.h (peerConnection): Removed.
  11418. (piece): Removed.
  11419. (syncPiece): Removed.
  11420. (sendInterest): Removed.
  11421. (sendMessages): Removed.
  11422. (createRequestPendingMessage): Removed.
  11423. (checkPieceHash): Removed.
  11424. (erasePieceOnDisk): Removed.
  11425. (getNewPieceAndSendInterest): Removed.
  11426. (onGotNewPice): Removed.
  11427. (onGotWrongPiece): Removed.
  11428. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11429. Removed peerConnection, piece.
  11430. (~PeerInteractionCommand): Removed peerConnection.
  11431. (executeInternal): Use sendMessageQueue instead of peerConnection.
  11432. (syncPiece): Moved to SendMessageQueue.
  11433. (decideChoking): Removed PendingMessage.
  11434. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  11435. The action after receiving peer message was moved to each message
  11436. class.
  11437. (onGotNewPice): Moved to SendMessageQueue.
  11438. (onGotWrongPiece): Moved to SendMessageQueue.
  11439. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  11440. (sendInterest): Moved to SendMessageQueue.
  11441. (createRequestPendingMessage): Removed.
  11442. (sendMessages): Moved to SendMessageQueue.
  11443. (onAbort): Use SendMessageQueue::abortPiece()
  11444. (keepAlive): Use sendMessageQueue instead of peerConnection.
  11445. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  11446. (checkPieceHash): Moved to SendMessageQueue.
  11447. (erasePieceOnDisk): Moved to SendMessageQueue.
  11448. * src/PeerMessageUtil.h
  11449. (createBitfieldMessage): Removed.
  11450. (createHaveMessage): Changed return value and arguments.
  11451. (createBitfieldMessage): Changed return value and arguments.
  11452. (createRequestCancelMessage): Removed.
  11453. (createPieceMessage): Changed return value and arguments.
  11454. (getShortIntParam): New function.
  11455. (checkIndex): Changed arguments.
  11456. (checkBegin): Changed arguments.
  11457. (checkLength): Changed arguments.
  11458. (checkPieceOffset): Removed.
  11459. (checkRange): New function.
  11460. (checkBitfield): Changed arguments.
  11461. (createPeerMessage): Removed.
  11462. (checkIntegrity): Removed.
  11463. (createHandshakeMessage): Changed arguments.
  11464. (createChokeMessage): New function.
  11465. (createUnchokeMessage): New function.
  11466. (createInterestedMessage): New function.
  11467. (createNotInterestedMessage): New function.
  11468. (createRequestMessage): New function.
  11469. (createCancelMessage): New function.
  11470. (createPortMessage): New function.
  11471. * src/PeerMessageUtil.cc
  11472. (createBitfieldMessage): Removed.
  11473. (createHaveMessage): Changed return value and arguments.
  11474. (createBitfieldMessage): Changed return value and arguments.
  11475. (createRequestCancelMessage): Removed.
  11476. (createPieceMessage): Changed return value and arguments.
  11477. (getShortIntParam): New function.
  11478. (checkIndex): Changed arguments.
  11479. (checkBegin): Changed arguments.
  11480. (checkLength): Changed arguments.
  11481. (checkPieceOffset): Removed.
  11482. (checkRange): New function.
  11483. (checkBitfield): Changed arguments.
  11484. (createPeerMessage): Removed.
  11485. (checkIntegrity): Removed.
  11486. (createHandshakeMessage): Changed arguments.
  11487. (createChokeMessage): New function.
  11488. (createUnchokeMessage): New function.
  11489. (createInterestedMessage): New function.
  11490. (createNotInterestedMessage): New function.
  11491. (createRequestMessage): New function.
  11492. (createCancelMessage): New function.
  11493. (createPortMessage): New function.
  11494. * src/PeerMessage.h
  11495. (id): Removed.
  11496. (index): Removed.
  11497. (begin): Removed.
  11498. (length): Removed.
  11499. (bitfield): Removed.
  11500. (bitfieldLength): Removed.
  11501. (block): Removed.
  11502. (blockLength): Removed.
  11503. (inProgress): New variable.
  11504. (cuid): New variable.
  11505. (peer): New variable.
  11506. (sendMessageQueue): New variable.
  11507. (logger): New variable.
  11508. (setBitfield): Removed.
  11509. (getBitfield): Removed.
  11510. (setBlock): Removed.
  11511. (getBlock): Removed.
  11512. (getBitfieldLength): Removed.
  11513. (getBlockLength): Removed.
  11514. (isInProgress): New function.
  11515. (toString): Made pure virtual.
  11516. (check): New function.
  11517. (send): New function.
  11518. (receivedAction): New function.
  11519. (getId): Made pure virtual.
  11520. (setId): Removed.
  11521. (getIndex): Removed.
  11522. (setIndex): Removed.
  11523. (getBegin): Removed.
  11524. (setBegin): Removed.
  11525. (getLength): Removed.
  11526. (setLength): Removed.
  11527. (getCuid): New function.
  11528. (setCuid): New function.
  11529. (getPeer): New function.
  11530. (setPeer): New function.
  11531. (getSendMessageQueue): New function.
  11532. (setSendMessageQueue): New function.
  11533. (ID): Removed.
  11534. * src/PeerMessage.cc
  11535. (setBitfield): Removed.
  11536. (setBlock): Removed.
  11537. (toString): Removed.
  11538. * src/TorrentMan.h
  11539. (getPieceLength): New function.
  11540. (getPieceLength): New function.
  11541. * src/SendMessageQueue.h
  11542. (REQUEST_TIME_OUT): New definition.
  11543. (RequestSlots): New definition.
  11544. (MessageQueue): New definition.
  11545. (requestSlotMan): Removed.
  11546. (pendingMessages): Removed.
  11547. (requestSlots): New variable.
  11548. (messageQueue): New variable.
  11549. (torrentMan): New variable.
  11550. (peerConnection): New variable.
  11551. (peer): New variable.
  11552. (piece): New variable.
  11553. (getNewPieceAndSendInterest): New function.
  11554. (createPeerMessage): New function.
  11555. (createHandshakeMessage): New function.
  11556. (send): Made private.
  11557. (setPeerMessageCommonProperty): New function.
  11558. (deleteAllRequestSlot): New function.
  11559. (deleteRequestMessageInQueue): New function.
  11560. (cancelAllRequest): Made private.
  11561. (cancelAllRequest): Made private.
  11562. (countRequestSlot): Made private.
  11563. (addPendingMessage): Removed.
  11564. (deletePendingPieceMessage): Removed.
  11565. (deletePendingRequestMessage): Removed.
  11566. (addMessage): New function.
  11567. (deletePieceMessageInQueue): New function.
  11568. (deleteTimeoutRequestSlot): Changed argument.
  11569. (deleteCompletedRequestSlot): Changed argument.
  11570. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  11571. (getCorrespondingRequestSlot): New function.
  11572. (countPendingMessage): Removed.
  11573. (countMessageInQueue): New function.
  11574. (getTorrentMan): New function.
  11575. (getPeerConnection): New function.
  11576. (hasDownloadPiece): New function.
  11577. (getDownloadPiece): New function.
  11578. (setDownloadPiece): New function.
  11579. (syncPiece): New function.
  11580. (sendMessages): New function.
  11581. (sendNow): New function.
  11582. (trySendNow): New function.
  11583. (abortPiece): New function.
  11584. (sendHandshake): New function.
  11585. (receiveMessage): New function.
  11586. (receiveHandshake): New function.
  11587. (createRequestMessage): New function.
  11588. (createCancelMessage): New function.
  11589. (createPieceMessage): New function.
  11590. (createHaveMessage): New function.
  11591. (createChokeMessage): New function.
  11592. (createUnchokeMessage): New function.
  11593. (createInterestedMessage): New function.
  11594. (createNotInterestedMessage): New function.
  11595. (createBitfieldMessage): New function.
  11596. (createKeepAliveMessage): New function.
  11597. * src/SendMessageQueue.cc
  11598. (SendMessageQueue): Removed requestSlotMan.
  11599. Instantiated peerConnection here.
  11600. (~SendMessageQueue): Removed requestSlotMan.
  11601. Added deletion of peerConnection and the contents of messageQueue.
  11602. (send): Updated according to the change of messageQueue.
  11603. (addPendingMessage): Renamed to addMessage.
  11604. (addMessage): New function.
  11605. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  11606. (deletePieceMessageInQueue): New function.
  11607. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  11608. (deleteRequestMessageInQueue): New function.
  11609. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  11610. here.
  11611. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  11612. (...) was moved here.
  11613. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  11614. moved here.
  11615. (deleteCompletedRequestSlot):
  11616. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  11617. (getCorrespondingRequestSlot):
  11618. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  11619. And renamed to getCorrespondingRequestSlot, correcting a typo.
  11620. (countPendingMessage): Renamed to countMessageInQueue.
  11621. (countMessageInQueue): New function.
  11622. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  11623. (receiveHandshake): New function.
  11624. (createHandshakeMessage): New function.
  11625. (receiveMessage): New function.
  11626. (createPeerMessage): New function.
  11627. (syncPiece): New function.
  11628. (getNewPieceAndSendInterest): New function.
  11629. (sendMessages): New function.
  11630. (sendNow): New function.
  11631. (trySendNow): New function.
  11632. (sendHandshake): New function.
  11633. (abortPiece): New function.
  11634. (getDownloadPiece): New function.
  11635. (getPeerMessageCommonProperty): New function.
  11636. (createRequestMessage): New function.
  11637. (createCancelMessage): New function.
  11638. (createPieceMessage): New function.
  11639. (createHaveMessage): New function.
  11640. (createChokeMessage): New function.
  11641. (createUnchokeMessage): New function.
  11642. (createInterestedMessage): New function.
  11643. (createNotInterestedMessage): New function.
  11644. (createBitfieldMessage): New function.
  11645. (createKeepAliveMessage): New function.
  11646. To add simple Content-Disposition support:
  11647. * src/HttpResponseCommand.h (determinFilename): New function.
  11648. * src/HttpResponseCommand.cc (executeInternal):
  11649. Use determinFilename(headers) instead of req->getFile() when comparing
  11650. filename.
  11651. (determinFilename): New function.
  11652. (handleDefaultEncoding): Use determinFilename(headers) instead of
  11653. req->getFile().
  11654. (handleOtherEncoding): Use determinFilename(headers) instead of
  11655. req->getFile().
  11656. * src/Util.h (getContentDispositionFilename): New function.
  11657. * src/Util.cc (getContentDispositionFilename): New function.
  11658. * src/LogFactory.h (release): New function.
  11659. * src/LogFactory.cc (release): New function.
  11660. To fix a bug that causes out-of-bound exception when HTTP status
  11661. line is wrong:
  11662. * src/HttpConnection.cc (receiveResponse): Added a check for header
  11663. size.
  11664. * src/common.h (Deleter): New class.
  11665. * src/SegmentMan.cc
  11666. (~SegmentMan): Added deletion of splitter and diskWriter.
  11667. * src/DownloadEngine.h
  11668. (Commands): Use deque.
  11669. (clearQueue): New function.
  11670. * src/DownloadEngine.cc
  11671. (~DownloadEngine): Added deletion of segmentMan.
  11672. (cleanQueue): New function.
  11673. * src/TorrentDownloadEngine.h
  11674. (TorrentDownloadEngine): The implementation was moved to
  11675. TorrentDownloadEngine.cc.
  11676. (~TorrentDownloadEngine): The implementation was moved to
  11677. TorrentDownloadEngine.cc.
  11678. * src/TorrentDownloadEngine.cc
  11679. (~TorrentDownloadEngine): Added deletion of torrentMan.
  11680. * src/main.cc
  11681. (clearRequest): Removed.
  11682. (handler): Added deletion of e.
  11683. (torrentHandler): Added deletion of te.
  11684. (main): Do not share splitter.
  11685. Use Deleter instead of clearRequest.
  11686. Deletion of classes were updated.
  11687. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11688. * src/main.cc (main): Fixed typo.
  11689. * src/message.h: Fixed typo.
  11690. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  11691. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11692. To add --select-file command-line option:
  11693. * src/Util.cc
  11694. (unfoldRange): New function.
  11695. (getNum): New function.
  11696. (unfoldSubRange): New function
  11697. * src/main.cc
  11698. (showUsage): Added help message.
  11699. (main): Added --select-file command-line option. Updated the layout of
  11700. file listing.
  11701. * src/common.h
  11702. (Integers): New definition.
  11703. * src/SocketCore.cc
  11704. (writeData): Removed timeout argument.
  11705. (readData): Removed timeout argument.
  11706. (peekData): Removed timeout argument.
  11707. * src/Socket.cc
  11708. (writeData): Removed timeout argument.
  11709. (readData): Removed timeout argument.
  11710. (peekData): Removed timeout argument.
  11711. * Release 0.4.1
  11712. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11713. To deploy upload rate based choking algorithm:
  11714. * src/PeerInteractionCommand.cc
  11715. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  11716. peer currently used.
  11717. (decideChoking): Deleted the choke/unchoke decision algorithm when
  11718. download completes. Simplified.
  11719. (receiveMessage): Updated.
  11720. * src/TorrentMan.h
  11721. (activePeers): New variable.
  11722. (addActivePeer): New function.
  11723. (getActivePeers): New function.
  11724. (deleteActivePeer): New function.
  11725. * src/TorrentMan.cc
  11726. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  11727. * src/PeerAbstractCommand.cc
  11728. (onAbort): Use peer->resetStatus().
  11729. * src/main.cc
  11730. (PeerChokeCommand.h): Included.
  11731. (main): Added the instance of ChokingCommand to the command queue.
  11732. * src/Peer.h
  11733. (amChoking): Renamed from amChocking
  11734. (chokingRequired): New variable.
  11735. (optUnchoking): New variable.
  11736. (deltaUpload): New variable.
  11737. (deltaDownload): New variable.
  11738. (addDeltaUpload): New function.
  11739. (resetDeltaUpload): New function.
  11740. (addDeltaDownload): New function.
  11741. (resetDeltaDownload): New function.
  11742. (addPeerUpload): Added a call to addDeltaUpload.
  11743. (addPeerDownload): Added a call to addDeltaDownload.
  11744. * src/Peer.cc
  11745. (shouldBeChoking): Renamed from shouldChoke.
  11746. (resetStatus): New function.
  11747. * src/PeerChokeCommand.h: New class.
  11748. * src/PeerChokeCommand.cc: New class.
  11749. To add lazy upload speed limiter:
  11750. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  11751. statistics calculation to TorrentDownloadEngine.
  11752. * src/TorrentConsoleDownloadEngine.cc
  11753. (sendStatistics): Renamed from printStatistics.
  11754. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  11755. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  11756. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  11757. * src/TorrentDownloadEngine.h: Added the variables for statistics
  11758. calculation.
  11759. (sendStatistics): New function as pure virtual function.
  11760. (getUploadSpeed): New function.
  11761. * src/TorrentDownloadEngine.cc
  11762. (initStatistics): New function.
  11763. (calculateSpeed): New function.
  11764. (calculateStatistics): New function.
  11765. * src/SendMessageQueue.h
  11766. (uploadLength): New variable.
  11767. (send): Added an argument.
  11768. (setUploadLimit): New function.
  11769. (getUploadLimit): New function.
  11770. * src/SendMessageQueue.cc
  11771. (send): Added upload speed limiter.
  11772. * src/prefs.h
  11773. (PREF_UPLOAD_LIMIT): New definition.
  11774. * src/PeerInteractionCommand.cc
  11775. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  11776. * src/main.cc
  11777. (main): Added --upload-limit option
  11778. For bug fixes:
  11779. * src/main.cc
  11780. (showUsage): Corrected --listen-port help
  11781. Other changes:
  11782. * src/TorrentMan.cc
  11783. (getPeer): Return nullPeer if connection is grather than
  11784. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  11785. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11786. To add some useful information to the exception message:
  11787. * src/SocketCore.cc : Updated messages.
  11788. * src/SegmentMan.cc :
  11789. * src/TorrentMan.cc : Updated messages.
  11790. * src/MultiDiskWriter.cc : Updated messages.
  11791. * src/Util.cc : Updated messages.
  11792. * src/AbstractDiskWriter.cc : Updated messages.
  11793. * src/PreAllocationDiskWriter.cc : Updated messages.
  11794. * src/message.cc : Added new messages. Updated some messages.
  11795. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  11796. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  11797. Updated threshold from 30 to 15.
  11798. * src/AbstractDiskWriter.h (filename): New variable.
  11799. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  11800. (createFile): Assigned filename.
  11801. * src/main.cc: Updated the help message for http-auth-scheme.
  11802. * Release 0.4.0
  11803. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11804. To add TrackerUpdateCommand with which replaces
  11805. CompactTrackerResponseProcessor:
  11806. * src/TrackerWatcherCommand.h (req): Removed.
  11807. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  11808. if the number of peer connections are less than 30.
  11809. * src/ByteArrayDiskWriter.h (readData): Implemented.
  11810. * src/SegmentMan.h (diskWriter): New function.
  11811. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  11812. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  11813. (main): Use TrackerUpdateCommand.
  11814. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  11815. (req): New variable.
  11816. (setTrackerResponseProcessor): Removed.
  11817. (getTrackerResponseProcessor): Removed.
  11818. (processTrackerResponse): Removed.
  11819. * src/DownloadEngine.h (diskWriter): Removed.
  11820. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  11821. to torrentMan->processTrackerResponse().
  11822. To add Util::expandBuffer:
  11823. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  11824. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  11825. * src/Util.h (expandBuffer): New function.
  11826. To fix the bug that causes segmentation fault when "-l ." is specified
  11827. in command-line option:
  11828. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  11829. (openFile): New function.
  11830. (closeFile): New function.
  11831. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  11832. (~SimpleLogger): Call closeFile();
  11833. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  11834. * src/main.cc (main): Added a check to see logger is configured
  11835. properly.
  11836. To enable HTTP authentication without specifying "--http-auth-scheme"
  11837. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  11838. * src/HttpConnection.cc (createRequest): Send Authorization header
  11839. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  11840. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  11841. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  11842. * src/Peer.cc (shouldChoke): Updated algorithm.
  11843. * src/message.h (EX_AUTH_FAILED): New definition.
  11844. (EX_FILE_OPEN): New definition.
  11845. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  11846. if status == 401.
  11847. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  11848. if req->isTorrent == true.
  11849. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  11850. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  11851. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  11852. (createFile): Updated message.
  11853. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11854. To add a readout of estimated remaining time to normal HTTP/FTP
  11855. downloads:
  11856. * src/ConsoleDownloadEngine.h (startup): New variable.
  11857. (startupLength): New variable.
  11858. (isStartupLengthSet): New variable.
  11859. (avgSpeed): New variable.
  11860. (eta): New variable.
  11861. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  11862. estimated remaining time.
  11863. (initStatistics): Initialized newly added variables.
  11864. (calculateStatistics): Calculate average speed and estimated remaining
  11865. time.
  11866. To decouple TorrentDownloadEngine from HttpResponseCommand:
  11867. * src/TrackerDownloadCommand.h: Removed.
  11868. * src/TrackerDownloadCommand.cc: Removed.
  11869. * src/TrackerInitCommand.h: Removed.
  11870. * src/TrackerInitCommand.cc: Removed.
  11871. * src/TrackerUpdateCommand.h: Removed.
  11872. * src/TrackerUpdateCommand.cc: Removed.
  11873. * src/TrackerWatcherCommand.cc (execute): The construction of request
  11874. url written in TrackerInitCommand was moved here. Do not create
  11875. tracker request command if torrentMan->trackers != 0.
  11876. * src/CompactTrackerResponseProcessor.h: New class.
  11877. * src/CompactTrackerResponseProcessor.cc: New class.
  11878. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  11879. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  11880. Decoupled TorrentDownloadEngine from this.
  11881. * src/SegmentMan.h (init): New function.
  11882. * src/SegmentMan.cc (init): New function.
  11883. * src/TorrentMan.h (responseProcessor): New variable.
  11884. (trackers): New variable.
  11885. (setTrackerResponseProcessor): New function.
  11886. (getTrackerResponseProcessor): New function.
  11887. (processTrackerResponse): New function.
  11888. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  11889. (processTrackerResponse): New function.
  11890. * src/main.cc (main): Use ByteArrayDiskWriter and
  11891. CompactTrackerResponseProcessor.
  11892. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  11893. processTrackerResponse().
  11894. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  11895. readout.
  11896. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  11897. which indicates download has completed.
  11898. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  11899. (closeFile): fd >= 0, not fd > 0
  11900. * src/main.cc (main): Added short cut for show-files.
  11901. Added short cut for torrent-file.
  11902. Added new command-line option listen-port.
  11903. Updated i18n messages.
  11904. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11905. To add LogFactory which creates singleton logger:
  11906. * src/LogFactory.h: New class.
  11907. * src/LogFactory.cc: New class.
  11908. * src/Command.h (logger): New variable.
  11909. (Constructor): Use LogFactory.
  11910. * src/AbstractCommand.cc: Use Command::logger
  11911. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  11912. Use LogFactory.
  11913. * src/SegmentSplitter.h : Made logger protected.
  11914. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  11915. * src/SegmentMan.cc (Constructor): Use LogFactory.
  11916. * src/DownloadEngine.h : Made logger protected.
  11917. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  11918. * src/PeerInteractionCommand.cc : Use Command::logger.
  11919. * src/HttpResponseCommand.cc : Use Command::logger.
  11920. * src/SegmentMan.h : Made logger private.
  11921. * src/TorrentMan.h : Made logger private.
  11922. * src/TorrentMan.cc : Use LogFactory.
  11923. * src/FtpNegotiateCommand.cc : Use Command::logger.
  11924. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  11925. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  11926. Use LogFactory.
  11927. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  11928. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  11929. Use LogFactory.
  11930. * src/DownloadCommand.cc : Use Command::logger.
  11931. * src/PeerAbstractCommand.cc : Use Command::logger.
  11932. * src/PeerListenCommand.cc : Use Command::logger.
  11933. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  11934. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  11935. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  11936. * src/TrackerWatcherCommand.cc : Use Command::logger.
  11937. * src/TrackerUpdateCommand.cc : Use Command::logger.
  11938. * src/TrackerDownloadCommand.cc : Use Command::logger.
  11939. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  11940. Use LogFactory.
  11941. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  11942. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  11943. Use LogFactory.
  11944. * src/main.cc (main): Use LogFactory.
  11945. * src/DiskAdaptor.h (logger): New variable.
  11946. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  11947. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  11948. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11949. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  11950. parameter to a tracker request.
  11951. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  11952. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  11953. * src/main.cc (setSignalHander): New function.
  11954. (main): Added a handler for SIGTERM.
  11955. (handler): Updated message.
  11956. (torrentHandler): Updated message.
  11957. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11958. * src/TorrentConsoleDownloadEngine.cc
  11959. (onPartialDownloadingCompletes): Renamed as
  11960. onSelectiveDownloadingCompletes.
  11961. (onSelectiveDownloadingCompletes): Updated message.
  11962. To add DiskAdaptor which abstract DiskWriter family:
  11963. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  11964. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  11965. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  11966. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  11967. MultiDiskAdaptor.h.
  11968. (readFileEntry): Changed its arguments.
  11969. (setup): setupDiskWriter is merged into this function.
  11970. (setupDiskWriter): Removed.
  11971. (setFileFilter): New function.
  11972. (readFileEntryFromMetaInfoFile): Updated according to the changes
  11973. made in readFileEntry.
  11974. (getFilePath): Removed.
  11975. (getTempFilePath): Removed.
  11976. (getSegmentFilePath): Updated due to the removal of getFilePath.
  11977. (fixFilename): Removed.
  11978. (copySingleFile): Removed.
  11979. (splitMultiFile): Removed.
  11980. (deleteTempFile): Removed.
  11981. (setFileEntriesToDownload): Removed.
  11982. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  11983. (isSelectiveDownloadingMode): New function.
  11984. (setAllMultiFileRequestedState): Removed.
  11985. (finishPartialDownloadingMode): Renamed as
  11986. finishSelectiveDownloadingMode.
  11987. (finishSelectiveDownloadingMode): New function.
  11988. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  11989. (getSelectedTotalLength): New function.
  11990. (onDownloadComplete): Use diskAdaptor.
  11991. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  11992. (Range): Removed.
  11993. (setMultiFileEntries): Renamed as setFileEntries.
  11994. (setFileEntries): New function.
  11995. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  11996. (pieceLength): New variable.
  11997. * src/main.cc (printDownloadCompeleteMessage): New function.
  11998. (torrentHandler): Use diskAdaptor instead of diskWriter.
  11999. (main): Renamed torrent-show-files to show-files.
  12000. Rewritten file contents listing.
  12001. * src/TorrentMan.h (FileEntry): Removed.
  12002. (multiFileTopDir): Removed.
  12003. (multiFileEntries): Removed.
  12004. (diskWriter): Removed.
  12005. (diskAdaptor): New variable.
  12006. * src/DefaultDiskWriter.h (totalLength): New variable.
  12007. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  12008. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  12009. diskWriter.
  12010. * src/TorrentConsoleDownloadEngine.h
  12011. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  12012. (partialTotalLength): Renamed as selectedTotalLength.
  12013. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  12014. openExistingFile, otherwise call initAndOpenFile.
  12015. (closeFile): fd > 0, not fd != 0.
  12016. * src/DirectDiskAdaptor.h: New class.
  12017. * src/DirectDiskAdaptor.cc: New class.
  12018. * src/MultiDiskAdaptor.h: New class.
  12019. * src/MultiDiskAdaptor.cc: New class.
  12020. * src/CopyDiskAdaptor.h: New class.
  12021. * src/CopyDiskAdaptor.cc: New class.
  12022. * src/DiskAdaptor.h: New class.
  12023. * src/DiskAdaptor.cc: New class.
  12024. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  12025. (PREF_SHOW_FILES): New definition.
  12026. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12027. To add the ability to download multi torrent into respective files
  12028. directly:
  12029. * src/DiskWriter.h (openFile): New function.
  12030. (seek): Removed.
  12031. * src/MultiDiskWriter.h: New class.
  12032. * src/MultiDiskWriter.cc: New class.
  12033. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  12034. protected.
  12035. (openFile): New function.
  12036. * src/AbstractDiskWriter.cc (openFile): New function.
  12037. * src/prefs.h (V_FALSE): New definition.
  12038. (PREF_DIRECT_FILE_MAPPING): New definition.
  12039. * src/TorrentMan.h (setupDiskWriter): New function.
  12040. (setAllMultiFileRequestedState): New function.
  12041. (onDownloadComplete): New function.
  12042. * src/TorrentMan.cc : Included MultiDiskWriter.h
  12043. (setupDiskWriter): New function.
  12044. (getFilePath): Updated.
  12045. (getTempFilePath): Updated.
  12046. (getSegmentFilePath): Updated.
  12047. (fixFilename): Updated.
  12048. (deleteTempFile): Updated.
  12049. (setAllMultiFileRequestedState): New function.
  12050. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  12051. (finishPartialDownloadingMode): Reset requested flags.
  12052. (onDownloadComplete): New function.
  12053. * src/main.cc: Added --direct-file-mapping option.
  12054. Use TorrentMan::setupDiskWriter().
  12055. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  12056. onDownloadComplete().
  12057. To fix ETA bug:
  12058. * src/Util.h (difftvsec): New function.
  12059. * src/Util.cc (difftvsec): New function.
  12060. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  12061. type of "elapsed" instead of long long int.
  12062. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  12063. The updates of statistics takes place every 1 seconds.
  12064. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  12065. (calculateSpeed): Changed its argument signature.
  12066. * src/PeerMessage.cc (toString): Fixed message.
  12067. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12068. To print ETA:
  12069. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  12070. completion handling when dealing with
  12071. TorrentMan::isPartialDownloadingMode() == true.
  12072. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  12073. New function.
  12074. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  12075. (sessionDownloadLength): New variable.
  12076. (avgSpeed): New variable.
  12077. (eta): New variable.
  12078. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  12079. new variables: eta, avgSpeed, startup.
  12080. (calculateSpeed): Calculate average speed and ETA.
  12081. (printStatistics): Added ETA.
  12082. * src/Util.h (secfmt): New function.
  12083. * src/Util.cc (secfmt): New function.
  12084. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12085. To detect "keep alive" flooding:
  12086. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  12087. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  12088. variable: keepAliveCount.
  12089. (detectMessageFlooding): Added "keep alive" flooding detection.
  12090. (receiveMessage): Increase keepAliveCount when "keep alive" message
  12091. received.
  12092. To add the ability to download only specified files in multi-file
  12093. torrent:
  12094. * src/BitfieldMan.h (filterBitfield): New variable.
  12095. (filterEnabled): New variable.
  12096. (setFilterBit): New function.
  12097. (enableFilter): New function.
  12098. (disableFilter): New function.
  12099. (isFilterEnabled): New function.
  12100. (getFilteredTotalLength): New function.
  12101. (getCompletedLength): New function.
  12102. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  12103. filterBitfield, filterEnabled.
  12104. (CopyConstructor): Added filterBitfield and filterEnabled.
  12105. (operator==): Added filterBitfield and filterEnabled.
  12106. (Destructor): Added filterBitfield.
  12107. (getMissingIndex): Use filterBitfield.
  12108. (getMissingUnusedIndex): Use filterBitfield.
  12109. (getFirstMissingUnusedIndex): Use filterBitfield.
  12110. (getFirstMissingUnusedIndex): Use filterBitfield.
  12111. (getAllMissingIndexes): Use filterBitfield.
  12112. (countMissingBlock): Use filterBitfield.
  12113. (countBlock): Use filterBitfield.
  12114. (setBitInternal): Added new argument on.
  12115. (setUseBit): Use setBitInternal.
  12116. (unsetUseBit): Use setBitInternal.
  12117. (setBit): Use setBitInternal.
  12118. (unsetBit): Use setBitInternal.
  12119. (isAllBitSet): Use filterBitfield.
  12120. (setFilterBit): New function.
  12121. (addFilter): New function.
  12122. (enableFilter): New function.
  12123. (disableFilter): New function.
  12124. (clearFilter): New function.
  12125. (isFilterEnabled): New function.
  12126. (getFilteredTotalLength): New function.
  12127. (getCompletedLength): New function.
  12128. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  12129. Initalized newly added variables.
  12130. [FileEntry](offset): New variable.
  12131. [FileEntry](extracted): New variable.
  12132. [FileEntry](requested): New variable.
  12133. (readFileEntry): New function.
  12134. (option): New variable.
  12135. (splitMultiFile): Removed const qualifier.
  12136. (fixFilename): Removed const qualifier.
  12137. (readFileEntryFromMetaInfoFile): New function.
  12138. (finishPartialDownloadingMode): New function.
  12139. (isPartialDownloadingMode): New function.
  12140. (setFileEntriesToDownload): New function.
  12141. (getCompletedLength): New function.
  12142. (getPartialTotalLength): New function.
  12143. * src/TorrentMan.cc (readFileEntry): New function.
  12144. (setup): Use readFileEntry. If no-preallocation option is specified,
  12145. use DefaultDiskWriter.
  12146. (readFileEntryFromMetaInfoFile): New function.
  12147. (fixFilename): Removed const qualifier.
  12148. (splitMultiFile): Removed const qualifier.
  12149. (setFileEntriesToDownload): New function.
  12150. (isPartialDownloadingMode): New function.
  12151. (finishPartialDownloadingMode): New function.
  12152. (getCompletedLength): New function.
  12153. (getPartialTotalLength): New function.
  12154. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  12155. New variable.
  12156. (partialTotalLength): New variable.
  12157. (downloadLength): New variable.
  12158. (totalLength): New variable.
  12159. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  12160. Added log.
  12161. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  12162. partialTotalLength, downloadLength, totalLength.
  12163. (calculate): Calculate downloadLength and totalLength.
  12164. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  12165. * src/main.cc (addCommand): Changed argument signature.
  12166. (main): Added new variable: args. Added new option "torrent-show-files"
  12167. "no-preallocation". Usage is not updated yet.
  12168. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12169. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  12170. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12171. Attempt to add the ability to listing file entries in a .torrent file.
  12172. This feature is not yet complete.
  12173. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  12174. * src/TorrentMan.cc (getMultiFileEntries): New function.
  12175. (getName): New function.
  12176. * src/TorrentMan.h (getMultiFileEntries): New function.
  12177. (getName): New function.
  12178. * src/main.cc (main): Use above 2 funtion.
  12179. * Release 0.3.2
  12180. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12181. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  12182. (detectMessageFlooding): Updated threshold value.
  12183. (checkLongTimePeerChoking): Updated timeout value.
  12184. (getNewPieceAndSendInterest): Added debug log.
  12185. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  12186. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  12187. (getPeer): Updated.
  12188. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  12189. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  12190. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  12191. is localhost.
  12192. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  12193. * src/PendingMessage.cc (processMessage): Not to send piece message
  12194. if peer is not interested in the pieces localhost has.
  12195. * src/Peer.cc (shouldChoke): Updated.
  12196. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  12197. * src/Util.cc (isPowerOf): New function.
  12198. * src/Util.h (isPowerOf): New function.
  12199. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  12200. whether or not it is power of 2.
  12201. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12202. Added new class SendMessageQueue that includes PendingMessages and
  12203. RequestSlotMan.
  12204. * src/SendMessageQueue.h: New class.
  12205. * src/SendMessageQueue.cc: New class.
  12206. * src/PendingMessage.h: Added new member variable blockIndex and its
  12207. accessors.
  12208. (createRequestMessage): Updated.
  12209. * src/PendingMessage.cc (createRequestMessage): Updated.
  12210. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  12211. SendMessageQueue.
  12212. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  12213. (receiveMessage): Updated with SendMessageQueue.
  12214. (deletePendingPieceMessage): Removed.
  12215. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  12216. (sendInterest): Updated with SendMessageQueue.
  12217. (createRequestPendingMessage): Updated with SendMessageQueue.
  12218. (sendMessages): Updated with SendMessageQueue.
  12219. (onAbort): Updated with SendMessageQueue.
  12220. (keepAlive): Updated with SendMessageQueue.
  12221. (beforeSocketCheck): Updated SendMessageQueue.
  12222. * src/PeerInteractionCommand (sendMessages): Shuffle
  12223. missingBLockIndexes before using it.
  12224. Added its own timeout for peer connection.
  12225. * src/PeerAbstractCommand.h: Added member variable timeout and its
  12226. setter.
  12227. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  12228. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12229. Added setTimeout() call.
  12230. (executeInternal): Added setTimeout() call.
  12231. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  12232. Added timeout.
  12233. (isTimeoutDetected): Updated.
  12234. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  12235. option.
  12236. Added *simple* message flooding checker.
  12237. * src/PeerInteractionCommand.cc (executeInternal):
  12238. Added detectMessageFlooding() call.
  12239. (detectMessageFlooding): New function.
  12240. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  12241. (beforeSocketCheck): Added detectMessageFlooding() call.
  12242. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  12243. chokeUnchokeCount, haveCount, detectMessageFlooding().
  12244. Removed deletePendingPieceMessage(), getRequestSlot(),
  12245. deleteRequestSlot(), deleteAllRequestSlot().
  12246. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  12247. Added checkLongTimePeerChoking() call.
  12248. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  12249. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  12250. if duplicate == false.
  12251. The parameter "uploaded" and "downloaded" in the tracker request are
  12252. the size since the client sent the "started" event to the tracker.
  12253. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  12254. uploaded size to preDownloadedSize, preUploadedSize respectively.
  12255. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  12256. getSessionDownloadedSize(), getSessionUploadedSize().
  12257. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  12258. getSessionUploadedSize() instead of getDownloadedSize(),
  12259. getUploadedSize().
  12260. * src/PendingMessage.cc (processMessage): Do not send request message
  12261. if the peer is choking the client.
  12262. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  12263. less than interval.
  12264. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12265. * configure.in: Added gnutls support. Added several CPP macros.
  12266. * m4/openssl.m4: Added.
  12267. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  12268. readData(), peekData(). Added gnutls support.
  12269. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  12270. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  12271. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  12272. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  12273. Instead, added a check for whether setup method has executed
  12274. successfully.
  12275. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  12276. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  12277. * src/Makefile.am: Updated.
  12278. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  12279. using whether OpenSSL or gcrypt, depending on the result of configure
  12280. script.
  12281. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  12282. messageDigest.h.
  12283. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  12284. * src/PeerListenCommand.cc: Added log about port binded successfully.
  12285. Fixed memory leak.
  12286. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  12287. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  12288. Removed instantiation of TrackerInitCommand. Instead,
  12289. TrackerWatcherCommand is instantiated and pushed to the command queue.
  12290. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  12291. ENABLE_SSL.
  12292. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  12293. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  12294. If a piece is already acquired by another command, delete the request
  12295. slots for the piece.
  12296. * src/TrackerUpdateCommand.cc (execute):
  12297. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  12298. Added a check whether peer list is null.
  12299. Fixed the bug that causes sending completed event to the tracker
  12300. several times.
  12301. * src/TrackerInitCommand.cc (execute):
  12302. Fixed the bug that causes sending completed event to the tracker
  12303. several times.
  12304. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  12305. by using messageDigest.h.
  12306. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12307. * PeerConnection.cc: Replaced log message "keep-alive" with
  12308. "keep alive".
  12309. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  12310. localhost long time.
  12311. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  12312. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  12313. at most 100 failure entry from the list. If with duplicate = false,
  12314. MAX_PEER_LIST is not checked.
  12315. * PeerListenCommand.cc: Fixed the argument order of log message.
  12316. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12317. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  12318. Added warn().
  12319. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  12320. Implemented warn().
  12321. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  12322. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12323. * Request.h: Added AFTER_COMPLETED event.
  12324. * TorrentDownloadEngine.cc: Prints "Download complete" message
  12325. instead of downloaded size and progress(%) after download completes.
  12326. * PeerInteractionCommand.cc: After download completes, sends unchoke
  12327. message to the peer if it is interested in what localhost has
  12328. downloaded.
  12329. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  12330. destination instead of just renaming it.
  12331. * TorrentMan.cc: Added deleteTempFile().
  12332. * PeerAbstractCommand.cc: do not stop execution after download
  12333. completes. This makes localhost a seeder.
  12334. * Util.{h,cc}: Added fileCopy().
  12335. * PeerListenCommand.cc: do not stop execution after download completes.
  12336. This makes localhost a seeder.
  12337. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  12338. Added TorrentMan::deleteTempFile() to torrentHandler.
  12339. Initialized the variable dir as ".".
  12340. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  12341. Deleted renameSingleFile().
  12342. Added copySingleFile(), deleteTempFile().
  12343. * DownloadEngine.h: Added virtual function afterEachIteration().
  12344. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  12345. in onEndOfRun() to afterEachIteration().
  12346. In onEndOfRun(), changed if condition to check whether filenameFixed is
  12347. true.
  12348. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  12349. In rangedFileCopy(), added try-catch block to properly close file
  12350. descriptors.
  12351. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  12352. Added afterEachIteration(), isFilenameFixed().
  12353. * Peer.cc: Changed choking strategy.
  12354. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  12355. * TrackerInitCommand.cc: Send completed event only once.
  12356. * DownloadEngine.cc: Added a call to afterEachIteration().
  12357. * TrackerUpdateCommand.cc: Do not stop execution after download
  12358. completes.
  12359. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  12360. connect the peers at most MAX_PEER_UPDATE when a peer list is
  12361. received from a tracker.
  12362. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  12363. Decreased the number of failure peers to delete to 0(just comment out
  12364. the line).
  12365. * Release 0.3.1
  12366. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12367. * PeerInteractionCommand.cc: added a call to
  12368. TorrentMan::unadvertisePiece in Destructor.
  12369. * PeerInteractionCommand.cc: make have message sent immediately
  12370. if the size of pending message queue is zero.
  12371. * TorrentMan.cc: set the maximum size of peer list to 250.
  12372. * TorrentMan.h: changed the container type of Peers and UsedPieces
  12373. to deque.
  12374. * Util.cc: fixed rangedFileCopy.
  12375. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  12376. to Constructor. Also, moved digest cleanup to Destructor.
  12377. * MetaFileUtil.cc: fixed memory leak
  12378. * replaced std::vector with std::deque.
  12379. * AbstractCommand.cc: casted timeout value to long long int.
  12380. * ChunkedEncoding.cc: fixed memory leak.
  12381. * PeerInteractionCommand.cc: casted timeout value to long long int.
  12382. * SleepCommand.cc: casted timeout value to long long int.
  12383. * Data.cc: fixed memory leak.
  12384. * Data.cc: fixed toLLInt().
  12385. * BitfieldMan.cc: fixed memory leak.
  12386. * TorrentMan.cc: initialized storeDir to ".".
  12387. * TorrentMan.cc: fixed memory leak.
  12388. * TorrentMan.cc: corrected file paths of splitted files.
  12389. * PeerAbstractCommand.cc: casted timeout to long long int.
  12390. * main.cc: added delete(req) and delete(te->diskWriter).
  12391. * RequestSlot.cc: casted timeout value to long long int.
  12392. * Request.cc: fixed memory leak.
  12393. * PendingMessage.cc: make HAVE messages sent only when peer does not
  12394. have the piece.
  12395. * Peer.{h,cc}: added hasPiece(int index).
  12396. * main.cc: corrected addCommand.
  12397. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12398. * BitTorrent protocol support added.
  12399. * Release 0.3.0
  12400. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12401. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  12402. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12403. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  12404. decoding did not work properly.
  12405. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12406. * DownloadEngine.h: included sys/time.h
  12407. * DownloadEngine.cc: remove sys/time.h
  12408. * Makefile.am (SUBDIRS): Add intl.
  12409. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  12410. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12411. * main.cc: correct help message for --http-auth-scheme.
  12412. * main.cc: changed e-mail address for bug reports.
  12413. * ja.po: added japanese translation.
  12414. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12415. * SimpleLogger.cc: flush log file instead of stdout.
  12416. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12417. * main.cc: Fixed command-line option: max-tries
  12418. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  12419. does not equal to seg.sp.
  12420. * DownloadCommand.cc: If EOF is got from the server and the total size
  12421. of file is not zero, then throw DlRetryEx.
  12422. * main.cc: Set the minium value of min-segment-size to 1024.
  12423. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  12424. fails because of a regression since 0.2.0 release.
  12425. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12426. * HttpConnection.cc:
  12427. * common.h: defined the user agent name as macro
  12428. * DownloadEngine.{h, cc}:
  12429. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  12430. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  12431. * main.cc: Download complete/abort message is now generated by main.
  12432. * Makefile.am (SUBDIRS): Add m4.
  12433. (ACLOCAL_AMFLAGS): New variable.
  12434. (EXTRA_DIST): New variable.
  12435. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  12436. * gettext: added gettext functionality
  12437. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12438. * AbstractCommand.cc:
  12439. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  12440. unregister its cuid from SegmentMan.
  12441. * DownloadEngine.cc: .aria2 file was written when a downloading
  12442. failed with errors.
  12443. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  12444. Added "User-Agent" header to CONNECT proxy request.
  12445. Fixed "Proxy-Authorization" header. Now proxy authorization works
  12446. properly.
  12447. * Logger.h:
  12448. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  12449. * ChunkedEncoding.cc: Added #include directive for strings.h
  12450. * Release 0.2.1
  12451. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12452. * Util.{h,cc}: added startsWith().
  12453. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  12454. Util::endsWith().
  12455. * SocketCore.cc: struct addrinfo is now zero-initialized.
  12456. * common.h: added #include directive of limit.h.
  12457. * DownloadEngine.cc: added #include directive of sys/time.h and
  12458. algorithm.
  12459. * Exception.h: added #include directive of stdio.h.
  12460. * AbstractCommand.h: added #include directive of sys/time.h.
  12461. * DownloadCommand.h: added #include directive of sys/time.h.
  12462. * *.h: added #include directive of common.h to all base classes.
  12463. subclasses' one was removed.
  12464. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  12465. does not define these macros.
  12466. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12467. * Release 0.2.0
  12468. * main.cc:
  12469. * HttpInitiateConnectionCommand.{h,cc}:
  12470. * prefs.h:
  12471. * HttpConnection.{h,cc}: added --http-proxy-method option.
  12472. We can now use GET command in http proxy.
  12473. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12474. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  12475. that splits slowest segment of SegmentMan::commands vector.
  12476. This is the default split algorithm of aria2.
  12477. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  12478. that splits first segment of SegmentMan::commands vector.
  12479. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  12480. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  12481. * Segment.h:
  12482. * SegmentMan.cc: Added speed field to Segment.h
  12483. * main.cc: -s option now affects all URLs in command-line arguemtns.
  12484. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  12485. * message.h: Change file size related %d to %lld.
  12486. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12487. * FtpInitiateConnectionCommand.{h,cc}:
  12488. * FtpNegotiationCommand.{h,cc}:
  12489. * FtpDownloadCommand.{h,cc}:
  12490. * FtpConnection.{h,cc}: Added FTP support
  12491. * SimpleLogger.cc: Log message now includes time information.
  12492. * main.cc: The value of --http-auth-scheme option is chagned from
  12493. 'BASIC' to 'basic'
  12494. * main.cc: Added --timeout command-line option.
  12495. * main.cc: Added --min-segment-size command-line option.
  12496. * main.cc: Added --max-retries command-line option.
  12497. * prefs.h: option string constants are now defined in prefs.h
  12498. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12499. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  12500. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  12501. with version 0.1.0's one.
  12502. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12503. * configure.in: Added --enable-ssl option to configure script.
  12504. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  12505. cannot permit absoluteURI as Request-URI.
  12506. * HttpConnection.cc: Added Referer support.
  12507. * main.cc: Added referer command-line option.
  12508. * main.cc: Added rety-wait command-line option.
  12509. * Exception.h: Fixed formating bug in Exception::setMsg()
  12510. * SocketCore.{h,cc}:
  12511. * Socket.{h, cc}:
  12512. * Request.cc:
  12513. * InitiateConnectionCommandFactory.cc:
  12514. * HttpRequestCommand.cc: Added HTTPS support.
  12515. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  12516. for SocketCore.
  12517. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  12518. size is wrong
  12519. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  12520. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  12521. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  12522. * Release 0.1.0