ChangeLog 531 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771
  1. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  2. Fixed the bug that aria2 aborts when --select-file is used. This
  3. bug was introduced in r1199.
  4. * src/MultiDiskAdaptor.cc
  5. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  6. Code cleanup
  7. * test/MockPieceStorage.cc
  8. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  9. Fixed the bug that read-only file with wrong file size will cause
  10. error because it cannot be truncated to the correct size. Now if
  11. file size is different than the expected one, re-open file in
  12. writable mode.
  13. * src/AbstractSingleDiskAdaptor.cc
  14. * src/AbstractSingleDiskAdaptor.h
  15. * src/BtCheckIntegrityEntry.cc
  16. * src/DiskAdaptor.h
  17. * src/MultiDiskAdaptor.h
  18. * src/RequestGroup.cc
  19. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  20. Fixed the bug that with --check-integrity option aria2 reports
  21. downloaded file size is 0 even if some parts of file is correctly
  22. downloaded. This bug is reproducible for the download that a file
  23. includes last piece is missing. This bug doesn't reveal for
  24. single-torrent with file allocation on.
  25. * src/IteratableChecksumValidator.cc
  26. * test/IteratableChecksumValidatorTest.cc
  27. 2009-05-01 Tatsuhiro Tsujikawa <[email protected]>
  28. Avoid circular reference between RequestGroup and AdaptiveURISelector
  29. * src/RequestGroupMan.cc
  30. * src/AdaptiveURISelector.cc
  31. * src/AdaptiveURISelector.h
  32. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  33. * Release 1.3.2
  34. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  35. Updated README
  36. * README
  37. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  38. Updated Ukrainian translations. Thanks to Alexander10.
  39. * po/uk.po
  40. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  41. Code cleanup
  42. * src/MetalinkParserStateMachine.cc
  43. * src/MetalinkParserStateMachine.h
  44. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  45. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  46. and expat simultaneously, MetalinkProcessor is now not base class
  47. and it is directly implemented in XML2SAXMetalinkProcessor and
  48. ExpatMetalinkProcessor.
  49. * src/ExpatMetalinkProcessor.cc
  50. * src/ExpatMetalinkProcessor.h
  51. * src/Makefile.am
  52. * src/MetalinkHelper.cc
  53. * src/MetalinkProcessor.h
  54. * src/MetalinkProcessorFactory.cc: Removed.
  55. * src/MetalinkProcessorFactory.h: Removed
  56. * src/XML2SAXMetalinkProcessor.cc
  57. * src/XML2SAXMetalinkProcessor.h
  58. * test/MetalinkProcessorTest.cc
  59. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  60. Bump up version number to 1.3.2
  61. * configure.ac
  62. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  63. Added missing file.
  64. * test/Makefile.am
  65. * test/url-list-singleFileEndsWithSlash.torrent
  66. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  67. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  68. request.
  69. * src/AnnounceList.cc
  70. * src/AnnounceList.h
  71. * src/BDE.cc: Added
  72. * src/BDE.h: Added
  73. * src/DHTAbstractMessage.cc
  74. * src/DHTAbstractMessage.h
  75. * src/DHTAnnouncePeerMessage.cc
  76. * src/DHTAnnouncePeerMessage.h
  77. * src/DHTAnnouncePeerReplyMessage.cc
  78. * src/DHTAnnouncePeerReplyMessage.h
  79. * src/DHTFindNodeMessage.cc
  80. * src/DHTFindNodeMessage.h
  81. * src/DHTFindNodeReplyMessage.cc
  82. * src/DHTFindNodeReplyMessage.h
  83. * src/DHTGetPeersMessage.cc
  84. * src/DHTGetPeersMessage.h
  85. * src/DHTGetPeersReplyMessage.cc
  86. * src/DHTGetPeersReplyMessage.h
  87. * src/DHTMessageFactory.h
  88. * src/DHTMessageFactoryImpl.cc
  89. * src/DHTMessageFactoryImpl.h
  90. * src/DHTMessageReceiver.cc
  91. * src/DHTMessageTracker.cc
  92. * src/DHTMessageTracker.h
  93. * src/DHTPingMessage.cc
  94. * src/DHTPingMessage.h
  95. * src/DHTPingReplyMessage.cc
  96. * src/DHTPingReplyMessage.h
  97. * src/DHTQueryMessage.cc
  98. * src/DHTQueryMessage.h
  99. * src/DHTResponseMessage.cc
  100. * src/DHTResponseMessage.h
  101. * src/DefaultBtAnnounce.cc
  102. * src/DefaultBtContext.cc
  103. * src/DefaultBtContext.h
  104. * src/HandshakeExtensionMessage.cc
  105. * src/Makefile.am
  106. * src/PeerListProcessor.h
  107. * src/UTPexExtensionMessage.cc
  108. * src/bencode.cc
  109. * src/bencode.h
  110. * test/AnnounceListTest.cc
  111. * test/BDETest.cc: Added
  112. * test/BencodeTest.cc
  113. * test/DHTAnnouncePeerMessageTest.cc
  114. * test/DHTAnnouncePeerReplyMessageTest.cc
  115. * test/DHTFindNodeMessageTest.cc
  116. * test/DHTFindNodeReplyMessageTest.cc
  117. * test/DHTGetPeersMessageTest.cc
  118. * test/DHTGetPeersReplyMessageTest.cc
  119. * test/DHTMessageFactoryImplTest.cc
  120. * test/DHTMessageTrackerTest.cc
  121. * test/DHTPingMessageTest.cc
  122. * test/DHTPingReplyMessageTest.cc
  123. * test/Makefile.am
  124. * test/MockDHTMessageFactory.h
  125. * test/PeerListProcessorTest.cc
  126. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  127. Use url-list (web-seeding) only for single-file torrent. This is
  128. basically the same behavior with Metalink file with torrent and
  129. URIs.
  130. * src/RequestGroup.cc
  131. * src/DefaultBtContext.cc
  132. * test/DefaultBtContextTest.cc
  133. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  134. Rewritten expr
  135. * src/array_fun.h
  136. * test/array_funTest.cc
  137. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  138. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  139. * src/DefaultBtMessageDispatcher.cc
  140. * src/a2algo.h
  141. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  142. Removed ExtendedMessagingAware. Instead of using inheritance,
  143. added ExtensionMessageRegistry and it is passed to
  144. DefaultExtensionMessageFactory.
  145. * src/DefaultBtInteractive.cc
  146. * src/DefaultBtInteractive.h
  147. * src/DefaultExtensionMessageFactory.cc
  148. * src/DefaultExtensionMessageFactory.h
  149. * src/ExtendedMessagingAware.h: Removed.
  150. * src/ExtensionMessageFactory.h
  151. * src/ExtensionMessageRegistry.h: Added.
  152. * src/Makefile.am
  153. * src/PeerInteractionCommand.cc
  154. * test/DefaultExtensionMessageFactoryTest.cc
  155. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  156. Fixed typo in log messages
  157. * src/MSEHandshake.cc
  158. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  159. Fixed the bug that prevents torrent download from finishing. The
  160. bug doesn't reveal for all torrents. The torrents affected this
  161. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  162. of pieces.
  163. * src/bitfield.h
  164. * test/bitfieldTest.cc
  165. 2009-04-24 Tatsuhiro Tsujikawa <[email protected]>
  166. Code cleanup
  167. * src/PeerListProcessor.h
  168. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  169. Removed RequestGroupAware
  170. * src/AbstractCommand.cc
  171. * src/AbstractCommand.h
  172. * src/ActivePeerConnectionCommand.cc
  173. * src/ActivePeerConnectionCommand.h
  174. * src/DHTGetPeersCommand.cc
  175. * src/DHTGetPeersCommand.h
  176. * src/InitiatorMSEHandshakeCommand.cc
  177. * src/InitiatorMSEHandshakeCommand.h
  178. * src/Makefile.am
  179. * src/PeerInitiateConnectionCommand.cc
  180. * src/PeerInitiateConnectionCommand.h
  181. * src/PeerInteractionCommand.cc
  182. * src/PeerInteractionCommand.h
  183. * src/RealtimeCommand.cc
  184. * src/RealtimeCommand.h
  185. * src/RequestGroupAware.cc: Removed
  186. * src/RequestGroupAware.h: Removed
  187. * src/SeedCheckCommand.cc
  188. * src/SeedCheckCommand.h
  189. * src/SleepCommand.cc
  190. * src/TrackerWatcherCommand.cc
  191. * src/TrackerWatcherCommand.h
  192. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  193. Rewritten PeerListProcessor
  194. * src/PeerListProcessor.h
  195. * src/CompactPeerListProcessor.h: Removed
  196. * src/CompactPeerListProcessor.cc: Removed
  197. * src/DelegatingPeerListProcessor.cc: Removed.
  198. * src/DefaultBtAnnounce.cc
  199. * src/Makefile.am
  200. * src/UTPexExtensionMessage.cc
  201. * src/DefaultPeerListProcessor.h: Removed.
  202. * src/DefaultPeerListProcessor.cc: Removed.
  203. * src/DelegatingPeerListProcessor.h: Removed.
  204. * test/Makefile.am
  205. * test/PeerListProcessorTest.cc
  206. * test/DefaultPeerListProcessorTest.cc: Removed.
  207. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  208. Rewritten RequestGroupMan::calculateStat()
  209. * src/RequestGroupMan.cc
  210. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  211. Removed unnecessary virtual destructor for Request class.
  212. * src/Request.cc
  213. * src/Request.h
  214. 2009-04-22 Tatsuhiro Tsujikawa <[email protected]>
  215. Avoid dynamic_pointer_cast.
  216. * src/DHTGetPeersCommand.cc
  217. * src/DHTGetPeersCommand.h
  218. 2009-04-21 Tatsuhiro Tsujikawa <[email protected]>
  219. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  220. BtEvent.
  221. * src/AbstractBtEventListener.h: Removed.
  222. * src/AbstractBtMessage.cc
  223. * src/AbstractBtMessage.h
  224. * src/BtAbortOutstandingRequestEvent.h
  225. * src/BtCancelSendingPieceEvent.h
  226. * src/BtChokedEvent.h: Removed.
  227. * src/BtChokingEvent.h
  228. * src/BtEvent.h: Removed
  229. * src/BtEventListener.h: Removed.
  230. * src/BtMessage.h
  231. * src/BtPieceMessage.cc
  232. * src/BtPieceMessage.h
  233. * src/BtRequestMessage.cc
  234. * src/BtRequestMessage.h
  235. * src/DefaultBtMessageDispatcher.cc
  236. * src/Makefile.am
  237. * src/a2functional.h
  238. * test/BtPieceMessageTest.cc
  239. * test/BtRequestMessageTest.cc
  240. * test/DefaultBtMessageDispatcherTest.cc
  241. * test/MockBtMessage.h
  242. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  243. Code cleanup
  244. * src/RequestGroupMan.cc
  245. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  246. Code cleanup
  247. * src/DownloadCommand.cc
  248. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  249. Fixed segmentation fault when GZipDecoder::decode() returns 0
  250. byte.
  251. * src/DownloadCommand.cc
  252. * src/bitfield.h
  253. * test/bitfieldTest.cc
  254. Fixed the bug that causes infinite loop if broken web server
  255. returns chunked response without last "0" chunk-size marker and
  256. closes connection.
  257. * src/DownloadCommand.cc
  258. Instantiate properly configured HttpDownloadCommand for
  259. non-resumable downlaods.
  260. * src/HttpResponseCommand.cc
  261. 2009-04-16 Tatsuhiro Tsujikawa <[email protected]>
  262. Rewritten array operation functions.
  263. * src/BitfieldMan.cc
  264. * src/array_fun.h
  265. * test/array_funTest.cc
  266. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  267. Removed unused variable 'query'
  268. * src/Request.cc
  269. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  270. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  271. accidentally set to false in r1162.
  272. * configure.ac
  273. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  274. Code cleanup
  275. * src/BNode.cc
  276. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  277. Increase prefixLength for the bucket which doesn't own local node
  278. ID when splitting bucket.
  279. * src/DHTBucket.cc
  280. * test/DHTBucketTest.cc
  281. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  282. * Release 1.3.1
  283. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  284. Bump up version number to 1.3.1
  285. * configure.ac
  286. 2009-04-08 Tatsuhiro Tsujikawa <[email protected]>
  287. Removed unused variable checkPoint. Also removed include directive
  288. for TimeA2.h.
  289. * src/SeedCheckCommand.h
  290. 2009-04-07 Tatsuhiro Tsujikawa <[email protected]>
  291. Fixed the bug that upload limit exceeds the value specified in
  292. --seed-ratio option depending on the timing of the execution of
  293. SeedCheckCommand.
  294. * src/SeedCheckCommand.cc
  295. 2009-04-05 Tatsuhiro Tsujikawa <[email protected]>
  296. Fixed the bug that removed peer's session upload/download length
  297. are counted twice in _cachedTransferStat before it is
  298. re-calculated. This affected the calculation of shara ratio,
  299. resulting aria2 wrongly determines that specified share ratio is
  300. reached. Also fixed the typo in calculateStatFor function name.
  301. * src/BtSetup.cc
  302. * src/DefaultPeerStorage.cc
  303. * src/ShareRatioSeedCriteria.h
  304. * test/ShareRatioSeedCriteriaTest.cc
  305. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  306. * Release 1.3.0
  307. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  308. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  309. Nynorsk translations. Thanks to all translators.
  310. * po/es.po
  311. * po/ja.po
  312. * po/nn.po
  313. * po/ru.po
  314. * po/uk.po
  315. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  316. Rewritten isInRange()
  317. * src/DHTBucket.cc
  318. * test/DHTBucketTest.cc
  319. 2009-03-30 Tatsuhiro Tsujikawa <[email protected]>
  320. Fixed typo
  321. * doc/aria2c.1.txt
  322. 2009-03-29 Tatsuhiro Tsujikawa <[email protected]>
  323. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  324. malloc/realloc is not used.
  325. * src/configure.ac
  326. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  327. BitfieldMan::getMissingIndexes family functions now takes unsigned
  328. char* bitfield instead of stl container for efficiency.
  329. PieceSelector::select now takes this
  330. bitfield. RarestPieceSelector::select now also performs
  331. efficiently for this change. bitfield namespace is introduced and
  332. it has several helper functions to handle basic bitfield
  333. operations such as test, count set bits, etc.
  334. * src/BitfieldMan.cc
  335. * src/BitfieldMan.h
  336. * src/DefaultBtRequestFactory.cc
  337. * src/DefaultPieceStorage.cc
  338. * src/DefaultPieceStorage.h
  339. * src/LongestSequencePieceSelector.cc
  340. * src/LongestSequencePieceSelector.h
  341. * src/Makefile.am
  342. * src/Piece.cc
  343. * src/Piece.h
  344. * src/PieceSelector.h
  345. * src/RarestPieceSelector.cc
  346. * src/RarestPieceSelector.h
  347. * src/Util.cc
  348. * src/Util.h
  349. * src/bitfield.h
  350. * test/BitfieldManTest.cc
  351. * test/LongestSequencePieceSelectorTest.cc
  352. * test/Makefile.am
  353. * test/RarestPieceSelectorTest.cc
  354. * test/UtilTest.cc
  355. * test/bitfieldTest.cc
  356. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  357. Made accepted socket non-block.
  358. * src/FtpNegotiationCommand.cc
  359. * src/HttpListenCommand.cc
  360. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  361. Guarded #ifdef HAVE_POSIX_FALLOCATE
  362. * src/AbstractSingleDiskAdaptor.cc
  363. * src/DefaultPieceStorage.cc
  364. * src/DiskAdaptor.h
  365. * src/DiskAdaptor.h
  366. * src/MultiFileAllocationIterator.cc
  367. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  368. Run
  369. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  370. in every 1 sec. The timeout of RequestSlot is 60s by default and
  371. it doesn't need to be called every time when
  372. DefaultBtInteractive::doInteractionProcessing() is called.
  373. * src/DefaultBtInteractive.cc
  374. * src/DefaultBtInteractive.h
  375. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  376. Documented 'falloc' in man page.
  377. * doc/aria2c.1.txt
  378. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  379. Updated doc
  380. * src/usage_text.h
  381. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  382. Added 'falloc' parameter for --file-allocation option. 'falloc'
  383. allocation mode uses posix_fallocate() system call to allocate
  384. file on disk. If you are using newer file systems such as ext4
  385. (with extents support), btrfs or xfs, 'falloc' is your best
  386. choice. It allocates large(few GiB) files almost instantly. Don't
  387. use 'falloc' with legacy file systems such as ext3 because it
  388. takes almost same time as 'prealloc' and it blocks aria2 entirely
  389. until allocation finishes. 'falloc' may not be available if your
  390. system doesn't have posix_fallocate() system call.
  391. * configure.ac
  392. * src/AbstractDiskWriter.cc
  393. * src/AbstractDiskWriter.h
  394. * src/AbstractSingleDiskAdaptor.cc
  395. * src/BinaryStream.h
  396. * src/BtCheckIntegrityEntry.cc
  397. * src/ByteArrayDiskWriter.h
  398. * src/CheckIntegrityEntry.cc
  399. * src/CheckIntegrityEntry.h
  400. * src/DefaultPieceStorage.cc
  401. * src/DiskAdaptor.cc
  402. * src/DiskAdaptor.h
  403. * src/DiskWriter.h
  404. * src/FallocFileAllocationIterator.cc
  405. * src/FallocFileAllocationIterator.h
  406. * src/FileAllocationEntry.cc
  407. * src/FileAllocationEntry.h
  408. * src/Makefile.am
  409. * src/MultiFileAllocationIterator.cc
  410. * src/MultiFileAllocationIterator.h
  411. * src/OptionHandlerFactory.cc
  412. * src/RequestGroup.cc
  413. * src/StreamCheckIntegrityEntry.cc
  414. * src/prefs.cc
  415. * src/prefs.h
  416. * src/usage_text.h
  417. * test/FallocFileAllocationIteratorTest.cc
  418. * test/Makefile.am
  419. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  420. Removed duplicate enableDirectIO() call.
  421. * src/MultiFileAllocationIterator.cc
  422. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  423. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  424. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  425. cost of std::rotate().
  426. * src/RarestPieceSelector.cc
  427. * src/RarestPieceSelector.h
  428. * test/RarestPieceSelectorTest.cc
  429. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  430. Updated usage doc for --bt-tracker-interval option.
  431. * src/usage_text.h
  432. * doc/aria2c.1.txt
  433. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  434. Documented --bt-tracker-interval option in man page.
  435. * doc/aria2c.1.txt
  436. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  437. Added an option to specify the interval between tracker requests.
  438. If non-zero value is specified, aria2 uses it and ignores the
  439. interval value in the response of tracker. If zero is specified,
  440. aria2 determines the inteval value based on the tarcker response
  441. and download progress.
  442. * src/DefaultBtAnnounce.cc
  443. * src/DefaultBtAnnounce.h
  444. * src/OptionHandlerFactory.cc
  445. * src/RequestGroup.cc
  446. * src/prefs.cc
  447. * src/prefs.h
  448. * src/usage_text.h
  449. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  450. Added operator+=, operator-=, operator-
  451. * src/TransferStat.cc
  452. * src/TransferStat.h
  453. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  454. Refactored RarestPieceSelector to reduce CPU load, especially for
  455. addPieceStats.
  456. * src/RarestPieceSelector.cc
  457. * src/RarestPieceSelector.h
  458. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  459. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  460. getAllMissingBlockIndexes to reduce a call to
  461. array_function_base::operator[].
  462. * src/BitfieldMan.cc
  463. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  464. Cached TransferStat/download speed to avoid to sum them up in each
  465. call.
  466. * src/DefaultPeerStorage.cc
  467. * src/DefaultPeerStorage.h
  468. * src/SegmentMan.cc
  469. * src/SegmentMan.h
  470. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  471. Typedefed cuid_t as int32_t in Command.h
  472. * src/CUIDCounter.h
  473. * src/Command.cc
  474. * src/Command.h
  475. * src/DownloadEngine.cc
  476. * src/DownloadEngine.h
  477. * src/PeerStat.h
  478. * src/SegmentMan.cc
  479. * src/SegmentMan.h
  480. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  481. Reduced the number of calls to PeerStorage::calculateStat() and
  482. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  483. transfer rate.
  484. * src/DefaultBtInteractive.cc
  485. * src/DefaultBtMessageDispatcher.cc
  486. * src/DefaultPeerStorage.cc
  487. * src/DefaultPeerStorage.h
  488. * src/DownloadCommand.cc
  489. * src/DownloadEngine.cc
  490. * src/PeerStorage.h
  491. * src/SegmentMan.cc
  492. * src/SegmentMan.h
  493. * test/MockPeerStorage.h
  494. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  495. Prepended _dir+"/" after joining path elements in torrent file.
  496. * src/DefaultBtContext.cc
  497. * test/DefaultBtContextTest.cc
  498. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  499. Added missing IndexBtMessageValidator.h
  500. * src/Makefile.am
  501. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  502. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  503. Chinese translations. Thank you for contributing our project.
  504. * po/id.po
  505. * po/it.po
  506. * po/ru.po
  507. * po/uk.po
  508. * po/zh_CN.po
  509. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  510. Updated README
  511. * README
  512. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  513. Bump up version number to 1.3.0
  514. * configure.ac
  515. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  516. Updated doc
  517. * src/DefaultBtContext.h
  518. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  519. Slice/joinPath for name of single torrent.
  520. * src/DefaultBtContext.cc
  521. * test/DefaultBtContextTest.cc
  522. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  523. Updated man page: Documented --dry-run and --index-out
  524. options. Changed the default value of --uri-selector and
  525. --http-auth-challenge options. Removed --direct-file-mapping
  526. option. Added example for --index-out
  527. * doc/aria2c.1.txt
  528. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  529. Updated TEXT_DRY_RUN
  530. * src/usage_text.h
  531. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  532. Changed the default value of --uri-selector option from 'inorder'
  533. to 'feedback'
  534. * src/OptionHandlerFactory.cc
  535. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  536. Included current URI in exception message.
  537. * src/AbstractCommand.cc
  538. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  539. Renamed ServerStatURISelector as FeedbackURISelector.
  540. * src/FeedbackURISelector.cc
  541. * src/FeedbackURISelector.h
  542. * src/Makefile.am
  543. * src/RequestGroupMan.cc
  544. * src/ServerStatURISelector.cc
  545. * src/ServerStatURISelector.h
  546. * test/FeedbackURISelectorTest.cc
  547. * test/Makefile.am
  548. * test/ServerStatURISelectorTest.cc
  549. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  550. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  551. all URIs are tested and their timeout is not reached.
  552. * src/AdaptiveURISelector.cc
  553. * src/AdaptiveURISelector.h
  554. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  555. Changed the default value of --http-auth-challenge option to false.
  556. * src/OptionHandlerFactory.cc
  557. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  558. Reuse URIs when all unused URIs run out.
  559. * src/OptionHandlerFactory.cc
  560. * src/RequestGroup.cc
  561. * src/prefs.cc
  562. * src/prefs.h
  563. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  564. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  565. and BtRejectMessage are derived from RangeBtMessage class.
  566. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  567. derived from IndexBtMessage class. BtChokeMessage,
  568. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  569. BtNotInterestedMessage and BtUnchokeMessage are derived from
  570. ZeroBtMessage class.
  571. * src/AbstractBtMessage.cc
  572. * src/AbstractBtMessage.h
  573. * src/BtAllowedFastMessage.cc
  574. * src/BtAllowedFastMessage.h
  575. * src/BtAllowedFastMessageValidator.h: Removed
  576. * src/BtBitfieldMessage.cc
  577. * src/BtBitfieldMessage.h
  578. * src/BtCancelMessage.cc
  579. * src/BtCancelMessage.h
  580. * src/BtCancelMessageValidator.h: Removed
  581. * src/BtChokeMessage.cc
  582. * src/BtChokeMessage.h
  583. * src/BtExtendedMessage.cc
  584. * src/BtExtendedMessage.h
  585. * src/BtHandshakeMessage.cc
  586. * src/BtHandshakeMessage.h
  587. * src/BtHaveAllMessage.cc
  588. * src/BtHaveAllMessage.h
  589. * src/BtHaveMessage.cc
  590. * src/BtHaveMessage.h
  591. * src/BtHaveMessageValidator.h: Removed
  592. * src/BtHaveNoneMessage.cc
  593. * src/BtHaveNoneMessage.h
  594. * src/BtInterestedMessage.cc
  595. * src/BtInterestedMessage.h
  596. * src/BtKeepAliveMessage.cc
  597. * src/BtKeepAliveMessage.h
  598. * src/BtNotInterestedMessage.cc
  599. * src/BtNotInterestedMessage.h
  600. * src/BtPieceMessage.cc
  601. * src/BtPieceMessage.h
  602. * src/BtPortMessage.cc
  603. * src/BtPortMessage.h
  604. * src/BtRejectMessage.cc
  605. * src/BtRejectMessage.h
  606. * src/BtRejectMessageValidator.h: Removed
  607. * src/BtRequestMessage.cc
  608. * src/BtRequestMessage.h
  609. * src/BtRequestMessageValidator.h: Removed
  610. * src/BtSuggestPieceMessage.cc
  611. * src/BtSuggestPieceMessage.h
  612. * src/BtSuggestPieceMessageValidator.h: Removed
  613. * src/BtUnchokeMessage.cc
  614. * src/BtUnchokeMessage.h
  615. * src/DefaultBtMessageFactory.cc
  616. * src/IndexBtMessage.cc
  617. * src/IndexBtMessage.h
  618. * src/IndexBtMessageValidator.h
  619. * src/Makefile.am
  620. * src/PeerMessageUtil.cc
  621. * src/PeerMessageUtil.h
  622. * src/RangeBtMessage.cc
  623. * src/RangeBtMessage.h
  624. * src/RangeBtMessageValidator.h
  625. * src/SimpleBtMessage.cc
  626. * src/SimpleBtMessage.h
  627. * src/ZeroBtMessage.cc
  628. * src/ZeroBtMessage.h
  629. * test/BtRequestMessageTest.cc
  630. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  631. Reverted usage_text.h to r1093 to avoid to lose translated
  632. messages.
  633. * src/usage_text.h
  634. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  635. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  636. declared as non-const previously is now const and defined in class
  637. definition.
  638. * src/AbstractBtMessage.cc
  639. * src/AbstractBtMessage.h
  640. * src/BtAllowedFastMessage.cc
  641. * src/BtAllowedFastMessage.h
  642. * src/BtBitfieldMessage.h
  643. * src/BtCancelMessage.cc
  644. * src/BtCancelMessage.h
  645. * src/BtChokeMessage.cc
  646. * src/BtChokeMessage.h
  647. * src/BtExtendedMessage.cc
  648. * src/BtExtendedMessage.h
  649. * src/BtHandshakeMessage.cc
  650. * src/BtHandshakeMessage.h
  651. * src/BtHaveAllMessage.cc
  652. * src/BtHaveAllMessage.h
  653. * src/BtHaveMessage.cc
  654. * src/BtHaveMessage.h
  655. * src/BtHaveNoneMessage.cc
  656. * src/BtHaveNoneMessage.h
  657. * src/BtInterestedMessage.cc
  658. * src/BtInterestedMessage.h
  659. * src/BtKeepAliveMessage.cc
  660. * src/BtKeepAliveMessage.h
  661. * src/BtMessage.h
  662. * src/BtNotInterestedMessage.cc
  663. * src/BtNotInterestedMessage.h
  664. * src/BtPieceMessage.h
  665. * src/BtPortMessage.cc
  666. * src/BtPortMessage.h
  667. * src/BtRejectMessage.cc
  668. * src/BtRejectMessage.h
  669. * src/BtRequestMessage.cc
  670. * src/BtRequestMessage.h
  671. * src/BtSuggestPieceMessage.cc
  672. * src/BtSuggestPieceMessage.h
  673. * src/BtUnchokeMessage.cc
  674. * src/BtUnchokeMessage.h
  675. * src/SimpleBtMessage.cc
  676. * src/SimpleBtMessage.h
  677. * test/MockBtMessage.h
  678. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  679. Use FileEntry::exists()
  680. * src/MultiDiskAdaptor.cc
  681. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  682. Added exists()
  683. * src/FileEntry.cc
  684. * src/FileEntry.h
  685. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  686. Added missing prefix dir.
  687. * src/download_helper.cc
  688. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  689. Removed --direct-file-mapping option and CopyDiskAdaptor.
  690. * src/CopyDiskAdaptor.cc: Removed
  691. * src/CopyDiskAdaptor.h: Removed
  692. * src/DefaultPieceStorage.cc
  693. * src/Makefile.am
  694. * src/OptionHandlerFactory.cc
  695. * src/prefs.cc
  696. * src/prefs.h
  697. * src/usage_text.h
  698. * test/CopyDiskAdaptorTest.cc: Removed
  699. * test/Makefile.am
  700. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  701. Rewritten isSameFileBeingDownloaded()
  702. * src/RequestGroupMan.cc
  703. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  704. Removed getName() from DownloadContext. getName() is declared in
  705. BtContext.
  706. * src/BtContext.h
  707. * src/DownloadContext.h
  708. * src/SingleFileDownloadContext.cc
  709. * src/SingleFileDownloadContext.h
  710. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  711. in AbstractSingleDiskAdaptor.
  712. * src/AbstractSingleDiskAdaptor.h
  713. * src/DiskAdaptor.h
  714. * src/MultiDiskAdaptor.h
  715. * src/RequestGroup.cc
  716. Removed setTopDir() and getTopDir() and getTopDirPath() from
  717. MultiDiskAdaptor.
  718. * src/DefaultPieceStorage.cc
  719. * src/MultiDiskAdaptor.cc
  720. * src/MultiDiskAdaptor.h
  721. * test/MultiDiskAdaptorTest.cc
  722. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  723. FileEntry::getPath() contains store(top level) directory to
  724. simplify path handling operation. In the previous implementation,
  725. store directory is concatenated to FileEntry::getPath() in
  726. DownloadContext.
  727. * src/BtDependency.cc
  728. * src/BtPostDownloadHandler.cc
  729. * src/CopyDiskAdaptor.cc
  730. * src/DefaultBtContext.cc
  731. * src/DirectDiskAdaptor.cc
  732. * src/FileEntry.cc
  733. * src/FileEntry.h
  734. * src/FtpNegotiationCommand.cc
  735. * src/HttpResponse.cc
  736. * src/HttpResponseCommand.cc
  737. * src/Metalink2RequestGroup.cc
  738. * src/MultiDiskAdaptor.cc
  739. * src/MultiDiskAdaptor.h
  740. * src/MultiFileAllocationIterator.cc
  741. * src/RequestGroup.cc
  742. * src/SingleFileDownloadContext.cc
  743. * src/SingleFileDownloadContext.h
  744. * src/download_helper.cc
  745. * test/BtDependencyTest.cc
  746. * test/CopyDiskAdaptorTest.cc
  747. * test/DefaultBtContextTest.cc
  748. * test/DefaultBtProgressInfoFileTest.cc
  749. * test/DirectDiskAdaptorTest.cc
  750. * test/DownloadHelperTest.cc
  751. * test/FileEntryTest.cc
  752. * test/MultiDiskAdaptorTest.cc
  753. * test/MultiFileAllocationIteratorTest.cc
  754. * test/RequestGroupTest.cc
  755. * test/SingleFileDownloadContextTest.cc
  756. 2009-03-09 Tatsuhiro Tsujikawa <[email protected]>
  757. Fixed compiler warning
  758. * src/download_helper.cc
  759. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  760. Throw exception if same infohash torrent is now downloading.
  761. * src/RequestGroup.cc
  762. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  763. Added --dry-run option. In this mode, aria2 just checks whether
  764. the remote file is available and doesn't download data. This
  765. option has effect on HTTP/FTP downloads and BitTorrent downloads
  766. are canceled in this mode.
  767. * src/FtpNegotiationCommand.cc
  768. * src/HttpResponseCommand.cc
  769. * src/HttpResponseCommand.h
  770. * src/OptionHandlerFactory.cc
  771. * src/RequestGroup.cc
  772. * src/RequestGroupMan.cc
  773. * src/prefs.cc
  774. * src/prefs.h
  775. * src/usage_text.h
  776. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  777. Fixed compiler waring
  778. * test/UriListParserTest.cc
  779. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  780. Parse options in -i list using OptionParser.
  781. * src/UriListParser.cc
  782. * src/UriListParser.h
  783. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  784. Don't reset URI in retry to avoid additional round trips because
  785. of redirects.
  786. * src/AbstractCommand.cc
  787. * src/OptionHandlerFactory.cc
  788. * src/prefs.cc
  789. * src/prefs.h
  790. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  791. Declared hide() in OptionHandler.
  792. * src/NameMatchOptionHandler.h
  793. * src/OptionHandler.h
  794. * src/OptionHandlerImpl.h
  795. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  796. Updated doc
  797. * src/Peer.h
  798. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  799. Added log message in setStatusInternal()
  800. * src/ServerStat.cc
  801. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  802. Call ServerStat::setError() in AbstractCommand::onAbort() to
  803. effectively exclude failed server.
  804. * src/AbstractCommand.cc
  805. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  806. Added --index-out option to specify each file path for torrent.
  807. Here index shown in --show-files option is used to specify which
  808. file path should be altered. For example, to change the file path
  809. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  810. option multiple times: --index-out=1=aria2.tar.bz2
  811. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  812. available. This option can be specified in -i list.
  813. * src/DefaultBtContext.cc
  814. * src/DefaultBtContext.h
  815. * src/MultiDiskAdaptor.cc
  816. * src/MultiDiskAdaptor.h
  817. * src/MultiFileAllocationIterator.cc
  818. * src/OptionHandlerFactory.cc
  819. * src/OptionHandlerImpl.h
  820. * src/Util.cc
  821. * src/Util.h
  822. * src/download_helper.cc
  823. * src/prefs.cc
  824. * src/prefs.h
  825. * src/usage_text.h
  826. * test/DefaultBtContextTest.cc
  827. * test/MultiDiskAdaptorTest.cc
  828. * test/MultiFileAllocationIteratorTest.cc
  829. * test/UtilTest.cc
  830. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  831. Use Util::pathJoin()
  832. * src/MetalinkParserController.cc
  833. * test/test.xml
  834. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  835. Use Util::pathJoin()
  836. * src/DefaultBtContext.cc
  837. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  838. Added Util::pathJoin()
  839. * src/Util.h
  840. * test/UtilTest.cc
  841. 2009-03-04 Tatsuhiro Tsujikawa <[email protected]>
  842. Applied basename function to remove directory element in
  843. content-disposition value.
  844. Return empty string if content-disposition value is ".." or ".".
  845. * src/Util.cc
  846. * test/UtilTest.cc
  847. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  848. Added --max-overall-download-limit in man page.
  849. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  850. * doc/aria2c.1.txt
  851. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  852. Added --max-overall-download-limit option. Now --max-upload-limit
  853. option is not ignored when --max-overall-upload-limit option has
  854. non-zero value. aria2 checks download(upload) speed in the order:
  855. first checks overall speed limit and if it is not exceeded, then
  856. checks speed limit per download. Thus you can specify both
  857. value. For example, set --max-overall-download-limit=1M and
  858. --max-download-limit=500K to prevent from one download from eating
  859. all overall speed limit.
  860. * src/DefaultBtInteractive.cc
  861. * src/DefaultBtInteractive.h
  862. * src/DefaultBtMessageDispatcher.cc
  863. * src/DefaultBtMessageDispatcher.h
  864. * src/DownloadCommand.cc
  865. * src/DownloadCommand.h
  866. * src/FtpNegotiationCommand.cc
  867. * src/HttpResponseCommand.cc
  868. * src/OptionHandlerFactory.cc
  869. * src/PeerInteractionCommand.cc
  870. * src/RequestGroup.cc
  871. * src/RequestGroup.h
  872. * src/RequestGroupMan.cc
  873. * src/RequestGroupMan.h
  874. * src/prefs.cc
  875. * src/prefs.h
  876. * src/usage_text.h
  877. * test/DefaultBtMessageDispatcherTest.cc
  878. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  879. Documented select-file option in Input File section.
  880. Documented --http-auth-challenge option.
  881. * doc/aria2c.1.txt
  882. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  883. Now select-file can be specified in the uri list(-i list).
  884. * src/BtContext.cc
  885. * src/BtContext.h
  886. * src/RequestGroup.cc
  887. * src/Sequence.h
  888. * src/download_helper.cc
  889. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  890. Made the upper value of --max-concurrent-downloads options unlimited.
  891. * src/OptionHandlerFactory.cc
  892. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  893. Fixed the bug that disk writer is not created even if it shares
  894. same piece with the preceding file if the length of previous file
  895. is 0.
  896. * src/MultiDiskAdaptor.cc
  897. * test/MultiDiskAdaptorTest.cc
  898. 2009-02-23 Tatsuhiro Tsujikawa <[email protected]>
  899. In BitTorrent, Open files in read-only mode for hash check. After
  900. that, re-open file in read/write mode only when the download is
  901. not finished.
  902. * src/AbstractDiskWriter.cc
  903. * src/AbstractDiskWriter.h
  904. * src/AbstractSingleDiskAdaptor.cc
  905. * src/AbstractSingleDiskAdaptor.h
  906. * src/BtCheckIntegrityEntry.cc
  907. * src/DiskAdaptor.h
  908. * src/DiskWriter.h
  909. * src/MultiDiskAdaptor.cc
  910. * src/MultiDiskAdaptor.h
  911. * src/RequestGroup.cc
  912. 2009-02-19 Tatsuhiro Tsujikawa <[email protected]>
  913. Added --http-auth-challenge option. If it is set to true(by
  914. default), aria2 sends HTTP authorization header only when it is
  915. requested by the server. If false is set, then authorization
  916. header is always sent to the server. This is useful for servers
  917. that don't respond 401 code when authentication is required.
  918. There is an exception: if username and password are embedded in
  919. URI, authorization header is always sent to the server regardless
  920. of this option.
  921. * src/AuthConfigFactory.cc
  922. * src/HttpSkipResponseCommand.cc
  923. * src/OptionHandlerFactory.cc
  924. * src/prefs.cc
  925. * src/prefs.h
  926. * src/usage_text.h
  927. * test/AuthConfigFactoryTest.cc
  928. * test/HttpRequestTest.cc
  929. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  930. * Release 1.2.0
  931. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  932. Updated Spanish, Ukrainian, Russian and Japanese translations.
  933. Thanks to all translators.
  934. * po/es.po
  935. * po/ja.po
  936. * po/ru.po
  937. * po/uk.po
  938. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  939. Call deleteSocketForReadCheck() before socket is closed.
  940. * src/HttpListenCommand.cc
  941. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  942. Defined virtual destructor for BObject.
  943. * src/bencode.h
  944. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  945. Rewritten BDE to make it efficient.
  946. * src/bencode.cc
  947. * src/bencode.h
  948. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  949. Removed function throw list.
  950. * src/bencode.cc
  951. * src/bencode.h
  952. * test/BencodeTest.cc
  953. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  954. Enclosed all URLs in double quotes in command-line examples.
  955. * doc/aria2c.1.txt
  956. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  957. Updated reference/see also section.
  958. * README
  959. * doc/aria2c.1.txt
  960. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  961. Reorganized man page based on man man-pages.
  962. * doc/aria2c.1.txt
  963. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  964. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  965. because same documents are available in man page. Added
  966. References section.
  967. * README
  968. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  969. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  970. PERFORMANCE PROFILE section.
  971. * doc/aria2c.1.txt
  972. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  973. Rewritten the section for configuration file.
  974. * README
  975. * doc/aria2c.1.txt
  976. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  977. Fixed the segmentation fault during execution of choking algorithm
  978. in leecher state because of broken compare operator
  979. implementation.
  980. * src/BtLeecherStateChoke.cc
  981. * src/BtLeecherStateChoke.h
  982. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  983. Open file in binary mode.
  984. * src/CookieStorage.cc
  985. * src/DHTSetup.cc
  986. * src/DHTUtil.cc
  987. * src/Netrc.cc
  988. * src/NsCookieParser.cc
  989. * src/ProtocolDetector.cc
  990. * src/RequestGroupMan.cc
  991. * src/Signature.cc
  992. * src/bencode.cc
  993. * src/download_helper.cc
  994. * src/option_processing.cc
  995. * test/CookieParserTest.cc
  996. * test/DefaultBtProgressInfoFileTest.cc
  997. * test/FileTest.cc
  998. * test/GZipDecoderTest.cc
  999. * test/RequestGroupManTest.cc
  1000. * test/SignatureTest.cc
  1001. * test/SingleFileAllocationIteratorTest.cc
  1002. * test/UriListParserTest.cc
  1003. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1004. Removed operator[] because it is ambiguous with built-in []
  1005. operator.
  1006. * src/array_fun.h
  1007. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1008. Fixed compile error
  1009. * src/OptionParser.cc
  1010. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1011. Added missing call to arrayWrapperConst
  1012. * test/array_funTest.cc
  1013. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1014. Use array_wrapper instead of array_ptr.
  1015. * src/DHTRoutingTableDeserializer.cc
  1016. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1017. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1018. * src/array_fun.h
  1019. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1020. Added array_wrapper template.
  1021. * src/array_fun.h
  1022. * test/array_funTest.cc
  1023. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1024. Use operator T* of array_ptr.
  1025. * src/OptionParser.cc
  1026. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1027. Use localhost instead of 127.0.0.1
  1028. * test/FtpConnectionTest.cc
  1029. * test/MSEHandshakeTest.cc
  1030. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1031. Added operator T*
  1032. * src/array_fun.h
  1033. * test/array_funTest.cc
  1034. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1035. Use dynamically allocated char array to detect memory access
  1036. violation.
  1037. * src/DHTRoutingTableDeserializer.cc
  1038. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1039. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1040. defined.
  1041. * src/PeerMessageUtil.cc
  1042. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1043. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1044. * configure.ac
  1045. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1046. Added a check to see struct sockaddr_in has sin_len member.
  1047. * configure.ac
  1048. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1049. Fixed buffer overrun.
  1050. * src/DHTRoutingTableDeserializer.cc
  1051. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1052. Added LL for long long int constant.
  1053. * test/FtpConnectionTest.cc
  1054. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1055. Casted to unsigned int to suppress compiler warning on netbsd.
  1056. * src/BtRuntime.h
  1057. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1058. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1059. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1060. type time_t.
  1061. * src/SimpleLogger.cc
  1062. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1063. Added test for FtpConnection::receiveSizeResponse().
  1064. * test/FtpConnectionTest.cc
  1065. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1066. Fix epoll error on the old kernel 2.6.8 or ealier.
  1067. * src/EpollEventPoll.cc
  1068. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1069. Use Util::parseLLInt instead of sscanf for portability. The
  1070. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1071. * src/FtpConnection.cc
  1072. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1073. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1074. block. It should not filter anything.
  1075. * src/BitfieldMan.cc
  1076. * src/ConsoleStatCalc.cc
  1077. * test/BitfieldManTest.cc
  1078. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1079. Fixed the bug that the boolean options that don't take arguments
  1080. don't work.
  1081. * src/OptionHandlerImpl.h
  1082. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1083. Fixed broken selected file BitTorrent download.
  1084. * src/MultiDiskAdaptor.cc
  1085. * test/MultiDiskAdaptorTest.cc
  1086. * test/MultiFileAllocationIteratorTest.cc
  1087. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1088. Fixed #define guard for EpollEventPoll
  1089. * src/EpollEventPoll.h
  1090. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1091. Wait 2 seconds. 1 second is sometimes not enough.
  1092. * test/TimeSeedCriteriaTest.cc
  1093. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1094. Use localhost instead of 127.0.0.1.
  1095. * test/DHTConnectionImplTest.cc
  1096. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1097. Suppressed compiler warning.
  1098. * src/AdaptiveURISelector.cc
  1099. * src/DefaultPieceStorage.cc
  1100. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1101. Defined virtual destructor.
  1102. * src/MetalinkParserState.h
  1103. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1104. Give NULL for second argument of getaddrinfo instead of "0".
  1105. * src/NameResolver.cc
  1106. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1107. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1108. included strptime doesn't parse data for this format.
  1109. * src/FtpConnection.cc
  1110. * test/FtpConnectionTest.cc
  1111. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1112. Removed tests giving -1 for unsigned argument.
  1113. * test/SingleFileDownloadContextTest.cc
  1114. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1115. Don't use sha256 in tests because it might not be supported by the
  1116. SSL library.
  1117. * test/MetalinkProcessorTest.cc
  1118. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1119. Removed tests giving -1 for unsigned argument.
  1120. * test/AlphaNumberDecoratorTest
  1121. * test/BitfieldManTest.cc
  1122. * test/DefaultBtContextTest.cc
  1123. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1124. Fixed compile error without libcares when epoll is available.
  1125. * src/EpollEventPoll.cc
  1126. 2009-02-09 Tatsuhiro Tsujikawa <[email protected]>
  1127. Included fstream instead of iostream.
  1128. * test/SignatureTest.cc
  1129. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  1130. Removed #include <algorithm>
  1131. * test/RequestGroupTest.cc
  1132. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  1133. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1134. using RequestGroup::extractURIResult().
  1135. * src/AdaptiveURISelector.cc
  1136. * src/RequestGroup.cc
  1137. * src/RequestGroup.h
  1138. * test/RequestGroupTest.cc
  1139. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  1140. Added tests for array_ptr.
  1141. * test/array_funTest.cc
  1142. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  1143. Don't send ip parameter to a tracker if ip parameter is empty
  1144. string.
  1145. * src/DefaultBtAnnounce.cc
  1146. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1147. Adjusted line feed.
  1148. * src/version_usage.cc
  1149. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1150. Print tags, possible values when OptionHandlerException is caught.
  1151. * src/option_processing.cc
  1152. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1153. Changed the message for FatalException.
  1154. * src/OptionParser.cc
  1155. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1156. Documented --bt-external-ip option in man page. Updated man pages
  1157. for --proxy-method option.
  1158. * doc/aria2c.1.txt
  1159. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1160. Use GET method for FTP via HTTP proxy.
  1161. * src/FtpInitiateConnectionCommand.cc
  1162. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1163. Changed the default value of --proxy-method option from 'tunnel'
  1164. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1165. option.
  1166. * src/AbstractCommand.cc
  1167. * src/AbstractCommand.h
  1168. * src/FtpInitiateConnectionCommand.cc
  1169. * src/HttpDownloadCommand.cc
  1170. * src/HttpInitiateConnectionCommand.cc
  1171. * src/HttpInitiateConnectionCommand.h
  1172. * src/OptionHandlerFactory.cc
  1173. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1174. Initialized _logger
  1175. * src/SelectEventPoll.cc
  1176. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1177. Defined a copy constructor for the same type.
  1178. * src/SharedHandle.h
  1179. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1180. Added OptionParser::parseArg() which internally uses getopt_long
  1181. to parse command-line options. All command-line options are now
  1182. configured by OptionHandler. No manual editing of struct option*
  1183. is required any more.
  1184. * src/NameMatchOptionHandler.h
  1185. * src/OptionHandler.h
  1186. * src/OptionHandlerFactory.cc
  1187. * src/OptionHandlerImpl.h
  1188. * src/OptionParser.cc
  1189. * src/OptionParser.h
  1190. * src/array_fun.h
  1191. * src/main.cc
  1192. * src/option_processing.cc
  1193. * test/OptionHandlerTest.cc
  1194. * test/OptionParserTest.cc
  1195. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1196. Fixed configure error with --disable-epoll
  1197. * configure.ac
  1198. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1199. Fixed compile error when HAVE_EPOLL is not defined.
  1200. Fixed linker error on bigendian systems.
  1201. * src/SocketCore.cc
  1202. * src/SocketCore.h
  1203. * test/DefaultBtProgressInfoFileTest.cc
  1204. 2009-02-04 Tatsuhiro Tsujikawa <[email protected]>
  1205. Added --bt-external-ip option. You can specify the external IP
  1206. address to report to a BitTorrent tracker. Although this function
  1207. is named 'external', it can accept any kind of IP addresses.
  1208. * src/DefaultBtAnnounce.cc
  1209. * src/OptionHandlerFactory.cc
  1210. * src/option_processing.cc
  1211. * src/prefs.cc
  1212. * src/prefs.h
  1213. * src/usage_text.h
  1214. * test/DefaultBtAnnounceTest.cc
  1215. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  1216. Extracted the algorithm to find the longest incremental sequence
  1217. as max_sequence template.
  1218. * src/LongestSequencePieceSelector.cc
  1219. * src/a2algo.h
  1220. * test/Makefile.am
  1221. * test/a2algoTest.cc
  1222. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  1223. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1224. * src/usage_text.h
  1225. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  1226. Updated doc for --uri-selector, --http-server-listen-port and
  1227. --enable-http-server option. Documented --event-poll option.
  1228. * doc/aria2c.1.txt
  1229. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  1230. Updated doc for --enable-http-server.
  1231. * src/usage_text.h
  1232. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  1233. Documented --http-server-listen-port and --enable-http-server in
  1234. man page.
  1235. * doc/aria2c.1.txt
  1236. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1237. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1238. translations. Thanks to all translators.
  1239. * po/es.po
  1240. * po/id.po
  1241. * po/it.po
  1242. * po/ru.po
  1243. * po/uk.po
  1244. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1245. Bump up version number to 1.2.0
  1246. * configure.ac
  1247. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1248. BtContext::getAnnounceTiers() now returns const reference.
  1249. * src/BtContext.h
  1250. * src/DefaultBtContext.cc
  1251. * src/DefaultBtContext.h
  1252. * test/MockBtContext.h
  1253. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1254. Change the number of retries for tracker request based on the
  1255. number of available tracker in a torrent file.
  1256. * src/TrackerWatcherCommand.cc
  1257. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1258. Added _maxTries property to RequestGroup and assign the option
  1259. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1260. RequestGroup::getMaxTries() instead of
  1261. Option::getAsInt(PREF_MAX_TRIES).
  1262. * src/AbstractCommand.cc
  1263. * src/RequestGroup.cc
  1264. * src/RequestGroup.h
  1265. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1266. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1267. Mandriva. I modified the patch: make RequestGroup have the
  1268. timeout value and AdaptiveURISelector directly modifies that
  1269. value.
  1270. * src/AbstractCommand.cc
  1271. * src/AdaptiveURISelector.cc
  1272. * src/AdaptiveURISelector.h
  1273. * src/FtpNegotiationCommand.cc
  1274. * src/RequestGroup.cc
  1275. * src/RequestGroup.h
  1276. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1277. Fixed compiler warning
  1278. * test/IteratableChecksumValidatorTest.cc
  1279. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  1280. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1281. integrated downloads. This PieceSelector subclass finds the
  1282. longest continuous sequence in the available missing pieces and
  1283. selects the last index of such sequence. This makes HTTP/FTP
  1284. connections less interrupted by the pieces obtained by BitTorrent
  1285. peers.
  1286. * src/DefaultPieceStorage.cc
  1287. * src/DefaultPieceStorage.h
  1288. * src/LongestSequencePieceSelector.cc
  1289. * src/LongestSequencePieceSelector.h
  1290. * src/Makefile.am
  1291. * src/PieceSelector.h
  1292. * src/RarestPieceSelector.h
  1293. * src/RequestGroup.cc
  1294. * test/BtDependencyTest.cc
  1295. * test/DefaultPieceStorageTest.cc
  1296. * test/IteratableChecksumValidatorTest.cc
  1297. * test/LongestSequencePieceSelectorTest.cc
  1298. * test/Makefile.am
  1299. * test/SegmentManTest.cc
  1300. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  1301. Fixed the bug that the average speed is wrong in
  1302. http/ftp/BitTorrent integrated download. Only the download bytes
  1303. in BitTorrent were considered.
  1304. * src/RequestGroup.cc
  1305. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  1306. Choose port for BitTorrent/DHT randomly from the specified range.
  1307. * src/DHTConnectionImpl.cc
  1308. * src/PeerListenCommand.cc
  1309. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  1310. Send HTTP Authorization header only if it is requested by the
  1311. server(response 401). There are some exceptions. The authorization
  1312. header for proxy is always sent if it is available without request
  1313. by the server. If username/password is specified in the URI, it
  1314. is immediately sent to the server without request by the server.
  1315. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1316. SharedHandle<AuthConfig>().
  1317. NetrcAuthResolver::resolveAuthConfig() returns
  1318. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1319. * src/AbstractAuthResolver.cc
  1320. * src/AbstractProxyRequestCommand.cc
  1321. * src/AuthConfigFactory.cc
  1322. * src/AuthConfigFactory.h
  1323. * src/HttpConnection.cc
  1324. * src/HttpRequest.cc
  1325. * src/HttpRequest.h
  1326. * src/HttpResponse.cc
  1327. * src/HttpResponseCommand.cc
  1328. * src/HttpSkipResponseCommand.cc
  1329. * test/AuthConfigFactoryTest.cc
  1330. * test/HttpRequestTest.cc
  1331. * test/HttpResponseTest.cc
  1332. 2009-01-27 Tatsuhiro Tsujikawa <[email protected]>
  1333. Remove leading "--" from help keyword and a substring after "="
  1334. from help keyword, so that one can query options by '-h--max-' or
  1335. '-hmax-peers=10'.
  1336. * src/option_processing.cc
  1337. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  1338. Rewritten PStringVisitor and its implementation.
  1339. * src/PStringBuildVisitor.cc
  1340. * src/PStringBuildVisitor.h
  1341. * src/PStringDatum.h
  1342. * src/PStringNumLoop.h
  1343. * src/PStringSegment.cc
  1344. * src/PStringSegment.h
  1345. * src/PStringSelect.h
  1346. * src/PStringVisitor.h
  1347. * src/download_helper.cc
  1348. * test/PStringBuildVisitorTest.cc
  1349. * test/ParameterizedStringParserTest.cc
  1350. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  1351. Persist connection between the built-in HTTP server and a client
  1352. if a client supports keep-alive. Fixed the bug that aria2 exits
  1353. when the HTTP server receives EOF from a client.
  1354. * src/HttpServer.cc
  1355. * src/HttpServer.h
  1356. * src/HttpServerCommand.cc
  1357. * src/HttpServerCommand.h
  1358. * src/HttpServerResponseCommand.cc
  1359. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  1360. Added experimental built-in HTTP server. Currently, when a client
  1361. accesses to the server, it responds with the current download
  1362. progress. By default, it is disabled. To enable the server, give
  1363. --enable-http-server option. To change the default port number
  1364. for the server to listen to, use --http-server-listen-port option.
  1365. The response HTML is very simple and refreshes it self each 1
  1366. second. Because of this refresh, you see flicker in normal web
  1367. browser such as Firefox. I recommend to use console-based browser
  1368. such as elinks, w3m. To connect to the server, run 'elinks
  1369. http://localhost:6800/' while running aria2. Please replace port
  1370. number '6800'(which is default) with your preference.
  1371. * src/DownloadEngineFactory.cc
  1372. * src/HttpHeader.cc
  1373. * src/HttpHeader.h
  1374. * src/HttpHeaderProcessor.cc
  1375. * src/HttpHeaderProcessor.h
  1376. * src/HttpListenCommand.cc
  1377. * src/HttpListenCommand.h
  1378. * src/HttpServer.cc
  1379. * src/HttpServer.h
  1380. * src/HttpServerCommand.cc
  1381. * src/HttpServerCommand.h
  1382. * src/HttpServerResponseCommand.cc
  1383. * src/HttpServerResponseCommand.h
  1384. * src/Makefile.am
  1385. * src/OptionHandlerFactory.cc
  1386. * src/Util.cc
  1387. * src/Util.h
  1388. * src/help_tags.h
  1389. * src/option_processing.cc
  1390. * src/prefs.cc
  1391. * src/prefs.h
  1392. * src/usage_text.h
  1393. * test/HttpHeaderProcessorTest.cc
  1394. * test/UtilTest.cc
  1395. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1396. Removed.
  1397. * src/CheckIntegrityMan.cc
  1398. * src/FileAllocationMan.cc
  1399. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1400. Made (piece) hash check sequential for each RequestGroup because
  1401. simultaneous hash check is slower than sequential execution.
  1402. * src/CheckIntegrityCommand.cc
  1403. * src/CheckIntegrityDispatcherCommand.cc
  1404. * src/CheckIntegrityDispatcherCommand.h
  1405. * src/CheckIntegrityMan.h
  1406. * src/ConsoleStatCalc.cc
  1407. * src/DownloadCommand.cc
  1408. * src/DownloadEngine.cc
  1409. * src/DownloadEngine.h
  1410. * src/DownloadEngineFactory.cc
  1411. * src/Makefile.am
  1412. * src/Makefile.in
  1413. * src/RequestGroup.cc
  1414. * src/StatCalc.h
  1415. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1416. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1417. SequentialDispatcherCommand.
  1418. * src/FileAllocationDispatcherCommand.cc
  1419. * src/SequentialDispatcherCommand.h
  1420. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1421. Rewritten FileAllocationDispatcherCommand using brand new
  1422. SequentialDispatcherCommand.
  1423. * src/DownloadEngineFactory.cc
  1424. * src/FileAllocationCommand.cc
  1425. * src/FileAllocationDispatcherCommand.cc
  1426. * src/FileAllocationDispatcherCommand.h
  1427. * src/Makefile.am
  1428. * src/SequentialDispatcherCommand.h
  1429. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1430. Replaced FileAllocationMan with
  1431. SequentialPicker<FileAllocationEntry>.
  1432. * src/BtCheckIntegrityEntry.cc
  1433. * src/ConsoleStatCalc.cc
  1434. * src/DownloadEngine.cc
  1435. * src/DownloadEngine.h
  1436. * src/DownloadEngineFactory.cc
  1437. * src/FileAllocationCommand.cc
  1438. * src/FileAllocationDispatcherCommand.cc
  1439. * src/FileAllocationMan.h
  1440. * src/Makefile.am
  1441. * src/SequentialPicker.h
  1442. * src/StatCalc.h
  1443. * src/StreamCheckIntegrityEntry.cc
  1444. * test/Makefile.am
  1445. * test/SequentialPickerTest.cc
  1446. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1447. Added doc for adaptive URI selector.
  1448. * doc/aria2c.1.txt
  1449. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1450. Added doc for adaptive URI selector.
  1451. * src/usage_text.h
  1452. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1453. Added doc for --bt-max-peers option.
  1454. * doc/aria2c.1.txt
  1455. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1456. Added doc for --bt-hash-check-seed option.
  1457. * doc/aria2c.1.txt
  1458. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1459. Documented exit codes.
  1460. * doc/aria2c.1.txt
  1461. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  1462. Added --bt-max-peers option to specify the maximum number of peers
  1463. per torrent. 0 means unlimited number of peers.
  1464. * src/ActivePeerConnectionCommand.cc
  1465. * src/BtRuntime.h
  1466. * src/DefaultPeerStorage.cc
  1467. * src/DefaultPeerStorage.h
  1468. * src/OptionHandlerFactory.cc
  1469. * src/RequestGroup.cc
  1470. * src/option_processing.cc
  1471. * src/prefs.cc
  1472. * src/prefs.h
  1473. * src/usage_text.h
  1474. * test/DefaultPeerStorageTest.cc
  1475. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  1476. Added --bt-hash-check-seed option. If true is given to this
  1477. option, after hash check using --check-integrity option and file
  1478. is complete, continue to seed file. If you want to check file and
  1479. download it only when it is damaged or incomplete, set this option
  1480. to false. This option has effect only on BitTorrent download.
  1481. The default value is true(This is the same behavior with the
  1482. previous release).
  1483. * src/BtCheckIntegrityEntry.cc
  1484. * src/OptionHandlerFactory.cc
  1485. * src/option_processing.cc
  1486. * src/prefs.cc
  1487. * src/prefs.h
  1488. * src/usage_text.h
  1489. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  1490. Updated copyright year.
  1491. * src/version_usage.cc
  1492. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  1493. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1494. * doc/aria2c.1.txt
  1495. * src/usage_text.h
  1496. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  1497. Made the max value of split option unlimited.
  1498. * doc/aria2c.1.txt
  1499. * src/OptionHandlerFactory.cc
  1500. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  1501. Fixed compile warning/error.
  1502. * src/DownloadResult.h
  1503. * src/HttpDownloadCommand.cc
  1504. * src/ServerStat.cc
  1505. * test/RequestGroupTest.cc
  1506. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  1507. Added --event-poll option to select the method for polling events.
  1508. The available methods are "select" and "epoll". "epoll" is
  1509. available on Linux only. The earlier release has the compile
  1510. option to choose from these methods.
  1511. * configure.ac
  1512. * src/RequestGroupMan.cc
  1513. * src/OptionHandlerFactory.cc
  1514. * src/EpollEventPoll.h
  1515. * src/StreamFileAllocationEntry.cc
  1516. * src/a2io.h
  1517. * src/SelectEventPoll.h
  1518. * src/option_processing.cc
  1519. * src/prefs.h
  1520. * src/EpollEventPoll.cc
  1521. * src/EventPoll.h
  1522. * src/SocketCore.h
  1523. * src/Makefile.am
  1524. * src/main.cc
  1525. * src/DownloadEngine.h
  1526. * src/SelectEventPoll.cc
  1527. * src/DownloadEngine.cc
  1528. * src/SocketCore.cc
  1529. * src/DownloadEngineFactory.cc
  1530. * src/Makefile.in
  1531. * src/prefs.cc
  1532. * src/usage_text.h
  1533. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  1534. Included RecoverableException.h from main.cc
  1535. * src/main.cc
  1536. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  1537. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1538. now returns last error encountered in the HTTP/FTP downloads as a
  1539. exit status value. If all downloads finished successfully, aria2
  1540. returns 0. The error code is defined in src/DownloadResult.h.
  1541. The error occurred in the download currently in progress is not
  1542. reported as a last error. If no error has encountered but there
  1543. are in progress or waiting downloads, aria2 returns 7.
  1544. * src/AbstractCommand.cc
  1545. * src/DlAbortEx.h
  1546. * src/DlRetryEx.h
  1547. * src/DownloadCommand.cc
  1548. * src/DownloadFailureException.h
  1549. * src/DownloadResult.h
  1550. * src/FtpNegotiationCommand.cc
  1551. * src/HttpSkipResponseCommand.cc
  1552. * src/Makefile.am
  1553. * src/MultiUrlRequestInfo.cc
  1554. * src/MultiUrlRequestInfo.h
  1555. * src/RecoverableException.h
  1556. * src/RequestGroup.cc
  1557. * src/RequestGroup.h
  1558. * src/RequestGroupMan.cc
  1559. * src/RequestGroupMan.h
  1560. * src/URIResult.cc
  1561. * src/URIResult.h
  1562. * src/main.cc
  1563. * src/option_processing.cc
  1564. * test/RequestGroupTest.cc
  1565. 2009-01-06 Tatsuhiro Tsujikawa <[email protected]>
  1566. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1567. patch adds AdaptiveURISelector, which selects one of the bests
  1568. mirrors for first and reserved connections. For supplementary
  1569. ones, it returns mirrors which has not been tested yet, and if
  1570. each of them already tested, returns mirrors which has to be
  1571. tested again. Otherwise, it doesn't return anymore mirrors.
  1572. * src/AdaptiveURISelector.cc
  1573. * src/AdaptiveURISelector.h
  1574. * src/FtpNegotiationCommand.cc
  1575. * src/HttpResponseCommand.cc
  1576. * src/Makefile.am
  1577. * src/Makefile.in
  1578. * src/OptionHandlerFactory.cc
  1579. * src/RequestGroup.cc
  1580. * src/RequestGroup.h
  1581. * src/RequestGroupMan.cc
  1582. * src/ServerStat.cc
  1583. * src/ServerStat.h
  1584. * src/ServerStatMan.cc
  1585. * src/SpeedCalc.cc
  1586. * src/URISelector.h
  1587. * src/prefs.cc
  1588. * src/prefs.h
  1589. * test/RequestGroupManTest.cc
  1590. * test/ServerStatManTest.cc
  1591. * test/ServerStatTest.cc
  1592. 2009-01-04 Tatsuhiro Tsujikawa <[email protected]>
  1593. Fixed unit test error.
  1594. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1595. 2008-12-30 Tatsuhiro Tsujikawa <[email protected]>
  1596. * Release 1.1.2
  1597. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1598. Updated Russian translation. Thanks to the translators.
  1599. * po/ru.po
  1600. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1601. Added the description of --use-head option to man page.
  1602. * doc/aria2c.1.txt
  1603. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1604. Bump up version number to 1.1.2
  1605. * configure.ac
  1606. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1607. Added --use-head option to toggle whether HEAD method should be
  1608. used in the first HTTP request. By default aria2 uses HEAD method
  1609. as the first request. When the server doesn't recognize HEAD, then
  1610. give aria2 --use-head=false to force aria2 to use GET method
  1611. instead.
  1612. * src/OptionHandlerFactory.cc
  1613. * src/RequestGroupMan.cc
  1614. * src/option_processing.cc
  1615. * src/prefs.cc
  1616. * src/prefs.h
  1617. * src/usage_text.h
  1618. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1619. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1620. message is received before CHOKE message. The old implementation
  1621. doen't clear the use-bit of the piece when recieved REJECT
  1622. message.
  1623. * src/DefaultBtMessageDispatcher.cc
  1624. * test/DefaultBtMessageDispatcherTest.cc
  1625. 2008-12-25 Tatsuhiro Tsujikawa <[email protected]>
  1626. * Release 1.1.1
  1627. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  1628. Bump up version number to 1.1.1.
  1629. * configure.ac
  1630. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  1631. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1632. is printed repeatedly.
  1633. * src/ConsoleStatCalc.cc
  1634. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1635. * Release 1.1.0
  1636. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1637. Added ifdef clause for conditional compilation.
  1638. * src/main.cc
  1639. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1640. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1641. translations. Thanks to all translators.
  1642. * po/ja.po
  1643. * po/ru.po
  1644. * po/uk.po
  1645. * po/zh_CN.po
  1646. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1647. Added the preceding ">>> " before the message "Printing the
  1648. contents of file..." to make the output more readable.
  1649. * src/main.cc
  1650. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1651. Added try-catch block in the loop in showFiles() to continue the
  1652. operation even if the exception occurred in one file.
  1653. * src/main.cc (showFiles)
  1654. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  1655. Made messages in showFiles() translatable.
  1656. * po/aria2.pot
  1657. * src/main.cc
  1658. * src/message.h
  1659. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  1660. Print the contents of Torrent/Metalink files are printed without
  1661. -T/-M options.
  1662. * src/main.cc
  1663. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1664. Escaped '--' with '\--'
  1665. * README
  1666. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1667. Updated "How to build" section in README. Mentioned about
  1668. --with-ca-bundle compile option.
  1669. * README
  1670. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1671. Bump up version number to 1.1.0.
  1672. * configure.ac
  1673. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1674. Added a note for --dht-listen-port option.
  1675. * doc/aria2c.1.txt
  1676. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1677. Update doc for --realtime-chunk-checksum option.
  1678. * doc/aria2c.1.txt
  1679. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1680. Update doc for --realtime-chunk-checksum option.
  1681. * src/usage_text.h
  1682. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1683. Updated French, Japanese, Russian and Ukrainian translations.
  1684. Thanks to all translators.
  1685. * po/fr.po
  1686. * po/ja.po
  1687. * po/ru.po
  1688. * po/uk.po
  1689. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1690. Renamed aria2c.pot to aria2.pot
  1691. * po/aria2.pot
  1692. * po/aria2c.pot: Removed.
  1693. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1694. Removed MetaEntry.h
  1695. * src/Makefile.am
  1696. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1697. Rename file by appending digits if a local file exists and its
  1698. file size is larger than that of remote file with --continue
  1699. option. The old implementation just throws exception in such case.
  1700. * src/RequestGroup.cc
  1701. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  1702. Fixed the bug that download progress summary is not printed in the
  1703. interval specified by the option.
  1704. * src/ConsoleStatCalc.cc
  1705. * src/ConsoleStatCalc.h
  1706. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  1707. Fixed compiler warning
  1708. * src/Cookie.cc
  1709. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  1710. Fixed the cookie implementation based on RFC2965.
  1711. Now if a value in domain field is not started with dot, then
  1712. prepend dot. That means a cookie with domain=sf.net is sent to
  1713. wiki.sf.net.
  1714. * src/Cookie.cc
  1715. * test/CookieParserTest.cc
  1716. * test/CookieStorageTest.cc
  1717. * test/CookieTest.cc
  1718. * test/NsCookieParserTest.cc
  1719. * test/Sqlite3MozCookieParserTest.cc
  1720. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  1721. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1722. is enabled and the server doesn't support keep-alive.
  1723. * src/AbstractCommand.cc
  1724. * src/DownloadCommand.cc
  1725. * src/HttpDownloadCommand.cc
  1726. * src/HttpDownloadCommand.h
  1727. * src/HttpResponseCommand.cc
  1728. * src/Request.cc
  1729. * src/Request.h
  1730. * test/RequestTest.cc
  1731. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1732. Removed Dictionary/List/Data and its related classes.
  1733. * src/BencodeVisitor.cc: Removed.
  1734. * src/BencodeVisitor.h: Removed.
  1735. * src/Data.cc: Removed.
  1736. * src/Data.h: Removed.
  1737. * src/Dictionary.cc: Removed.
  1738. * src/Dictionary.h: Removed.
  1739. * src/List.cc: Removed.
  1740. * src/List.h: Removed.
  1741. * src/Makefile.am
  1742. * src/MetaEntry.h: Removed.
  1743. * src/MetaEntryVisitor.h: Removed.
  1744. * src/MetaFileUtil.cc: Removed.
  1745. * src/MetaFileUtil.h: Removed.
  1746. * test/BencodeVisitorTest.cc: Removed.
  1747. * test/DataTest.cc: Removed.
  1748. * test/DictionaryTest.cc: Removed.
  1749. * test/ListTest.cc: Removed.
  1750. * test/Makefile.am
  1751. * test/MetaFileUtilTest.cc: Removed.
  1752. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1753. Removed include of MetaEntry.h
  1754. * test/DHTMessageTrackerEntryTest.cc
  1755. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1756. Use BDE instead of Dictionary/List/Data.
  1757. * src/AnnounceList.cc
  1758. * src/AnnounceList.h
  1759. * test/AnnounceListTest.cc
  1760. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1761. Use BDE instead of Dictionary/List/Data.
  1762. * src/DHTAbstractMessage.cc
  1763. * src/DHTAbstractMessage.h
  1764. * src/DHTAnnouncePeerMessage.cc
  1765. * src/DHTAnnouncePeerMessage.h
  1766. * src/DHTAnnouncePeerReplyMessage.cc
  1767. * src/DHTAnnouncePeerReplyMessage.h
  1768. * src/DHTFindNodeMessage.cc
  1769. * src/DHTFindNodeMessage.h
  1770. * src/DHTFindNodeReplyMessage.cc
  1771. * src/DHTFindNodeReplyMessage.h
  1772. * src/DHTGetPeersMessage.cc
  1773. * src/DHTGetPeersMessage.h
  1774. * src/DHTGetPeersReplyMessage.cc
  1775. * src/DHTGetPeersReplyMessage.h
  1776. * src/DHTMessageFactory.h
  1777. * src/DHTMessageFactoryImpl.cc
  1778. * src/DHTMessageFactoryImpl.h
  1779. * src/DHTMessageReceiver.cc
  1780. * src/DHTMessageTracker.cc
  1781. * src/DHTMessageTracker.h
  1782. * src/DHTPingMessage.cc
  1783. * src/DHTPingMessage.h
  1784. * src/DHTPingReplyMessage.cc
  1785. * src/DHTPingReplyMessage.h
  1786. * src/DHTQueryMessage.cc
  1787. * src/DHTQueryMessage.h
  1788. * src/DHTResponseMessage.cc
  1789. * src/DHTResponseMessage.h
  1790. * test/DHTAnnouncePeerMessageTest.cc
  1791. * test/DHTAnnouncePeerReplyMessageTest.cc
  1792. * test/DHTFindNodeMessageTest.cc
  1793. * test/DHTFindNodeReplyMessageTest.cc
  1794. * test/DHTGetPeersMessageTest.cc
  1795. * test/DHTGetPeersReplyMessageTest.cc
  1796. * test/DHTMessageFactoryImplTest.cc
  1797. * test/DHTMessageTrackerTest.cc
  1798. * test/DHTPingMessageTest.cc
  1799. * test/DHTPingReplyMessageTest.cc
  1800. * test/MockDHTMessageFactory.h
  1801. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1802. Added tests the case where length < 0 is specified.
  1803. * test/BencodeTest.cc
  1804. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1805. Fixed memory leak in decoderawstring()
  1806. * src/bencode.cc
  1807. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1808. Added missing #ifdef guard. Added uc() function for String and
  1809. removeKey() for Dict.
  1810. * src/bencode.cc
  1811. * src/bencode.h
  1812. * test/BencodeTest.cc
  1813. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  1814. Use BDE instead of Dictionary/List/Data.
  1815. * src/HandshakeExtensionMessage.cc
  1816. * src/HandshakeExtensionMessage.h
  1817. * test/HandshakeExtensionMessageTest.cc
  1818. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  1819. Added --max-overall-upload-limit option. This option limits the
  1820. overall upload speed. Stated in help message that the existing
  1821. --max-upload-limit option limits the upload speed per each
  1822. torrent. Man page is also updated.
  1823. * doc/aria2c.1.txt
  1824. * src/DefaultBtMessageDispatcher.cc
  1825. * src/DefaultBtMessageDispatcher.h
  1826. * src/OptionHandlerFactory.cc
  1827. * src/PeerInteractionCommand.cc
  1828. * src/option_processing.cc
  1829. * src/prefs.cc
  1830. * src/prefs.h
  1831. * src/usage_text.h
  1832. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  1833. Use BDE instead of Dictionary/List/Data classes.
  1834. * src/CompactPeerListProcessor.cc
  1835. * src/CompactPeerListProcessor.h
  1836. * src/DefaultBtAnnounce.cc
  1837. * src/DefaultBtContext.cc
  1838. * src/DefaultBtContext.h
  1839. * src/DefaultPeerListProcessor.cc
  1840. * src/DefaultPeerListProcessor.h
  1841. * src/DelegatingPeerListProcessor.cc
  1842. * src/DelegatingPeerListProcessor.h
  1843. * src/PeerListProcessor.h
  1844. * src/UTPexExtensionMessage.cc
  1845. * src/Util.h
  1846. * src/message.h
  1847. * test/DefaultBtContextTest.cc
  1848. * test/DefaultPeerListProcessorTest.cc
  1849. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  1850. Added bencode helper functions and BDE class.
  1851. They will replace MetaFileUtil and Dictionary/List/Data classes.
  1852. * src/Makefile.am
  1853. * src/bencode.cc
  1854. * src/bencode.h
  1855. * test/BencodeTest.cc
  1856. * test/Makefile.am
  1857. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  1858. Fixed the bug that bad URI is sent to the tracker when the announe
  1859. URI in torrent file includes query.
  1860. * src/DefaultBtAnnounce.cc
  1861. * test/DefaultBtAnnounceTest.cc
  1862. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  1863. Added Option::blank().
  1864. Use !Option::blank(name) instead of Option::defined(name) for
  1865. the options that take filename.
  1866. * src/MultiUrlRequestInfo.cc
  1867. * src/Option.cc
  1868. * src/Option.h
  1869. * src/main.cc
  1870. * src/option_processing.cc
  1871. * test/OptionTest.cc
  1872. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  1873. Documented the default value of --check-certificate option in man
  1874. page.
  1875. * doc/aria2c.1.txt
  1876. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  1877. Enabled --check-certificate by default. Added compile
  1878. time(configure) option --with-ca-bundle to specify CA bundle.
  1879. Warn if --check-certificate=true and --ca-certificate is not
  1880. specified or loading CA certificate is failed.
  1881. * configure.ac
  1882. * src/MultiUrlRequestInfo.cc
  1883. * src/OptionHandlerFactory.cc
  1884. * src/message.h
  1885. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  1886. Mentioned https tag in help option.
  1887. * doc/aria2c.1.txt
  1888. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  1889. Added `https' tag to help option category. Added https tag to
  1890. --ca-certificate, --certificate, --check-certificate and
  1891. --private-key option.
  1892. * src/OptionHandlerFactory.cc
  1893. * src/help_tags.h
  1894. * src/option_processing.cc
  1895. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  1896. Changed the package name from `aria2c' to `aria2' in order to fix
  1897. the packaging issue in Debian and Fedora. The name of the
  1898. executable is not changed.
  1899. * configure.ac
  1900. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  1901. Fixed typos
  1902. * src/usage_text.h
  1903. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  1904. Fixed typos and updated doc.
  1905. * README
  1906. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  1907. Fixed typos
  1908. * doc/aria2c.1.txt
  1909. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  1910. Fixed typos
  1911. * src/usage_text.h
  1912. 2008-11-30 Tatsuhiro Tsujikawa <[email protected]>
  1913. Print a message when no files to download.
  1914. * src/download_helper.cc
  1915. * src/main.cc
  1916. * src/message.h
  1917. 2008-11-28 Tatsuhiro Tsujikawa <[email protected]>
  1918. RFC3986 complied Percent-Encoding(urlencode).
  1919. Use uppercase hexadecimal digits for encoded text instead of lowercase
  1920. ones.
  1921. * src/Request.cc
  1922. * src/Util.cc
  1923. * src/Util.h
  1924. * test/BtHandshakeMessageTest.cc
  1925. * test/DefaultBtAnnounceTest.cc
  1926. * test/DefaultBtContextTest.cc
  1927. * test/RequestTest.cc
  1928. * test/UtilTest.cc
  1929. 2008-11-27 Tatsuhiro Tsujikawa <[email protected]>
  1930. Fixed the bug that prevents aria2 from downloading 0-length files
  1931. via HTTP/FTP.
  1932. * src/DefaultBtContext.cc
  1933. * src/DefaultBtContext.h
  1934. * src/DownloadContext.h
  1935. * src/FtpNegotiationCommand.cc
  1936. * src/HttpResponseCommand.cc
  1937. * src/HttpResponseCommand.h
  1938. * src/RequestGroup.cc
  1939. * src/SingleFileDownloadContext.cc
  1940. * src/SingleFileDownloadContext.h
  1941. * test/BtPostDownloadHandlerTest.cc
  1942. * test/MetalinkPostDownloadHandlerTest.cc
  1943. * test/MockBtContext.h
  1944. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  1945. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  1946. * src/option_processing.cc
  1947. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  1948. Applied aria2-1.0.1-mingw.patch.
  1949. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  1950. mingw.
  1951. Collected 4th and 5th argument types for getsockopt and setsockopt.
  1952. * src/SocketCore.cc
  1953. * src/a2netcompat.h
  1954. * test/SocketCoreTest.cc
  1955. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  1956. * Release 1.0.1
  1957. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  1958. Updated Ukrainian and Norwegian Nynorsk translations.
  1959. Thanks to all translators.
  1960. * po/nn.po
  1961. * po/uk.po
  1962. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  1963. Don't show download result when -S option is used.
  1964. * src/main.cc
  1965. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  1966. Bump up version number to 1.0.1
  1967. * configure.ac
  1968. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  1969. Closed files after the test cases in MultiDiskWriterTest::
  1970. testResetDiskWriterEntries(). This will fix the unit test error
  1971. in mingw32 build.
  1972. * test/MultiDiskWriterTest.cc
  1973. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  1974. Use HEAD method to get file size from HTTP server for segmented
  1975. downloading.
  1976. The request to the BitTorrent Tracker always uses GET method because
  1977. the response of the tracker is small and it doesn't need segmented
  1978. download.
  1979. * src/FtpNegotiationCommand.cc
  1980. * src/HttpRequest.cc
  1981. * src/HttpResponseCommand.cc
  1982. * src/HttpSkipResponseCommand.cc
  1983. * src/RequestGroup.cc
  1984. * src/RequestGroup.h
  1985. * src/TrackerWatcherCommand.cc
  1986. * test/HttpRequestTest.cc
  1987. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  1988. Fixed the bug that causes floating exception when -T option is used and
  1989. no URIs are given.
  1990. * src/download_helper.cc
  1991. * test/DownloadHelperTest.cc
  1992. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  1993. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  1994. errors in MinGW:
  1995. Closed file after saving server stats (RequestGroupMan.cc)
  1996. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  1997. Ignored case & handled 2-digit years (strptime.c)
  1998. Added missing suseconds_t definition (a2time.h)
  1999. Fixed socket CLOSE() define (SocketCore.cc)
  2000. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2001. Changed utime() test values from x000 to x00000 as MinGW failed on
  2002. values less than timezone offset from Unix epoch
  2003. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2004. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2005. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2006. handle negative dates (CookieParserTest.cc)
  2007. * src/a2time.h
  2008. * src/FtpConnection.cc
  2009. * src/RequestGroupMan.cc
  2010. * src/SocketCore.cc
  2011. * src/strptime.c
  2012. * test/CookieParserTest.cc
  2013. * test/CopyDiskAdaptorTest.cc
  2014. * test/FileTest.cc
  2015. * test/FtpConnectionTest.cc
  2016. * test/MultiDiskAdaptorTest.cc
  2017. 2008-11-20 Tatsuhiro Tsujikawa <[email protected]>
  2018. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2019. * doc/aria2c.1.txt
  2020. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  2021. * Release 1.0.0
  2022. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  2023. Added '~' to reserved characters.
  2024. * src/Util.cc
  2025. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  2026. Do not urlencode Request::url in setUrl() because we want unmodified
  2027. URL using Request::getUrl()
  2028. * src/Request.cc
  2029. * src/Request.h
  2030. * test/RequestTest.cc
  2031. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2032. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2033. Thanks to all translators.
  2034. * po/bg.po
  2035. * po/fr.po
  2036. * po/ja.po
  2037. * po/ru.po
  2038. * po/uk.po
  2039. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2040. Bump up version number to 1.0.0
  2041. * configure.ac
  2042. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2043. Added nosqlite3 build to build_test.sh.
  2044. Renamed noxml as expat.
  2045. * build_test.sh
  2046. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2047. Updated INPUT FILE section.
  2048. * doc/aria2c.1.txt
  2049. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2050. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2051. on big endian systems because test .aria2 files are made for little
  2052. endian systems.
  2053. * test/DefaultBtProgressInfoFileTest.cc
  2054. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2055. Dropped ares support.
  2056. * README
  2057. * configure.ac
  2058. * m4/libares.m4: Removed.
  2059. * src/AsyncNameResolver.cc
  2060. * src/Makefile.am
  2061. * test/Makefile.am
  2062. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  2063. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2064. Removed const qualifier from DiskWriter::size().
  2065. * src/AbstractDiskWriter.cc
  2066. * src/AbstractDiskWriter.h
  2067. * src/ByteArrayDiskWriter.cc
  2068. * src/ByteArrayDiskWriter.h
  2069. * src/DiskWriter.h
  2070. * test/ByteArrayDiskWriterTest.cc
  2071. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  2072. Fixed the bug that causes segmentation fault/bus error during executing
  2073. choking algorithm while seeding. This is caused by improper
  2074. implementation of compare function which returns inconsistent results
  2075. depending on the timing of last unchoke.
  2076. * src/BtSeederStateChoke.cc
  2077. * src/BtSeederStateChoke.h
  2078. * src/DefaultPeerStorage.cc
  2079. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2080. Removed TODO
  2081. * TODO
  2082. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2083. Added a section that explains how to pass argument to options that
  2084. takes optional arguments with its short form.
  2085. * doc/aria2c.1.txt
  2086. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2087. Added -u for the short form of --max-upload-limit option.
  2088. * doc/aria2c.1.txt
  2089. * src/option_processing.cc
  2090. * src/usage_text.h
  2091. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2092. Added -V for the short form of --check-integrity option.
  2093. Now the argument of --check-integrity option is optional:
  2094. if it is omitted, it is evaluated as true.
  2095. * doc/aria2c.1.txt
  2096. * src/option_processing.cc
  2097. * src/usage_text.h
  2098. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2099. Made the default value of --ftp-pasv option set to true and it can take
  2100. true/false values.
  2101. * src/OptionHandlerFactory.cc
  2102. * src/option_processing.cc
  2103. * src/usage_text.h
  2104. * doc/aria2c.1.txt
  2105. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  2106. Given custom random number generator to std::random_shuffle.
  2107. * src/AnnounceList.cc
  2108. * src/BtLeecherStateChoke.cc
  2109. * src/BtSeederStateChoke.cc
  2110. * src/DefaultBtRequestFactory.cc
  2111. * src/MetalinkEntry.cc
  2112. * src/RarestPieceSelector.cc
  2113. * src/SimpleRandomizer.cc
  2114. * src/SimpleRandomizer.h
  2115. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  2116. Now the default value of --enable-direct-io is true.
  2117. * src/OptionHandlerFactory.cc
  2118. * doc/aria2c.1.txt
  2119. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  2120. Erase peer before executing onReturningPeer and onErasingPeer
  2121. because choking algorithm called from onReturningPeer doesn't
  2122. like erasing peer in the active peer list.
  2123. * src/DefaultPeerStorage.cc
  2124. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2125. Instead of creating special filename in createDownloadResult() if
  2126. inMemoryDownload() is true, now it is done in getFilePath().
  2127. * src/RequestGroup.cc
  2128. * test/RequestGroupTest.cc
  2129. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2130. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2131. processed in memory. This is the fix for previous comment out.
  2132. * src/MemoryBufferPreDownloadHandler.cc
  2133. * src/RequestGroup.cc
  2134. * src/RequestGroup.h
  2135. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2136. Commented out the code which sets virtual directory path "[MEMORY]"
  2137. propagate directory to store to following RequestGroup.
  2138. * src/MemoryBufferPreDownloadHandler.cc
  2139. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2140. Bump up version number to 1.0.0b
  2141. * configure.ac
  2142. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2143. Added input_uris.txt to EXTRA_DIST
  2144. * test/Makefile.am
  2145. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2146. Removed PeerObject.h from Makefile.am
  2147. * src/Makefile.am
  2148. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2149. Avoid slow seeding
  2150. * src/PeerInteractionCommand.cc
  2151. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2152. Updated usage for -i option.
  2153. * src/usage_text.h (TEXT_INPUT_FILE)
  2154. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2155. Added INPUT FILE section to man page.
  2156. Escaped fake URLs.
  2157. * doc/aria2c.1.txt
  2158. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2159. Fixed wrong note position for -o option.
  2160. * doc/aria2c.1.txt
  2161. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2162. Fixed compile error without SSL/XML library.
  2163. * src/DefaultBtProgressInfoFile.cc
  2164. * src/DefaultBtProgressInfoFile.h
  2165. * src/FileMetalinkParserState.cc
  2166. * src/RequestGroup.h
  2167. * src/SocketCore.cc
  2168. * src/SocketCore.h
  2169. * src/VerificationMetalinkParserState.cc
  2170. * src/download_helper.h
  2171. * src/main.cc
  2172. * test/DefaultBtProgressInfoFileTest.cc
  2173. * test/DownloadHelperTest.cc
  2174. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  2175. Rewritten URI handling functions. They are now provided as a testable
  2176. functions.
  2177. * src/Makefile.am
  2178. * src/RequestGroup.cc
  2179. * src/RequestGroup.h
  2180. * src/download_helper.cc
  2181. * src/download_helper.h
  2182. * src/main.cc
  2183. * test/DownloadHelperTest.cc
  2184. * test/Makefile.am
  2185. * test/input_uris.txt
  2186. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  2187. Quickly terminate commands when ctrl-c is pressed.
  2188. * src/DownloadEngine.cc
  2189. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  2190. Quickly terminate idle commands when download finished.
  2191. * src/AbstractCommand.cc
  2192. * src/DownloadCommand.cc
  2193. * src/DownloadEngine.cc
  2194. * src/DownloadEngine.h
  2195. * src/SleepCommand.cc
  2196. * src/SleepCommand.h
  2197. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2198. Added the ability to specify output filename and directory in input
  2199. file.
  2200. Additional parameters are added in the following line of URIs
  2201. with proceeding white space(s), 1 parameter in 1 line.
  2202. The parameter names are the same with the command-line option name
  2203. without proceeding "--". Not all the options are available here:
  2204. at the moment, 'dir' and 'out' options are avialable.
  2205. Please note that out option has no effect against Metalink or BitTorrent
  2206. downloads.
  2207. Example input file:
  2208. http://host/foo-1.1.tar.bz2
  2209. out=foo.tar.bz2
  2210. dir=/tmp/downloads
  2211. http://host/thundermonkey-2.0.tar.bz2
  2212. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2213. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2214. thundermonkey-2.0.tar.bz2 is saved as
  2215. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2216. * src/BtPostDownloadHandler.cc
  2217. * src/Metalink2RequestGroup.cc
  2218. * src/Metalink2RequestGroup.h
  2219. * src/MetalinkPostDownloadHandler.cc
  2220. * src/UriListParser.cc
  2221. * src/UriListParser.h
  2222. * src/main.cc
  2223. * test/Metalink2RequestGroupTest.cc
  2224. * test/UriListParserTest.cc
  2225. * test/filelist1.txt
  2226. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2227. Fixed error when SSL library is not found.
  2228. * configure.ac
  2229. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2230. Cross referenced among -s, -C and -j options.
  2231. Updated usage of -C and -s options.
  2232. * src/usage_text.h
  2233. * doc/aria2c.1.txt
  2234. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2235. Fixed bad cast in 32bit platforms.
  2236. * test/DefaultPieceStorageTest.cc
  2237. (DefaultPieceStorageTest::testGetCompletedLength)
  2238. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2239. Fixed unit test fails on 32bit platforms.
  2240. * test/CookieParserTest.cc
  2241. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2242. Show an average download speed in Download results.
  2243. * src/BtFileAllocationEntry.cc
  2244. * src/DefaultPieceStorage.cc
  2245. * src/DownloadContext.cc
  2246. * src/DownloadContext.h
  2247. * src/DownloadResult.h
  2248. * src/RequestGroup.cc
  2249. * src/RequestGroupMan.cc
  2250. * src/StreamFileAllocationEntry.cc
  2251. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2252. Fixed the bug that metalink file is not processed if Content-Type
  2253. field has a paramter.
  2254. * src/HttpResponse.cc
  2255. * src/HttpResponse.h
  2256. * test/HttpResponseTest.cc
  2257. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  2258. Removed unused code.
  2259. * src/DefaultBtAnnounce.cc
  2260. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  2261. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2262. the value larger than DefaultPieceStorage::getTotalLength() when
  2263. in flight pieces are involved.
  2264. * src/DefaultPieceStorage.cc
  2265. * test/DefaultPieceStorageTest.cc
  2266. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2267. Bump up version number to 1.0.0a.
  2268. * configure.ac
  2269. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2270. Updated configure.ac
  2271. * configure.ac
  2272. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2273. Added usege for proxy.
  2274. * doc/aria2c.1.txt
  2275. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2276. Added usage for --ca-certificate, --certificate, --private-key and
  2277. --check-certificate options.
  2278. * doc/aria2c.1.txt
  2279. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2280. Updated man page
  2281. * doc/aria2c.1.txt
  2282. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2283. Added --no-proxy option. It receives comman separated hostname or
  2284. domains to which proxy should not be used.
  2285. aria2 honors the environment variable no_proxy to override no-proxy
  2286. value in configuration file. The user can override the environment
  2287. variable no_proxy with --no-proxy command-line option.
  2288. * src/AbstractCommand.cc
  2289. * src/OptionHandlerFactory.cc
  2290. * src/option_processing.cc
  2291. * src/prefs.cc
  2292. * src/prefs.h
  2293. * src/usage_text.h
  2294. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2295. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2296. The CA certificates are specified in --ca-certificate option.
  2297. By default, the verification is disabled. Use --check-certificate
  2298. option to enable it.
  2299. * src/HttpRequestCommand.cc
  2300. * src/LibgnutlsTLSContext.cc
  2301. * src/LibgnutlsTLSContext.h
  2302. * src/LibsslTLSContext.cc
  2303. * src/LibsslTLSContext.h
  2304. * src/MultiUrlRequestInfo.cc
  2305. * src/OptionHandlerFactory.cc
  2306. * src/SocketCore.cc
  2307. * src/SocketCore.h
  2308. * src/a2functional.h
  2309. * src/message.h
  2310. * src/option_processing.cc
  2311. * src/prefs.cc
  2312. * src/prefs.h
  2313. * src/usage_text.h
  2314. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  2315. Added client certificate authentication for SSL/TLS.
  2316. Currently a private key must be decrypted for use with aria2.
  2317. If a user accidentally gives encrypted file to aria2 then following
  2318. thing happens:
  2319. If encrypted private key is given to aria2, it behaves differently
  2320. depending on the ssl library it uses. If aria2 built with openssl then
  2321. openssl prompts the user for password. If aria2 build with gnutls then
  2322. aria2 exists with error at start up.
  2323. * src/DownloadEngineFactory.cc
  2324. * src/MultiUrlRequestInfo.cc
  2325. * src/OptionHandlerFactory.cc
  2326. * src/option_processing.cc
  2327. * src/prefs.cc
  2328. * src/prefs.h
  2329. * src/usage_text.h
  2330. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  2331. Introduced TLSContext that holds TLS related data that can be shared
  2332. with multiple SSL connections.
  2333. * src/DownloadEngineFactory.cc
  2334. * src/LibgnutlsTLSContext.cc
  2335. * src/LibgnutlsTLSContext.h
  2336. * src/LibsslTLSContext.cc
  2337. * src/LibsslTLSContext.h
  2338. * src/Makefile.am
  2339. * src/SocketCore.cc
  2340. * src/SocketCore.h
  2341. * src/TLSContext.h
  2342. * src/message.h
  2343. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  2344. Fixed the bug that the DiskWriter of the first FileEntry whose
  2345. `needsFileAllocation' property is false is not created
  2346. even if it shares a piece with next FileEntry which `requested' property
  2347. is true.
  2348. Fixed the bug that zero-length file is not created if pre file
  2349. allocation is not done.
  2350. * src/MultiDiskAdaptor.cc
  2351. * src/MultiDiskAdaptor.h
  2352. * test/MultiDiskAdaptorTest.cc
  2353. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2354. Added the ability to pool proxy connection.
  2355. The conneciton in FTP with proxy-method=GET is not pooled.
  2356. Proxy-Connection header will not be sent when sending CONNECT method.
  2357. * src/DownloadEngine.cc
  2358. * src/DownloadEngine.h
  2359. * src/FtpFinishDownloadCommand.cc
  2360. * src/FtpInitiateConnectionCommand.cc
  2361. * src/FtpNegotiationCommand.cc
  2362. * src/HttpDownloadCommand.cc
  2363. * src/HttpInitiateConnectionCommand.cc
  2364. * src/HttpRequest.cc
  2365. * src/HttpRequest.h
  2366. * src/HttpResponse.cc
  2367. * src/HttpSkipResponseCommand.cc
  2368. * test/HttpRequestTest.cc
  2369. * test/HttpResponseTest.cc
  2370. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2371. Handle date before epoch.
  2372. To create *bad* Time object, call Time::null().
  2373. * src/CookieParser.cc
  2374. * src/FtpConnection.cc
  2375. * src/FtpConnection.h
  2376. * src/FtpNegotiationCommand.cc
  2377. * src/RequestGroup.cc
  2378. * src/TimeA2.cc
  2379. * src/TimeA2.h
  2380. * test/CookieParserTest.cc
  2381. * test/FtpConnectionTest.cc
  2382. * test/TimeTest.cc
  2383. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2384. Added support for following envrionment variables: http_proxy,
  2385. https_proxy, ftp_proxy and all_proxy.
  2386. Each variable is equivalent to the aria2 option whose name is the
  2387. variable name with '_' replaced with '-'.
  2388. They overrides options specified in aria2.conf file.
  2389. The envrionment variables can be overrode using command-line option.
  2390. * src/option_processing.cc
  2391. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2392. Renamed --http-proxy-method as --proxy-method.
  2393. * src/AbstractCommand.cc
  2394. * src/FtpInitiateConnectionCommand.cc
  2395. * src/HttpInitiateConnectionCommand.cc
  2396. * src/OptionHandlerFactory.cc
  2397. * src/option_processing.cc
  2398. * src/prefs.cc
  2399. * src/prefs.h
  2400. * src/usage_text.h
  2401. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2402. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2403. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2404. Above 3 options and --http-proxy option can handle proxy in URL format
  2405. like: http://user:passwd@host:port.
  2406. If a proxy requires user/password, they must be specified in a URL.
  2407. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2408. instead.
  2409. * src/AbstractCommand.cc
  2410. * src/AbstractCommand.h
  2411. * src/AbstractProxyRequestCommand.cc
  2412. * src/AbstractProxyRequestCommand.h
  2413. * src/AuthConfigFactory.cc
  2414. * src/AuthConfigFactory.h
  2415. * src/FtpFinishDownloadCommand.cc
  2416. * src/FtpInitiateConnectionCommand.cc
  2417. * src/FtpInitiateConnectionCommand.h
  2418. * src/FtpNegotiationCommand.cc
  2419. * src/FtpTunnelRequestCommand.cc
  2420. * src/FtpTunnelRequestCommand.h
  2421. * src/HttpDownloadCommand.cc
  2422. * src/HttpInitiateConnectionCommand.cc
  2423. * src/HttpInitiateConnectionCommand.h
  2424. * src/HttpProxyRequestCommand.cc
  2425. * src/HttpProxyRequestCommand.h
  2426. * src/HttpRequest.cc
  2427. * src/HttpRequest.h
  2428. * src/HttpRequestCommand.cc
  2429. * src/HttpRequestCommand.h
  2430. * src/HttpSkipResponseCommand.cc
  2431. * src/InitiateConnectionCommand.cc
  2432. * src/InitiateConnectionCommand.h
  2433. * src/OptionHandlerFactory.cc
  2434. * src/OptionHandlerImpl.h
  2435. * src/Request.cc
  2436. * src/option_processing.cc
  2437. * src/prefs.cc
  2438. * src/prefs.h
  2439. * src/usage_text.h
  2440. * test/AuthConfigFactoryTest.cc
  2441. * test/HttpRequestTest.cc
  2442. * test/OptionHandlerTest.cc
  2443. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2444. Execute choking algorithm when unchoked and interested peer is
  2445. disconected.
  2446. * src/DefaultPeerStorage.cc
  2447. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2448. Added testcase for BtNotInterestedMessage from unchoked peer.
  2449. * test/BtNotInterestedMessageTest.cc
  2450. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2451. Execute choking algorithm when BtInterestedMessage arrives from
  2452. unchoked peer.
  2453. * src/BtInterestedMessage.cc
  2454. * src/BtInterestedMessage.h
  2455. * src/DefaultBtMessageFactory.cc
  2456. * test/BtInterestedMessageTest.cc
  2457. * test/MockPeerStorage.h
  2458. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2459. AuthConfigFactory is now part of DownloadEngine.
  2460. * src/AbstractProxyRequestCommand.cc
  2461. * src/AuthConfigFactory.h
  2462. * src/DownloadEngine.cc
  2463. * src/DownloadEngine.h
  2464. * src/FtpConnection.cc
  2465. * src/FtpConnection.h
  2466. * src/FtpNegotiationCommand.cc
  2467. * src/HttpConnection.cc
  2468. * src/HttpRequest.cc
  2469. * src/HttpRequest.h
  2470. * src/HttpRequestCommand.cc
  2471. * src/HttpResponse.cc
  2472. * src/HttpResponseCommand.cc
  2473. * src/HttpSkipResponseCommand.cc
  2474. * src/MultiUrlRequestInfo.cc
  2475. * src/main.cc
  2476. * test/FtpConnectionTest.cc
  2477. * test/HttpRequestTest.cc
  2478. * test/HttpResponseTest.cc
  2479. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2480. Corrected catched exception type.
  2481. * src/ServerStatMan.cc
  2482. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2483. DNSCache is now part of DownloadEngine.
  2484. * src/DNSCache.h
  2485. * src/DownloadEngine.cc
  2486. * src/DownloadEngine.h
  2487. * src/InitiateConnectionCommand.cc
  2488. * src/MultiUrlRequestInfo.cc
  2489. * test/Makefile.am
  2490. * test/Makefile.in
  2491. * test/SimpleDNSCacheTest.cc
  2492. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2493. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2494. DownloadEngine.
  2495. * src/ActivePeerConnectionCommand.cc
  2496. * src/BtSetup.cc
  2497. * src/CUIDCounter.h
  2498. * src/DHTSetup.cc
  2499. * src/DownloadCommand.cc
  2500. * src/DownloadEngine.cc
  2501. * src/DownloadEngine.h
  2502. * src/DownloadEngineFactory.cc
  2503. * src/FileAllocationDispatcherCommand.cc
  2504. * src/InitiatorMSEHandshakeCommand.cc
  2505. * src/PeerInitiateConnectionCommand.cc
  2506. * src/PeerInteractionCommand.cc
  2507. * src/PeerListenCommand.cc
  2508. * src/RequestGroup.cc
  2509. * src/StreamFileAllocationEntry.cc
  2510. * src/TrackerWatcherCommand.cc
  2511. * src/main.cc
  2512. * test/RequestGroupManTest.cc
  2513. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2514. Implemented commented code in BtSeederStateChoke
  2515. * src/BtSeederStateChoke.cc
  2516. * src/Peer.cc
  2517. * src/Peer.h
  2518. * src/PeerInteractionCommand.cc
  2519. * src/PeerSessionResource.cc
  2520. * src/PeerSessionResource.h
  2521. * test/MockBtMessageDispatcher.h
  2522. * test/PeerSessionResourceTest.cc
  2523. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2524. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2525. its object.
  2526. * src/AbstractBtMessage.cc
  2527. * src/ActivePeerConnectionCommand.cc
  2528. * src/ActivePeerConnectionCommand.h
  2529. * src/BtContextAwareCommand.cc
  2530. * src/BtContextAwareCommand.h
  2531. * src/BtExtendedMessage.cc
  2532. * src/BtExtendedMessage.h
  2533. * src/BtInterestedMessage.cc
  2534. * src/BtInterestedMessage.h
  2535. * src/BtNotInterestedMessage.cc
  2536. * src/BtNotInterestedMessage.h
  2537. * src/BtRegistry.cc
  2538. * src/BtRegistry.h
  2539. * src/BtSeederStateChoke.cc
  2540. * src/BtSetup.cc
  2541. * src/DHTGetPeersCommand.cc
  2542. * src/DHTGetPeersCommand.h
  2543. * src/DHTPeerAnnounceEntry.cc
  2544. * src/DHTPeerAnnounceEntry.h
  2545. * src/DHTPeerAnnounceStorage.cc
  2546. * src/DHTPeerAnnounceStorage.h
  2547. * src/DHTPeerLookupTask.cc
  2548. * src/DHTPeerLookupTask.h
  2549. * src/DHTSetup.cc
  2550. * src/DHTSetup.h
  2551. * src/DHTTaskFactory.h
  2552. * src/DHTTaskFactoryImpl.cc
  2553. * src/DHTTaskFactoryImpl.h
  2554. * src/DefaultBtAnnounce.cc
  2555. * src/DefaultBtInteractive.cc
  2556. * src/DefaultBtInteractive.h
  2557. * src/DefaultBtMessageDispatcher.cc
  2558. * src/DefaultBtMessageDispatcher.h
  2559. * src/DefaultBtMessageFactory.cc
  2560. * src/DefaultBtMessageFactory.h
  2561. * src/DefaultBtMessageReceiver.cc
  2562. * src/DefaultBtProgressInfoFile.cc
  2563. * src/DefaultBtProgressInfoFile.h
  2564. * src/DefaultBtRequestFactory.cc
  2565. * src/DefaultBtRequestFactory.h
  2566. * src/DefaultExtensionMessageFactory.cc
  2567. * src/DefaultExtensionMessageFactory.h
  2568. * src/DefaultPeerStorage.cc
  2569. * src/DefaultPeerStorage.h
  2570. * src/DownloadEngine.cc
  2571. * src/DownloadEngine.h
  2572. * src/InitiatorMSEHandshakeCommand.cc
  2573. * src/InitiatorMSEHandshakeCommand.h
  2574. * src/MSEHandshake.cc
  2575. * src/MSEHandshake.h
  2576. * src/Makefile.am
  2577. * src/Makefile.in
  2578. * src/PeerChokeCommand.cc
  2579. * src/PeerChokeCommand.h
  2580. * src/PeerInitiateConnectionCommand.cc
  2581. * src/PeerInitiateConnectionCommand.h
  2582. * src/PeerInteractionCommand.cc
  2583. * src/PeerInteractionCommand.h
  2584. * src/PeerObject.h
  2585. * src/PeerReceiveHandshakeCommand.cc
  2586. * src/PeerReceiveHandshakeCommand.h
  2587. * src/ReceiverMSEHandshakeCommand.cc
  2588. * src/RequestGroup.cc
  2589. * src/RequestGroup.h
  2590. * src/RequestGroupMan.cc
  2591. * src/RequestGroupMan.h
  2592. * src/SeedCheckCommand.cc
  2593. * src/SeedCheckCommand.h
  2594. * src/ShareRatioSeedCriteria.h
  2595. * src/SimpleBtMessage.cc
  2596. * src/TrackerWatcherCommand.cc
  2597. * src/TrackerWatcherCommand.h
  2598. * src/UTPexExtensionMessage.cc
  2599. * src/UTPexExtensionMessage.h
  2600. * test/BtCancelMessageTest.cc
  2601. * test/BtChokeMessageTest.cc
  2602. * test/BtExtendedMessageTest.cc
  2603. * test/BtInterestedMessageTest.cc
  2604. * test/BtNotInterestedMessageTest.cc
  2605. * test/BtPieceMessageTest.cc
  2606. * test/BtPortMessageTest.cc
  2607. * test/BtRegistryTest.cc
  2608. * test/BtRejectMessageTest.cc
  2609. * test/BtRequestMessageTest.cc
  2610. * test/DHTPeerAnnounceEntryTest.cc
  2611. * test/DHTPeerAnnounceStorageTest.cc
  2612. * test/DefaultBtMessageDispatcherTest.cc
  2613. * test/DefaultBtMessageFactoryTest.cc
  2614. * test/DefaultBtProgressInfoFileTest.cc
  2615. * test/DefaultBtRequestFactoryTest.cc
  2616. * test/DefaultExtensionMessageFactoryTest.cc
  2617. * test/MSEHandshakeTest.cc
  2618. * test/MockDHTTaskFactory.h
  2619. * test/ShareRatioSeedCriteriaTest.cc
  2620. * test/UTPexExtensionMessageTest.cc
  2621. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2622. Fixed compiler warning.
  2623. * test/UtilTest.cc
  2624. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2625. Treat Cookie object as session cookie if expiry = 0 is given.
  2626. With this change, you can specify session scoped cookies in an external
  2627. file setting expiry value to 0.
  2628. * src/Cookie.cc
  2629. * src/Cookie.h
  2630. * test/CookieParserTest.cc
  2631. * test/CookieStorageTest.cc
  2632. * test/CookieTest.cc
  2633. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2634. Changed signature of DHTMessageFactory::createResponseMessage().
  2635. Removed unused validateIDMatch.
  2636. * src/DHTMessageFactory.h
  2637. * src/DHTMessageFactoryImpl.cc
  2638. * src/DHTMessageFactoryImpl.h
  2639. * src/DHTMessageTracker.cc
  2640. * test/DHTMessageFactoryImplTest.cc
  2641. * test/MockDHTMessageFactory.h
  2642. Dropped DHT message coming from same ID of localhost.
  2643. * src/DHTMessageReceiver.cc
  2644. Rejected adding node whose ID is the same as localhost's.
  2645. * src/DHTRoutingTable.cc
  2646. * test/BtPortMessageTest.cc
  2647. * test/DHTRoutingTableTest.cc
  2648. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2649. Pool connection when redirection occurs with Content-Length = 0.
  2650. * src/HttpSkipResponseCommand.cc
  2651. * src/HttpSkipResponseCommand.h
  2652. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2653. Fixed the bug that causes time out when redirection occurs with
  2654. content-length 0.
  2655. * src/HttpResponseCommand.cc
  2656. * src/HttpSkipResponseCommand.cc
  2657. * src/HttpSkipResponseCommand.h
  2658. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2659. Now each status legends is shown only when it appears in Download
  2660. Result. If Download Result has no item, then status legend will not
  2661. be printed.
  2662. * src/RequestGroupMan.cc
  2663. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2664. Removed duplicate creation of OptionHandlers.
  2665. * src/option_processing.cc
  2666. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2667. Fixed the bug that causes segmentation fault when accessing files which
  2668. don't exist or are not included in --select-file option while
  2669. validating chunk checksum.
  2670. * src/MultiDiskAdaptor.cc
  2671. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2672. Fixed compiler warning.
  2673. * test/UtilTest.cc
  2674. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2675. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2676. * src/IteratableChecksumValidator.cc
  2677. * src/IteratableChunkChecksumValidator.cc
  2678. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2679. * Release 0.16.2
  2680. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2681. Added Serbian translation. Updated Ukrainian translation.
  2682. Thanks to all translators.
  2683. * po/sr.po
  2684. * po/uk.po
  2685. * po/LINGUAS
  2686. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2687. Bump up version number to 0.16.2
  2688. * configure.ac
  2689. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2690. Added length equality test to operator== to drop a piece message
  2691. whose length does not match to the requested one.
  2692. * src/RequestSlot.cc
  2693. * test/DefaultBtMessageDispatcherTest.cc
  2694. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2695. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2696. recieved.
  2697. In this fix, if a request larger than 16KiB length is received, aria2
  2698. disconnects the peer.
  2699. * src/BtConstants.h
  2700. * src/PeerMessageUtil.cc
  2701. * src/PeerMessageUtil.h
  2702. * test/BtRequestMessageTest.cc
  2703. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2704. * Release 0.16.1
  2705. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2706. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2707. * doc/aria2c.1.txt
  2708. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2709. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2710. Updated French, Simplified Chinese and Japanese translations.
  2711. Thanks to all translators.
  2712. en@quot and en@boldquot are also added.
  2713. * po/LINGUAS
  2714. * po/fr.po
  2715. * po/ja.po
  2716. * po/uk.po
  2717. * po/vi.po
  2718. * po/zh_CN.po
  2719. * po/zh_TW.po
  2720. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2721. Bump up version number to 0.16.1.
  2722. * configure.ac
  2723. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2724. Updated README.
  2725. * README
  2726. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2727. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2728. not to replace '--' with em dash character.
  2729. * doc/aria2c.1.txt
  2730. * doc/makeman
  2731. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2732. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2733. every SEC seconds.
  2734. * src/DownloadEngineFactory.cc
  2735. * src/OptionHandlerFactory.cc
  2736. * src/option_processing.cc
  2737. * src/usage_text.h
  2738. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2739. Fixed compile warning on linux-amd64
  2740. * src/FtpConnection.cc
  2741. * src/IteratableChunkChecksumValidator.cc
  2742. * src/MultiDiskAdaptor.cc
  2743. Fixed the bug that unit test fails on linux-amd64
  2744. * test/UtilTest.cc
  2745. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2746. Added --dht-file-path option to change the path to dht.dat, which is a
  2747. serialized DHT routing table.
  2748. * src/OptionHandlerFactory.cc
  2749. * src/option_processing.cc
  2750. * src/usage_text.h
  2751. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2752. Fixed possible underflow.
  2753. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2754. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2755. Fixed the bug that last character in URI is not encoded.
  2756. * src/Request.cc
  2757. * test/RequestTest.cc
  2758. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2759. Fixed the bug that referer header field contains fragment.
  2760. Now Request class removes fragment part of URI and encodes it
  2761. in Request::setUri() and setReferer().
  2762. * src/Request.h
  2763. * src/Request.cc
  2764. * test/RequestTest.cc
  2765. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2766. Added missing m4 macros.
  2767. * m4/cppunit.m4
  2768. * m4/libgcrypt.m4
  2769. * m4/libgnutls-extra.m4
  2770. * m4/libgnutls.m4
  2771. * m4/libxml2.m4
  2772. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2773. Fixed compile error with gcc-4.4(snapshot)
  2774. * src/File.cc
  2775. * src/FtpConnection.cc
  2776. * src/OptionHandlerImpl.h
  2777. * src/Util.cc
  2778. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2779. Removed assert()
  2780. * src/SocketBuffer.cc (SocketBuffer::send)
  2781. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2782. Changed the type of _numNewConnection to unsigned int.
  2783. * src/ActivePeerConnectionCommand.cc
  2784. * src/ActivePeerConnectionCommand.h
  2785. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2786. * Release 0.16.0
  2787. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2788. Updated doc
  2789. * README
  2790. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2791. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  2792. translations. Thanks to all translators.
  2793. * po/bg.po
  2794. * po/de.po
  2795. * po/fr.po
  2796. * po/ja.po
  2797. * po/zh_CN.po
  2798. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2799. Bump up version number to 0.16.0.
  2800. * configure.ac
  2801. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2802. Casted entry->maxConnections to int32_t for std::min<T> with T =
  2803. int32_t.
  2804. Changed the type of count to int32_t.
  2805. * src/Metalink2RequestGroup.cc
  2806. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2807. Added test for Time::elapsed(time_t).
  2808. * test/TimeTest.cc
  2809. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2810. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  2811. Util::difftv() should be used instead.
  2812. * src/TimeA2.cc
  2813. * src/TimeA2.h
  2814. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2815. Made socket for dht connections non-blocking
  2816. * src/DHTAbstractMessage.cc
  2817. * src/DHTAbstractMessage.h
  2818. * src/DHTConnection.h
  2819. * src/DHTConnectionImpl.cc
  2820. * src/DHTConnectionImpl.h
  2821. * src/DHTMessage.h
  2822. * src/DHTMessageDispatcherImpl.cc
  2823. * src/DHTMessageDispatcherImpl.h
  2824. * src/DHTUnknownMessage.cc
  2825. * src/DHTUnknownMessage.h
  2826. * src/SocketCore.cc
  2827. * src/SocketCore.h
  2828. * test/MockDHTMessage.h
  2829. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2830. Changed the type of offset to int.
  2831. * src/ParameterizedStringParser.cc
  2832. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2833. Made getAsInt() return int32_t
  2834. * src/Option.h
  2835. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2836. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  2837. build.
  2838. * configure.ac
  2839. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2840. Use sqlite3_open if sqlite3_open_v2 is not available.
  2841. * src/Sqlite3MozCookieParser.cc
  2842. * src/Sqlite3MozCookieParser.h
  2843. * m4/sqlite3.m4
  2844. * test/Sqlite3MozCookieParserTest.cc
  2845. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2846. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  2847. * src/BtPieceMessage.cc
  2848. * src/DHTPeerAnnounceStorage.cc
  2849. * src/DefaultPieceStorage.cc
  2850. * src/DownloadCommand.cc
  2851. * src/DownloadEngine.cc
  2852. * src/FtpConnection.cc
  2853. * src/PeerConnection.cc
  2854. * src/PeerMessageUtil.cc
  2855. * src/RequestGroup.cc
  2856. * src/RequestGroupMan.cc
  2857. * src/SimpleBtMessage.cc
  2858. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2859. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  2860. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  2861. * src/AbstractDiskWriter.cc
  2862. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2863. Don't set Request::supportsPersistentConnection() in HttpConnection
  2864. since this code is also used in AbstractProxyResponseCommand.
  2865. Moved those code to HttpResponse.
  2866. * src/HttpResponse.cc
  2867. * src/HttpResponse.h
  2868. * src/HttpConnection.cc
  2869. * src/HttpConnection.h
  2870. * src/HttpResponseCommand.cc
  2871. * test/HttpResponseTest.cc
  2872. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2873. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  2874. The configuration is minimum: no torrent, no metalink, so there may be
  2875. other compile error on their code.
  2876. * src/a2netcompat.h
  2877. * src/File.cc
  2878. * src/File.h
  2879. * src/SocketCore.cc
  2880. * src/SocketCore.h
  2881. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2882. Made a socket of incoming peer non-blocking.
  2883. * src/PeerListenCommand.cc
  2884. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2885. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  2886. whole message data is not sent in one send() call.
  2887. * src/BtPieceMessage.cc
  2888. * src/BtPieceMessage.h
  2889. * src/PeerConnection.cc
  2890. * src/PeerConnection.h
  2891. * src/SimpleBtMessage.cc
  2892. * src/SimpleBtMessage.h
  2893. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2894. Fixed the bug that aria2 downloads faster than max-download-limit when
  2895. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  2896. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  2897. , instead of sum of them.
  2898. * src/ActivePeerConnectionCommand.cc
  2899. * src/DefaultBtInteractive.cc
  2900. * src/DownloadCommand.cc
  2901. * src/PeerInteractionCommand.cc
  2902. * src/PeerReceiveHandshakeCommand.cc
  2903. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2904. Fixed the bug that HTTPS download fails.
  2905. * src/AbstractCommand.cc
  2906. * src/AbstractCommand.h
  2907. * src/DownloadCommand.cc
  2908. * src/FtpConnection.cc
  2909. * src/HttpConnection.cc
  2910. * src/HttpRequestCommand.cc
  2911. * src/HttpResponseCommand.cc
  2912. * src/HttpSkipResponseCommand.cc
  2913. * src/MSEHandshake.cc
  2914. * src/PeerConnection.cc
  2915. * src/SocketCore.cc
  2916. * src/SocketCore.h
  2917. Fixed the bug that aria2 doesn't download whole content body and cannot
  2918. reuse connection if chunked transfer encoding and gzip content encoding
  2919. are set.
  2920. * src/DownloadCommand.cc
  2921. * src/HttpSkipResponseCommand.cc
  2922. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2923. Updated man page.
  2924. * doc/aria2c.1.txt
  2925. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2926. When error occurred while aria2 was parsing an .aria2.conf file, print
  2927. the usage of the option that caused error.
  2928. * src/option_processing.cc
  2929. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2930. Fixed compile error on OptionHandlerException
  2931. * src/Makefile.am
  2932. * src/OptionHandlerException.cc
  2933. * src/OptionHandlerException.h
  2934. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2935. Moved message of the error to OptionHandlerException.h
  2936. * src/NameMatchOptionHandler.h
  2937. * src/OptionHandlerException.h
  2938. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2939. When error occurs while aria2 is parsing an command-line option, print
  2940. the usage of the option.
  2941. * src/Makefile.am
  2942. * src/NameMatchOptionHandler.h
  2943. * src/OptionHandlerException.h
  2944. * src/option_processing.cc
  2945. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2946. Reverted previous change.
  2947. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  2948. username is not in URI.
  2949. * src/HttpRequest.cc
  2950. * src/Request.cc
  2951. * test/HttpRequestTest.cc
  2952. * test/RequestTest.cc
  2953. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2954. Now colon is required for username and password in FTP URL, like:
  2955. ftp://username:password@host.
  2956. If colon is not there, aria2 don't parse it as a username. For example,
  2957. aria2 don't retrieve username from ftp://username@host.
  2958. This fix was made in order to login FTP server via non-transparent ftp
  2959. proxy.
  2960. * src/Request.cc
  2961. * test/RequestTest.cc
  2962. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2963. Use netrc for HTTP.
  2964. Now FTP user/password is sent in Authorization header when
  2965. --ftp-via-http-proxy=get is given.
  2966. * src/AuthConfigFactory.cc
  2967. * src/HttpRequest.cc
  2968. * src/HttpRequest.h
  2969. * src/NetrcAuthResolver.cc
  2970. * src/NetrcAuthResolver.h
  2971. * src/OptionHandlerFactory.cc
  2972. * src/option_processing.cc
  2973. * src/prefs.cc
  2974. * src/prefs.h
  2975. * test/AuthConfigFactoryTest.cc
  2976. * test/HttpRequestTest.cc
  2977. * test/NetrcAuthResolverTest.cc
  2978. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2979. Issue PWD command first and get working directory and use it as a prefix
  2980. for CWD command.
  2981. * src/DownloadEngine.cc
  2982. * src/DownloadEngine.h
  2983. * src/FtpConnection.cc
  2984. * src/FtpConnection.h
  2985. * src/FtpFinishDownloadCommand.cc
  2986. * src/FtpInitiateConnectionCommand.cc
  2987. * src/FtpNegotiationCommand.cc
  2988. * src/FtpNegotiationCommand.h
  2989. * test/FtpConnectionTest.cc
  2990. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2991. Removed default user/pass for FTP user/pass, since it should not have
  2992. precedence over netrc configuration by default.
  2993. * src/OptionHandlerFactory.cc
  2994. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2995. Added debug log for socket event.
  2996. * src/AbstractCommand.cc
  2997. * src/PeerAbstractCommand.cc
  2998. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2999. Log microseconds.
  3000. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3001. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3002. Replaced HelpItem.cc with OptionHandler.cc.
  3003. * po/POTFILES.in
  3004. Updated po files with 'make update-po'
  3005. * po/aria2c.pot
  3006. * po/*.po
  3007. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3008. Removed possible values from the text.
  3009. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3010. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3011. Removed unused preferences:
  3012. PREF_NO_PREALLOCATION
  3013. PREF_STDOUT_LOG
  3014. PREF_TRACKER_MAX_TRIES
  3015. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3016. PREF_MIN_SEGMENT_SIZE
  3017. * src/option_processing.cc
  3018. * src/prefs.cc
  3019. * src/prefs.h
  3020. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3021. Integrated HelpItem into OptionParser to ease the workload for adding
  3022. new options. Removed default value from usage text.
  3023. * src/HelpItem.cc: Removed.
  3024. * src/HelpItem.h: Removed.
  3025. * src/HelpItemFactory.cc: Removed.
  3026. * src/HelpItemFactory.h: Removed.
  3027. * src/Makefile.am
  3028. * src/Makefile.in
  3029. * src/NameMatchOptionHandler.h
  3030. * src/OptionHandler.cc
  3031. * src/OptionHandler.h
  3032. * src/OptionHandlerFactory.cc
  3033. * src/OptionHandlerImpl.h
  3034. * src/OptionParser.cc
  3035. * src/OptionParser.h
  3036. * src/TagContainer.cc: Removed.
  3037. * src/TagContainer.h: Removed.
  3038. * src/TaggedItem.cc: Removed.
  3039. * src/TaggedItem.h: Removed.
  3040. * src/main.cc
  3041. * src/option_processing.cc
  3042. * src/usage_text.h
  3043. * src/version_usage.cc
  3044. * test/HelpItemTest.cc: Removed.
  3045. * test/Makefile.am
  3046. * test/Makefile.in
  3047. * test/OptionHandlerTest.cc
  3048. * test/OptionParserTest.cc
  3049. * test/TagContainerTest.cc: Removed.
  3050. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3051. Moved `TransferStat stat = ...' to inside the `if' clause.
  3052. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3053. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3054. Fixed the bug that a block in a piece is requested when same block is
  3055. already requested to the same peer in end game mode.
  3056. * src/BtRequestFactory.h
  3057. * src/DefaultBtInteractive.cc
  3058. * src/DefaultBtRequestFactory.cc
  3059. * src/DefaultBtRequestFactory.h
  3060. * src/DefaultPieceStorage.cc
  3061. * src/DefaultPieceStorage.h
  3062. * src/PieceStorage.h
  3063. * src/UnknownLengthPieceStorage.cc
  3064. * src/UnknownLengthPieceStorage.h
  3065. * test/DefaultBtRequestFactoryTest.cc
  3066. * test/DefaultPieceStorageTest.cc
  3067. * test/MockBtRequestFactory.h
  3068. * test/MockPieceStorage.h
  3069. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3070. Removed _uploadLength and _downloadLength from PeerSessionResource
  3071. and use PeerStat::_sessionUploadLength and
  3072. PeerStat::_sessionDownloadLength.
  3073. * src/PeerSessionResource.cc
  3074. * src/PeerSessionResource.h
  3075. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3076. Fixed the bug that prefixLength of split bucket which doesn't include
  3077. local node ID is incremented.
  3078. * src/DHTBucket.cc
  3079. * src/DHTBucket.h
  3080. * test/DHTBucketTest.cc
  3081. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3082. Added cookies.sqlite to EXTRA_DIST
  3083. * test/Makefile.am
  3084. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3085. Added Turkish translation. Updated French, German, Russian and
  3086. Simplified Chinese translations. Thanks to all translators.
  3087. * po/LINGUAS
  3088. * po/de.po
  3089. * po/fr.po
  3090. * po/ru.po
  3091. * po/tr.po
  3092. * po/zh_CN.po
  3093. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3094. Added deliminating text to the beginning of the log so that one can find
  3095. where the log starts easily.
  3096. * src/main.cc
  3097. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3098. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3099. to fix compile error when async DNS is not enabled by configuration.
  3100. * src/AbstractCommand.cc
  3101. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3102. If establishing conneciton to a server is failed, then mark error on
  3103. its ServerStat.
  3104. Added the cause of error to log when error event occurred.
  3105. Moved message string to message.h for translation.
  3106. * src/AbstractCommand.cc
  3107. * src/AbstractCommand.h
  3108. * src/FtpNegotiationCommand.cc
  3109. * src/HttpRequestCommand.cc
  3110. * src/PeerAbstractCommand.cc
  3111. * src/message.h
  3112. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3113. Added the function to get error message from socket.
  3114. * src/SocketCore.cc
  3115. * src/SocketCore.h
  3116. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3117. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3118. * src/RequestGroupMan.cc
  3119. * src/RequestGroupMan.h
  3120. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3121. If error event is received in epoll, then abort download immediately.
  3122. * src/AbstractCommand.cc
  3123. * src/Command.cc
  3124. * src/Command.h
  3125. * src/DownloadEngine.cc
  3126. * src/PeerAbstractCommand.cc
  3127. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3128. Added usage message for --uri-selector, --server-stat-of,
  3129. --server-stat-in, --server-stat-timeout options.
  3130. * src/HelpItemFactory.cc
  3131. * src/usage_text.h
  3132. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3133. Added upper limit of FTP response buffer. The current implementation
  3134. uses 4096bytes as a limit.
  3135. * src/FtpConnection.cc
  3136. * src/FtpConnection.h
  3137. * test/FtpConnectionTest.cc
  3138. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3139. Use non-blocking socket for TCP communication to avoid possible
  3140. blocking due to buffer full.
  3141. * src/AbstractProxyRequestCommand.cc
  3142. * src/FtpConnection.cc
  3143. * src/FtpConnection.h
  3144. * src/FtpNegotiationCommand.cc
  3145. * src/FtpNegotiationCommand.h
  3146. * src/HttpConnection.cc
  3147. * src/HttpConnection.h
  3148. * src/HttpRequestCommand.cc
  3149. * src/InitiatorMSEHandshakeCommand.cc
  3150. * src/InitiatorMSEHandshakeCommand.h
  3151. * src/MSEHandshake.cc
  3152. * src/MSEHandshake.h
  3153. * src/Makefile.am
  3154. * src/PeerConnection.cc
  3155. * src/PeerConnection.h
  3156. * src/PeerInteractionCommand.cc
  3157. * src/PeerListenCommand.cc
  3158. * src/ReceiverMSEHandshakeCommand.cc
  3159. * src/ReceiverMSEHandshakeCommand.h
  3160. * src/SocketBuffer.cc
  3161. * src/SocketBuffer.h
  3162. * src/SocketCore.cc
  3163. * src/SocketCore.h
  3164. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3165. Call setStatusRealtime() in constructor.
  3166. * src/RealtimeCommand.cc
  3167. * src/RealtimeCommand.h
  3168. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3169. Call Download::setNoWait(true) to execute newly created command without
  3170. a pause.
  3171. * src/AbstractCommand.cc
  3172. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3173. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3174. found' error from HTTP/FTP server NUM times without getting single
  3175. bytes of data, then force the download to fail.
  3176. Basically aria2 tris all URIs available. So if long list of URIs are
  3177. specified in Metalink, then aria2 will take a long time to fail
  3178. eventually if all URIs are outdated. This option eases this situation
  3179. to limit the number of servers to try.
  3180. * src/FtpNegotiationCommand.cc
  3181. * src/HelpItemFactory.cc
  3182. * src/HttpResponseCommand.cc
  3183. * src/OptionHandlerFactory.cc
  3184. * src/PeerStat.h
  3185. * src/RequestGroup.cc
  3186. * src/RequestGroup.h
  3187. * src/SegmentMan.cc
  3188. * src/SegmentMan.h
  3189. * src/option_processing.cc
  3190. * src/prefs.cc
  3191. * src/prefs.h
  3192. * src/usage_text.h
  3193. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3194. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3195. response even if more than one response is in it.
  3196. * src/FtpConnection.cc
  3197. * src/FtpConnection.h
  3198. * test/FtpConnectionTest.cc
  3199. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3200. Merged from stable-0.15
  3201. * m4/libcares.m4
  3202. Use pkg-config
  3203. * m4/sqlite3.m4
  3204. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3205. Removed unnecessary if statement.
  3206. * src/DefaultPieceStorage.cc (initPieceStorage)
  3207. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3208. Added --connect-timeout option to specify connect timeout in seconds.
  3209. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3210. connecting to BitTorrent peer is not controlled by this option.
  3211. * src/AbstractProxyRequestCommand.cc
  3212. * src/FtpNegotiationCommand.cc
  3213. * src/HelpItemFactory.cc
  3214. * src/HttpRequestCommand.cc
  3215. * src/OptionHandlerFactory.cc
  3216. * src/option_processing.cc
  3217. * src/prefs.cc
  3218. * src/prefs.h
  3219. * src/usage_text.h
  3220. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3221. Added help message for -R option.
  3222. * src/HelpItemFactory.cc
  3223. * src/usage_text.h
  3224. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3225. Added the message that the time is in local time zone.
  3226. * src/RequestGroup.cc
  3227. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3228. Implemented the ability to get timestamp from remote FTP server using
  3229. MDTM command described in RFC3659.
  3230. * src/FtpConnection.cc
  3231. * src/FtpConnection.h
  3232. * src/FtpNegotiationCommand.cc
  3233. * src/FtpNegotiationCommand.h
  3234. * test/FtpConnectionTest.cc
  3235. * test/Makefile.am
  3236. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3237. Implemented the ability to get timestamp from remote HTTP server and
  3238. apply it to local file. To enable this feature, --remote-time option
  3239. is added. No usage text has been written yet.
  3240. If several servers returns difference timestamp, then aria2 uses latest
  3241. one.
  3242. * src/CopyDiskAdaptor.cc
  3243. * src/CopyDiskAdaptor.h
  3244. * src/DirectDiskAdaptor.cc
  3245. * src/DirectDiskAdaptor.h
  3246. * src/DiskAdaptor.h
  3247. * src/File.cc
  3248. * src/File.h
  3249. * src/HttpHeader.cc
  3250. * src/HttpHeader.h
  3251. * src/HttpResponse.cc
  3252. * src/HttpResponse.h
  3253. * src/HttpResponseCommand.cc
  3254. * src/HttpResponseCommand.h
  3255. * src/MultiDiskAdaptor.cc
  3256. * src/MultiDiskAdaptor.h
  3257. * src/OptionHandlerFactory.cc
  3258. * src/RequestGroup.cc
  3259. * src/RequestGroup.h
  3260. * src/RequestGroupMan.cc
  3261. * src/option_processing.cc
  3262. * src/prefs.cc
  3263. * src/prefs.h
  3264. * test/CopyDiskAdaptorTest.cc
  3265. * test/FileTest.cc
  3266. * test/Makefile.am
  3267. * test/Makefile.in
  3268. * test/MultiDiskAdaptorTest.cc
  3269. * test/TestUtil.cc
  3270. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3271. Fixed the bug that DiskWriterEntry is not created when its
  3272. FileEntry.isRequested() is false and it doesn't share a piece with
  3273. other FileEntries that are requested. This bug causes segmentation fault
  3274. in the end.
  3275. * src/MultiDiskAdaptor.cc
  3276. * src/MultiDiskAdaptor.h
  3277. * src/MultiFileAllocationIterator.cc
  3278. * test/MultiDiskAdaptorTest.cc
  3279. * test/MultiFileAllocationIteratorTest.cc
  3280. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3281. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3282. called if the number of file entries are greater than max open files.
  3283. * src/AbstractSingleDiskAdaptor.cc
  3284. * src/AbstractSingleDiskAdaptor.h
  3285. * src/DiskAdaptor.h
  3286. * src/MultiDiskAdaptor.cc
  3287. * src/MultiDiskAdaptor.h
  3288. * test/MultiDiskAdaptorTest.cc
  3289. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3290. Added a constuctor that receives struct timeval.
  3291. Added operator<.
  3292. * src/TimeA2.cc
  3293. * src/TimeA2.h
  3294. * test/TimeTest.cc
  3295. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3296. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3297. * src/CookieParser.cc
  3298. * test/CookieParserTest.cc
  3299. * test/HttpResponseTest.cc
  3300. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3301. Implmented the functions to parse date.
  3302. * src/TimeA2.cc
  3303. * src/TimeA2.h
  3304. * test/TimeTest.cc
  3305. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3306. Added "Firefox3 Cookie" feature to FeatureConfig
  3307. * src/FeatureConfig.cc
  3308. * src/FeatureConfig.h
  3309. * test/FeatureConfigTest.cc
  3310. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3311. Bump up version number to 0.16.0b
  3312. * configure.ac
  3313. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3314. Use pkg-config if is is available.
  3315. * m4/openssl.m4
  3316. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3317. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3318. * src/BtAnnounce.h
  3319. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3320. If an error occurred with a URI, remove identical URI from remaining
  3321. URI list because it is likely that same error occurred in the end and it
  3322. is waste of time.
  3323. * src/AbstractCommand.cc
  3324. * src/RequestGroup.cc
  3325. * src/RequestGroup.h
  3326. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3327. Removed wrong comment.
  3328. * src/DefaultPeerStorage.cc
  3329. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3330. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3331. Added return value of getpid() to argument of srand() to achieve more
  3332. randomized value.
  3333. * src/SimpleRandomizer.cc
  3334. * src/SimpleRandomizer.h
  3335. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3336. Contact tracker frequently when the number of connections are 0 and
  3337. download is not finished yet.
  3338. * src/ActivePeerConnectionCommand.cc
  3339. * src/BtAnnounce.h
  3340. * src/DefaultBtAnnounce.cc
  3341. * src/DefaultBtAnnounce.h
  3342. * test/MockBtAnnounce.h
  3343. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3344. Moved threshold values to UTPexExtensionMessage.
  3345. * src/DefaultBtInteractive.cc
  3346. * src/Peer.cc
  3347. * src/Peer.h
  3348. * src/UTPexExtensionMessage.cc
  3349. * src/UTPexExtensionMessage.h
  3350. * test/UTPexExtensionMessageTest.cc
  3351. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Added _incoming member to Peer class and made it true if the peer
  3353. initiated connection. Don't add those peer to UTPex message.
  3354. If extended handshake is received, assign _incoming to false.
  3355. * src/DefaultBtInteractive.cc
  3356. * src/HandshakeExtensionMessage.cc
  3357. * src/Peer.cc
  3358. * src/Peer.h
  3359. * src/PeerListenCommand.cc
  3360. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3361. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3362. Encoding Decoder. Removed size threshold for turning off on the fly
  3363. inflation because resulting file may or may not be inflated depending
  3364. on the file size and I think it is not expected by users.
  3365. This change fixes segmentation fault when Metalink file contains gzipped
  3366. file and its filesize is provided.
  3367. * src/HttpResponseCommand.cc
  3368. * src/HttpResponseCommand.h
  3369. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3370. Made Cookie immutable.
  3371. * src/Cookie.cc
  3372. * src/Cookie.h
  3373. * src/CookieParser.cc
  3374. * src/CookieParser.h
  3375. * src/CookieStorage.cc
  3376. * test/CookieParserTest.cc
  3377. * test/CookieStorageTest.cc
  3378. * test/NsCookieParserTest.cc
  3379. * test/Sqlite3MozCookieParserTest.cc
  3380. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3381. Removed CookieBox, CookieBoxFactory.
  3382. * src/CookieBox.cc
  3383. * src/CookieBox.h
  3384. * src/CookieBoxFactory.cc
  3385. * src/CookieBoxFactory.h
  3386. * src/Makefile.am
  3387. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3388. Use CookieStorage class instead of CookieBox class.
  3389. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3390. * src/AbstractProxyRequestCommand.cc
  3391. * src/CookieStorage.cc
  3392. * src/DownloadEngine.cc
  3393. * src/DownloadEngine.h
  3394. * src/HttpConnection.cc
  3395. * src/HttpConnection.h
  3396. * src/HttpRequest.cc
  3397. * src/HttpRequest.h
  3398. * src/HttpRequestCommand.cc
  3399. * src/HttpResponse.cc
  3400. * src/HttpResponseCommand.cc
  3401. * src/HttpSkipResponseCommand.cc
  3402. * src/Makefile.am
  3403. * src/MultiUrlRequestInfo.cc
  3404. * src/Request.cc
  3405. * src/Request.h
  3406. * src/main.cc
  3407. * test/AllTest.cc
  3408. * test/CookieStorageTest.cc
  3409. * test/CookieTest.cc
  3410. * test/HttpRequestTest.cc
  3411. * test/HttpResponseTest.cc
  3412. * test/Makefile.am
  3413. * test/NsCookieParserTest.cc
  3414. * test/Sqlite3MozCookieParserTest.cc
  3415. * test/nscookietest.txt
  3416. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3417. Updated
  3418. * test/Cookies.sqlite
  3419. * test/nscookietest.txt
  3420. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3421. Added tests for CookieStorage::load()
  3422. * test/CookieStorageTest.cc
  3423. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3424. Added CookieStorage class which is based on RFC2109 and manages cookies
  3425. more strictly than CookieBox and CookieBoxFactory class.
  3426. * src/CookieStorage.cc
  3427. * src/CookieStorage.h
  3428. * src/Cookie.cc
  3429. * src/Cookie.h
  3430. * test/CookieStorageTest.cc
  3431. * test/CookieTest.cc
  3432. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3433. Fixed the bug that commands are created more than the number of pieces.
  3434. * src/RequestGroup.cc
  3435. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3436. Fixed infinite loop bug in FTP when SIZE command failed.
  3437. * src/FtpNegotiationCommand.cc
  3438. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3439. Removed DirectDiskAdaptorTest.h
  3440. * test/Makefile.am
  3441. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3442. Fixed chunk checksum validation cannot detect trailing garbage data.
  3443. BUG#2074141
  3444. * src/AbstractSingleDiskAdaptor.cc
  3445. * src/AbstractSingleDiskAdaptor.h
  3446. * src/CheckIntegrityEntry.cc
  3447. * src/CheckIntegrityEntry.h
  3448. * src/DiskAdaptor.h
  3449. * src/MultiDiskAdaptor.cc
  3450. * src/MultiDiskAdaptor.h
  3451. * src/RequestGroup.cc
  3452. * test/DirectDiskAdaptorTest.cc
  3453. * test/MultiDiskAdaptorTest.cc
  3454. * test/TestUtil.cc
  3455. * test/TestUtil.h
  3456. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3457. Bump up version number of dht.dat file to 3. In version 3 format, time
  3458. is stored in 64bit, network byte order.
  3459. New build can load old format(version 2) but it saves the file in new
  3460. format. It means once you used new build, your dht.dat becomes
  3461. incompatible with older build.
  3462. * src/DHTRoutingTableDeserializer.cc
  3463. * src/DHTRoutingTableSerializer.cc
  3464. * test/DHTRoutingTableSerializerTest.cc
  3465. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3466. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3467. * test/Makefile.am
  3468. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3469. Bump up version number of .aria2 control file to 0001.
  3470. New aria2 can still load version 0000 file but it saves the file in
  3471. version 0001 format. It means that new aria2 can resume download
  3472. started by old aria2 but the opposite is not true.
  3473. * src/DefaultBtProgressInfoFile.cc
  3474. * src/DefaultBtProgressInfoFile.h
  3475. * test/DefaultBtProgressInfoFileTest.cc
  3476. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3477. Added ntoh64 and hton64 as inline functions.
  3478. * src/Util.cc
  3479. * test/UtilTest.cc
  3480. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3481. Added sqlite3 depenency and Firefox3 cookie support.
  3482. * README
  3483. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3484. State that firefox3 cookie is supported explicitly in the usage.
  3485. * src/usage_text.h
  3486. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Externalized message.
  3488. * src/RequestGroupMan.cc
  3489. * src/message.h
  3490. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3491. Save temporary file first and rename to the destination on success.
  3492. Added test cases.
  3493. * src/RequestGroupMan.cc
  3494. * test/RequestGroupManTest.cc
  3495. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3496. Fixed the bug that the number of connected peer is exceeding the limit
  3497. (55 by default) in seeding mode.
  3498. Multiplied 0.8 to _maxUploadSpeedLimit.
  3499. * src/ActivePeerConnectionCommand.cc
  3500. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3501. Clear table item.
  3502. * src/Dictionary.cc
  3503. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3504. Fixed error handling of lseek.
  3505. * src/AbstractDiskWriter.cc
  3506. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3507. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3508. style cookie file.
  3509. * src/usage_text.h
  3510. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3511. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3512. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3513. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3514. * src/Util.cc
  3515. * src/Util.h
  3516. * src/CookieParser.cc
  3517. * test/UtilTest.cc
  3518. * test/CookieParserTest.cc
  3519. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3520. Separate the implementation to load old mozilla format of cookie to
  3521. NsCookieParser class.
  3522. * src/CookieBoxFactory.cc
  3523. * src/CookieBoxFactory.h
  3524. * src/NsCookieParser.cc
  3525. * src/NsCookieParser.h
  3526. * test/NsCookieParserTest.cc
  3527. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3528. Made parse() const
  3529. * src/Sqlite3MozCookieParser.cc
  3530. * src/Sqlite3MozCookieParser.h
  3531. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3532. Added firefox3 cookie support based on the patch submitted by
  3533. tizianomueller.
  3534. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3535. this functionality.
  3536. * configure.ac
  3537. * m4/sqlite3.m4
  3538. * src/CookieBoxFactory.cc
  3539. * src/CookieBoxFactory.h
  3540. * src/Makefile.am
  3541. * src/Makefile.in
  3542. * src/Sqlite3MozCookieParser.cc
  3543. * src/Sqlite3MozCookieParser.h
  3544. * src/main.cc
  3545. * test/CookieBoxFactoryTest.cc
  3546. * test/Makefile.am
  3547. * test/Makefile.in
  3548. * test/Sqlite3MozCookieParserTest.cc
  3549. * test/badcookies.sqlite
  3550. * test/cookies.sqlite
  3551. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3552. Added Danish and Greek translations.
  3553. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3554. Great thanks to all translators.
  3555. * po/LINGUAS
  3556. * po/el.po
  3557. * po/da.po
  3558. * po/es.po
  3559. * po/ca.po
  3560. * po/nn.po
  3561. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3562. Fixed man page: --follow-bittorrent should be --follow-torrent
  3563. * doc/aria2c.1.txt
  3564. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3565. Fixed: numCommand is less than the value specified in -C option.
  3566. * src/RequestGroup.cc
  3567. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3568. Fixed occasional assertion failure in PieceSegment.
  3569. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3570. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3571. creation of duplicate segments and one of the segment was finished then
  3572. assertion failure was caused.
  3573. * src/SegmentMan.cc
  3574. * test/SegmentManTest.cc
  3575. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3576. Added options to load/save the server's performance/status to a file
  3577. and the timeout to drop their data.
  3578. --server-stat-of=FILE specifies the file to which performance data
  3579. is saved.
  3580. --server-stat-if=FILE specifies the file to read previously saved
  3581. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3582. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3583. TIMEOUT is specified in seconds and the default value is 24hours.
  3584. * src/MultiUrlRequestInfo.cc
  3585. * src/OptionHandlerFactory.cc
  3586. * src/RequestGroupMan.cc
  3587. * src/RequestGroupMan.h
  3588. * src/ServerStatMan.cc
  3589. * src/ServerStatMan.h
  3590. * src/option_processing.cc
  3591. * src/prefs.cc
  3592. * src/prefs.h
  3593. * test/ServerStatManTest.cc
  3594. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3595. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3596. * src/ServerStatMan.cc
  3597. * src/ServerStatMan.h
  3598. * test/ServerStatManTest.cc
  3599. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3600. Implemented ServerStatMan::load(...) function and its test case.
  3601. * src/ServerStat.cc
  3602. * src/ServerStat.h
  3603. * src/ServerStatMan.cc
  3604. * test/ServerStatManTest.cc
  3605. * test/ServerStatTest.cc
  3606. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3607. Use time_t instead of int32_t. Use int64_t where milli second is
  3608. expected.
  3609. * src/TimeA2.cc
  3610. * src/TimeA2.h
  3611. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3612. Implemented ServerStatMan::save(...) function and its test case.
  3613. * src/ServerStat.cc
  3614. * src/ServerStat.h
  3615. * src/ServerStatMan.cc
  3616. * src/ServerStatMan.h
  3617. * test/ServerStatManTest.cc
  3618. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3619. Now aria2 uses name attribute in Metalink as local filename in
  3620. BitTorrent downloads. BUG#2033999
  3621. * src/BtContext.h
  3622. * src/BtDependency.cc
  3623. * src/DefaultBtContext.cc
  3624. * src/DefaultBtContext.h
  3625. * src/SingleFileDownloadContext.cc
  3626. * src/SingleFileDownloadContext.h
  3627. * test/BtDependencyTest.cc
  3628. * test/DefaultBtContextTest.cc
  3629. * test/MockBtContext.h
  3630. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3631. Added AC_C_BIGENDIAN
  3632. * src/configure.ac
  3633. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3634. Limited numCommand less than or equal to the number of piece.
  3635. * src/RequestGroup.cc
  3636. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3637. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3638. directive.
  3639. * test/DefaultPieceStorageTest.cc
  3640. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3641. Fixed memory leak in test code
  3642. * test/AnnounceListTest.cc
  3643. * test/DefaultPeerListProcessorTest.cc
  3644. * test/DefaultPeerStorageTest.cc
  3645. * test/MetaFileUtilTest.cc
  3646. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3647. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3648. * src/DefaultPieceStorage.cc
  3649. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3650. Initialized _directIOAllowed
  3651. * src/MultiDiskAdaptor.cc
  3652. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3653. Fixed memory leak
  3654. * src/GZipDecoder.cc
  3655. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3656. Fixed memory leak
  3657. * src/MetalinkParserStateMachine.cc
  3658. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3659. Fixed memory leak
  3660. * src/Dictionary.cc
  3661. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3662. Fixed memory leak
  3663. * src/IteratableChunkChecksumValidator.h
  3664. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3665. Fixed unmatched malloc/free.
  3666. * src/IteratableChunkChecksumValidator.cc
  3667. * src/IteratableChecksumValidator.cc
  3668. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3669. Removed max chunk size check. This change fixes BUG#2040169
  3670. * src/ChunkedDecoder.cc
  3671. * src/ChunkedDecoder.h
  3672. * test/ChunkedDecoderTest.cc
  3673. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3674. Implemented download speed based URI selection algorithm.
  3675. Introduced new option --uri-selector.
  3676. If --uri-selector=feedback is given, aria2 uses download speed observed
  3677. in the previous downloads and chooses fastest server in the URI list.
  3678. Currently at most 10 URIs are considered to introduce randomeness for
  3679. finding better servers. The speed is average download speed in the
  3680. downloads.
  3681. On the other hand, if --uri-selector=inorder is given, which is default,
  3682. URI is tried in order in URI list.
  3683. The usage text for the new option has not been written yet.
  3684. * src/AbstractCommand.cc
  3685. * src/DownloadCommand.cc
  3686. * src/DownloadEngine.cc
  3687. * src/DownloadEngineFactory.cc
  3688. * src/InOrderURISelector.cc
  3689. * src/InOrderURISelector.h
  3690. * src/OptionHandlerFactory.cc
  3691. * src/PeerStat.h
  3692. * src/RequestGroup.cc
  3693. * src/RequestGroup.h
  3694. * src/RequestGroupMan.cc
  3695. * src/RequestGroupMan.h
  3696. * src/SegmentMan.cc
  3697. * src/SegmentMan.h
  3698. * src/ServerStat.cc
  3699. * src/ServerStat.h
  3700. * src/ServerStatMan.cc
  3701. * src/ServerStatMan.h
  3702. * src/ServerStatURISelector.cc
  3703. * src/ServerStatURISelector.h
  3704. * src/URISelector.h
  3705. * src/option_processing.cc
  3706. * src/prefs.cc
  3707. * src/prefs.h
  3708. * test/InOrderURISelectorTest.cc
  3709. * test/RequestGroupManTest.cc
  3710. * test/ServerStatManTest.cc
  3711. * test/ServerStatURISelectorTest.cc
  3712. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3713. * Release 0.15.1+2
  3714. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3715. Bump up version number to 0.15.1+2
  3716. * configure.ac
  3717. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3718. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3719. * m4/aria2_arg.m4
  3720. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3721. * Release 0.15.1+1
  3722. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3723. Bump up version number to 0.15.1+1
  3724. * configure.ac
  3725. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3726. Fixed the bug that causes segmentaion fault when resuming download
  3727. using metalink without size tag. Reproducible only using HTTP URI.
  3728. * src/HttpResponseCommand.cc
  3729. * src/FtpNegotiationCommand.cc
  3730. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3731. * Release 0.15.1
  3732. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3733. Updated Bulgarian and French translations, thanks to all translators.
  3734. * po/bg.po
  3735. * po/fr.po
  3736. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3737. Bump up version number to 0.15.1
  3738. * configure.ac
  3739. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3740. Avoid repeated call of gettimeofday() when calculating speed.
  3741. * src/SpeedCalc.cc
  3742. * src/SpeedCalc.h
  3743. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3744. Removed writable check when socket's send buffer is full in BitTorrent
  3745. downloads to lower CPU usage.
  3746. * src/PeerInteractionCommand.cc
  3747. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3748. Fixed broken gzip inflation.
  3749. Turn off segmented downloading if gzip content is smaller than or equal
  3750. to 1MiB and inflate the data on the fly, because HTTP response header
  3751. doesn't contain the length of inflated file we can't determin where
  3752. the chunk of data should be written.
  3753. On the other hand, if gzip content is larger than 1MB, then turn off
  3754. on the fly inflation, because some servers returns "content-type: gzip"
  3755. for *.tgz, *.gz files.
  3756. * src/DownloadCommand.cc
  3757. * src/HttpResponseCommand.cc
  3758. * src/HttpResponseCommand.h
  3759. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3760. Applied tizianomueller's patch to fix compile error.
  3761. * test/BitfieldManTest.cc
  3762. * test/BtRequestMessageTest.cc
  3763. * test/DefaultBtContextTest.cc
  3764. * test/DefaultDiskWriterTest.cc
  3765. * test/DefaultPieceStorageTest.cc
  3766. * test/HttpHeaderProcessorTest.cc
  3767. * test/HttpResponseTest.cc
  3768. * test/Metalink2RequestGroupTest.cc
  3769. * test/MetalinkParserControllerTest.cc
  3770. * test/MetalinkProcessorTest.cc
  3771. * test/PeerSessionResourceTest.cc
  3772. * test/UtilTest.cc
  3773. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3774. * Release 0.15.0
  3775. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3776. Reordered src files in POTFILES.in so that usage text appears first.
  3777. * po/POTFILES.in
  3778. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3779. Bump up version number to 0.15.0
  3780. * configure.ac
  3781. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3782. Added Bulgarian translation.
  3783. Updated Catalan, Spanish, French and Japanese translations.
  3784. Thanks to all translators.
  3785. * po/LINGUAS
  3786. * po/bg.po
  3787. * po/ca.po
  3788. * po/es.po
  3789. * po/fr.po
  3790. * po/ja.po
  3791. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3792. Updated feature list. Added libz for dependency section.
  3793. Added a description about unit testing using CppUnit.
  3794. * README
  3795. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3796. Added a test for libz. Quoted where it is necessary.
  3797. * build_test.sh
  3798. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3799. Added GZip to `Enabled Features' list.
  3800. * src/FeatureConfig.cc
  3801. * src/FeatureConfig.h
  3802. * test/FeatureConfigTest.cc
  3803. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3804. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  3805. the transfer has not yet started.
  3806. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  3807. * src/SegmentMan.cc
  3808. * src/SegmentMan.h
  3809. * test/SegmentManTest.cc
  3810. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3811. Cache last calculated average download/upload speed.
  3812. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  3813. cached value.
  3814. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  3815. * src/PeerStat.h
  3816. * src/SpeedCalc.cc
  3817. * src/SpeedCalc.h
  3818. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3819. Call parseUrl directly.
  3820. * src/Request.cc (resetUrl)
  3821. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3822. Supported absolute/relative path in Location header field.
  3823. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  3824. * src/HttpHeader.cc
  3825. * src/HttpHeader.h
  3826. * src/HttpResponse.cc
  3827. * src/HttpSkipResponseCommand.cc
  3828. * src/Request.cc
  3829. * test/HttpHeaderTest.cc
  3830. * test/HttpResponseTest.cc
  3831. * test/RequestTest.cc
  3832. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3833. Changed help text for --load-cookie option.
  3834. * doc/aria2c.1.txt
  3835. * src/usage_text.h
  3836. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3837. Regenerated test/Makefile.in to remove stale ChangeLog.
  3838. * test/Makefile.in
  3839. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3840. Updated po files.
  3841. * po/aria2c.pot
  3842. * po/*.po
  3843. * po/*.gmo
  3844. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3845. Bump up version number to 0.15.0b
  3846. * configure.ac
  3847. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3848. Externalize messages.
  3849. * src/RequestGroupMan.cc
  3850. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  3851. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3852. Use File::exists() instead of File::isFile() to allow non-regular file
  3853. such as block special files.
  3854. * src/AbstractDiskWriter.cc
  3855. * src/MultiDiskWriter.cc
  3856. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3857. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  3858. * src/gai_strerror.h
  3859. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3860. Fixed compile error. Thanks gknauf for the patch.
  3861. * src/asctime_r.c
  3862. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3863. Included asctime_r.h from a2time.h.
  3864. * src/a2time.h
  3865. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3866. Added a message "aria2 doesn't verify signature" to log message when
  3867. signature file is saved.
  3868. * src/RequestGroupMan.cc
  3869. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3870. Added the ability to save signature when download is completed if
  3871. signature is available. The filename of signature file is the path to
  3872. download file followed by ".sig". If it already exists, then signature
  3873. will not be saved.
  3874. * src/RequestGroupMan.cc
  3875. * src/Signature.cc
  3876. * test/SignatureTest.cc
  3877. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3878. Updated the descriptions for --bt-seed-unverified.
  3879. * doc/aria2c.1
  3880. * doc/aria2c.1.html
  3881. * doc/aria2c.1.txt
  3882. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3883. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  3884. that this is not going to verify files using piece hashes.
  3885. * src/HelpItemFactory.cc
  3886. * src/OptionHandlerFactory.cc
  3887. * src/RequestGroup.cc
  3888. * src/option_processing.cc
  3889. * src/prefs.cc
  3890. * src/prefs.h
  3891. * src/usage_text.h
  3892. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3893. Added the ability to retrieve signature from Metalink file.
  3894. A retrieved signature is stored in Signature class and it is held by
  3895. DownloadContext class. Note that aria2 doesn't verify signature.
  3896. * src/DownloadContext.cc
  3897. * src/DownloadContext.h
  3898. * src/Makefile.am
  3899. * src/Makefile.in
  3900. * src/Metalink2RequestGroup.cc
  3901. * src/MetalinkEntry.cc
  3902. * src/MetalinkEntry.h
  3903. * src/MetalinkParserController.cc
  3904. * src/MetalinkParserController.h
  3905. * src/MetalinkParserStateMachine.cc
  3906. * src/MetalinkParserStateMachine.h
  3907. * src/Signature.cc
  3908. * src/Signature.h
  3909. * src/SignatureMetalinkParserState.cc
  3910. * src/SignatureMetalinkParserState.h
  3911. * src/VerificationMetalinkParserState.cc
  3912. * src/VerificationMetalinkParserState.h
  3913. * test/Metalink2RequestGroupTest.cc
  3914. * test/MetalinkParserControllerTest.cc
  3915. * test/MetalinkProcessorTest.cc
  3916. * test/test.xml
  3917. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3918. Close DiskAdaptor after renaming file.
  3919. * src/RequestGroup.cc
  3920. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3921. Corrected indentation
  3922. * src/DefaultBtProgressInfoFile.cc
  3923. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3924. Moved the calls of std::ios::exceptions() inside of try-catch block
  3925. because if an error occurred in constructor of std::fstream, then
  3926. exception is thrown immediately when std::ios::exceptions() is called
  3927. which results unhandled exception and aria2c aborts.
  3928. * src/DefaultBtProgressInfoFile.cc
  3929. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3930. Added the test for the previous change in DefaultBtContext.cc
  3931. * test/DefaultBtContextTest.cc
  3932. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3933. Fixed the bug that causes infinite loop when the number of pieces are
  3934. fewer than allowed fast set size which is 10 by default.
  3935. * src/DefaultBtContext.cc
  3936. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3937. Updated the descriptions for -j, -s. Added --bt-seed.
  3938. * doc/aria2c.1
  3939. * doc/aria2c.1.html
  3940. * doc/aria2c.1.txt
  3941. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3942. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  3943. aria2 seeds previously downloaded files without validating piece hashs.
  3944. * src/HelpItemFactory.cc
  3945. * src/OptionHandlerFactory.cc
  3946. * src/RequestGroup.cc
  3947. * src/option_processing.cc
  3948. * src/prefs.cc
  3949. * src/prefs.h
  3950. * src/usage_text.h
  3951. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3952. Updated DESCRIPTION of man page.
  3953. * doc/aria2c.1
  3954. * doc/aria2c.1.html
  3955. * doc/aria2c.1.txt
  3956. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3957. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  3958. Don't define `struct addrinfo' when __sun is defined.
  3959. * src/getaddrinfo.h
  3960. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  3962. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  3963. second argument is of type `struct _stati64'. Otherwise it is defined as
  3964. `struct stat'.
  3965. * src/AbstractDiskWriter.cc
  3966. * src/File.cc
  3967. * src/File.h
  3968. * src/a2io.h
  3969. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3970. Fixed the compile error in hurd-i386
  3971. See the original bug report:
  3972. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  3973. * src/a2io.h
  3974. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3975. Code cleanup.
  3976. * src/PeerAbstractCommand.cc
  3977. * src/PeerAbstractCommand.h
  3978. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3979. Removed TransferEncoding.
  3980. * src/DownloadCommand.cc
  3981. * src/DownloadCommand.h
  3982. * src/HttpResponseCommand.cc
  3983. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3984. Updated po files.
  3985. * po/aria2c.pot
  3986. * po/*.po
  3987. * po/*.gmo
  3988. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3989. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  3990. * src/A2STR.cc
  3991. * src/A2STR.h
  3992. * src/ChunkedDecoder.cc
  3993. * src/ChunkedDecoder.h
  3994. * src/ChunkedEncoding.cc: Removed
  3995. * src/ChunkedEncoding.h: Removed
  3996. * src/DownloadCommand.cc
  3997. * src/DownloadCommand.h
  3998. * src/HttpDownloadCommand.cc
  3999. * src/HttpResponse.cc
  4000. * src/HttpResponse.h
  4001. * src/HttpResponseCommand.cc
  4002. * src/HttpSkipResponseCommand.cc
  4003. * src/HttpSkipResponseCommand.h
  4004. * src/Makefile.am
  4005. * src/TransferEncoding.h: Removed
  4006. * test/ChunkedDecoderTest.cc
  4007. * test/ChunkedEncodingTest.cc: Removed
  4008. * test/HttpResponseTest.cc
  4009. * test/Makefile.am
  4010. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4011. Use append instead of insert.
  4012. * src/GZipDecoder.cc
  4013. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4014. Updated doc
  4015. * src/Decoder.h
  4016. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4017. Updated usage text for -s option.
  4018. * src/usage_text.h
  4019. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4020. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4021. * src/Request.cc
  4022. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4023. Cleaned up configure.ac.
  4024. * configure.ac
  4025. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4026. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4027. AC_ARG_ENABLE.
  4028. * configure.ac
  4029. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4030. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4031. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4032. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4033. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4034. fly and writes decoded data to a local disk.
  4035. * README
  4036. * README.html
  4037. * configure.ac
  4038. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4039. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4040. * m4/libz.m4
  4041. * src/Decoder.h
  4042. * src/DownloadCommand.cc
  4043. * src/DownloadCommand.h
  4044. * src/Exception.h
  4045. * src/GZipDecoder.cc
  4046. * src/GZipDecoder.h
  4047. * src/HttpHeader.cc
  4048. * src/HttpHeader.h
  4049. * src/HttpRequest.cc
  4050. * src/HttpRequest.h
  4051. * src/HttpResponse.cc
  4052. * src/HttpResponse.h
  4053. * src/HttpResponseCommand.cc
  4054. * src/Makefile.am
  4055. * test/GZipDecoderTest.cc
  4056. * test/HttpRequestTest.cc
  4057. * test/HttpResponseTest.cc
  4058. * test/Makefile.am
  4059. * test/Makefile.in
  4060. * test/gzip_decode_test.gz
  4061. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4062. Clarified usage of -j option.
  4063. * src/usage_text.h
  4064. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4065. Disabled getting size from the response of RETR.
  4066. If SIZE command failed, then disable resuming and segmented downloading.
  4067. * src/FtpConnection.cc
  4068. * src/FtpConnection.h
  4069. * src/FtpNegotiationCommand.cc
  4070. * src/FtpNegotiationCommand.h
  4071. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4072. Use digits to find first byte of file size, which makes the intention
  4073. of the code clearer.
  4074. * src/FtpConnection.cc
  4075. Don't call validateTotalLength() when size is 0.
  4076. * src/FtpNegotiationCommand.cc
  4077. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4078. Updated po files.
  4079. * po/aria2c.pot
  4080. * po/*.gmo
  4081. * po/*.po
  4082. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4083. Clarified usage text for --split option.
  4084. * src/usage_text.h
  4085. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4086. Bump up version number to 0.15.0dev. "dev" means "development"
  4087. version, which means I started the development of the next release!
  4088. * src/configure.ac
  4089. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4090. If FTP server returns negative response with REST raw command and
  4091. requested range is not 0, throw exception. If requested range is 0,
  4092. continue download a file from 0 byte.
  4093. * src/FtpNegotiationCommand.cc
  4094. * src/FtpNegotiationCommand.h
  4095. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4096. Supported FTP server which don't recognize SIZE raw command.
  4097. If SIZE raw command is failed, aria2 will try to get file size
  4098. from the response of RETR raw command. If both attempts are failed,
  4099. then resuming and segmented downloading are disabled.
  4100. * src/FtpConnection.cc
  4101. * src/FtpConnection.h
  4102. * src/FtpNegotiationCommand.cc
  4103. * src/FtpNegotiationCommand.h
  4104. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4105. * Release 0.14.0+1
  4106. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4107. Bump up version number to 0.14.0+1
  4108. * src/configure.ac
  4109. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4110. Fixed the code that refers static member variable from non-static
  4111. context.
  4112. * src/DefaultPeerStorage.cc
  4113. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4114. * Release 0.14.0
  4115. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4116. Added build test script
  4117. * build_test.sh
  4118. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4119. Updated ja.po
  4120. * src/ja.po
  4121. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4122. Bump up version number to 0.14.0
  4123. * src/configure.ac
  4124. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4125. Updated ja.po and fr.po. Great thanks for french translators and
  4126. Sebastien WILLEMIJNS.
  4127. * po/fr.po
  4128. * po/ja.po
  4129. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4130. Added configure option to enable/disable epoll support.
  4131. * configure.ac
  4132. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4133. Updated man page.
  4134. * doc/aria2c.1.txt
  4135. * doc/aria2c.1
  4136. * doc/aria2c.1.html
  4137. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4138. Added missing default value '5' to the usage of --split option.
  4139. * src/HelpItemFactory.cc
  4140. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4141. Filled up pieces based on the number of missing blocks, rather than
  4142. simplay the number of piece * block length.
  4143. * src/BtRequestFactory.h
  4144. * src/DefaultBtInteractive.cc
  4145. * src/DefaultBtInteractive.h
  4146. * src/DefaultBtRequestFactory.cc
  4147. * src/DefaultBtRequestFactory.h
  4148. * src/Piece.cc
  4149. * src/Piece.h
  4150. * test/BitfieldManTest.cc
  4151. * test/DefaultBtRequestFactoryTest.cc
  4152. * test/MockBtRequestFactory.h
  4153. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4154. Made _epEvents a member variable.
  4155. * src/DownloadEngine.cc
  4156. * src/DownloadEngine.h
  4157. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4158. Cancel download if http redirect is bounded more than 20 times.
  4159. * src/AbstractCommand.cc
  4160. * src/HttpSkipResponseCommand.cc
  4161. * src/Request.cc
  4162. * src/Request.h
  4163. * test/RequestTest.cc
  4164. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4165. Fixed unhandled exception(removed keyword `new').
  4166. * src/SocketCore.cc (initEPOLL)
  4167. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4168. Removed visit(const MetaEntry*)
  4169. * src/MetaEntryVisitor.h:
  4170. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4171. and made them virtual.
  4172. * src/BencodeVisitor.h
  4173. * src/BencodeVisitor.cc
  4174. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4175. Updated po files.
  4176. * po/aria2c.pot
  4177. * po/*.po
  4178. * po/*.gmo
  4179. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4180. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4181. the number of socket to watch out.
  4182. * src/PeerInteractionCommand.cc
  4183. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4184. When there is not enough space in disk when writing a chunk of data,
  4185. aria2 now prints the message to the console to warn user and aborts
  4186. its download. Not all downloads are canceled because some downloads
  4187. may use another disk or partition. BUG#1640332
  4188. * src/AbstractDiskWriter.cc
  4189. * src/PeerAbstractCommand.cc
  4190. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4191. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4192. setHaltRequested(true) to cancel download.
  4193. * src/PeerInteractionCommand.h
  4194. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4196. socket from int to sock_t as sockets are unsigned in Windows.
  4197. For AsyncNameResolver, DownloadEngine, I did additional modification
  4198. for the portion of the code changed according to epoll support.
  4199. I defined sock_t in a2netcompat.h to use sock_t without including
  4200. SocketCore.h.
  4201. * src/AsyncNameResolver.cc
  4202. * src/AsyncNameResolver.h
  4203. * src/DownloadEngine.cc
  4204. * src/DownloadEngine.h
  4205. * src/SocketCore.cc
  4206. * src/SocketCore.h
  4207. * src/a2netcompat.h
  4208. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4210. changes in the patch were applied.
  4211. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4212. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4213. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4214. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4216. a2io.h and common.h were modified.
  4217. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4218. MinGW.
  4219. * src/common.h: Changed off_t to 64 bit in MinGW.
  4220. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4221. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4222. only a2netcompat.h is modified.
  4223. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4224. directives.
  4225. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4226. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4227. only gai_strerror.h is modified.
  4228. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4229. winsock errors in MinGW.
  4230. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4231. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4232. follow sources are applied.
  4233. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4234. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4235. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4236. I included locale.h from Platform.cc.
  4237. * src/main.cc: Moved common setup/teardown code to Platform class.
  4238. * test/AllTest.cc: Use Platform class.
  4239. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4240. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4241. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4242. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4243. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4244. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4245. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4246. aria2-0.13.2+1-mingw-2.patch.
  4247. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4248. systems which don't have termious.h. I moved the directive inside of
  4249. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4250. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4251. anyway.
  4252. * src/asctime_r.h
  4253. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4254. I added 2nd argument to the prototype declaration.
  4255. * src/StringFormat.cc: Get rid of vasprintf.
  4256. * src/getaddrinfo.h: Fixed constants.
  4257. * configure.ac: Added the check for asctime_r function.
  4258. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4259. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4260. Added writable test for Socket when the sending message is in progress.
  4261. Usually the sending message is piece message. Without wriable check,
  4262. upload latency is dropped to more than 1sec.
  4263. * src/PeerInteractionCommand.cc
  4264. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4265. Create only requested files and files which shares a piece with
  4266. requested file in multi-torrent downloads. Directory structures are
  4267. also created in the same rule.
  4268. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4269. DiskWriterEntry as in the previous implementation.
  4270. * src/MultiDiskWriter.cc
  4271. * src/MultiFileAllocationIterator.cc
  4272. * src/MultiFileAllocationIterator.h
  4273. * test/MultiFileAllocationIteratorTest.cc
  4274. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4275. Commented out -lprofiler
  4276. * src/Makefile.am
  4277. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4278. Bump up version number to 0.14.0b.
  4279. * src/configure.ac
  4280. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4281. Actively establish connection to peers in seeding, when peer cache
  4282. is not full and max upload speed limit is not reached.
  4283. * src/ActivePeerConnectionCommand.cc
  4284. * src/ActivePeerConnectionCommand.h
  4285. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4286. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4287. to make room more fleshy, recently found peers.
  4288. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4289. it.
  4290. * src/DefaultPeerStorage.cc
  4291. * test/DefaultPeerStorageTest.cc
  4292. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4293. Returns cached data only when the previous receiveHandshake() is called
  4294. with peek = true.
  4295. * src/PeerConnection.cc (receiveHandshake)
  4296. * src/PeerConnection.h (receiveHandshake)
  4297. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4298. Changed default value of -s option from 1 to 5.
  4299. Also max value of -s option is changed from 5 to 16.
  4300. * src/HelpItemFactory.cc
  4301. * src/OptionHandlerFactory.cc
  4302. * src/option_processing.cc
  4303. * src/usage_text.h
  4304. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4305. Changed -s options behavior. Now it means the number of connections
  4306. made simultaneously in each http/ftp download.
  4307. If 1 URL is specified, the behavior is the same with old implementation.
  4308. If -s N is given and more than N URLs are specified, first N URLs are
  4309. used and remaining URLs are used for backup. If less than N URLs are
  4310. specified, some of URLs are used more than once so that totally N
  4311. connections are made simultaneously.
  4312. * src/main.cc
  4313. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4314. Included missing iosfwd or ostream header.
  4315. * src/RequestGroupMan.cc
  4316. * src/TaggedItem.cc
  4317. * src/TaggedItem.h
  4318. * src/Util.cc
  4319. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4320. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4321. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4322. * src/HttpConnection.cc: Included missing sstream.
  4323. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4324. Added --bt-max-open-files option.
  4325. * src/DefaultPieceStorage.cc
  4326. * src/HelpItemFactory.cc
  4327. * src/MultiDiskAdaptor.cc
  4328. * src/MultiDiskAdaptor.h
  4329. * src/OptionHandlerFactory.cc
  4330. * src/option_processing.cc
  4331. * src/prefs.cc
  4332. * src/prefs.h
  4333. * src/usage_text.h
  4334. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4335. Fixed the bug that aria2 aborts when a path to a directory is given
  4336. in command-line.
  4337. * src/ProtocolDetector.cc
  4338. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4339. Limited the number files opened in each BitTorrent download. The default
  4340. value is 100. The option to change this value will be added.
  4341. * src/MultiDiskAdaptor.cc
  4342. * src/MultiDiskAdaptor.h
  4343. * src/MultiFileAllocationIterator.cc
  4344. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4345. Fixed the bug that HTTP downloads don't start with old libraries.
  4346. * src/HttpHeaderProcessor.cc
  4347. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4348. Use empty() instead of size() > 0.
  4349. * src/HttpConnection.cc
  4350. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4351. Drop connection if the incoming peer ID is the same with localhost's
  4352. one. The previous implementation drops connection when incoming peer's
  4353. IP address is the same with localhost's one.
  4354. * src/PeerListenCommand.cc
  4355. * src/DefaultBtInteractive.cc
  4356. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4357. Returns cached data without checking whether socket is readable
  4358. if the cache is available.
  4359. * src/PeerConnection.cc (receiveHandshake)
  4360. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4361. Included stdint.h
  4362. * src/common.h
  4363. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4364. Removed duplicate HAVE_GETTIMEOFDAY
  4365. * src/Makefile.am
  4366. * src/Makefile.in
  4367. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4368. Use interval as a minInterval when minInterval is not supplied.
  4369. * src/DefaultBtAnnounce.cc
  4370. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4371. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4372. attempt is failed, then 2nd attempt get kicked out more quickly.
  4373. And it is now static const member of DefaultBtAnnounce.
  4374. * src/DefaultBtAnnounce.h
  4375. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4376. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4377. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4378. * src/ActivePeerConnectionCommand.cc
  4379. * src/BtConstants.h
  4380. * src/BtRuntime.h
  4381. * src/DHTGetPeersCommand.cc
  4382. * src/DefaultBtAnnounce.cc
  4383. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4384. BtRuntime::MAX_PEERS.
  4385. * src/DefaultPeerStorage.h
  4386. * src/InitiatorMSEHandshakeCommand.cc
  4387. * src/PeerInitiateConnectionCommand.cc
  4388. * src/PeerInteractionCommand.cc
  4389. * src/PeerReceiveHandshakeCommand.cc
  4390. * src/TrackerWatcherCommand.cc
  4391. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4392. Always Connect to _numNewConnection
  4393. * src/ActivePeerConnectionCommand.cc
  4394. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4395. Made `begin' unsigned int.
  4396. * src/GrowSegment.h
  4397. * src/Piece.cc
  4398. * src/Piece.h
  4399. * src/PiecedSegment.cc
  4400. * src/PiecedSegment.h
  4401. * src/Segment.h
  4402. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4403. Calculate piece hash when data is arrived if the data is arrived in
  4404. order. This removes additional read operation for hash calculation.
  4405. If the data is arrived in out of order, the hash is calucated when the
  4406. piece is completed. This is the same behavior as the old implementation.
  4407. * src/BtPieceMessage.cc
  4408. * src/DefaultBtProgressInfoFile.cc
  4409. * src/DefaultPieceStorage.cc
  4410. * src/DownloadCommand.cc
  4411. * src/DownloadCommand.h
  4412. * src/DownloadEngine.cc
  4413. * src/GrowSegment.cc
  4414. * src/GrowSegment.h
  4415. * src/Piece.cc
  4416. * src/Piece.h
  4417. * src/PiecedSegment.cc
  4418. * src/PiecedSegment.h
  4419. * src/Segment.h
  4420. * test/PieceTest.cc
  4421. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4422. Try to keep the ordering of outgoing piece message.
  4423. * src/DefaultBtMessageDispatcher.cc
  4424. (DefaultBtMessageDispatcher::sendMessages)
  4425. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4426. Fixed busy loop when error/hup epoll events occur.
  4427. * src/AbstractCommand.cc
  4428. * src/PeerAbstractCommand.cc
  4429. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4430. Added --bt-request-peer-speed-limit option, which was a constant
  4431. SLOW_SPEED_THRESHOLD.
  4432. * src/ActivePeerConnectionCommand.cc
  4433. * src/ActivePeerConnectionCommand.h
  4434. * src/BtConstants.h
  4435. * src/HelpItemFactory.cc
  4436. * src/OptionHandlerFactory.cc
  4437. * src/PeerReceiveHandshakeCommand.cc
  4438. * src/option_processing.cc
  4439. * src/prefs.cc
  4440. * src/prefs.h
  4441. * src/usage_text.h
  4442. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Removed repeated call of getTopDirPath(). Instead, call it once and
  4444. cache the result.
  4445. * src/MultiDiskAdaptor.cc
  4446. * src/MultiDiskAdaptor.h
  4447. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4448. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4449. Fixed compile error on debian etch.
  4450. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4451. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4452. it is undefined.
  4453. * src/Util.cc (ULLONG_MAX)
  4454. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. Added epoll support. Use epoll if it is available. If not, use select.
  4456. When async dns is enabled in compile time, epoll support is enabled
  4457. only when aria2 is built with c-ares. This condition statement is
  4458. defined in a2io.h.
  4459. Currently aria2 supports both c-ares and ares, but ares is maintained
  4460. for quite a while and debian already has c-ares package, ares support
  4461. will be dropped in the future version.
  4462. * configure.ac
  4463. * src/AbstractCommand.cc
  4464. * src/AsyncNameResolver.cc
  4465. * src/AsyncNameResolver.h
  4466. * src/Command.cc
  4467. * src/Command.h
  4468. * src/DownloadEngine.cc
  4469. * src/DownloadEngine.h
  4470. * src/PeerAbstractCommand.cc
  4471. * src/SocketCore.cc
  4472. * src/SocketCore.h
  4473. * src/a2io.h
  4474. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4475. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4476. directive.
  4477. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4478. Do not do write operation to /dev/null file.
  4479. * src/LogFactory.cc
  4480. * src/SimpleLogger.cc
  4481. Replaced vasprintf with vsnprintf
  4482. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4483. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4484. * src/BtRequestMessage.cc
  4485. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4486. for segmentation fault caused by previous commit.
  4487. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4488. Reduced the usage of gettimeofday().
  4489. * src/DefaultBtMessageDispatcher.cc
  4490. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4491. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4492. * src/RequestSlot.cc
  4493. * src/RequestSlot.h
  4494. (RequestSlot::isTimeout)
  4495. Made RequestSlot have a reference to Piece object to avoid find
  4496. Piece repeatedly.
  4497. * src/DefaultBtMessageDispatcher.cc
  4498. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4499. * src/RequestSlot.cc
  4500. * src/RequestSlot.h
  4501. (RequestSlot::getPiece)
  4502. * test/DefaultBtMessageDispatcherTest.cc
  4503. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4504. * src/TimeA2.cc
  4505. * src/TimeA2.h
  4506. (Time::difference): New function.
  4507. (Time::elapsed): Done optimization.
  4508. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4509. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4510. directive.
  4511. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4512. * src/option_processing.cc: Added missing `defined' keyword to #if
  4513. directive.
  4514. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4515. Bump up version number to 0.13.2+1
  4516. * src/configure.ac
  4517. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4518. Refactored broken outstanding piece handling.
  4519. * src/DefaultPieceStorage.cc
  4520. * src/DefaultPieceStorage.h
  4521. * src/Piece.cc
  4522. * src/Piece.h
  4523. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4524. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4525. name collision of static variable and predefined macro.
  4526. * src/BtContext.cc
  4527. * src/BtContext.h
  4528. * src/CookieBoxFactory.cc
  4529. * src/CookieBoxFactory.h
  4530. * src/CookieParser.cc
  4531. * src/CookieParser.h
  4532. * src/DefaultBtContext.cc
  4533. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. * src/RequestGroup.cc
  4535. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4536. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4537. * Release 0.13.2
  4538. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4539. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4540. * po/fr.po
  4541. * po/ja.po
  4542. * po/aria2c.pot
  4543. * po/*.po
  4544. * po/*.gmo
  4545. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4546. Bump up version number to 0.13.2
  4547. * src/configure.ac
  4548. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4549. Refactord.
  4550. * src/RequestGroupMan.cc
  4551. (removeStoppedGroup)
  4552. (fillRequestGroupFromReserver)
  4553. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. Fixed compile error on Ubuntu.
  4555. * src/BtPieceMessage.cc
  4556. * src/MessageDigestHelper.cc
  4557. * src/Util.cc
  4558. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4559. Fixed compile error when configured with --disable-bittorrent
  4560. * test/DownloadHandlerFactoryTest.cc
  4561. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4562. Done make update-po
  4563. * po/aria2c.pot
  4564. * po/*.po
  4565. * po/*.gmo
  4566. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4567. Bump up version number to 0.13.2rc.
  4568. * src/configure.ac
  4569. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4570. Made option name bold. Updated SYNOPSIS to make it more readable.
  4571. * doc/aria2c.1.txt
  4572. * doc/aria2c.1
  4573. * doc/aria2c.1.html
  4574. * src/version_usage.cc
  4575. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4576. Refactored. Use std::string instead of size and char*.
  4577. * Data.cc
  4578. * Data.h
  4579. * test/Data.cc
  4580. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4581. Added trimSelf(). Rewritten trim() to use trimSelf().
  4582. * Util.cc
  4583. * Util.h
  4584. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4585. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4586. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4587. Fixed compile error when configured with --disable-metalink.
  4588. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4589. * test/FeatureConfigTest.cc
  4590. * test/DownloadHandlerFactoryTest.cc
  4591. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4592. Fixed compile error when configured with --without-gnutls
  4593. --without-openssl
  4594. * src/main.cc
  4595. * test/DefaultBtProgressInfoFileTest.cc
  4596. * test/SegmentManTest.cc
  4597. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4598. Fixed compile error with OpenSSL.
  4599. * src/IteratableChunkChecksumValidator.cc
  4600. * src/LibsslDHKeyExchange.h
  4601. * src/MessageDigestHelper.cc
  4602. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4603. Revert the default value of --max-concurrent-downloads to 5.
  4604. Revert the default value of --metalink-servers to 5.
  4605. Man pages was also updated.
  4606. * src/option_processing.cc
  4607. * doc/aria2c.1.txt
  4608. * doc/aria2c.1.html
  4609. * doc/aria2c.1
  4610. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4611. Returns const reference:
  4612. DownloadContext::getPieceHash, DownloadContext::getName,
  4613. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4614. BtContext::getInfoHashAsString,
  4615. * src/BtContext.h
  4616. * src/DefaultBtContext.cc
  4617. * src/DefaultBtContext.h
  4618. * src/DownloadContext.h
  4619. * src/SingleFileDownloadContext.h
  4620. * test/MockBtContext.h
  4621. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4622. * src/RequestGroup.h (getDir): Removed.
  4623. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4624. Returns const reference. The internal urlencode function was optimized
  4625. a little bit.
  4626. * src/Request.cc
  4627. * src/Request.h
  4628. * src/HttpRequest.cc
  4629. * src/HttpRequest.h
  4630. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4631. Defined option name and possible values as std::string to reduce
  4632. temporary string object creation in runtime.
  4633. * src/HelpItemFactory.cc
  4634. * src/LogFactory.cc
  4635. * src/Option.cc
  4636. * src/OptionHandlerFactory.cc
  4637. * src/option_processing.cc
  4638. * src/prefs.cc
  4639. * src/prefs.h
  4640. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4641. Return const reference.
  4642. * src/DownloadHandlerConstants.cc
  4643. * src/DownloadHandlerConstants.h
  4644. (getMetalinkExtensions)
  4645. (getMetalinkContentTypes)
  4646. (getBtExtensions)
  4647. (getBtContentTypes)
  4648. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4649. * src/HttpHeader.cc (get): Rewritten.
  4650. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4651. Make HttpHeader::getFirst(...) return const reference.
  4652. * src/HttpHeader.cc
  4653. * src/HttpHeader.h
  4654. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4655. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4656. it with V_TRUE.
  4657. * src/DefaultPieceStorage.cc
  4658. * src/DownloadCommand.cc
  4659. * src/FtpNegotiationCommand.cc
  4660. * src/HttpRequest.cc
  4661. * src/InitiateConnectionCommand.cc
  4662. * src/RequestGroup.cc
  4663. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4664. Made Option::get(...) return const reference of std::string.
  4665. * src/Option.cc
  4666. * src/Option.h
  4667. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4668. Replaced std:copy with insert.
  4669. * src/DefaultBtMessageDispatcher.cc
  4670. * src/DefaultPieceStorage.cc
  4671. * src/DownloadEngineFactory.cc
  4672. * src/RequestGroup.cc
  4673. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4674. Included SocketCore.h to fix compiler warning.
  4675. * src/InitiateConnectionCommand.cc
  4676. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4677. Put piece selection strategy algorithm to RarestPieceSelector class,
  4678. Added a switch to choose whether randomized selection so that unit
  4679. tests emit same results in, possibly, win32.
  4680. * src/DefaultPieceStorage.cc
  4681. * src/DefaultPieceStorage.h
  4682. * src/RarestPieceSelector.cc
  4683. * src/RarestPieceSelector.h
  4684. * test/DefaultPieceStorageTest.cc
  4685. * test/RarestPieceSelectorTest.cc
  4686. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4687. Don't pool connection if HTTP proxy is enabled.
  4688. * src/FtpFinishDownloadCommand.cc
  4689. * src/FtpNegotiationCommand.cc
  4690. * src/HttpSkipResponseCommand.cc
  4691. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4692. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4693. * src/AbstractCommand.cc
  4694. * src/AbstractCommand.h
  4695. * src/ActivePeerConnectionCommand.cc
  4696. * src/FtpInitiateConnectionCommand.cc
  4697. * src/HttpInitiateConnectionCommand.cc
  4698. * src/InitiateConnectionCommandFactory.cc
  4699. * src/PeerAbstractCommand.cc
  4700. * src/PeerAbstractCommand.h
  4701. * src/PeerInitiateConnectionCommand.cc
  4702. * src/TrackerWatcherCommand.cc
  4703. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4704. Sort RequestSlot in ascending order and manipulate them using
  4705. lower_bound.
  4706. * src/DefaultBtMessageDispatcher.cc
  4707. * src/DefaultBtMessageDispatcher.h
  4708. (getMessageQueue): Added const qualifier.
  4709. (getRequestSlots): Added const qualifier.
  4710. (sendMessages): Use empty() instead of size().
  4711. (doCancelSendingPieceAction): Use HandleEvent object.
  4712. (doAbortOutstandingRequestAction): Rewritten.
  4713. (doChokedAction): Rewritten.
  4714. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4715. (isOutstandingRequest): Rewritten.
  4716. (getOutstandingRequest): Rewritten.
  4717. (removeOutstandingRequest): Rewritten.
  4718. (addOutstandingRequest): Rewritten.
  4719. * src/RequestSlot.cc
  4720. * src/RequestSlot.h
  4721. (operator=): Rewritten.
  4722. (operator!=): New function.
  4723. (operator<): New function.
  4724. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4725. * src/DefaultBtRequestFactory.cc
  4726. (doChokedAction): Rewritten.
  4727. (removeCompletedPiece): Rewritten.
  4728. (removeTargetPiece): Rewritten.
  4729. (createRequestMessages): Added the debug log.
  4730. (createRequestMessagesOnEndGame: Added the debug log.
  4731. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4732. Added the debug log message.
  4733. * src/BtPieceMessage.cc (doReceivedAction)
  4734. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4735. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4736. used lower_bound to process them rather than linear search.
  4737. * src/DHTPeerAnnounceStorage.cc
  4738. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4739. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4740. peer has at least one completed piece.
  4741. * src/Peer.cc
  4742. * src/Peer.h
  4743. * src/PeerInteractionCommand.cc
  4744. * src/PeerSessionResource.cc
  4745. * src/PeerSessionResource.h
  4746. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4747. Removed unnecessary sorting
  4748. * src/DefaultPieceStorage (DefaultPieceStorage)
  4749. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4750. Rewritten the portion of the code that mangaes allowed fast indexes.
  4751. * src/PeerSessionResource.cc
  4752. * src/PeerSessionResource.h
  4753. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4754. Removed the invalid string including '\r' from ru.po and
  4755. did make update-po.
  4756. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4757. Added --log-level and --summary-interval to man page.
  4758. * doc/aria2c.1.txt
  4759. * doc/aria2c.1.html
  4760. * doc/aria2c.1
  4761. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4762. Added --log-level option to specify log level. Log messages under
  4763. the specified level are not output. Default value is `debug'.
  4764. * src/HelpItemFactory.cc
  4765. * src/LogFactory.cc
  4766. * src/LogFactory.h
  4767. * src/Logger.h
  4768. * src/OptionHandlerFactory.cc
  4769. * src/SimpleLogger.cc
  4770. * src/SimpleLogger.h
  4771. * src/main.cc
  4772. * src/option_processing.cc
  4773. * src/prefs.h
  4774. * src/usage_text.h
  4775. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4776. Print download progress summary of all parallel downloads in specified
  4777. interval, default 60 secs. While aria2 could download several files
  4778. in parallel (see -j option), it displayed just first download progress,
  4779. and the other downloads are hidden from the users. This new feature
  4780. prints all downloads currently in-progress to the console so that you
  4781. can check the status of all downloads. The interval can be adjusted
  4782. by --summary-interval option.
  4783. The progress readout is now cut so that all fits in the one line of
  4784. console.
  4785. * src/ConsoleStatCalc.cc
  4786. * src/ConsoleStatCalc.h
  4787. * src/HelpItemFactory.cc
  4788. * src/OptionHandlerFactory.cc
  4789. * src/RequestGroupMan.cc
  4790. * src/RequestGroupMan.h
  4791. * src/main.cc
  4792. * src/option_processing.cc
  4793. * src/prefs.h
  4794. * src/usage_text.h
  4795. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4796. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  4797. * src/DownloadEngine.cc (DownloadEngine)
  4798. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4799. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  4800. defined.
  4801. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  4802. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4803. Use erase+lower_bound+insert instead of sort.
  4804. * src/DefaultPieceStorage.cc (addPieceStats)
  4805. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4806. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  4807. * src/A2STR.cc
  4808. * src/A2STR.h
  4809. * src/OptionParser.cc (parse)
  4810. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4811. Defined fake filename `[tracker.announce]' as static const std::string.
  4812. * src/TrackerWatcherCommand.cc (createRequestGroup)
  4813. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. Defined default filename `index.html' as static const std::string
  4815. * src/SingleFileDownloadContext.cc
  4816. * src/SingleFileDownloadContext.h
  4817. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4818. Defined "[MEMORY]" as static const std::string.
  4819. * src/MemoryBufferPreDownloadHandler.cc (execute)
  4820. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4821. Defined control file's version number as static const std::string.
  4822. * src/DefaultBtProgressInfoFile.cc
  4823. * src/DefaultBtProgressInfoFile.h
  4824. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4825. Use Request::METHOD_GET
  4826. * src/RequestGroup.cc (createNextCommandWithAdj)
  4827. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4828. Defined "OK", "ERR", "INPR" as static const std::string
  4829. * src/RequestGroupMan.cc (showDownloadResults)
  4830. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4831. Defined default client used in extended handshake as static const
  4832. std::string
  4833. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  4834. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4835. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  4836. * src/HttpConnection.cc (eraseConfidentialInfo)
  4837. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4838. Defined default ftp user and password as static const std::string
  4839. * src/AuthConfigFactory.cc
  4840. * src/AuthConfigFactory.h
  4841. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4842. Defined strings used in netrc as static const std::string
  4843. * src/Netrc.cc
  4844. * src/Netrc.h
  4845. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4846. Defined HTTP status as static const std::string
  4847. * src/AbstractProxyResponseCommand.cc
  4848. * src/HttpHeader.cc
  4849. * src/HttpHeader.h
  4850. * src/HttpResponse.cc
  4851. * src/HttpResponseCommand.cc
  4852. * src/HttpSkipResponseCommand.cc
  4853. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4854. Defined "\r\n", "A", "I" as static const std::string
  4855. * src/A2STR.cc
  4856. * src/A2STR.h
  4857. * src/FtpConnection.cc
  4858. * src/FtpConnection.h
  4859. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. Added COLON_C(".") and used it in Request::parseUrl()
  4861. * src/A2STR.cc
  4862. * src/A2STR.h
  4863. * src/Request.cc (parseUrl)
  4864. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4865. Changed the type of padName from `const std::string&' to `const char*'.
  4866. * src/MSEHandshake.cc (verifyPadLength)
  4867. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4868. Defined "sha1" as static const std::string.
  4869. * src/MetalinkParserController.cc
  4870. * src/MetalinkParserController.h
  4871. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Defined message digest algorithm name as static const std::string
  4873. * src/DHTTokenTracker.cc
  4874. * src/DHTUtil.cc
  4875. * src/DefaultBtContext.cc
  4876. * src/MSEHandshake.cc
  4877. * src/MessageDigestHelper.cc
  4878. * src/Peer.cc
  4879. * src/messageDigest.cc
  4880. * src/messageDigest.h
  4881. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4882. Made string literals used in SAX parser static const std::string.
  4883. * src/FileMetalinkParserState.cc
  4884. * src/FileMetalinkParserState.h
  4885. * src/FilesMetalinkParserState.cc
  4886. * src/FilesMetalinkParserState.h
  4887. * src/InitialMetalinkParserState.cc
  4888. * src/InitialMetalinkParserState.h
  4889. * src/MetalinkMetalinkParserState.cc
  4890. * src/MetalinkMetalinkParserState.h
  4891. * src/PiecesMetalinkParserState.cc
  4892. * src/PiecesMetalinkParserState.h
  4893. * src/ResourcesMetalinkParserState.cc
  4894. * src/ResourcesMetalinkParserState.h
  4895. * src/VerificationMetalinkParserState.cc
  4896. * src/VerificationMetalinkParserState.h
  4897. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4898. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  4899. * src/A2STR.cc
  4900. * src/A2STR.h
  4901. * src/File.cc
  4902. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4903. Defined static const std::string IP("ip"), PORT("port") and use them
  4904. instead of string literals.
  4905. * src/DefaultPeerListProcessor.cc
  4906. * src/DefaultPeerListProcessor.h
  4907. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Made string literals for torrent file processing static const
  4909. std::string.
  4910. * src/BtContext.cc
  4911. * src/BtContext.h
  4912. * src/DefaultBtContext.cc
  4913. * src/DefaultBtContext.h
  4914. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4915. Made string literal for tracker response static const std::string
  4916. * src/BtAnnounce.cc
  4917. * src/BtAnnounce.h
  4918. * src/DefaultBtAnnounce.cc
  4919. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4920. Use DHTMessage::T instead of "t".
  4921. * src/DHTMessageTracker.cc (messageArrived)
  4922. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4923. Made keyName static const. Made trimmed charset static const
  4924. std::string.
  4925. * src/Util.cc (getContentDispositionFilename)
  4926. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4927. Made USER_AGENT const. Made "/" static const std::string.
  4928. * src/A2STR.cc
  4929. * src/A2STR.h
  4930. * src/HttpRequest.cc
  4931. * src/HttpRequest.h
  4932. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4933. Made string listeral to static const std::string:
  4934. "Content-Range", "Content-Length"
  4935. * src/HttpHeader.cc
  4936. * src/HttpHeader.h
  4937. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4938. Made string listeral to static const std::string.
  4939. * src/HttpConnection.cc
  4940. * src/HttpHeader.cc
  4941. * src/HttpHeader.h
  4942. * src/HttpResponse.cc
  4943. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4944. Made string listeral to static const std::string.
  4945. * src/A2STR.cc
  4946. * src/A2STR.h
  4947. * src/SimpleLogger.cc
  4948. * src/SimpleLogger.h
  4949. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4950. Made string literal to static const std::string.
  4951. Rewritten CookieParser::setField.
  4952. * src/A2STR.cc
  4953. * src/A2STR.h
  4954. * src/CookieBoxFactory.cc
  4955. * src/CookieBoxFactory.h
  4956. * src/CookieParser.cc
  4957. * src/CookieParser.h
  4958. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4959. Made string literal to static const std::string
  4960. * src/DHTAbstractMessage.cc
  4961. * src/DHTAnnouncePeerMessage.cc
  4962. * src/DHTAnnouncePeerMessage.h
  4963. * src/DHTAnnouncePeerReplyMessage.cc
  4964. * src/DHTAnnouncePeerReplyMessage.h
  4965. * src/DHTFindNodeMessage.cc
  4966. * src/DHTFindNodeMessage.h
  4967. * src/DHTFindNodeReplyMessage.cc
  4968. * src/DHTFindNodeReplyMessage.h
  4969. * src/DHTGetPeersMessage.cc
  4970. * src/DHTGetPeersMessage.h
  4971. * src/DHTGetPeersReplyMessage.cc
  4972. * src/DHTGetPeersReplyMessage.h
  4973. * src/DHTMessage.cc
  4974. * src/DHTMessage.h
  4975. * src/DHTMessageFactoryImpl.cc
  4976. * src/DHTMessageReceiver.cc
  4977. * src/DHTPingMessage.cc
  4978. * src/DHTPingMessage.h
  4979. * src/DHTPingReplyMessage.cc
  4980. * src/DHTPingReplyMessage.h
  4981. * src/DHTQueryMessage.cc
  4982. * src/DHTQueryMessage.h
  4983. * src/DHTResponseMessage.cc
  4984. * src/DHTResponseMessage.h
  4985. * src/DHTUnknownMessage.cc
  4986. * src/DHTUnknownMessage.h
  4987. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4988. Made string literal to static const std::string
  4989. * src/BtChokeMessage.cc (toString)
  4990. * src/BtHaveAllMessage.cc (toString)
  4991. * src/BtHaveNoneMessage.cc (toString)
  4992. * src/BtInterestedMessage.cc (toString)
  4993. * src/BtNotInterestedMessage.cc (toString)
  4994. * src/BtUnchokeMessage.cc (toString)
  4995. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4996. Replaced "" with static const variable A2STR::NIL.
  4997. Replaced string comparison against "" with std::string::empty().
  4998. Added PROTO_* to Request class and use them as a protocol string
  4999. constant.
  5000. Made "started", "stopped", "completed" static const variable in
  5001. AnnounceList class.
  5002. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5003. Updated translations. Great thanks to translators.
  5004. * po/ca.po
  5005. * po/de.po
  5006. * po/fr.po
  5007. * po/it.po
  5008. * po/ja.po
  5009. * po/ru.po
  5010. * po/zh_CN.po
  5011. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5012. Updated man page; categorized options and fixed typo.
  5013. * doc/aria2c.1.txt
  5014. * doc/aria2c.1.html
  5015. * doc/aria2c.1
  5016. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5017. Removed const ref
  5018. * src/MetalinkEntry.cc (AddProtocolPreference)
  5019. * src/RequestGroup.cc (FindServerHostByHostname)
  5020. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Rewritten Accept-Features handling.
  5022. * src/HttpRequestCommand.cc (createHttpRequest)
  5023. * src/a2functional.h
  5024. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5025. Changed method signature:
  5026. DHTAbstractNodeLookupTask::toEntries
  5027. * src/DHTAbstractNodeLookupTask.cc
  5028. * src/DHTAbstractNodeLookupTask.h
  5029. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Changed method signature:
  5031. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5032. * src/BtContext.h
  5033. * src/DefaultBtContext.cc
  5034. * src/DefaultBtContext.h
  5035. * src/DefaultBtInteractive.cc
  5036. * test/DefaultBtContextTest.cc
  5037. * test/MockBtContext.h
  5038. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5039. Changed method signature:
  5040. MultiFileAllocationIterator::makeDiskWriterEntries
  5041. * src/MultiFileAllocationIterator.cc
  5042. * src/MultiFileAllocationIterator.h
  5043. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5044. Changed method sinature:
  5045. MetalinkEntry::toFileEntry,
  5046. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5047. Metalinker::queryEntry
  5048. * src/Metalink2RequestGroup.cc
  5049. * src/MetalinkEntry.cc
  5050. * src/MetalinkEntry.h
  5051. * src/MetalinkHelper.cc
  5052. * src/MetalinkHelper.h
  5053. * src/Metalinker.cc
  5054. * src/Metalinker.h
  5055. * src/main.cc
  5056. * test/MetalinkHelperTest.cc
  5057. * test/MetalinkerTest.cc
  5058. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5059. Changed method sinature:
  5060. RequestGroup::getURIs
  5061. * src/RequestGroup.cc
  5062. * src/RequestGroup.h
  5063. * test/Metalink2RequestGroupTest.cc
  5064. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5065. Changed method signature:
  5066. PeerListProcessor::extractPeer
  5067. * src/CompactPeerListProcessor.cc
  5068. * src/CompactPeerListProcessor.h
  5069. * src/DefaultBtAnnounce.cc
  5070. * src/DefaultPeerListProcessor.cc
  5071. * src/DefaultPeerListProcessor.h
  5072. * src/DelegatingPeerListProcessor.cc
  5073. * src/DelegatingPeerListProcessor.h
  5074. * src/PeerListProcessor.h
  5075. * src/UTPexExtensionMessage.cc
  5076. * test/DefaultPeerListProcessorTest.cc
  5077. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5078. Changed method signature:
  5079. BtRequestFactory::createRequestMessages,
  5080. BtRequestFactory::createRequestMessagesOnEndGame
  5081. * src/BtRequestFactory.h
  5082. * src/DefaultBtInteractive.cc
  5083. * src/DefaultBtRequestFactory.cc
  5084. * src/DefaultBtRequestFactory.h
  5085. * test/DefaultBtRequestFactoryTest.cc
  5086. * test/MockBtRequestFactory.h
  5087. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5088. Changed method signature:
  5089. PieceStorage::getInFlightPieces
  5090. * src/DefaultBtProgressInfoFile.cc
  5091. * src/DefaultPieceStorage.cc
  5092. * src/DefaultPieceStorage.h
  5093. * src/PieceStorage.h
  5094. * src/UnknownLengthPieceStorage.cc
  5095. * src/UnknownLengthPieceStorage.h
  5096. * test/DefaultBtProgressInfoFileTest.cc
  5097. * test/MockPieceStorage.h
  5098. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. Changed method signature:
  5100. PostDownloadHandler::getNextRequestGroups
  5101. Metalink2RequestGroup::generate
  5102. RequestGroup::postDownloadProcessing
  5103. * src/BtPostDownloadHandler.cc
  5104. * src/BtPostDownloadHandler.h
  5105. * src/Metalink2RequestGroup.cc
  5106. * src/Metalink2RequestGroup.h
  5107. * src/MetalinkPostDownloadHandler.cc
  5108. * src/MetalinkPostDownloadHandler.h
  5109. * src/PostDownloadHandler.h
  5110. * src/RequestGroup.cc
  5111. * src/RequestGroup.h
  5112. * src/RequestGroupMan.cc
  5113. * src/main.cc
  5114. * test/BtPostDownloadHandlerTest.cc
  5115. * test/Metalink2RequestGroupTest.cc
  5116. * test/MetalinkPostDownloadHandlerTest.cc
  5117. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5118. Rewritten AccRequestGroup
  5119. * src/main.cc
  5120. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5121. Rewritten.
  5122. * src/TaggedItem.cc (toTagString)
  5123. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5124. Rewritten Accept-Features handling.
  5125. * src/HttpRequestCommand.cc (createHttpRequest)
  5126. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5127. Rewritten accept types handling.
  5128. * HttpRequest.cc (createRequest)
  5129. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5130. Rewritten
  5131. * src/FeatureConfig.cc (featureSummary)
  5132. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5133. Changed method signature:
  5134. PeerStorage::getActivePeers
  5135. * src/DHTPeerAnnounceEntry.cc
  5136. * src/DefaultPeerStorage.cc
  5137. * src/DefaultPeerStorage.h
  5138. * src/PeerStorage.h
  5139. * test/DefaultPeerStorageTest.cc
  5140. * test/MockPeerStorage.h
  5141. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5142. Changed method signature:
  5143. DHTPeerAnnounceStorage::getPeers,
  5144. DHTPeerAnnounceEntry::getPeers
  5145. * src/DHTGetPeersMessage.cc
  5146. * src/DHTPeerAnnounceEntry.cc
  5147. * src/DHTPeerAnnounceEntry.h
  5148. * src/DHTPeerAnnounceStorage.cc
  5149. * src/DHTPeerAnnounceStorage.h
  5150. * test/DHTAnnouncePeerMessageTest.cc
  5151. * test/DHTPeerAnnounceEntryTest.cc
  5152. * test/DHTPeerAnnounceStorageTest.cc
  5153. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5154. Changed method signature:
  5155. NameResolver::resolve
  5156. * src/DHTEntryPointNameResolveCommand.cc
  5157. * src/InitiateConnectionCommand.cc
  5158. * src/NameResolver.cc
  5159. * src/NameResolver.h
  5160. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5161. Changed method signature:
  5162. PieceStorage::getAdvertisedPieceIndexes
  5163. * src/DefaultBtInteractive.cc
  5164. * src/DefaultPieceStorage.cc
  5165. * src/DefaultPieceStorage.h
  5166. * src/PieceStorage.h
  5167. * src/UnknownLengthPieceStorage.h
  5168. * test/MockPieceStorage.h
  5169. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5170. Changed method signature:
  5171. SegmentMan::getInFlightSegment
  5172. * src/AbstractCommand.cc
  5173. * src/SegmentMan.cc
  5174. * src/SegmentMan.h
  5175. * test/SegmentManTest.cc
  5176. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5177. Changed method signature:
  5178. DHTAbstractNodeLookupTask::getNodesFromMessage
  5179. * src/DHTAbstractNodeLookupTask.cc
  5180. * src/DHTAbstractNodeLookupTask.h
  5181. * src/DHTNodeLookupTask.cc
  5182. * src/DHTNodeLookupTask.h
  5183. * src/DHTPeerLookupTask.cc
  5184. * src/DHTPeerLookupTask.h
  5185. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5186. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5187. * src/AbstractCommand.cc
  5188. * src/BtCheckIntegrityEntry.cc
  5189. * src/BtCheckIntegrityEntry.h
  5190. * src/BtFileAllocationEntry.cc
  5191. * src/BtFileAllocationEntry.h
  5192. * src/BtSetup.cc
  5193. * src/BtSetup.h
  5194. * src/CheckIntegrityCommand.cc
  5195. * src/CheckIntegrityEntry.h
  5196. * src/ChecksumCheckIntegrityEntry.cc
  5197. * src/ChecksumCheckIntegrityEntry.h
  5198. * src/DHTSetup.cc
  5199. * src/DHTSetup.h
  5200. * src/DownloadEngine.cc
  5201. * src/FileAllocationCommand.cc
  5202. * src/FileAllocationEntry.h
  5203. * src/RequestGroup.cc
  5204. * src/RequestGroup.h
  5205. * src/RequestGroupMan.cc
  5206. * src/RequestGroupMan.h
  5207. * src/StreamCheckIntegrityEntry.cc
  5208. * src/StreamCheckIntegrityEntry.h
  5209. * src/StreamFileAllocationEntry.cc
  5210. * src/StreamFileAllocationEntry.h
  5211. * src/TrackerWatcherCommand.cc
  5212. * src/a2functional.h
  5213. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5214. Changed method signature:
  5215. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5216. DHTBucket::getGoodNodes,
  5217. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5218. * src/BNode.cc
  5219. * src/BNode.h
  5220. * src/DHTAbstractNodeLookupTask.cc
  5221. * src/DHTAutoSaveCommand.cc
  5222. * src/DHTBucket.cc
  5223. * src/DHTBucket.h
  5224. * src/DHTBucketRefreshTask.cc
  5225. * src/DHTFindNodeMessage.cc
  5226. * src/DHTGetPeersMessage.cc
  5227. * src/DHTRoutingTable.cc
  5228. * src/DHTRoutingTable.h
  5229. * test/BNodeTest.cc
  5230. * test/DHTBucketTest.cc
  5231. * test/DHTRoutingTableTest.cc
  5232. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5233. In piece selection functions, Pass std::deque<...> by reference rather
  5234. than returning it.
  5235. * src/BitfieldMan.cc
  5236. * src/BitfieldMan.h
  5237. * src/DefaultBtRequestFactory.cc
  5238. * src/DefaultPieceStorage.cc
  5239. * src/Piece.cc
  5240. * src/Piece.h
  5241. * test/BitfieldManTest.cc
  5242. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5243. Implemented rarest piece first piece selection strategy.
  5244. * src/AbstractBtMessage.cc
  5245. * src/AbstractBtMessage.h
  5246. * src/BitfieldMan.cc
  5247. * src/BitfieldMan.h
  5248. * src/BtBitfieldMessage.cc
  5249. * src/BtHaveAllMessage.cc
  5250. * src/BtHaveMessage.cc
  5251. * src/DefaultPieceStorage.cc
  5252. * src/DefaultPieceStorage.h
  5253. * src/PeerInteractionCommand.cc
  5254. * src/PieceStorage.h
  5255. * src/UnknownLengthPieceStorage.h
  5256. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5257. Rewritten readData and writeData.
  5258. * src/MultiDiskAdaptor.cc
  5259. * src/MultiDiskAdaptor.h
  5260. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5261. Move \n out of the message "Usage: ...".
  5262. * src/version_usage.cc
  5263. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5264. Bump up version number to 0.13.2b.
  5265. * configure.ac
  5266. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Added const qualifier to argument Exception& e.
  5268. * src/Logger.h
  5269. * src/SimpleLogger.cc
  5270. * src/SimpleLogger.h
  5271. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5272. Pool connection when CWD, SIZE command fails.
  5273. * src/FtpNegotiationCommand.cc
  5274. * src/FtpNegotiationCommand.h
  5275. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5276. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5277. * src/HttpResponseCommand.cc
  5278. * src/HttpSkipResponseCommand.cc
  5279. * src/HttpSkipResponseCommand.h
  5280. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5281. Pool connection when a server returns 4xx, 5xx responses.
  5282. * src/HttpNullDownloadCommand.cc
  5283. * src/HttpNullDownloadCommand.h
  5284. * src/HttpResponse.cc
  5285. * src/HttpResponse.h
  5286. * src/HttpResponseCommand.cc
  5287. * src/HttpResponseCommand.h
  5288. * test/HttpResponseTest.cc
  5289. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5290. Print usage when no URL is specifed or bad command-line option is
  5291. specified.
  5292. * src/HelpItemFactory.cc
  5293. * src/help_tags.h
  5294. * src/option_processing.cc
  5295. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5296. Removed duplicate log message.
  5297. * src/AbstractCommand.cc (asyncResolveHostname)
  5298. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5299. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5300. Changed -j option's default value from 5 to 1.
  5301. Added new examples using protocol auto detection feature.
  5302. Removed -T, -M usage where it can be omitted.
  5303. * doc/aria2c.1.txt
  5304. * doc/aria2c.1.html
  5305. * doc/aria2c.1.txt
  5306. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5307. Updated command-line usage text, so that it tells users that they
  5308. can specify any number of torrent files and metalink files in
  5309. command-line.
  5310. * src/version_usage.cc
  5311. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5312. Changed the default value of -j option to 1.
  5313. * src/HelpItemFactory.cc
  5314. * src/option_processing.cc
  5315. * src/usage_text.h
  5316. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5317. Added the ability to reuse connection in FTP and it is enabled by
  5318. default. It can be disabled by --ftp-reuse-connection=false option.
  5319. * src/Command.cc
  5320. * src/DownloadCommand.cc
  5321. * src/FtpDownloadCommand.cc
  5322. * src/FtpDownloadCommand.h
  5323. * src/FtpFinishDownloadCommand.cc
  5324. * src/FtpFinishDownloadCommand.h
  5325. * src/FtpInitiateConnectionCommand.cc
  5326. * src/FtpNegotiationCommand.cc
  5327. * src/FtpNegotiationCommand.h
  5328. * src/HelpItemFactory.cc
  5329. * src/Makefile.am
  5330. * src/Makefile.in
  5331. * src/OptionHandlerFactory.cc
  5332. * src/option_processing.cc
  5333. * src/prefs.h
  5334. * src/usage_text.h
  5335. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5336. Call Command::transitStatus() before calling Command::execute(),
  5337. so that the status change made in execute() is not cleared.
  5338. * src/DownloadEngine.cc
  5339. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5340. Removed forward declaration of SocketCore class.
  5341. * src/HttpDownloadCommand.h
  5342. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5343. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5344. in InitiateConnectionCommandFactory. They should be set only when
  5345. the protocol is HTTP or HTTPS.
  5346. * src/InitiateConnectionCommandFactory.cc
  5347. * src/RequestGroup.cc
  5348. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Fixed infinite loop in checksum checking.
  5350. * src/IteratableChecksumValidator.cc
  5351. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5352. Set _supportsPersistentConnection to true by default.
  5353. * src/Request.cc
  5354. * src/RequestGroup.cc
  5355. * test/HttpRequestTest.cc
  5356. * test/RequestTest.cc
  5357. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5358. Added timeout to socket pool. The default timeout is 15 seconds,
  5359. which is the same value Apache uses.
  5360. * src/DownloadEngine.cc
  5361. * src/DownloadEngine.h
  5362. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5363. Fixed misuse of multimap::find()
  5364. * src/HttpHeader.cc
  5365. * test/HttpHeaderTest.cc
  5366. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5367. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5368. option.
  5369. The asynchronous DNS is not capable of IPv6 yet.
  5370. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5371. least for HTTP download.
  5372. * src/AbstractCommand.cc
  5373. * src/AbstractCommand.h
  5374. * src/AsyncNameResolver.cc
  5375. * src/AsyncNameResolver.h
  5376. * src/DHTEntryPointNameResolveCommand.cc
  5377. * src/DHTEntryPointNameResolveCommand.h
  5378. * src/DownloadEngine.cc
  5379. * src/DownloadEngine.h
  5380. * src/FtpInitiateConnectionCommand.cc
  5381. * src/FtpInitiateConnectionCommand.h
  5382. * src/HelpItemFactory.cc
  5383. * src/HttpInitiateConnectionCommand.cc
  5384. * src/HttpInitiateConnectionCommand.h
  5385. * src/InitiateConnectionCommand.cc
  5386. * src/InitiateConnectionCommand.h
  5387. * src/Makefile.am
  5388. * src/Makefile.in
  5389. * src/NameResolver.cc
  5390. * src/NameResolver.h
  5391. * src/OptionHandlerFactory.cc
  5392. * src/SocketCore.cc
  5393. * src/SocketCore.h
  5394. * src/Util.cc
  5395. * src/Util.h
  5396. * src/option_processing.cc
  5397. * src/prefs.h
  5398. * src/usage_text.h
  5399. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5400. Updated man page: --quiet, --header were added.
  5401. --metalink-servers and --enable-http-keep-alive option were updated.
  5402. * doc/aria2c.1
  5403. * doc/aria2c.1.html
  5404. * doc/aria2c.1.txt
  5405. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5406. Enable HTTP keep-alive by default.
  5407. * src/HelpItemFactory.cc
  5408. * src/option_processing.cc
  5409. * src/usage_text.h
  5410. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5411. Disable http keep-alive if the remote server is not HTTP/1.1.
  5412. * src/HttpConnection.cc
  5413. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5414. Receive content body of 302 response so that the connection can be
  5415. reused later when http keep-alive is enabled.
  5416. * src/HttpNullDownloadCommand.cc
  5417. * src/HttpNullDownloadCommand.h
  5418. * src/HttpResponseCommand.cc
  5419. * src/HttpResponseCommand.h
  5420. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5421. const SharedHandle<Request> -> const SharedHandle<Request>&
  5422. * src/FtpDowndloadCommand.cc
  5423. * src/FtpDowndloadCommand.h
  5424. * src/HttpDownloadCommand.cc
  5425. * src/HttpDownloadCommand.h
  5426. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5427. Fixed the bug that the control file(.aria2 file) is not renamed
  5428. according to tryAutoFileRenaming().
  5429. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5430. its control file exist, use them and continue download.
  5431. The old implementation didn't take into account of control file's
  5432. existence, so basically you couldn't continue download of renamed file.
  5433. * src/BtProgressInfoFile.h
  5434. * src/DefaultBtProgressInfoFile.cc
  5435. * src/DefaultBtProgressInfoFile.h
  5436. * src/NullProgressInfoFile.h
  5437. * src/RequestGroup.cc
  5438. * test/DefaultBtProgressInfoFileTest.cc
  5439. * test/MockBtProgressInfoFile.h
  5440. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Change the default value of --metalink-servers option from `5' to `1'.
  5442. * src/HelpItemFactory.cc
  5443. * src/option_processing.cc
  5444. * src/usage_text.h
  5445. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5446. Reimplemented transparent metalink using Accept request header.
  5447. * src/HttpRequest.cc
  5448. * src/HttpRequest.h
  5449. * src/HttpRequestCommand.cc
  5450. * src/Metalink2RequestGroup.cc
  5451. * src/RequestGroup.cc
  5452. * src/RequestGroup.h
  5453. * test/HttpRequestTest.cc
  5454. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5455. Bump up version number to 0.13.2a
  5456. * configure.ac
  5457. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5458. Updated configure.ac using the result of autoscan.
  5459. * configure.ac
  5460. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5461. Fixed compilation error without gcrypt/openssl.
  5462. * src/DownloadCommand.cc
  5463. * src/DownloadCommand.h
  5464. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5465. Reorganized version information so that it can be displayed in a
  5466. standard terminal screen without scrolling.
  5467. Removed http, ftp from Configuration section, because they are always
  5468. enabled.
  5469. * src/FeatureConfig.cc
  5470. * src/FeatureConfig.h
  5471. * src/main.cc
  5472. * src/messageDigest.cc
  5473. * src/messageDigest.h
  5474. * src/version_usage.cc
  5475. * test/FeatureConfigTest.cc
  5476. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5477. Masked user ID in log.
  5478. * src/FtpConnection.cc (sendUser)
  5479. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5480. Removed query part from filename in HTTP download. The query part means
  5481. the substring after "?" in URL. Firefox seems do the same thing.
  5482. A query part is sometimes very long and not suitable to filename,
  5483. so I think it is better to remove it from filename.
  5484. * src/HttpRequest.cc
  5485. * src/HttpRequest.h
  5486. * src/Request.cc
  5487. * src/Request.h
  5488. * test/HttpRequestTest.cc
  5489. * test/RequestTest.cc
  5490. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5491. Rewritten Exception class. Throw exception object, not its pointer and
  5492. catch by reference, so that remove problematic delete operator for
  5493. catched exception.
  5494. * src/Exception.cc
  5495. * src/Exception.h
  5496. * test/ExceptionTest.cc
  5497. * src/*: All files throwing/catching exception.
  5498. * test/*: All files throwing/catching exception.
  5499. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5500. Now auto protocol detection is enabled without -Z option.
  5501. But there is a important difference between with/without -Z optoin.
  5502. For example, if you type:
  5503. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5504. then, aria2 interprets there are 3 request groups:
  5505. (1) http://host/file, http://mirror/file <-- multi-source download
  5506. (2) file1.torrent
  5507. (3) file2.metalink
  5508. On the other hand, if you invoke above command with -Z option, it is
  5509. interpreted as 4 request groups:
  5510. (1) http://host/file
  5511. (2) file1.torrent
  5512. (3) file2.metalink
  5513. (4) http://mirror/file
  5514. I think usually user don't mix multi-source URLs and torrent files, so
  5515. there is no big problem here.
  5516. * src/main.cc
  5517. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5518. Fixed the bug that causes segmentaion fault when reading XML containing
  5519. unescapsed character like '&'.
  5520. Also a modification was made which avoids adding unnecessary
  5521. characters stack and appending unused string.
  5522. * src/ExpatMetalinkProcessor.cc
  5523. * src/FileMetalinkParserState.h
  5524. * src/FilesMetalinkParserState.h
  5525. * src/FinMetalinkParserState.h
  5526. * src/HashMetalinkParserState.h
  5527. * src/InitialMetalinkParserState.h
  5528. * src/LanguageMetalinkParserState.h
  5529. * src/MetalinkMetalinkParserState.h
  5530. * src/MetalinkParserState.h
  5531. * src/MetalinkParserStateMachine.cc
  5532. * src/MetalinkParserStateMachine.h
  5533. * src/OSMetalinkParserState.h
  5534. * src/PieceHashMetalinkParserState.h
  5535. * src/PiecesMetalinkParserState.h
  5536. * src/ResourcesMetalinkParserState.h
  5537. * src/SizeMetalinkParserState.h
  5538. * src/SkipTagMetalinkParserState.h
  5539. * src/URLMetalinkParserState.h
  5540. * src/VerificationMetalinkParserState.h
  5541. * src/VersionMetalinkParserState.h
  5542. * src/XML2SAXMetalinkProcessor.cc
  5543. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5544. Added StringFormat class, which internally calls vasprintf.
  5545. operator<< is defined for this class, so it can be used with iostream
  5546. classes nicely. SimpleLogger and following functions are rewritten
  5547. using StringFormat class.
  5548. Besides, now Logger class's methods are non-const, many classes
  5549. that has a const Logger* as a member variable are modified to remove
  5550. const qualifier from the variable declaration.
  5551. * src/HelpItemFactory.cc
  5552. * src/Request.cc
  5553. * src/SimpleLogger.cc
  5554. * src/StringFormat.cc
  5555. * src/StringFormat.h
  5556. * src/Util.cc
  5557. * src/option_processing.cc
  5558. * src/version_usage.cc
  5559. * test/StringFormatTest.cc
  5560. * src/*.h: The classes that has const Logger* as a member variable.
  5561. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5562. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5563. failed. Also fixed memory link when exception is thrown there.
  5564. * src/main.cc (AccRequestGroup)
  5565. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5566. Added build-in "Accept-Features" support. For now only "metalink" is
  5567. used in this header field.
  5568. This "metalink" value is removed from the list when connecting URLs
  5569. fed by metalink file to avoid loop in "transparent" metlaink.
  5570. * src/HttpRequest.cc
  5571. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5572. header is also held in this variable. Also renamed setUserHeaders as
  5573. addHeader and it was rewritten to add header not just to clear the old
  5574. value.
  5575. * src/HttpRequestCommand.cc
  5576. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5577. from "Accept-Features" list.
  5578. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5579. default.
  5580. * src/RequestGroup.h
  5581. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5582. * src/a2functional.h: Included <string> because Concat class depends on
  5583. it.
  5584. * test/HttpRequestTest.cc
  5585. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5586. Added comment
  5587. * src/RequestGroup.cc (createNextCommand)
  5588. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5589. Capitalized METHOD_GET and METHOD_HEAD
  5590. * src/Request.cc
  5591. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5592. Added getDownloadResults() method
  5593. * src/RequestGroupMan.cc
  5594. * src/RequestGroupMan.h
  5595. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5596. Fixed the bug that aria2 exits when commands is empty() but
  5597. _routineCommands are not.
  5598. * src/DownloadEngine.cc
  5599. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5600. Use the default value pulled from Option object in HelpItemFactory.
  5601. except options whose defualt value is embedded in a usage text.
  5602. * src/HelpItemFactory.cc
  5603. * src/HelpItemFactory.h
  5604. * src/option_processing.cc
  5605. * src/version_usage.cc
  5606. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5607. Added --quiet option to make aria2 quiet (no console output).
  5608. --quiet option is tagged with ADVANCED.
  5609. * src/HelpItemFactory.cc
  5610. * src/LogFactory.cc
  5611. * src/LogFactory.h
  5612. * src/MultiUrlRequestInfo.cc
  5613. * src/MultiUrlRequestInfo.h
  5614. * src/NullStatCalc.h: New class. This class prints nothing.
  5615. * src/OptionHandlerFactory.cc
  5616. * src/main.cc
  5617. * src/option_processing.cc
  5618. * src/prefs.h
  5619. * src/usage_text.h
  5620. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5621. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5622. * src/HelpItemFactory.cc (createHelpItems):
  5623. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5624. Fixed compilation error in ExpatMetalinkProcessor.cc
  5625. * src/ExpatMetalinkProcessor.cc
  5626. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5627. Reuse socket if the origin server supports HTTP keep-alive and
  5628. --enable-http-keep-alive or --enable-http-pipelining is given.
  5629. The current implementation doesn't reuse the connections established
  5630. against proxy server.
  5631. * src/AbstractCommand.cc
  5632. * src/DownloadEngine.cc
  5633. * src/DownloadEngine.h
  5634. * src/HttpDownloadCommand.cc
  5635. * src/HttpInitiateConnectionCommand.cc
  5636. * src/HttpResponseCommand.cc
  5637. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5638. Rewritten HTTP keep-alive and pipelining routine.
  5639. * src/AbstractCommand.cc
  5640. * src/HttpConnection.cc
  5641. * src/HttpDownloadCommand.cc
  5642. * src/HttpRequest.cc
  5643. * src/HttpRequestCommand.cc
  5644. * src/HttpResponseCommand.cc
  5645. * src/Request.cc
  5646. * src/Request.h
  5647. * src/RequestGroup.cc
  5648. * test/HttpRequestTest.cc
  5649. * test/HttpResponseTest.cc
  5650. * test/RequestTest.cc
  5651. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5652. Added missing setUserHeaders call
  5653. * src/HttpRequestCommand.cc
  5654. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5655. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5656. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5657. waste of time because it is more likey false.
  5658. * src/FileAllocationDispatcherCommand.cc (execute)
  5659. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5660. Now HTTP status and version are a member variable of HttpHeader.
  5661. HTTP status is processed as a string, not integer.
  5662. * src/AbstractProxyResponseCommand.cc
  5663. * src/HttpConnection.cc
  5664. * src/HttpHeader.cc
  5665. * src/HttpHeader.h
  5666. * src/HttpHeaderProcessor.cc
  5667. * src/HttpHeaderProcessor.h
  5668. * src/HttpResponse.cc
  5669. * src/HttpResponse.h
  5670. * test/HttpHeaderProcessorTest.cc
  5671. * test/HttpResponseTest.cc
  5672. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5673. Added --header option. You can specify any number of additional HTTP headers
  5674. like:
  5675. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5676. Unlike other commad-line option, you can use --header option multiple times.
  5677. * src/HelpItemFactory.cc
  5678. * src/HttpRequest.{cc, h}
  5679. * src/HttpRequestCommand.cc
  5680. * src/OptionHandlerFactory.cc
  5681. * src/OptionHandlerImpl.h
  5682. * src/option_processing.cc
  5683. * src/prefs.h
  5684. * src/usage_text.h
  5685. * test/HttpRequestTest.cc (testUserHeaders)
  5686. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5687. Eliminates the time lag between sequential downloads and commands in
  5688. the same RequestGroup.
  5689. In old implementation, aria2 occasionally waits 1 seconds before
  5690. executing next command or RequestGroup.
  5691. This is really a waste of time, and new implementation eliminates
  5692. this unnecessary time lag.
  5693. * src/AbstractCommand.cc
  5694. * src/AutoSaveCommand.cc
  5695. * src/CheckIntegrityCommand.cc
  5696. * src/Command.{cc, h}
  5697. * src/DownloadEngine.{cc, h}
  5698. * src/DownloadEngineFactory.cc
  5699. * src/FileAllocationCommand.cc
  5700. * src/FileAllocationDispatcherCommand.cc
  5701. * src/FillRequestGroupCommand.cc
  5702. * src/FtpInitiateConnectionCommand.cc
  5703. * src/HaveEraseCommand.cc
  5704. * src/HttpInitiateConnectionCommand.cc
  5705. * src/HttpResponseCommand.cc
  5706. * src/RealtimeCommand.cc
  5707. * src/RequestGroup.cc
  5708. * src/RequestGroupMan.cc
  5709. * src/StreamFileAllocationEntry.cc
  5710. * src/TimeBasedCommand.{cc, h}
  5711. * src/TimedHaltCommand.cc
  5712. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5713. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5714. keyword explicit and SharedHandle's default constructor initializes
  5715. its internal obj to null, old implementation initializes it using
  5716. obj's default constructor.
  5717. To assign null, write SharedHandle<T> x(...); x.reset();
  5718. TODO: test/SharedHandleTest.cc needs more tests.
  5719. * src/SharedHandle.h
  5720. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5721. Fixed type in man page.
  5722. * doc/aria2c.1.txt
  5723. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5724. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5725. * src/SimpleLogger.{cc, h}
  5726. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5727. Implemented auto protocol detection.
  5728. Now you can do:
  5729. aria2c -Z http://host/file file1.torrent file2.metalink
  5730. (Note: -Z option is required for auto protcol detection.)
  5731. Then aria2c downloads 3 files simultaneously:
  5732. 1. http://host/file
  5733. 2. file1.torrent <-- read local torrent file
  5734. 3. file2.metalink <-- read local Metalink file.
  5735. Same thing goes with -i option. Assume your uris.txt contans:
  5736. http://host/file
  5737. file1.torrent
  5738. file2.metalink
  5739. Then you can do: aria2c -i uris.txt
  5740. (Note: -Z option is not needed if -i option is given.)
  5741. * src/main.cc
  5742. * src/ProtocolDetector.{cc, h}
  5743. * test/ProtocolDetectorTest.cc
  5744. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5745. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5746. installed
  5747. * src/ARC4Encryptor.h
  5748. * src/ARC4Decryptor.h
  5749. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5750. Renamed argument from 'errno' to 'err', since errno is confused with
  5751. errno defined in errno.h.
  5752. * src/LibgcryptARC4Decryptor.h
  5753. * src/LibgcryptARC4Context.h
  5754. * src/LibgcryptDHKeyExchange.h
  5755. * src/LibgcryptARC4Encryptor.h
  5756. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5757. Rewritten choking algorithm.
  5758. * src/PeerChokeCommand.{cc, h}
  5759. * src/BtInterestedMessage.cc
  5760. * src/PeerSessionResource.{cc, h}
  5761. * src/DefaultPeerStorage.{cc, h}
  5762. * src/BtNotInterestedMessage.cc
  5763. * src/DefaultBtMessageDispatcher.{cc, h}
  5764. * src/BtMessageDispatcher.h
  5765. * src/Peer.{cc, h}
  5766. * src/BtLeecherStateChoke.{cc, h}
  5767. * src/BtSetup.cc
  5768. * src/BtSeederStateChoke.{cc, h}
  5769. * src/PeerStorage.h
  5770. * test/MockPeerStorage.h
  5771. * test/MockBtMessageDispatcher.h
  5772. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5773. Fixed compilation error on x84-64 platform.
  5774. * src/AuthConfig.cc: Included ostream.
  5775. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5776. Rewritten getBasename() and getDirname(), without standard library
  5777. basename(), dirname().
  5778. * src/File.cc
  5779. * test/FileTest.cc
  5780. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. Added Simplified Chinese translation. Also updated the following
  5782. translations: Polish, Dutch, German. Great thanks to all translators.
  5783. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5784. Suppress content-range error when 'Content-Range' response header
  5785. doesn't contains bytes-unit specifier 'bytes'
  5786. * src/HttpHeader.cc (getRange)
  5787. * test/HttpHeaderTest.cc
  5788. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5789. Fixed compilation error with g++-4.3
  5790. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5791. Added missing include files for MinGW
  5792. * test/HttpHeaderProcessorTest.cc
  5793. * test/DHTRoutingTableSerializerTest.cc
  5794. * test/DHTRoutingTableDeserializerTest.cc
  5795. * test/UriListParserTest.cc
  5796. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Now download line is printed nicely with no garbage at the end of
  5798. line. I use ioctl to get the columns of terminal.
  5799. If stdout is redirected to another device, instead of carriage return,
  5800. end of line '\n' character is used. This is feature request#1909659
  5801. * src/ConsoleStatCalc.cc (calculateStat)
  5802. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5803. Included a2time.h
  5804. * src/DHTMessageDispatcher.h
  5805. * src/DHTMessageEntry.h
  5806. * src/DHTReplaceNodeTask.h
  5807. * src/DHTMessageTracker.h
  5808. * src/Util.h
  5809. * src/CookieBox.h
  5810. * src/SocketCore.h
  5811. * src/DefaultBtMessageDispatcher.h
  5812. * src/SocketCore.cc
  5813. * src/Util.cc
  5814. * src/DHTPingTask.h
  5815. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Fixed high memory footprint when DHT is enabled.
  5817. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  5818. queued than it is processed and the queue is getting longer. As a
  5819. consequence, momory usage is increased.
  5820. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  5821. replacement cache in DHTBucket which is described in Kademlia paper.
  5822. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  5823. DHTReplaceNodeTask.
  5824. * src/DHTBucket.{h, cc}
  5825. (cacheNode): New function.
  5826. (getCachedNodes): New function.
  5827. (dropNode): Push back cached node to _nodes.
  5828. * test/DHTBucketTest.cc
  5829. (testCacheNode): New test
  5830. (testDropNode): New test
  5831. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5832. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  5833. the unused 4KB memory when ssl is not used.
  5834. * src/SocketCore.cc
  5835. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5836. Added summary log for peer announce storage.
  5837. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  5838. Removed cast
  5839. * src/DefaultPeerStorage.cc (addPeer)
  5840. Log exception message
  5841. * src/DHTMessageTracker.cc (handleTimeout)
  5842. Fixed casting
  5843. * test/HttpRequestTest.cc
  5844. * test/MetalinkProcessorTest.cc
  5845. * test/PieceTest.cc
  5846. * test/MetalinkEntryTest.cc
  5847. * test/SequenceTest.cc
  5848. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5849. * src/ParameterizedStringParser.cc (createLoop):
  5850. Removed unused variable sstep.
  5851. * src/AlphaNumberDecorator.h (decode): Rewritten.
  5852. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5853. * src/Util.{h, cc}
  5854. (parseUInt): New function.
  5855. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  5856. The actual range is uint32_t.
  5857. * test/UtilTest.cc
  5858. * src/ParameterizedStringParser.cc:
  5859. Use Util::parseUInt() for loop variables.
  5860. * test/ParameterizedStringParserTest.cc
  5861. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  5862. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5863. Rewritten the functions for binding port.
  5864. * src/DHTConnectionImpl.{h, cc}
  5865. * src/PeerListenCommand.{h, cc}
  5866. * src/DHTSetup.cc
  5867. * src/BtSetup.cc
  5868. * test/DHTConnectionImplTest.cc
  5869. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. type cleanup for allmost all remaining files.
  5871. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5872. Type clarification
  5873. * src/PeerSessionResource.{h, cc}
  5874. * src/DefaultPieceStorage.{h, cc}
  5875. * src/Peer.{h, cc}
  5876. * test/PeerSessionResourceTest.cc
  5877. Use div function
  5878. * src/BtPieceMessage.cc (erasePieceOnDisk)
  5879. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. Type clarification
  5881. * src/DefaultPeerStorage.{h, cc}
  5882. * test/DefaultPeerStorageTest.cc
  5883. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5884. Type clarification: size_t for length or size, uint64_t for file
  5885. length, off_t for file offset.
  5886. * src/DefaultBtProgressInfoFile.cc
  5887. * src/DefaultBtContext.{h, cc}
  5888. * src/DefaultBtInteractive.cc
  5889. * src/DownloadCommand.{h, cc}
  5890. * src/IteratableChunkChecksumValidator.{h, cc}
  5891. * src/SegmentMan.{h, cc}
  5892. * src/SingleFileDownloadContext.{h, cc}
  5893. * src/IteratableChecksumValidator.{h, cc}
  5894. * src/BtContext.h
  5895. * src/IteratableValidator.h
  5896. * src/DownloadContext.h
  5897. * test/SingleFileDownloadContextTest.cc
  5898. * test/DefaultBtContextTest.cc
  5899. * test/MockBtContext.h
  5900. * test/Metalink2RequestGroupTest.cc
  5901. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5902. Type clarification: size_t for length or size, uint64_t for file
  5903. length, off_t for file offset.
  5904. * src/PiecedSegment.cc
  5905. * src/GrowSegment.h
  5906. * src/DefaultBtRequestFactory.h
  5907. * src/DefaultBtProgressInfoFile.cc
  5908. * src/UnknownLengthPieceStorage.h
  5909. * src/DefaultPieceStorage.cc
  5910. * src/UnknownLengthPieceStorage.cc
  5911. * src/DefaultBtInteractive.cc
  5912. * src/GrowSegment.cc
  5913. * src/BitfieldMan.h
  5914. * src/DownloadCommand.cc
  5915. * src/BtRequestFactory.h
  5916. * src/PiecedSegment.h
  5917. * src/DefaultPieceStorage.h
  5918. * src/Piece.cc
  5919. * src/DefaultBtRequestFactory.cc
  5920. * src/PieceStorage.h
  5921. * src/Segment.h
  5922. * src/Piece.h
  5923. * src/BitfieldMan.cc
  5924. * src/Util.cc
  5925. * test/DefaultBtProgressInfoFileTest.cc
  5926. * test/DefaultPieceStorageTest.cc
  5927. * test/MockPieceStorage.h
  5928. * test/BtRequestMessageTest.cc
  5929. * test/DefaultBtMessageDispatcherTest.cc
  5930. * test/BitfieldManTest.cc
  5931. * test/GrowSegmentTest.cc
  5932. * test/PieceTest.cc
  5933. * test/SegmentTest.cc
  5934. * test/SegmentManTest.cc
  5935. * test/DefaultBtRequestFactoryTest.cc
  5936. * test/MockBtRequestFactory.h
  5937. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5938. Fixed compilation error with --disable-nls
  5939. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  5940. in gettext.h causes the problem.
  5941. * src/common.h
  5942. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5943. Removed subPiece related functions.
  5944. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  5945. * src/DefaultPieceStorage.{h, cc}
  5946. * test/PieceTest.cc
  5947. * test/DefaultPieceStorageTest.cc
  5948. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5949. Use unsigned char for data store.
  5950. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5951. Bump up version number to 0.13.0+1
  5952. * configure.ac
  5953. * Release 0.13.0+1
  5954. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Changed inactive connection timeout to 120.
  5956. To accept more mulually interested peers, disconnect peer when there
  5957. is no interest between us after certain time passed.
  5958. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  5959. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5960. Fixed the bug that aria2 only uses first dns server in resolv.conf
  5961. when compiled with async DNS support.
  5962. * src/DownloadEngine.cc
  5963. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  5964. value '10' will be a little bit short when some DNS servers are
  5965. offline and several DNS servers are tried. It should be configured
  5966. by command-line option.
  5967. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5968. Merged Ross's mingw patch.
  5969. * src/DHTRoutingTableDeserializer.cc
  5970. * src/DHTRoutingTableSerializer.cc
  5971. * src/Platform.{h, cc}
  5972. * src/timegm.h
  5973. * src/gettimeofday.h
  5974. * src/getaddrinfo.h
  5975. * src/SocketCore.h
  5976. * src/common.h
  5977. * src/inet_aton.h
  5978. * src/DownloadEngine.h
  5979. * src/gai_strerror.h
  5980. * src/a2netcompat.h
  5981. * configure.ac
  5982. * configure
  5983. * aclocal.m4
  5984. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5985. Included missing iostream.
  5986. * test/AllTest.cc
  5987. * test/BtDependencyTest.cc
  5988. * test/BtExtendedMessageTest.cc
  5989. * test/DHTConnectionImplTest.cc
  5990. * test/DHTMessageFactoryImplTest.cc
  5991. * test/DHTMessageTrackerEntryTest.cc
  5992. * test/DHTNodeTest.cc
  5993. * test/DHTRoutingTableSerializerTest.cc
  5994. * test/DefaultBtAnnounceTest.cc
  5995. * test/DefaultBtContextTest.cc
  5996. * test/DefaultBtMessageFactoryTest.cc
  5997. * test/DefaultExtensionMessageFactoryTest.cc
  5998. * test/HandshakeExtensionMessageTest.cc
  5999. * test/HttpResponseTest.cc
  6000. * test/MetalinkProcessorTest.cc
  6001. * test/MultiFileAllocationIteratorTest.cc
  6002. * test/SocketCoreTest.cc
  6003. * test/UTPexExtensionMessageTest.cc
  6004. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6005. Reorganized includes.
  6006. * src/NameResolver.cc
  6007. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6008. Fixed compilation error without ares/c-ares
  6009. * src/NameResolver.h:
  6010. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6011. Added a test for large file.
  6012. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6013. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Fixed the bug that file size is ignored if size > INT32_MAX
  6015. * src/SizeMetalinkParserState.cc (endElement):
  6016. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6017. Bump up version number to 0.13.0
  6018. * configure.ac
  6019. * Release 0.13.0
  6020. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6021. Updated Makfefile.am to make 'make dist' work.
  6022. Now packaged filename is aria2c-VERSION.tar.bz2.
  6023. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6024. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6025. Large file support is now configured by configure script.
  6026. * configure.ac
  6027. Removed unsused source files
  6028. * src/
  6029. * test/
  6030. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6031. Peer.h and BtContext.h respectively.
  6032. * src/Peer.h
  6033. * src/BtContext.h
  6034. Updated translations.
  6035. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6036. translations. Great thanks to all translators!;)
  6037. * po/*.{po, gmo}
  6038. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6039. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6040. statically declared sha1 MessageDigestContext.
  6041. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6042. initialization of short-lived MessageDigestContext.
  6043. * src/MessageDigestHelper.{h, cc}
  6044. * src/main.cc
  6045. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6046. the initialization of MessageDigestContext every time in validating
  6047. chunk checksum.
  6048. * src/DownloadCommand.{h, cc}
  6049. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Add a file descriptor which connected to fast peer(latency<1500) to
  6051. select(). This change reduced CPU load.
  6052. * src/PeerInteractionCommand.cc
  6053. * src/DefaultBtInteractive.{h, cc}
  6054. * src/BtInteractive.h
  6055. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Fixed the previous insufficient fix for possible busy loop.
  6057. * src/MSEHandshake.cc (identifyHandshakeType)
  6058. Removed unused functions.
  6059. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6060. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6061. Fixed possible busy loop if first 20 bytes are not received for a few
  6062. minutes.
  6063. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6064. * src/ReceiverMSEHandshakeCommand.cc
  6065. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6066. Fixed compilation error
  6067. * src/ExpatMetalinkProcessor.cc
  6068. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6069. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6070. * src/DHTBucket.cc
  6071. Removed unnecessary cast.
  6072. * src/HandshakeExtensionMessage.cc
  6073. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6074. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6075. is missing.
  6076. * src/OptionHandlerFactory.cc
  6077. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6078. Fixed the bug that HAVE message is not sent for a piece they are
  6079. downloaded fom http/ftp server before any BitTorrent handshake is done
  6080. with peers.
  6081. * src/DefaultBtInteractive.cc
  6082. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6083. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6084. * src/Makefile.am
  6085. * src/Makefile.in
  6086. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6087. Updated README. Added html version of README and man page.
  6088. * README
  6089. * README.html
  6090. * readme2html: Shell script to generate README.html from README using
  6091. asciidoc.
  6092. * doc/aria2c.1.html
  6093. * doc/makeman: Added the line to generate aria2c.1.html
  6094. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6095. Fixed offset calculation.
  6096. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6097. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6098. Rewritten itos and uitos using template. llitos and ullitos are
  6099. replaced with itos and uitos respectively.
  6100. * src/Util.{h, cc}
  6101. * test/UtilTest.cc
  6102. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6103. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6104. of the number of bytes required for storing public key and shared
  6105. secret.
  6106. * src/LibgcryptDHKeyExchange.h
  6107. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6108. * src/MSEHandshake.cc
  6109. * test/DHKeyExchangeTest.cc
  6110. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6111. Removed since they are not used.
  6112. * src/Xml2MetalinkProcessor.{h, cc}
  6113. * src/Socket.cc
  6114. * src/SegmentSplitter.{h, cc}
  6115. * test/Xml2MetalinkProcessorTest.cc
  6116. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6117. Fixed the bug that prevents aria2 from stopping other than by pressing
  6118. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6119. option. aria2 doesn't stop even after --seed-time is satisfied and
  6120. continues to output blank lines in the console.
  6121. * src/ReceiverMSEHandshakeCommand.cc
  6122. * src/PeerReceiveHandshakeCommand.cc
  6123. * src/PeerListenCommand.cc
  6124. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6125. Bump up version number to 0.13.0rc
  6126. * configure.ac
  6127. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6128. Updated man page and some usage text.
  6129. * doc/aria2c.1.txt
  6130. * src/usage_text.h
  6131. * po/*.{po, gmo}
  6132. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6133. Updated translations. Added Finnish and Hebrew translations.
  6134. Great thanks to all translators!
  6135. * po/*.{po, gmo}
  6136. * po/LINGUAS
  6137. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6138. Log more detailed information about each message.
  6139. * src/DHTQueryMessage.{h, cc}
  6140. * src/DHTGetPeersMessage.{h, cc}
  6141. * src/DHTFindNodeReplyMessage.{h, cc}
  6142. * src/DHTGetPeersReplyMessage.{h, cc}
  6143. * src/DHTAnnouncePeerMessage.{h, cc}
  6144. * src/DHTResponseMessage.{h, cc}
  6145. * src/DHTFindNodeMessage.{h, cc}
  6146. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6147. Use constants defined in prefs.h
  6148. * src/option_processing.cc
  6149. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6151. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6152. Make room for future enchancements for IPv6 addresses.
  6153. Bump up version number of dht.dat file format to 2.
  6154. Not compatible with previous version.
  6155. * src/DHTRoutingTableSerializer.cc
  6156. * src/DHTRoutingTableDeserializer.cc
  6157. * test/DHTRoutingTableSerializerTest.cc
  6158. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6159. Added handling for the return values from
  6160. PeerMessageUtil::createcompact().
  6161. * src/DefaultBtContext.cc (computeFastSet):
  6162. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6163. Fixed abort when peer's ip address is IPv4-mapped address.
  6164. * src/DefaultBtContext.cc (computeFastSet)
  6165. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6166. cannot handle IPv4-mapped addresses.
  6167. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6168. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Proper return value handling for OpenSSL functions.
  6170. * src/LibsslDHKeyExchange.h
  6171. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6172. Random bytes generation using libgcrypt and OpenSSL.
  6173. * src/DHTUtil.{h, cc}
  6174. * test/DHTUtilTest.cc
  6175. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6176. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6177. received.
  6178. * src/DHTMessageReceiver.cc (receiveMessage)
  6179. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6180. Fixed the bug that a return code is always 0. BUG#1897704
  6181. If error occurred during the download or there exist unfinished
  6182. downloads, aria2 returns with code 1.
  6183. * src/RequestGroupMan.{h, cc}
  6184. * src/MultiUrlRequestInfo.{h, cc}
  6185. * src/main.cc
  6186. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6187. IPv6 support for SocketCore class.
  6188. TODO: In SocketCore::establishConnection(), this is insufficient to
  6189. determin the failure of connect() here because the socket is
  6190. non-blocking state. The next addresses should be tried after select().
  6191. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6192. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6193. instead which address family independent.
  6194. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6195. information in a compact peer format which is for IPv4 only.
  6196. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6197. this is a spec of BitTorrent protocol.
  6198. * src/SocketCore.{h, cc}
  6199. * src/PeerMessageUtil.cc
  6200. * test/SocketCoreTest.cc
  6201. * test/PeerMessageUtilTest.cc
  6202. * test/DHTConnectionImplTest.cc
  6203. Handle IPv4-mapped addresses.
  6204. * src/DHTNode.cc: Now identity is determined by node id.
  6205. * src/DHTMessageTrackerEntry.cc
  6206. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6207. should handle it.
  6208. * src/DHTRoutingTableDeserializer.cc
  6209. * src/DHTMessageFactoryImpl.cc
  6210. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6211. Change the unit of --stop option from a minute to a second.
  6212. * src/usage_text.h
  6213. * src/DownloadEngineFactory.cc
  6214. * src/OptionHandlerFactory.cc
  6215. * src/message.h
  6216. * src/TimedHaltCommand.cc
  6217. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Make listening socket non-block mode.
  6219. * src/FtpConnection.cc
  6220. * src/FtpNegotiationCommand.{h, cc}
  6221. * src/PeerListenCommand.cc
  6222. Fixed the bug that cause slow ftp negotiation.
  6223. * src/FtpNegotiationCommand.{h, cc}
  6224. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6225. Added basic tag to --enable-dht, --dht-listen-port option.
  6226. * src/HelpItemFactory.cc (createHelpItems)
  6227. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6228. Updated text.
  6229. * src/usage_text.h
  6230. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6231. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6232. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6233. Determin _threadtholdSpeed in each constructor for
  6234. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6235. * src/ActivePeerConnectionCommand.{h, cc}
  6236. * src/PeerReceiveHandshakeCommand.{h, cc}
  6237. * src/BtSetup.cc
  6238. * src/BtConstants.h
  6239. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6240. Added --bt-min-crypto-level and --bt-require-crypto options.
  6241. * src/OptionHandlerFactory.cc
  6242. * src/MSEHandshake.cc
  6243. * src/HelpItemFactory.cc
  6244. * src/option_processing.cc
  6245. * src/ReceiverMSEHandshakeCommand.cc
  6246. * src/prefs.h
  6247. * src/DefaultBtAnnounce.cc
  6248. * src/InitiatorMSEHandshakeCommand.cc
  6249. * src/usage_text.h
  6250. * test/MSEHandshakeTest.cc
  6251. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6252. Bump version number to 0.13.0b
  6253. * configure.ac
  6254. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6255. Updated doc.
  6256. * src/MessageDigestHelper.h:
  6257. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6258. Use raw message digest as a token instead of its hexadecimal
  6259. representation.
  6260. * src/DHTTokenTracker.cc (generateToken)
  6261. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6262. Added Message Stream Encryption(MSE) support.
  6263. Currently, aria2 accepts incoming connections with Obfuscation Header
  6264. and legacy BitTorrent Header and establishes connections with
  6265. Obfuscation Header first and if failed then retry with legacy
  6266. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6267. choose ARC4. The new option to change the default behavior is planned.
  6268. For tracker extension, "supportcrypto=1" is added statically.
  6269. * src/PeerInitiateConnectionCommand.{h, cc}
  6270. * src/PeerConnection.{h, cc}
  6271. * src/HandleRegistry.h
  6272. * src/SocketCore.h
  6273. * src/PeerReceiveHandshakeCommand.{h, cc}
  6274. * src/BtRegistry.{h, cc}
  6275. * src/PeerListenCommand.cc
  6276. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6277. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6278. * src/MSEHandshake.{h, cc}
  6279. * src/ARC4Encryptor.h
  6280. * src/ARC4Decryptor.h
  6281. * src/LibgcryptARC4Encryptor.h
  6282. * src/LibgcryptARC4Decryptor.h
  6283. * src/LibgcryptARC4Context.h
  6284. * src/LibsslARC4Encryptor.h
  6285. * src/LibsslARC4Decryptor.h
  6286. * src/LibsslARC4Context.h
  6287. * src/DHKeyExchange.h
  6288. * src/LibgcryptDHKeyExchange.h
  6289. * src/LibsslDHKeyExchange.h
  6290. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6291. * test/DefaultBtAnnounceTest.cc
  6292. * test/ARC4Test.cc
  6293. * test/DHKeyExchangeTest.cc
  6294. Removed prepareForRetry() because it is not used.
  6295. * src/PeerAbstractCommand.{h, cc}
  6296. * src/PeerInteractionCommand.{h, cc}
  6297. * src/PeerInitiateConnectionCommand.{h, cc}
  6298. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. Added the ability to load nodes from torrent file. These nodes are
  6300. added to the routing table when downloading that torrent.
  6301. * src/BtContext.h
  6302. * src/DefaultBtContext.{h, cc}
  6303. * src/DHTSetup.cc
  6304. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6305. hostname and port pair, and resolves all of them.
  6306. * src/NameResolver.{h, cc}: Added reset().
  6307. * src/RequestGroup.cc
  6308. * test/DefaultBtContextTest.cc
  6309. * test/MockBtContext.h
  6310. Removed assert() from DefaultBtContext and throw exception instead.
  6311. * src/DefaultBtContext.cc
  6312. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Fixed segmentation fault bug when exiting if dht is disabled.
  6314. * src/RequestGroup.cc
  6315. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6316. Fixed typo in log message and define the message in message.h
  6317. * src/TimedHaltCommand.cc
  6318. * src/message.h
  6319. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6320. Included RecoverableException.h to fix compilation error.
  6321. * test/DHTMessageFactoryImplTest.cc
  6322. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6323. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6324. * test/DHTPingMessageTest.cc
  6325. * test/DHTGetPeersMessageTest.cc
  6326. * test/DHTFindNodeMessageTest.cc
  6327. * test/DHTAnnouncePeerMessageTest.cc
  6328. * test/MockDHTMessage.h
  6329. * test/MockDHTMessageFactory.h
  6330. * test/MockDHTMessageDispatcher.h: New class.
  6331. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6332. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6333. virtual.
  6334. * src/DHTMessageDispatcher.h
  6335. * src/DHTMessageDispatcherImpl.{h, cc}
  6336. * src/DHTSetup.cc
  6337. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6338. Adding handling of DHT error message. Just log error message and
  6339. throw exception.
  6340. * src/DHTMessageFactoryImpl.cc
  6341. * test/DHTMessageFactoryImplTest.cc
  6342. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6343. Added handling of dynamic cast failure.
  6344. * src/DHTNodeLookupTask.cc
  6345. * src/DHTPeerLookupTask.cc
  6346. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6347. Added the ability to stop aria2 itself when given time has passed
  6348. from start. Use --stop option to specify time in minutes.
  6349. When 0 is given, this feature is disabled.
  6350. * src/OptionHandlerFactory.cc
  6351. * src/TimeBasedCommand.h: Make _interval protected scope.
  6352. * src/HelpItemFactory.cc
  6353. * src/option_processing.cc
  6354. * src/prefs.h
  6355. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6356. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6357. Without this modification, the result list shows "ERR" when aria2 is
  6358. stopped by --stop option. It should be "INPR".
  6359. * src/DownloadEngine.{h, cc}
  6360. * src/DownloadEngineFactory.cc
  6361. * src/usage_text.h
  6362. * src/TimedHaltCommand.{h, cc}: New class.
  6363. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. Bootstrap through node added by port message.
  6365. Currently bootstrap is executed if the number of buckets in routing
  6366. table is 1.
  6367. * src/BtPortMessage.{h, cc}
  6368. * src/DefaultBtMessageFactory.{h, cc}
  6369. * src/PeerInteractionCommand.cc
  6370. * test/BtPortMessageTest.cc
  6371. * test/MockDHTTask.h
  6372. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6373. Extract the Peer class's member variables, which are only needed after
  6374. PeerInteractionCommand, into PeerSessionResource class.
  6375. This class is instantiated in PeerInteractionCommand class's ctor and
  6376. released in its dtor.
  6377. This will make Peer class lightweight and uses less memory for peers
  6378. which are not connected and wait in the queue.
  6379. * src/PeerChokeCommand.cc
  6380. * src/PeerSessionResource.{h, cc}
  6381. * src/PeerInteractionCommand.cc
  6382. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6383. * src/DefaultBtInteractive.cc
  6384. * src/BtPieceMessage.cc
  6385. * src/BtInterestedMessage.cc
  6386. * src/BtUnchokeMessage.cc
  6387. * src/DefaultPeerStorage.{h, cc}
  6388. * src/PeerInitiateConnectionCommand.cc
  6389. * src/ActivePeerConnectionCommand.cc
  6390. * src/BtNotInterestedMessage.cc
  6391. * src/DefaultBtMessageDispatcher.cc
  6392. * src/BtChokeMessage.cc
  6393. * src/BtRequestMessage.cc
  6394. * src/Peer.{h, cc}
  6395. * src/BtRegistry.h
  6396. * src/TrackerWatcherCommand.cc
  6397. * src/PeerReceiveHandshakeCommand.cc
  6398. * test/BtExtendedMessageTest.cc
  6399. * test/BtAllowedFastMessageTest.cc
  6400. * test/BtCancelMessageTest.cc
  6401. * test/DefaultPieceStorageTest.cc
  6402. * test/BtBitfieldMessageTest.cc
  6403. * test/BtHaveMessageTest.cc
  6404. * test/BtNotInterestedMessageTest.cc
  6405. * test/BtRequestMessageTest.cc
  6406. * test/PeerSessionResourceTest.cc
  6407. * test/DefaultBtMessageDispatcherTest.cc
  6408. * test/PeerTest.cc
  6409. * test/BtInterestedMessageTest.cc
  6410. * test/BtRejectMessageTest.cc
  6411. * test/BtChokeMessageTest.cc
  6412. * test/DefaultPeerStorageTest.cc
  6413. * test/BtHaveNoneMessageTest.cc
  6414. * test/BtHaveAllMessageTest.cc
  6415. * test/DefaultExtensionMessageFactoryTest.cc
  6416. * test/BtUnchokeMessageTest.cc
  6417. * test/DefaultBtMessageFactoryTest.cc
  6418. * test/HandshakeExtensionMessageTest.cc
  6419. * test/UTPexExtensionMessageTest.cc
  6420. * test/DefaultBtRequestFactoryTest.cc
  6421. * test/BtPieceMessageTest.cc
  6422. Removed typedef PeerStats.
  6423. * src/PeerStat.h
  6424. * src/SegmentMan.cc
  6425. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6426. Added std namespace to copy, remove_copy, back_inserter,
  6427. front_inserter.
  6428. * src/RequestGroupMan.cc
  6429. * src/DefaultPieceStorage.cc
  6430. * src/StreamFileAllocationEntry.cc
  6431. * src/BtFileAllocationEntry.cc
  6432. * src/RequestGroup.cc
  6433. * src/MetalinkEntry.cc
  6434. * src/DelegatingPeerListProcessor.cc
  6435. * src/DefaultBtRequestFactory.cc
  6436. * src/DefaultBtMessageDispatcher.cc
  6437. * src/version_usage.cc: Included <algorithm>
  6438. * src/main.cc
  6439. * src/MetalinkParserController.cc
  6440. * src/DefaultBtContext.cc
  6441. * src/DownloadEngineFactory.cc
  6442. * src/a2algo.h
  6443. Removed.
  6444. * test/StreamUriListParserTest.cc
  6445. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6447. ActivePeerConnectionCommand when it is given and
  6448. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6449. * src/ActivePeerConnectionCommand.{h, cc}
  6450. * src/BtSetup.cc
  6451. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6452. Only add socket to DownloadEngine's select routine when peer or
  6453. localhost is unchoked and interested. This lowers CPU usage a
  6454. little bit.
  6455. * src/PeerInteractionCommand.cc
  6456. * src/PeerAbstractCommand.{h, cc}
  6457. * src/BtInteractive.h
  6458. * src/DefaultBtInteractive.{h, cc}
  6459. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6460. Revert previous change because get_peers message is needed for
  6461. announce_peer anyway.
  6462. * src/DHTGetPeersCommand.cc
  6463. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6464. Request peers thought DHT only when download hasn't finished.
  6465. * src/DHTGetPeersCommand.cc
  6466. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6467. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6468. * src/DHTBucketRefreshTask.{h, cc}
  6469. * src/DHTSetup.cc
  6470. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6471. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6472. standard classes.
  6473. Included string.h where mem* function are used.
  6474. Added namespace aria2.
  6475. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6476. Create directory before saving DHT routing table.
  6477. Now ios::failure is now handled properly.
  6478. * src/DHTAutoSaveCommand.cc
  6479. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6480. Removed unnecessary cerr.
  6481. * src/DownloadEngine.cc
  6482. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6483. Catch exception inside DHTMessageReceiver::receiveMessage().
  6484. Log unknown message.
  6485. * src/DHTMessageReceiver.{h, cc}
  6486. * src/DHTMessageFactory.h
  6487. * src/DHTMessageFactoryImpl.{h, cc}
  6488. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6489. * src/DHTInteractionCommand.cc
  6490. * src/DHTUnknownMessage.{h, cc}
  6491. * test/DHTUnknownMessageTest.cc
  6492. * test/MockDHTMessageFactory.h
  6493. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6494. Commented out ip address comparison because a host can have multiple
  6495. ip addresses and it is hard to predict the hostname is resolved into
  6496. which one.
  6497. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6498. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6499. * po/Makefile.in: Removed since this is generated by configure.
  6500. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6501. Fixed compiler warning about redefinition of SIZE_MAX.
  6502. Use common.h instead of config.h directly here.
  6503. * src/Platform.{h, cc}
  6504. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6505. here.
  6506. * common.h
  6507. 2008-02-02 gettextize <[email protected]>
  6508. Updated gettext related files.
  6509. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6510. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6511. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6512. Added DHT functionality, compatible with mainline.
  6513. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6514. You may need to specify entry point to DHT network using
  6515. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6516. Use --dht-listen-port to specify port number. Make sure that your
  6517. firewall configuration can pass through UDP traffic to the port.
  6518. The routing table is saved in $HOME/.aria2/dht.dat.
  6519. * src/DHT*
  6520. * src/BNode.{h, cc}
  6521. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6522. particular torrent.
  6523. * src/Data.cc: Rewritten ctor.
  6524. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6525. --dht-entry-point.
  6526. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6527. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6528. ends, remove BtContext from DHTPeerAnnounceStorage.
  6529. * src/BtPortMessage.{h, cc}: Rewritten.
  6530. * src/message.h
  6531. * src/OptionHandlerImpl.cc
  6532. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6533. --dht-entry-point.
  6534. * src/Dictionary.{h, cc} (remove): New function.
  6535. * src/prefs.h
  6536. * src/DefaultBtMessageFactory.h
  6537. * src/BtHandshakeMessage.cc
  6538. * src/ActivePeerConnectionCommand.cc
  6539. * src/SocketCore.{h, cc}: Added datagram socket support.
  6540. * src/DefaultBtMessageFactory.cc
  6541. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6542. Create DHT commands.
  6543. * src/BtMessageFactory.h
  6544. * src/PeerMessageUtil.{h, cc}
  6545. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6546. Fixed the bug that log file is not written when configuration file doesn't exist.
  6547. This is caused by using Logger class before LogFactory is not configured.
  6548. BUG #1875079
  6549. * src/option_processing.cc
  6550. Warning message "configuration doesn't exist" is only printed when --conf is
  6551. given.
  6552. * src/option_processing.cc
  6553. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6555. ShaVisitor is now deprecated and slated to be removed.
  6556. * src/DefaultBtContext.cc
  6557. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6558. Externalize message to message.h
  6559. * src/Platform.cc
  6560. * src/message.h
  6561. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6562. Set default domain and default path to cookie.
  6563. * src/HttpResponse.cc
  6564. * src/CookieBox.{h, cc}
  6565. * src/CookieParser.{h, cc}
  6566. * test/CookieParserTest.cc
  6567. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6568. Added --no-conf and --conf-path command-line option.
  6569. --no-conf option disables loading aria2.conf file.
  6570. --conf-path option changes the configuration file path. The default
  6571. file path is $HOME/.aria2/aria2.conf
  6572. Added a warning message when the configuration file is not found.
  6573. * src/HelpItemFactory.cc
  6574. * src/option_processing.cc
  6575. * src/prefs.h
  6576. * src/usage_text.h
  6577. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Added the message to inform users that other help categories are
  6579. available in -h option.
  6580. * src/version_usage.cc
  6581. * src/TagContainer.{h, cc}
  6582. * test/TagContainerTest.cc
  6583. * src/TaggedItem.{h, cc}
  6584. * test/TaggedItemTest.cc
  6585. * src/HelpItem.h
  6586. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6587. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6588. from PiecedSegment's ctor.
  6589. Previously Piece::getAllMissingBlockIndexes() is called from
  6590. PiecedSegment() but it is rather expensive since only first element is
  6591. used.
  6592. * src/PiecedSegment.cc
  6593. * src/Piece.{h, cc}
  6594. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6596. each time these functions are called.
  6597. * src/BitfieldMan.{h, cc}
  6598. * test/BitfieldManTest.cc
  6599. * src/array_fun.h
  6600. * test/array_funTest.cc
  6601. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6602. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6603. filtered. Removed unnecessary cast to int32_t.
  6604. * src/BitfieldMan.{h, cc}
  6605. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6606. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6607. payload length(4bytes) are received. This happens because lenbufLength
  6608. is not updated in this particular case and successive call of
  6609. receiveMessage() overwrites payload length with bytes recieved which
  6610. are payload body.
  6611. * src/PeerConnection.{h, cc}
  6612. * src/message.h
  6613. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6614. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6615. peer if there are peers that have same ipaddr and port.
  6616. I've experiened segmentation fault and "pure virtual function was
  6617. called" error.
  6618. * src/Peer.h
  6619. * test/PeerTest.cc
  6620. * src/DefaultPeerStorage.cc
  6621. * test/DefaultPeerStorageTest.cc
  6622. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6623. Removed a call to isPowerOf() because it is no longer necessary here
  6624. and a request block is not always power of 2.
  6625. BUG#1866924
  6626. * src/PeerMessageUtil.cc (checkLength)
  6627. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6628. Fixed the bug that always first found Segment is removed from
  6629. usedSegmentEntries. Removed unused functions.
  6630. * src/SegmentMan.{h, cc}
  6631. * test/SegmentManTest.cc
  6632. Fixed the bug that ServerHost is not removed.
  6633. * src/RequestGroup.cc
  6634. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6635. Fixed the bug that SegmentMan::completeSegment() is not called
  6636. even if Segment is complete when --lowest-speed-limit is enabled.
  6637. BUG#1864525
  6638. * src/DownloadCommand.{h, cc}
  6639. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Fixed: hash algorithm 'sha1' is always used.
  6641. * src/DownloadCommand.cc (validatePieceHash)
  6642. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. Added --enable-peer-exchange command-line option.
  6644. * src/OptionHandlerFactory.cc
  6645. * src/HelpItemFactory.cc
  6646. * src/option_processing.cc
  6647. * src/usage_text.h
  6648. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6649. Move extension from BtRuntime to ExtensionMessageFactory, because
  6650. extension can be specified per peer, not per torrent.
  6651. * src/DefaultBtInteractive.cc
  6652. * src/BtRuntime.h
  6653. * src/ExtendedMessagingAware.h
  6654. * src/ExtensionMessageFactory.h
  6655. * src/DefaultExtensionMessageFactory.cc
  6656. * test/DefaultExtensionMessageFactoryTest.cc
  6657. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6658. Added categorized option help. Specify category using --help option.
  6659. Also added the ability to search options in forward match.
  6660. * src/HelpItem.{h, cc}
  6661. * test/HelpItemTest.cc
  6662. * src/HelpItemFactory.{h, cc}
  6663. * src/TagContainer.{h, cc}
  6664. * test/TagContainerTest.cc
  6665. * src/option_processing.cc
  6666. * src/prefs.h
  6667. * src/TaggedItem.{h, cc}
  6668. * test/TaggedItemTest.cc
  6669. * src/version_usage.cc
  6670. * src/help_tags.h
  6671. * src/usage_text.h
  6672. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6673. Fixed segmentation fault when bad torrent metainfo is parsed.
  6674. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6675. and then throw exception or skip it.
  6676. * src/DefaultBtContext.{h, cc}
  6677. * test/DefaultBtContextTest.cc
  6678. * src/AnnounceList.cc
  6679. * src/CompactPeerListProcessor.cc
  6680. * src/message.h
  6681. * src/DefaultBtAnnounce.{h, cc}
  6682. * test/DefaultBtAnnounceTest.cc
  6683. * src/BencodeVisitor.cc
  6684. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6685. Added missing "B"(=Byte). So now the message looks like this:
  6686. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6687. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6688. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6689. Show the seed ratio after torrent downloads.
  6690. For example, after torrent download completed and --seed-time and
  6691. --seed-ratio conditions are fulfilled, following message is printed
  6692. right after "Download complete: .....":
  6693. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6694. * src/RequestGroupMan.cc
  6695. * src/RequestGroup.{h, cc}
  6696. * src/message.h
  6697. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6698. Remove a defunct control file. A defunct control file means that while
  6699. it exists, but the corresponding download file is missing.
  6700. After its removal, a download restarts from the beginning.
  6701. * src/RequestGroup.cc
  6702. * src/message.h
  6703. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6704. Allocate bitfield in Peer when it is really used. More specifically,
  6705. bitfield in Peer is allocated after the connection is established and
  6706. deallocated when the connection is dropped.
  6707. Since 2 parameters(piece length and total length) was removed from the
  6708. constructor of Peer class, many test classes were modified accordingly.
  6709. See svn log for more detailed information.
  6710. * src/PeerInteractionCommand.cc
  6711. * src/CompactPeerListProcessor.cc
  6712. * src/Peer.cc
  6713. * src/DefaultPeerListProcessor.cc
  6714. * src/PeerListenCommand.cc
  6715. * src/PeerReceiveHandshakeCommand.cc
  6716. Fixed memory leak
  6717. * src/Piece.cc
  6718. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6719. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6720. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6721. command-line options.
  6722. * src/option_processing.cc
  6723. * src/ActivePeerConnectionCommand.cc
  6724. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Send have message to peer if it already has the piece.
  6726. * src/BtHaveMessage.{h, cc}
  6727. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6729. port.
  6730. * src/DefaultPeerStorage.{h, cc}
  6731. * test/DefaultPeerStorageTest.cc
  6732. * src/HandshakeExtensionMessage.cc
  6733. * test/HandshakeExtensionMessageTest.cc
  6734. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6735. * src/PeerStorage.h
  6736. * test/MockPeerStorage.h
  6737. * src/PeerListenCommand.cc
  6738. * src/PeerReceiveHandshakeCommand.cc
  6739. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6740. Added --metalink-enable-unique-protocol option.
  6741. * src/Metalink2RequestGroup.cc
  6742. * src/option_processing.cc
  6743. * src/prefs.h
  6744. * src/version_usage.cc
  6745. * doc/aria2c.1.txt
  6746. * doc/aria2c.1
  6747. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6748. Allow a peer in incomingPeer to be added peers.
  6749. * src/DefaultPeerStorage.cc
  6750. * test/DefaultPeerStorageTest.cc
  6751. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6753. I could reproduce this bug in following procedure:
  6754. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6755. 2. Restart aria2.
  6756. 3. You see the download stopped around 99%.
  6757. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6758. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6759. If timeout is reached, then _nextCommand is unused and it may contains
  6760. segments and they won't be canceled. Actually, timeout is not needed
  6761. here because if the server dropped connection, then retry is made.
  6762. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6763. Added uTorrent compatible Peer Exchange.
  6764. * src/BencodeVisitor.{h, cc}
  6765. * test/BencodeVisitorTest.cc
  6766. * src/BtConstants.h
  6767. * src/BtContext.h: Added 'private' flag.
  6768. * src/BtExtendedMessage.{h, cc}
  6769. * test/BtExtendedMessageTest.cc
  6770. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  6771. reserved field.
  6772. * test/BtHandshakeMessageTest.cc
  6773. * src/BtMessageFactory.h
  6774. * src/BtRegistry.h
  6775. * src/BtRuntime.h: This class holds default extension message IDs for
  6776. aria2. By default, aria2 uses ID 8 for ut_pex.
  6777. * src/DefaultBtContext.cc
  6778. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  6779. When it is true, aria2 enables ut_pex. This value is set by
  6780. PeerInteractionCommand.
  6781. * src/DefaultBtMessageFactory.{h, cc}
  6782. * test/DefaultBtMessageFactoryTest.cc
  6783. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  6784. handling to DefaultBtInteractive class.
  6785. * src/DefaultExtensionMessageFactory.{h, cc}
  6786. * test/DefaultExtensionMessageFactoryTest.cc
  6787. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  6788. the container(peers and incomingPeers. The equality is determined by
  6789. Peer::id).
  6790. * test/DefaultPeerStorageTest.cc
  6791. * src/ExtensionMessage.h
  6792. * test/MockExtensionMessage.h
  6793. * src/ExtensionMessageFactory.h
  6794. * test/MockExtensionMessageFactory.h
  6795. * src/HandshakeExtensionMessage.{h, cc}
  6796. * test/HandshakeExtensionMessageTest.cc
  6797. * src/MetaEntry.h
  6798. * src/Peer.{h, cc}
  6799. * src/PeerInteractionCommand.cc
  6800. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  6801. addIncomingPeer.
  6802. * src/PeerMessageUtil.{h, cc}
  6803. * src/PeerObject.h
  6804. * src/UTPexExtensionMessage.{h, cc}
  6805. * test/UTPexExtensionMessageTest.cc
  6806. * src/message.h
  6807. * src/prefs.h
  6808. Fixed the bug that returns incomplete data when it contains null
  6809. character. A convenient constructor was also added.
  6810. * src/Data.{h, cc}
  6811. Rewritten.
  6812. * src/CompactPeerListProcessor.cc
  6813. Fixed typos.
  6814. * src/message.h
  6815. * src/MetaFileUtil.cc
  6816. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6817. Added "Status Legend" label to the explanation text of 'stat' in
  6818. download result and moved it to the last. BUG#1848214
  6819. * src/RequestGroupMan.cc
  6820. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6821. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  6822. * src/Makefie.am
  6823. * test/Makefile.am
  6824. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6825. Fixed the bug that prevents aria2 from loading cookie file when expire
  6826. value is greater than 2^31-1. BUG#1851066
  6827. * src/CookieBoxFactory.cc
  6828. * test/CookieBoxFactoryTest.cc
  6829. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6830. Fixed possible memory leak when an exception is thrown.
  6831. * src/XML2SAXMetalinkProcessor.cc
  6832. Added Expat support. If both libxml2 and Expat are installed, then
  6833. libxml2 is used by default.
  6834. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  6835. ExpatMetalinkProcessor according to the configuration.
  6836. * src/ExpatMetalinkProcessor.{h, cc}
  6837. * src/main.cc: Removed libxml2 specific header and init/free function.
  6838. * src/MetalinkProcessorFactory.{h, cc}
  6839. * src/MetalinkHelper.cc
  6840. * src/Metalinker.h: Removed unnecessary libxml2 header.
  6841. * src/MetalinkProcessor.h
  6842. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  6843. MetalinkProcessorTest is used instead.
  6844. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  6845. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  6846. MetalinkProcessorFactory::newInstance().
  6847. * m4/libexpat.m4
  6848. * configure.ac: Added configuration options for libexpat.
  6849. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6850. Disabled -s option in metalink download.
  6851. * src/Metalink2RequestGroup.cc
  6852. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6853. If several protocols are available for a mirror in metalink file,
  6854. aria2 now use one of them. --metalink-preferred-protocol option was
  6855. added to specify the preference of protocol.
  6856. * src/AbstractCommand.cc
  6857. * src/OptionHandlerFactory.cc
  6858. * src/ServerHost.{h, cc}
  6859. * src/Metalink2RequestGroup.cc
  6860. * src/RequestGroup.{h, cc}
  6861. * test/RequestGroupTest.cc
  6862. * src/option_processing.cc
  6863. * src/prefs.h
  6864. * src/HttpResponseCommand.cc
  6865. * src/MetalinkResource.{h, cc}
  6866. * src/FtpNegotiationCommand.cc
  6867. * src/MetalinkEntry.{h, cc}
  6868. * src/MetalinkEntryTest.cc
  6869. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6870. Code cleanup and added debug log.
  6871. * src/PeerConnection.cc
  6872. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6873. Compiler error fix: applied the patch by Tiziano Mueller
  6874. * src/RequestGroup.cc
  6875. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6876. Fixed the bug: only first announce URL is tried in AnnounceTier,
  6877. in stopped and completed event.
  6878. * src/AnnounceList.{h, cc}
  6879. * test/AnnounceListTest.cc
  6880. * src/DefaultBtAnnounce.cc
  6881. * test/DefaultBtAnnounceTest.cc
  6882. Sorted URLs.
  6883. * test/Metalink2RequestGroupTest.cc
  6884. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6885. Removed unnecessary string copy. Updated doc and corrected indentation.
  6886. * src/Base64.cc
  6887. Fixed compilation warnings
  6888. * test/DataTest.cc
  6889. * test/HttpRequestTest.cc
  6890. * test/MetaFileUtilTest.cc
  6891. * test/RequestTest.cc
  6892. * Release 0.12.0
  6893. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6894. Updated translations
  6895. * po/{de,fr,ja,nl,ru}.po
  6896. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  6897. translations. Many thanks to translators.
  6898. * po/{ca,es,it,pt_BR,sv}.po
  6899. * po/LINGUAS
  6900. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6901. Added a notice about URL
  6902. * src/version_usage.cc
  6903. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  6904. Fixed the bug#1845750; CTRL+C does not stop torrent.
  6905. aria2 repeatedly sends stopped request when tracker returns error code.
  6906. * src/AnnounceList.cc
  6907. * test/AnnounceListTest.cc
  6908. * src/AnnounceTier.h
  6909. Added a message when ctrl-c is hit.
  6910. Now second ctrl-c is also handled in signal handler.
  6911. * src/RequestGroupMan.{h, cc}
  6912. * src/RequestGroup.{h, cc}
  6913. * src/MultiUrlRequestInfo.cc
  6914. * src/DownloadEngine.cc
  6915. * src/TrackerWatcherCommand.cc
  6916. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6917. Code cleanup
  6918. * src/Base64.cc (encode)
  6919. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Changed Direct/IO enable/disable procesure in file allocation routine.
  6921. * src/SingleFileAllocationIterator.cc
  6922. (SingleFileAllocationIterator):
  6923. Disable directIO if offset is not multiple of 512.
  6924. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  6925. * src/MultiFileAllocationIterator.cc (allocateChunk):
  6926. Enable created SingleFileAllocationIterator's directIO.
  6927. * src/FileAllocationEntry.cc
  6928. (FileAllocationEntry): Enable directIO here.
  6929. (~FileAllocationEntry): Disable directIO here.
  6930. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6931. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  6932. * src/Peer.{h, cc}
  6933. * src/DefaultPieceStorage.cc
  6934. * test/DefaultPieceStorageTest.cc
  6935. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6936. Rewritten direct I/O support routine
  6937. * src/SingleFileAllocationIterator.cc
  6938. * src/MultiDiskAdaptor.{h, cc}
  6939. * src/ByteArrayDiskWriter.h
  6940. * src/AbstractSingleDiskAdaptor.h
  6941. * src/AbstractDiskWriter.cc
  6942. * src/DefaultPieceStorage.cc
  6943. * src/DiskWriter.h
  6944. * src/BinaryStream.h
  6945. * src/IteratableChunkChecksumValidator.cc
  6946. * src/IteratableChecksumValidator.cc
  6947. * src/CheckIntegrityEntry.cc
  6948. * src/FileAllocationEntry.cc
  6949. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6950. Fixed typo
  6951. * src/version_usage.cc
  6952. Updated doc
  6953. * doc/aria2c.1.txt
  6954. * doc/aria2c.1
  6955. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Fixed compile error without message digest support.
  6957. * src/FileMetalinkParserState.cc
  6958. * src/MetalinkParserController.{h, cc}
  6959. * test/XML2SAXMetalinkProcessorTest.cc
  6960. * test/MetalinkParserControllerTest.cc
  6961. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6962. Enable direct I/O support in checksum checking.
  6963. * src/IteratableChunkChecksumValidator.{h, cc}
  6964. * test/IteratableChunkChecksumValidatorTest.cc
  6965. * src/CheckIntegrityEntry.cc
  6966. * src/PieceHashCheckIntegrityEntry.cc
  6967. * src/IteratableChecksumValidator.{h, cc}
  6968. * src/BtCheckIntegrityEntry.cc: Added doc.
  6969. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6970. Added --allow-piece-length-change option.
  6971. * src/DefaultBtProgressInfoFile.cc
  6972. * test/DefaultBtProgressInfoFileTest.cc
  6973. * src/OptionHandlerFactory.cc
  6974. * src/option_processing.cc
  6975. * src/prefs.h
  6976. * src/version_usage.cc
  6977. * doc/aria2c.1.txt
  6978. * doc/aria2c.1
  6979. Fixed: duplicated result entry appears when exception is thrown in
  6980. RequestGroup::createInitiateConnectionCommand().
  6981. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  6982. Add RequestGroup to _requestGroup after RequetGroup::
  6983. createInitiateConnectionCommand() succeeds.
  6984. Externalized message
  6985. * src/XML2SAXMetalinkProcessor.cc
  6986. * src/message.h
  6987. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6988. Forced download abort when received negative response from http/ftp
  6989. server.
  6990. * src/HttpResponseCommand.cc
  6991. * src/FtpNegotiationCommand.cc
  6992. * src/HttpResponse.cc
  6993. * src/FtpConnection.cc
  6994. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6995. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  6996. the predecessor, Xml2MetalinkParser class.
  6997. I tested them against 94KB metalink file with 1234 chunk checksums.
  6998. The new one parsed it in 22msec, while it took 6000msec with old one.
  6999. * src/XML2SAXMetalinkProcessor.{h, cc}
  7000. * test/XML2SAXMetalinkProcessorTest.cc
  7001. * src/MetalinkParserController.{h, cc}
  7002. * test/MetalinkParserControllerTest.cc
  7003. * src/MetalinkParserState.h: Also added 16 subclasses.
  7004. * src/main.cc
  7005. * src/Metalink2RequestGroup.cc
  7006. * src/MetalinkHelper.cc
  7007. * src/MetalinkEntry.cc
  7008. * src/ChunkChecksum.h
  7009. Rewritten Base64 class for better performance.
  7010. * src/Base64.{h, cc}
  7011. * test/Base64Test.cc
  7012. * src/HttpRequest.cc
  7013. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7014. Fixed the bug#1841757: aria2 will connect to server to only get
  7015. file size.
  7016. * src/StreamFileAllocationEntry.cc
  7017. * src/option_processing.cc
  7018. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7019. downloads.
  7020. * src/FtpNegotiationCommand.cc
  7021. Suppressed wrong message when finding PreDownloadHandler
  7022. * src/RequestGroup.cc
  7023. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Updated usage
  7025. * src/version_usage.cc
  7026. Updated man page
  7027. * doc/aria2c.1.txt
  7028. * doc/aria2c.1
  7029. Updated po files
  7030. * po/aria2c.pot
  7031. * po/*.po
  7032. * po/*.gmo
  7033. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7034. Eliminated g++-4.2 warning
  7035. * src/DownloadHandlerConstants.{h, cc}
  7036. * src/Util.cc
  7037. * test/MetaFileUtilTest.cc
  7038. * test/PStringBuildVisitorTest.cc
  7039. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7040. * src/RequestGroup.cc
  7041. * src/BtCheckIntegrityEntry.cc
  7042. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Fixed a2io.h
  7044. * src/a2io.h
  7045. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7046. Added direct I/O support. The current implementation uses O_DIRECT,
  7047. which is not posix standard and is tested on linux 2.6.21.
  7048. Currently only file allocation uses direct I/O.
  7049. * src/SingleFileAllocationIterator.{h, cc}
  7050. * test/SingleFileAllocationIteratorTest.cc
  7051. * src/MultiFileAllocationIterator.{h, cc}
  7052. * test/MultiFileAllocationIteratorTest.cc
  7053. * src/BinaryStream.h
  7054. * src/DiskWriter.h
  7055. * src/AbstractDiskWriter.{h, cc}
  7056. * src/ByteArrayDiskWriter.h
  7057. * src/DiskAdaptor.h
  7058. * src/AbstractSingleDiskAdaptor.{h, cc}
  7059. * src/MultiDiskAdaptor.{h, cc}
  7060. * src/FileAllocationEntry.cc
  7061. * src/Util.{h, cc}
  7062. * src/OptionHandlerFactory.cc
  7063. * src/prefs.h
  7064. * src/version_usage.cc
  7065. * src/option_processing.cc
  7066. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7067. handleException.
  7068. * src/MultiFileAllocationIterator.cc
  7069. Added EINTR handling
  7070. * src/SocketCore.cc
  7071. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7072. Updated usage
  7073. * src/version_usage.cc
  7074. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7075. Applied Ross's patch for MinGW port.
  7076. * src/DownloadEngine.h
  7077. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Set Content-Type to SingleFileDownloadContext when http response is
  7079. received.
  7080. * src/HttpResponseCommand.cc
  7081. * src/HttpResponse.{h, cc}
  7082. * test/HttpResponseTest.cc
  7083. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7084. Rewritten to add content-type support.
  7085. * src/DownloadHandler.{h, cc}
  7086. * src/BtPostDownloadHandler.{h, cc}
  7087. * test/BtPostDownloadHandlerTest.cc
  7088. * src/MetalinkPostDownloadHandler.{h, cc}
  7089. * test/MetalinkPostDownloadHandlerTest.cc
  7090. * src/PostDownloadHandler.{h, cc}
  7091. * src/DownloadHandlerConstants.{h, cc}
  7092. * src/RequestGroup.cc
  7093. * src/HttpResponseCommand.cc
  7094. * src/FtpNegotiationCommand.cc
  7095. * src/SingleFileDownloadContext.{h, cc}
  7096. * src/RequestGroup.h
  7097. * src/RequestGroupCriteria.h
  7098. * src/ContentTypeRequestGroupCriteria.h
  7099. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7100. If it is give, metalink/torrent file is not written to the disk, but
  7101. just is kept in memory. Parsing is occurred on memory.
  7102. * src/MetalinkHelper.{h, cc}
  7103. * src/MetalinkProcessor.h
  7104. * src/Xml2MetalinkProcessor.{h, cc}
  7105. * test/Xml2MetalinkProcessorTest.cc
  7106. * src/DownloadHandlerFactory.{h, cc}
  7107. * test/DownloadHandlerFactoryTest.cc
  7108. * src/PreDownloadHandler.{h, cc}
  7109. * src/OptionHandlerFactory.cc
  7110. * src/DefaultBtContext.{h, cc}
  7111. * test/DefaultBtContextTest.cc
  7112. * src/version_usage.cc
  7113. * src/Metalink2RequestGroup.{h, cc}
  7114. * src/RequestGroup.{h, cc}
  7115. * src/a2functional.h
  7116. * test/a2functionalTest.cc
  7117. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7118. * src/OptionHandlerImpl.h
  7119. * src/prefs.h
  7120. * src/Util.{h, cc}
  7121. * test/UtilTest.cc
  7122. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7123. memory usage.
  7124. * src/RequestGroupMan.{h, cc}
  7125. * src/DownloadEngine.cc
  7126. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7127. WeakHandle to SharedHandle because WeakHandle could be null.
  7128. * src/RequestGroup.{h, cc}
  7129. * src/DownloadEngineFactory.cc
  7130. * src/DownloadResult.h
  7131. Set totalLength after download finished
  7132. * src/UnknownLengthPieceStorage.{h, cc}
  7133. Keep torrent file specified in metalink in memory.
  7134. * src/Metalink2RequestGroup.cc
  7135. * src/BtDependency.cc
  7136. * src/TrueRequestGroupCriteria.h
  7137. Fixed the bug: seekg is used where seekp should be used.
  7138. * src/ByteArrayDiskWriter.cc
  7139. * test/ByteArraydiskWriterTest.cc
  7140. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. Fixed syntax error
  7142. * test/SequenceTest.cc
  7143. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7144. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7145. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7146. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7147. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7148. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7149. Added the check to see whether ares_host_callback accepts timeouts
  7150. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7151. * src/NameResolver.{h, cc}
  7152. * m4/libcares.m4
  7153. * configure.ac: Set C++ for language choice.
  7154. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7155. Fixed: compilation fails without c-ares/ares
  7156. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7157. Generate http/ftp commands only when download is incomplete.
  7158. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7159. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7160. Corrected typo. Examples are removed since they are available in man
  7161. page.
  7162. * src/version_usage.cc
  7163. Updated man page.
  7164. * doc/aria2c.1
  7165. * doc/aria2c.1.txt
  7166. * doc/makeman: Commented out sed command.
  7167. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7168. Throw DlAbortEx when a remote file is not found.
  7169. * src/HttpResponse.cc
  7170. * src/FtpNegotiationCommand.cc
  7171. * src/message.h
  7172. Overwrite an existing file if --allow-overwrite=true is given.
  7173. * src/RequestGroup.cc
  7174. Removed unused functions
  7175. * src/AbstractCommand.h
  7176. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7177. Removed 'extern' from 'extern typedef ...' in src/*.h
  7178. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7179. Updated usage
  7180. * src/version_usage.cc
  7181. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7182. Trim announce URL
  7183. * src/DefaultBtContext.cc
  7184. * test/ShaVisitorTest.cc
  7185. Trim argument s. Give trimed s to exception constructor.
  7186. * src/Util.cc (parseInt)(parseLLInt)
  7187. * test/UtilTest.cc
  7188. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7189. Set precision back to 1.
  7190. * src/ConsoleStatCalc.cc (calculateStat)
  7191. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7192. Replaced strtol with Util::parseInt
  7193. * src/ChunkedEncoding.cc
  7194. * src/HttpConnection.cc
  7195. * src/CookieBoxFactory.cc
  7196. * src/ParameterizedStringParser.cc
  7197. * src/Util.cc
  7198. * test/UtilTest.cc
  7199. * test/OptionHandlerTest.cc
  7200. * src/Request.cc
  7201. Throw exception when empty string is given. The message for exception
  7202. changed.
  7203. * src/Util.cc (parseInt)(parseLLInt)
  7204. * src/message.h
  7205. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7206. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7207. set to 1.
  7208. * src/ConsoleStatCalc.cc (calculateStat)
  7209. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7210. Preallocate non-requested file which is adjacent forward to requested
  7211. file('requested' files means the files given in --select-file option)
  7212. if they share a same piece.
  7213. This fixes long pause in the file system which doesn't support sparse
  7214. files like FAT32 while downloading.
  7215. * src/MultiFileAllocationIterator.{h, cc}
  7216. * test/MultiFileAllocationIteratorTest.cc
  7217. * src/FileEntry.{h, cc}
  7218. Removed unused _option.
  7219. * src/MultiDiskAdaptor.h
  7220. * test/MultiDiskAdaptorTest.cc
  7221. * src/DefaultPieceStorage.cc
  7222. Set the default value of --seed-ratio to 1.0.
  7223. If 0.0 is given, then seeding continues regardless of share ratio.
  7224. * src/version_usage.cc
  7225. * src/option_processing.cc
  7226. * src/BtSetup.cc
  7227. * doc/aria2c.1.txt
  7228. * doc/aria2c.1
  7229. Fixed: Selective download is not working in BitTorrent
  7230. * src/RequestGroup.cc
  7231. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7232. * src/PieceStorage.h
  7233. * test/MockPieceStorage.h
  7234. * src/UnknownLengthPieceStorage.h
  7235. * src/DefaultPieceStorage.{h, cc}
  7236. * src/Metalink2RequestGroup.cc
  7237. * src/RequestGroup.cc
  7238. * src/Sequence.h
  7239. * test/SequenceTest.cc
  7240. * src/IntSequence.h
  7241. * src/message.h
  7242. * src/Util.{h, cc}
  7243. * test/UtilTest.cc
  7244. Added new function 'parse' to catch exception thrown by subclass's
  7245. parseArg
  7246. * src/OptionHandler.h
  7247. * src/OptionParser.cc
  7248. * src/NameMatchOptionHandler.h
  7249. * src/OptionHandlerImpl.h
  7250. * test/OptionHandlerTest.cc
  7251. Added IntegerRangeOptionHandler. Used for --listen-port and
  7252. --select-file. Now --listen-port accepts range of port.
  7253. * src/OptionHandlerFactory.cc
  7254. * src/version_usage.cc
  7255. * src/OptionHandlerImpl.h
  7256. * src/option_processing.cc
  7257. * src/BtSetup.cc
  7258. * src/PeerListenCommand.{h, cc}
  7259. * doc/aria2c.1.txt
  7260. * doc/aria2c.1
  7261. Implemented operator< for Exception class to provide easy way to print
  7262. exception stack trace.
  7263. * src/Exception.{h, cc}
  7264. * src/main.cc
  7265. * src/option_processing.cc
  7266. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7267. * src/version_usage.cc
  7268. (showVersion): Reworked.
  7269. (showUsage): Added examples.
  7270. Removed Hint for total length and file name.
  7271. * src/Metalink2RequestGroup.cc
  7272. * src/RequestGroup.{h, cc}
  7273. * src/HttpResponseCommand.cc
  7274. * src/FtpNegotiationCommand.cc
  7275. Now --follow-torrent and --follow-metalink option work properly.
  7276. * src/RequestGroup.cc
  7277. Updated man page
  7278. * doc/aria2c.1.txt
  7279. * doc/aria2c.1
  7280. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7281. Removed.
  7282. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7283. Use Segment::operator==()
  7284. * src/HttpConnection.cc
  7285. * src/Segment.h
  7286. Updated usage
  7287. * src/version_usage.cc
  7288. Added EINTR treatment.
  7289. * src/SocketCore.cc
  7290. * src/AbstractDiskWriter.cc
  7291. Rewritten.
  7292. * src/Util.cc (rangedFileCopy)
  7293. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7294. Fixed typo.
  7295. * src/version_usage.cc
  7296. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7297. Implemented. Now -c option works fine.
  7298. * src/DefaultPieceStorage.cc (markPiecesDone)
  7299. * test/DefaultPieceStorageTest.cc
  7300. Removed.
  7301. * src/SegmentMan.{h, cc}
  7302. (markAllPiecesDone)
  7303. (markPieceDone)
  7304. Synchronized po files with
  7305. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7306. * src/fr.po
  7307. * src/ru.po
  7308. * src/de.po
  7309. * src/ja.po
  7310. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7311. Added ifdef and some modifications to compile without BitTorrent,
  7312. Metalink, MessageDigest
  7313. support.
  7314. * src/PieceHashCheckIntegrityEntry.cc
  7315. * src/MetalinkEntry.h
  7316. * src/version_usage.cc
  7317. * src/main.cc
  7318. * src/DownloadEngine.{h, cc}
  7319. * src/Metalink2RequestGroup.cc
  7320. * src/Peer.cc
  7321. * src/RequestGroup.cc
  7322. * src/MetalinkHelper.cc
  7323. * test/DefaultPieceStorageTest.cc
  7324. * test/MetalinkPostDownloadHandlerTest.cc
  7325. * test/Metalink2RequestGroupTest.cc
  7326. Hide TOTAL SPD when all downloads complete.
  7327. * src/ConsoleStatCalc.cc
  7328. Log target system information.
  7329. * src/main.cc
  7330. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7331. Now --metalink-location accepts a comma-deliminated list of locations.
  7332. * src/MetalinkEntry.{h, cc}
  7333. * test/MetalinkEntryTest.cc
  7334. * src/version_usage.cc
  7335. * src/Metalink2RequestGroup.cc
  7336. * src/Xml2MetalinkProcessor.cc
  7337. * test/Xml2MetalinkProcessorTest.cc
  7338. * doc/aria2c.1.txt
  7339. * doc/aria2c.1
  7340. * src/Util.cc (toUpper)(toLower): Rewritten.
  7341. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. Added the ability to detect duplicate download entry which is about to
  7343. download the same file other RequestGroup is downloading.
  7344. * src/RequestGroup.cc
  7345. * src/HttpResponseCommand.cc
  7346. * src/FtpNegotiationCommand.cc
  7347. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7348. Recalculates download progress when loading a control file,
  7349. if the piece length of DownloadContext is different from the one saved
  7350. in the control file. Currently in-flight pieces are ignored.
  7351. * src/DefaultBtProgressInfoFile.cc
  7352. * test/DefaultBtProgressInfoFileTest.cc
  7353. * src/Util.{h, cc}
  7354. * test/UtilTest.cc
  7355. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7356. Do not rotate tiers in announce-list.
  7357. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7358. AnnounceList::allTiersFailed() used instead to detect whether all
  7359. tiers are tried and failed.
  7360. * test/DefaultBtAnnounceTest.cc
  7361. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7362. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7363. * test/AnnounceListTest.cc
  7364. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7365. clause. Catch RecoverableException instead of DlRetryEx instead.
  7366. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7367. Implemented checksum validation feature(1 checksum for each file)
  7368. The validation takes place after the download.
  7369. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7370. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7371. * src/CheckIntegrityCommand.cc: Changed log message.
  7372. * src/Metalink2RequestGroup.cc: Set checksum to
  7373. SingleFileDownloadContext.
  7374. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7375. PieceHashCheckIntegrity class.
  7376. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7377. PieceHashCheckIntegrity class.
  7378. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7379. * src/IteratableValidator.h: New class.
  7380. * src/message.h
  7381. * src/CheckIntegrityEntry.{h, cc}
  7382. * src/IteratableChunkChecksumValidator.{h, cc}
  7383. * src/SingleFileDownloadContext.h
  7384. * src/DownloadCommand.cc
  7385. --allow-overwrite=true is no longer needed to check file integrity
  7386. before download in BitTorrent download.
  7387. * src/RequestGroup.cc (getInitialCommand)
  7388. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7389. throws exception.
  7390. * src/RequestGroupMan.cc (getInitialCommands)
  7391. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7392. urlencode the given url inside Request::parseUrl(...)
  7393. * src/Request.{h, cc}
  7394. * src/Util.{h, cc}
  7395. * test/RequestTest.cc
  7396. Removed #!metalink3! notation support because it is deleted from
  7397. the metalink specification.
  7398. * src/Request.{h, cc}
  7399. * test/RequestTest.cc
  7400. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7401. Don't connect server before checking file integrity at startup, if
  7402. filesize and output file path are known.
  7403. * src/AbstractCommand.cc
  7404. * src/StreamFileAllocationEntry.cc
  7405. * src/Metalink2RequestGroup.cc
  7406. * src/RequestGroup.{h, cc}
  7407. * src/HttpResponseCommand.cc
  7408. * src/FtpNegotiationCommand.cc
  7409. Added DownloadFailureException. If it is thrown, RequestGroup should
  7410. halt.
  7411. * src/AbstractCommand.cc
  7412. * src/DownloadFailureException.h
  7413. * src/RequestGroup.cc
  7414. Catch RecoverableException, instead of DlAbortEx.
  7415. * src/RequestGroupMan.cc
  7416. * src/FillRequestGroupCommand.cc
  7417. * src/MetaFileUtil.cc
  7418. * src/IteratableChunkChecksumValidator.cc
  7419. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7420. getGID())
  7421. * src/CheckIntegrityCommand.cc
  7422. * src/message.h
  7423. Print gid instead of idx.
  7424. * src/RequestGroupMan.cc
  7425. Removed exception throwers declaration.
  7426. * src/DirectDiskAdaptor.{h, cc}
  7427. * src/SocketCore.{h, cc}
  7428. * src/MultiDiskAdaptor.{h, cc}
  7429. * src/HttpConnection.{h, cc}
  7430. * src/HttpResponse.{h, cc}
  7431. * src/DiskAdaptor.{h, cc}
  7432. * src/CopyDiskAdaptor.{h, cc}
  7433. * src/MultiDiskAdaptor.{h, cc}
  7434. * src/HttpHeaderProcessor.{h, cc}
  7435. * src/AbstractSingleDiskAdaptor.{h, cc}
  7436. * src/Util.{h, cc}
  7437. * test/UtilTest.cc
  7438. * src/DefaultDiskWriter.{h, cc}
  7439. * src/FtpConnection.{h, cc}
  7440. * src/AbstractDiskWriter.{h, cc}
  7441. Removed duplicate code.
  7442. * src/StreamCheckIntegrityEntry.cc
  7443. Removed unnecessary include.
  7444. * src/DiskWriter.h
  7445. Included Exception.h
  7446. * src/option_processing.cc
  7447. Included 2 files and added doc
  7448. * src/TrackerWatcherCommand.cc
  7449. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7450. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7451. Changed CheckIntegrityEntry interface so that it can define
  7452. the action when all the chunk checksums are valid.
  7453. * src/CheckIntegrityEntry.h
  7454. * src/StreamCheckIntegrityEntry.{h, cc}
  7455. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7456. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7457. to exit rather than doing seeding. So, it would be good to toggle this
  7458. behavior.
  7459. * src/CheckIntegrityCommand.cc
  7460. * src/AbstractCommand.cc
  7461. * src/RequestGroup.cc
  7462. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Reflect the download length of in-flight pieces.
  7464. It makes the download length readout more precise.
  7465. * src/DefaultPieceStorage.{h, cc}
  7466. * test/DefaultPieceStorageTest.cc
  7467. * src/a2functional.h
  7468. * test/a2functionalTest.cc
  7469. Lower CPU load when --max-download-limit is used.
  7470. There is up and down in speed indicator when enabling
  7471. http-pipelining but a download goes well. I think the problem is that
  7472. because http-pipelining is enabled, DownloadCommand is created for
  7473. each segment and in its constructor, PeerStat::downloadStart() is
  7474. called. In PeerStat::downloadStart(), speed calculation object is
  7475. reseted, which makes download speed zero.
  7476. * src/DownloadCommand.cc
  7477. Rewritten using accumulate.
  7478. * src/RequestGroupMan.cc (calculateStat)
  7479. Code clearnup.
  7480. * src/FtpNegotiationCommand.cc
  7481. * src/HttpResponseCommand.cc
  7482. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. Fixed: Can not resume: aria2 reports download already finished.
  7484. * src/AbstractCommand.{h, cc}
  7485. * src/HttpResponseCommand.cc
  7486. * src/FtpNegotiateCommand.cc
  7487. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7488. Now a file is stored in the directory specified in .metalnk file
  7489. (file[@name]).
  7490. * src/Metalink2RequestGroup.cc
  7491. Create the directory structure when opening the file if it doesn't
  7492. exist.
  7493. * src/AbstractDiskWriter.cc
  7494. * src/Util.{h, cc}
  7495. * src/File.h
  7496. * test/UtilTest.cc
  7497. Removed file name comparison
  7498. * src/Metalink2RequestGroup.cc
  7499. * src/HttpResponseCommand.cc
  7500. Rewritten using Util::mkdirs()
  7501. * src/FileEntry.cc (setupDir)
  7502. * test/FileEntryTest.cc
  7503. Updated doc
  7504. * src/SingleFileDownloadContext.h
  7505. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7506. Now SleepCommand dispatches nextCommand when halt is requested.
  7507. It avoids a possible long wait after hitting CTRL-C.
  7508. * src/SleepCommand.{h, cc}
  7509. * src/RequestGroupAware.{h, cc}
  7510. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7511. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7512. to open listen port, then remove the port number from the tracker
  7513. request.
  7514. * src/DefaultBtAnnounce.cc
  7515. * test/DefaultBtAnnounceTest.cc
  7516. * test/MockPieceStorage.h
  7517. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7518. them more testable.
  7519. * src/DefaultBtAnnounce.{h, cc}
  7520. * src/DefaultBtContext.{h, cc}
  7521. * src/Util.{h, cc}
  7522. * test/DefaultBtAnnounceTest.cc
  7523. * test/DefaultBtContextTest.cc
  7524. * test/UtilTest.cc
  7525. Added 'B' to upload bytes readout.
  7526. * src/ConsoleStatCalc.cc
  7527. Now the listen port for BitTorrent download is opened when it is
  7528. needed.
  7529. * src/DownloadEngineFactory.cc
  7530. * src/BtSetup.{h, cc}
  7531. * src/PeerListenCommand.{h, cc}
  7532. Now an exception thrown while parsing tracker response is now logged.
  7533. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7534. called, which means no retry is made in this case, assuming a tracker
  7535. has a problem.
  7536. * src/TrackerWatcherCommand.cc
  7537. Fixed: downloading a file whose length is unkown fails.
  7538. * src/DownloadCommand.cc
  7539. Simplified prepareForNextSegment()
  7540. * src/DownloadCommand.cc
  7541. Updated
  7542. * po/POTFILES.in
  7543. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7544. Re-implemented a file listing for Metalink, which was dropped while
  7545. http/ftp/torrent integration was being implemented.
  7546. * src/MetalinkHelper.{h, cc}: New class.
  7547. * test/MetalinkHelperTest.cc
  7548. * src/main.cc
  7549. * src/Metalink2RequestGroup.cc
  7550. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7551. Added the ability to display the detailed torrent file information.
  7552. Now -S option gives not only a file listing, but also total download
  7553. length, info hash, announce URI, piece length, the number of pieces,
  7554. and mode(single or multi-torrent).
  7555. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7556. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7557. KiB)
  7558. * test/UtilTest.cc
  7559. * src/main.cc
  7560. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7561. Added ftp://USER:PASSWD@Servername automatic parsing.
  7562. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7563. _password. Recognize username and password in URI.
  7564. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7565. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7566. * src/RequestFactory.{h, cc}: Removed.
  7567. * src/AuthConfigFactory.{h, cc}: New class.
  7568. * src/FtpConnection.cc: Use AuthConfigFactory.
  7569. * src/HttpRequest.cc: Use AuthConfigFactory.
  7570. * test/HttpRequestTest.cc: Updated.
  7571. * test/RequestTest.cc: Updated.
  7572. * test/AuthConfigFactoryTest.cc: New class.
  7573. * test/RequestFactoryTest.cc: Removed.
  7574. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7575. Use RequestGroup::allDownloadFinished() to decide whether the control
  7576. file should be removed or saved.
  7577. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7578. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7579. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7580. Use File::renameTo()
  7581. * src/DefaultBtProgressInfoFile.cc
  7582. Added --no-file-allocation-limit command-line option.
  7583. * src/version_usage.cc
  7584. * src/option_processing.cc
  7585. * src/OptionHandlerFactory.cc
  7586. * src/RequestGroup.{h, cc}
  7587. * src/BtCheckIntegrityEntry.cc
  7588. * src/StreamCheckIntegrityEntry.cc
  7589. * src/prefs.h
  7590. * doc/aria2c.1.txt
  7591. * doc/aria2c.1
  7592. Now prealloc is the default value for --file-allocation option.
  7593. * src/version_usage.cc
  7594. * src/option_processing.cc
  7595. * doc/aria2c.1.txt
  7596. * doc/aria2c.1
  7597. Don't URL-encode user-agent.
  7598. * src/HttpRequest.cc
  7599. Updated translations
  7600. * po/LINGUAS: Added nl for Dutch translation.
  7601. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7602. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7603. * po/POTFILES.in: Updated.
  7604. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7605. Added the ability to recognize url-list in a torrent file.
  7606. The retrieved URLs are attached to the corresponding FileEntry.
  7607. * src/DefaultBtContext.{h, cc}
  7608. * src/FileEntry.{h, cc}
  7609. * test/DefaultBtContextTest.cc
  7610. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7612. after the download finishes.
  7613. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7614. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7615. the data smaller than block length.
  7616. A block length can be specified by constructor's argument.
  7617. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7618. Get a missing piece in the range of given FileEntry. This function is
  7619. not used in the program yet.
  7620. * src/Util.h: Added some macros.
  7621. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7622. Added HTTP/1.1 keep alive and pipelining support.
  7623. See --enable-http-keep-alive and --enable-http-pipelining option.
  7624. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7625. Segment.
  7626. * src/HttpDownloadCommand.{h, cc}
  7627. * src/OptionHandlerFactory.cc
  7628. * src/HttpConnection.{h, cc}
  7629. * src/version_usage.cc
  7630. * src/HttpInitiateConnectionCommand.cc
  7631. * src/FtpInitiateConnectionCommand.cc
  7632. * src/Segment.h
  7633. * src/HttpRequestCommand.{h, cc}
  7634. * src/option_processing.cc
  7635. * src/prefs.h
  7636. * src/HttpResponseCommand.cc
  7637. * src/SegmentMan.{h, cc}
  7638. * src/FtpNegotiateCommand.cc
  7639. * src/HttpProxyResponseCommand.cc
  7640. * src/Request.cc
  7641. * src/HttpRequest.cc
  7642. * src/DownloadCommand.cc
  7643. * test/HttpRequestTest.cc
  7644. * test/RequestTest.cc
  7645. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7646. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7647. finished.
  7648. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7649. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7650. catching it inside the method.
  7651. When no file entry is found in a metalink without querying user
  7652. preferences, throw the exception with the error message that suggests
  7653. metalink file is probably broken.
  7654. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7655. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7656. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7657. processed.
  7658. * src/RequestGroupMan.cc (removeStoppedGroup)
  7659. Added debug message.
  7660. * src/BtPostDownloadHandler.cc
  7661. * src/MetalinkPostDownloadHandler.cc
  7662. * src/PostDownloadHandler.{h, cc}
  7663. * src/RequestGroup.cc
  7664. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7665. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7666. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7667. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7668. stops and there are any unfinished or in-progress downloads.
  7669. Added the legend of "stat".
  7670. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7671. Throw exception when chunck checksum verification fails.
  7672. * src/DownloadCommand.cc (validatePieceHash): New function.
  7673. * src/PiecedSegment.{h, cc} (clear): New function.
  7674. * src/GrowSegment.{h, cc} (clear): New function.
  7675. * src/Segment.h (clear): New function.
  7676. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7677. * test/SegmentTest.cc
  7678. * test/GrowSegmentTest.cc
  7679. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7680. Do not send referer when redirected.
  7681. * src/Request.cc (redirectUrl)
  7682. * test/RequestTest.cc
  7683. * test/HttpRequestTest.cc
  7684. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7685. Implemented BitTorrent/http/ftp integrated download.
  7686. I've rewritten lots of files and now some headers have forward
  7687. class declarations to reduce compile time.
  7688. The implementation is extremely alpha stage, I recommend to use this
  7689. for testing purpose only.
  7690. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7691. Fixed the compilation error on 64bit platform.
  7692. * test/HttpHeaderProcessorTest.cc
  7693. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Merged Ross's patch that fixes compilation problem in MinGW
  7695. * test/DefaultBtProgressInfoFileTest.cc
  7696. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7697. Updated fr.po by sebone
  7698. * po/fr.po
  7699. Updated man page.
  7700. * doc/aria2c.1.txt
  7701. * Release 0.11.3
  7702. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7703. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7704. failure in Metalink.
  7705. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7706. Automatically save *.aria2 control file of http/ftp download in every
  7707. 60 seconds.
  7708. * src/AutoSaveCommand.{h, cc}: New class.
  7709. * src/TimeBasedCommand.{h, cc}: New class.
  7710. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7711. Disable parameterized URI support by default. Added -P option to
  7712. enable the feature.
  7713. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7714. * src/OptionHandlerFactory.cc
  7715. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7716. Updated Japanese translation.
  7717. * po/ja.po
  7718. Updated man page.
  7719. * doc/aria2c.1.txt
  7720. * Release 0.11.3-rc
  7721. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7722. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7723. it is successful, then renamed to *.aria2.
  7724. This prevents *.aria2 file from being truncated or corrupted when
  7725. file system becomes out of space.
  7726. * src/DefaultBtProgressInfoFile.cc (save)
  7727. * src/SegmentMan.cc (save)
  7728. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7729. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7730. Reduced the fragmentation of bitfield in http/ftp download.
  7731. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7732. * test/BitfieldManTest.cc
  7733. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7734. Added the ability to disable segmented download in .metalink.
  7735. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7736. 'url' tag.
  7737. * src/MetalinkEntry.{h, cc}
  7738. * src/RequestResource.{h, cc}
  7739. * src/MetalinkRequestInfo.cc
  7740. * src/Xml2MetalinkProcessor.cc
  7741. * test/Xml2MetalinkProcessorTest.cc
  7742. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7743. Added parameterized URI support.
  7744. * src/main.cc: -Z option added.
  7745. * src/OptionHandlerFactory.cc
  7746. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7747. * src/PStringDatum.h: New class.
  7748. * src/PStringSegment.{h,cc}: New class.
  7749. * src/PStringNumLoop.h: New class.
  7750. * src/PStringSelect.h: New class.
  7751. * src/NumberDecorator.h: New class.
  7752. * src/FixedWidthNumberDecorator.h: New class.
  7753. * src/AlphaNumberDecorator.h: New class.
  7754. * src/PStringVisitor.h: New class.
  7755. * src/PStringBuildVisitor.{h,cc}: New class.
  7756. * src/ParameterizedStringParser.{h,cc}: New class.
  7757. * src/Util.{h,cc}
  7758. (isNumber): New function.
  7759. (isLowercase): New function.
  7760. (isUppercase): New function.
  7761. (alphaToNum): New function.
  7762. * test/ParameterizedStringParserTest.cc: New class.
  7763. * test/AlphaNumberDecoratorTest.cc: New class.
  7764. * test/PStringBuildVisitorTest.cc: New class.
  7765. * test/UtilTest.cc
  7766. (testIsNumber): New function.
  7767. (testIsLowercase): New function.
  7768. (testIsUppercase): New function.
  7769. (testAlphaToNum): New function.
  7770. Added '\n' after the error message
  7771. * src/RequestInfo.h (printDownloadAbortMessage)
  7772. Added auto file renaming feature in http(s)/ftp download.
  7773. * src/main.cc: Added --auto-file-renaming command-line option.
  7774. * src/OptionHandlerFactory.cc
  7775. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  7776. * src/RequestGroup.{h, cc}
  7777. (shouldCancelDownloadForSafety): Rewritten
  7778. (tryAutoFileRenaming): New function.
  7779. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  7780. * src/HttpResponseCommand.cc
  7781. (executeInternal): Removed the call to RequestGroupMan::
  7782. isSameFileBeingDownloaded()
  7783. * src/FtpNegotiateCommand.cc
  7784. (recvSize): Removed the call to RequestGroupMan::
  7785. isSameFileBeingDownloaded()
  7786. * test/RequestGroupTest.cc: New class.
  7787. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7788. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  7789. IO.
  7790. * src/DefaultBtProgressInfoFile.cc
  7791. * src/MetaFileUtil.cc
  7792. * src/SimpleLogger.cc
  7793. * src/SegmentMan.cc
  7794. * src/Util.cc
  7795. * src/Platform.cc
  7796. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7797. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  7798. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7799. Avoid sparse files if possible, because VFAT32 doesn't support it.
  7800. * src/DefaultDiskWriter.cc (initAndOpenFile)
  7801. Fixed the bug that prevents file allocation is not done when
  7802. dowloading multi-torrent file.
  7803. * src/AbstractDiskWriter.cc (openFile)
  7804. Increase the maximum number of -j option from 15 to 45.
  7805. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7806. Added fr.po, thanks to Charles Landemaine.
  7807. * po/fr.po
  7808. * po/LINGUAS
  7809. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7810. gcc 3.4.4 support:
  7811. * src/DefaultBtContext.cc: int32_t -> int
  7812. * src/main.cc: int -> int32_t, int32_t -> int
  7813. * src/messageDigest.h: uint32_t -> unsigned int
  7814. * src/NameResolver.h: int32_t -> int
  7815. * src/PeerConnection.cc: int -> int32_t
  7816. * src/SpeedCalc.cc: int32_t -> int
  7817. * src/TrackerUpdateCommand.h: int -> int32_t
  7818. * src/Util.cc: int32_t -> int
  7819. * src/Util.h: int32_t -> int
  7820. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  7821. * test/AnnounceListTest.cc: int -> int32_t
  7822. * test/ChunkedEncodingTest.cc: int -> int32_t
  7823. * test/DataTest.cc: int -> int32_t
  7824. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  7825. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  7826. * test/DefaultPieceStorageTest.cc: int -> int32_t
  7827. * test/FeatureConfigTest.cc: int -> int32_t
  7828. * test/MetalinkEntryTest.cc: int -> int32_t
  7829. * test/MockBtRequestFactory.h: int -> int32_t
  7830. * test/MockPieceStorage.h: int -> int32_t
  7831. * test/OptionTest.cc: int -> int32_t
  7832. * test/RequestTest.cc: int -> int32_t
  7833. * test/SegmentManTest.cc: int -> int32_t
  7834. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  7835. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  7836. Move sleep functions to Util class:
  7837. * src/Util.cc
  7838. (sleep): New function.
  7839. (usleep): New function.
  7840. * src/DownloadCommand.cc: sleep -> Util::sleep
  7841. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  7842. MinGW build enhancements. The following files are added:
  7843. * src/timegm.{c,h}
  7844. Changes to support the above new files:
  7845. * configure.ac
  7846. * src/Makefile.am
  7847. * src/a2time.h
  7848. * src/Util.cc:
  7849. * src/strptime.c: Added support for %Z option.
  7850. Fixed MinGW non-blocking bug.
  7851. * src/SocketCore.cc
  7852. * src/HttpRequestCommand.cc
  7853. Miscellenous build fixes/enhancements.
  7854. * configure.ac: Added summary report.
  7855. * src/Platform.h: Tweaked #include's.
  7856. * src/a2netcompat.h: Tweaked #include's.
  7857. * src/strptime.h: Tweaked #include's.
  7858. * src/gai_strerror.c: Tweaked #include's.
  7859. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  7860. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  7861. * src/gettimeofday.h: Added HAVE_CONFIG_H
  7862. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7863. Increased the initial connection size in BitTorrent download to 40.
  7864. * src/BtRuntime.h
  7865. Added the usage message of --peer-id-prefix option.
  7866. * src/main.cc
  7867. * Release 0.11.2
  7868. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7869. MessageDigestHelper is introduced in order to simplify the use
  7870. of message digest. Removed repeated code.
  7871. The message digest algorithm is now specified by string, like "sha1",
  7872. "md5".
  7873. * src/messageDigest.{h, cc}
  7874. * src/MessageDigestHelper.{h, cc}: New class.
  7875. * src/DefaultPieceStorage.cc
  7876. * src/DefaultBtContext.{h, cc}
  7877. (computeFastSet): New function.
  7878. (setInfoHash): Added for unit testing.
  7879. (setNumPieces): Added for unit testing.
  7880. * src/DefaultBtInteractive.cc
  7881. * src/BtPieceMessage.cc
  7882. * src/Peer.cc
  7883. * src/Checksum.h
  7884. * src/message.h
  7885. * src/IteratableChecksumValidator.h
  7886. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  7887. inside it.
  7888. * src/SegmentMan.{h, cc}
  7889. (checkIntegrity): Removed.
  7890. * src/IteratableChunkChecksumValidator.{h, cc}
  7891. * src/Util.h
  7892. (sha1Sum): Removed.
  7893. (simpleMessageDigest): Removed.
  7894. (fileChecksum): Removed.
  7895. (computeFastSet): Removed.
  7896. * src/ShaVisitor.cc
  7897. * src/ChunkChecksum.h
  7898. * src/DownloadCommand.cc
  7899. Removed messageDigest virtual functions.
  7900. * src/MultiDiskAdaptor.{h, cc}
  7901. * src/DiskAdaptor.h
  7902. * src/ByteArrayDiskWriter.h
  7903. * src/DiskWriter.h
  7904. * src/DiskAdaptorWriter.h
  7905. * src/AbstractSingleDiskAdaptor.{h, cc}
  7906. * src/AbstractDiskWriter.{h, cc}
  7907. Fixed comilation error when message digest is disabled.
  7908. * src/MetalinkEntry.{h, cc}
  7909. * src/MetalinkRequestInfo.cc
  7910. Removed srandom and random.
  7911. * src/SimpleRandomizer.h
  7912. Added size() virtual function to DiskAdaptor
  7913. * src/MultiDiskAdaptor.h
  7914. Fixed the bug that causes that files are not opened correctly in
  7915. multi-file torrent.
  7916. * src/TorrentRequestInfo.cc
  7917. * src/MultiDiskAdaptor.cc
  7918. Added SHA256 support
  7919. * src/messageDigest.cc
  7920. * src/Xml2MetalinkProcessor.cc
  7921. Show supported message digest algorithms
  7922. * src/main.cc
  7923. Updated contact info.
  7924. * src/main.cc
  7925. Applied Ross's patch
  7926. * src/a2netcompat.h
  7927. * src/main.cc
  7928. Fixed the bug that prevents a remote metalink from not being processed
  7929. even if '-o foo.metalink' is specified.
  7930. * src/MetalinkRequestInfo.cc
  7931. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7932. Merged Dan's patch:
  7933. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  7934. Use va_copy to avoid core dump on amd64:
  7935. * src/SimpleLogger.cc
  7936. Updated contact info.
  7937. * src/main.cc
  7938. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  7939. digest is not available.
  7940. * src/MetalinkEntry.h
  7941. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7942. Make a2netcompat.h include a2io.h to fix compilation error:
  7943. * src/a2netcompat.h
  7944. * src/SocketCore.cc: Removed include of a2io.h
  7945. * src/Util.cc: Removed include of a2io.h
  7946. Gather time related functions to a2time.h:
  7947. * src/a2time.h: New file.
  7948. * src/DefaultPeerStorage.cc
  7949. * src/SimpleLogger.cc
  7950. * src/Util.{h, cc}
  7951. * src/SimpleRandomizer.h
  7952. * src/TimeA2.{h,cc}
  7953. * src/DownloadCommand.cc
  7954. * src/main.cc
  7955. Removed #ifdef __MINGW32__ since gai_strerror is included in
  7956. a2netcompat.h:
  7957. * src/NameResolver.cc
  7958. Fixed compilation error without openssl:
  7959. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  7960. Added default block to suppress compiler warnings:
  7961. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  7962. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  7963. MinGW build enhancements. The following files are added:
  7964. * src/gai_strerror.{c,h}
  7965. * src/gettimeofday.{c,h}
  7966. Changes to support the above new files:
  7967. * configure.ac
  7968. * src/Makefile.am
  7969. * src/a2netcompat.h
  7970. * src/TimeA2.cc
  7971. * src/DefaultPeerStorage.cc
  7972. * src/NameResolver.cc: removed mingw_strerror() function.
  7973. * src/SocketCore.cc: removed mingw_strerror() function.
  7974. Miscellaneous MinGW build fixes.
  7975. * src/a2io.h: Use _lseeki64() instead of lseek()
  7976. * src/common.h
  7977. * src/DefaultFileAllocator.cc
  7978. * src/GlowFileAllocator.cc
  7979. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  7980. * src/NameResolver.cc
  7981. (callback): Changed int32_t to int.
  7982. (resolve): Changed int32_t to int.
  7983. * src/Platform.cc
  7984. * src/Platform.h
  7985. * test/MultiDiskWriterTest.cc
  7986. * test/PeerMessageUtilTest.cc
  7987. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  7988. Other enhancements and fixes.
  7989. * src/HttpRequestCommand.cc
  7990. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  7991. * src/SocketCore.cc:
  7992. (error): New function to abstract errno/WSAGetLastError().
  7993. (errorMsg): New function to abstract errno/WSAGetLastError().
  7994. (initiateSecureConnection): Added more detailed error reporting.
  7995. * src/SocketCore.h: Added private variable blocking, to allow
  7996. proper handling of OpenSSL psuedo-errors.
  7997. * src/message.h
  7998. (EX_SSL_INIT_FAILURE)
  7999. (EX_SSL_IO_ERROR)
  8000. (EX_SSL_PROTOCOL_ERROR)
  8001. (EX_SSL_UNKNOWN_ERROR)
  8002. (EX_SSL_CONNECT_ERROR)
  8003. (EX_SOCKET_BLOCKING)
  8004. (EX_SOCKET_NONBLOCKING)
  8005. (EX_SOCKET_UNKNOWN_ERROR)
  8006. * src/Util.cc
  8007. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8008. reserved name.
  8009. (httpGMT): Fixed typo.
  8010. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8011. Merged Ross's win32 patch(manually)
  8012. In the course of merging, following files are added.
  8013. * src/strptime.{h,c}
  8014. * src/libgen.{h,c}
  8015. * src/inet_aton.{h,c}
  8016. * src/Platform.{h,cc}
  8017. * src/localtime_r.{h,c}
  8018. * src/getaddrinfo.{h,c}
  8019. I've gethered network related things, and put them to following file:
  8020. * src/a2netcompat.h
  8021. Also io related things are put to following file:
  8022. * src/a2io.h
  8023. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8024. * src/message.h
  8025. (MSG_ALLOCATION_COMPLETED)
  8026. (EX_TOO_LARGE_FILE)
  8027. (EX_SIZE_MISMATCH)
  8028. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8029. (EX_INVALID_CHUNK_CHECKSUM)
  8030. (EX_INVALID_RANGE_HEADER)
  8031. * src/FileAllocationCommand.cc
  8032. * src/HttpResponse.cc
  8033. * src/RequestGroup.cc
  8034. * src/MultiDiskAdaptor.cc
  8035. * src/OptionHandlerImpl.h
  8036. * src/HttpResponseCommand.cc
  8037. * src/FtpNegotiateCommand.cc
  8038. * src/IteratableChecksumValidator.cc
  8039. * src/SegmentMan.cc
  8040. * src/ChunkChecksumValidator.cc
  8041. Added Randomizer::getRandomNumber(long int)
  8042. * src/Randomizer.h (getRandomNumber)
  8043. * src/SimpleRandomizer.h (getRandomNumber)
  8044. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8045. * src/Util.cc (randomAlpha): Use this new function.
  8046. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8047. Converted int's to in32_t. long long int's are also converted to
  8048. int64_t
  8049. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8050. Fixed the bug that prevents cookies from being sent to the server
  8051. if the domain of cookie is FQDN and starts with ".".
  8052. * src/Cookie.cc (match)
  8053. To add the ability to change peer id.
  8054. * src/DefaultBtContext.h
  8055. (_peerIdPrefix): New variable
  8056. (setPeerIdPrefix): New function.
  8057. * src/torrentRequestInfo.cc
  8058. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8059. DefaultBtContext.
  8060. * src/main.cc (main): Added peer-id-prefix command-line option.
  8061. The usage message is not added yet.
  8062. * src/DefaultBtContext.cc
  8063. (generatePeerId): Use _peerIdPrefix.
  8064. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8065. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8066. Fixed the bug that prevents filename in content-disposition from
  8067. being retrieved when filename is not quoted.
  8068. * src/Util.cc (getContentDispositionFilename)
  8069. Fixed the bug that causes infinate loop and memory leak when file open
  8070. operation failed.
  8071. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8072. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8073. Fixed the bug that causes segfault when all URIs specified are
  8074. unsupported.
  8075. * src/RequestGroupMan.cc (getInitialCommands)
  8076. Check if RequestGroup::createNextCommand() returns empty list of
  8077. commands.
  8078. * src/RequestGroup.cc (createNextCommand)
  8079. Change log level from info to error so that users can notice that
  8080. an error occurred.
  8081. Fixed the bug that causes segfault when a zero-sized file is
  8082. downloaded.
  8083. * src/BitfieldMan.cc (isAllBitSet)
  8084. Return true if bitfieldLength is 0.
  8085. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8086. * src/main.cc
  8087. (showUsage): Added 3 usage examples for metalink download.
  8088. Replace MetalinkChunkChecksum with ChunkChecksum.
  8089. * src/MetalinkChunkChecksum.h: Removed.
  8090. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8091. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8092. * src/Xml2MetalinkProcessor.cc
  8093. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8094. * src/MetalinkRequestInfo.cc (execute)
  8095. * Release 0.11.1
  8096. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8097. Reads URIs from stdin when "-i -" is specified.
  8098. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8099. * src/UriListParser.h, src/UriListParser.cc: New class.
  8100. * src/StreamUriListParser.h: New class.
  8101. * src/FileUriListParser.h: New class.
  8102. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8103. instead of UriFileListParser.
  8104. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8105. Made console readout more readable.
  8106. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8107. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8108. Fix the bug that causes -s option not to work.
  8109. * src/main.cc (main)
  8110. * src/a2algo.h: New file.
  8111. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8112. Create directory structure specified in metalink file.
  8113. * src/RequestGroup.h, src/RequestGroup.cc
  8114. (initAndOpenFile): Create a directory to store files if it does not
  8115. exist.
  8116. (getDir): New function.
  8117. Added ETA and download speed for an individual file to readout.
  8118. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8119. * src/RequestGroup.h
  8120. (calculateDownloadSpeed): New function.
  8121. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8122. Made -S option work with metalink file and provided selective download
  8123. to metalink.
  8124. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8125. (filename): Removed.
  8126. (file): New variable.
  8127. (size): Removed.
  8128. (operator=): Updated.
  8129. (getPath): New function.
  8130. (getLength): New function.
  8131. (toFileEntry): New function.
  8132. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8133. (execute): Use toStream.
  8134. (showFileEntry): Removed.
  8135. * src/MetalinkRequestInfo.h
  8136. (targetFiles): New variable.
  8137. (setTargetFiles): New variable.
  8138. * src/MetalinkRequestInfo.cc
  8139. (execute): Added the ability to print file information included in
  8140. a metalink file.
  8141. Added selective download mode to metalink.
  8142. * src/main.cc
  8143. (showUsage): Updated to denote that -S and --select-file options are
  8144. applicable to metalink.
  8145. * src/FileEntry.h
  8146. (operator=): New function.
  8147. (getBasename): New function.
  8148. (getDirname): New function.
  8149. * src/Util.h, src/Util.cc
  8150. (toStream): New function.
  8151. * src/Xml2MetalinkProcessor.cc: Updated.
  8152. Made aria2 work with metalink with directory structure.
  8153. * src/File.h, src/File.cc
  8154. (getBasename): New function.
  8155. (getDirname): New function.
  8156. * src/RequestGroup.h, src/RequestGroup.cc
  8157. (_topDir): New variable.
  8158. (setTopDir): New function.
  8159. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8160. Rewrote HTTP header parsing with stringstream.
  8161. * src/HttpConnection.h, src/HttpConnection.cc
  8162. (HttpRequestEntry): New class.
  8163. (headerBuf): Removed.
  8164. (headerBufLength): Removed.
  8165. (outstandingHttpRequests): Now its element type is
  8166. HttpRequestEntryHandle.
  8167. (findEndOfHeader): Removed.
  8168. (receiveResponse): Rewritten.
  8169. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8170. Updated doc for -j option to notice that it should be used with -i
  8171. option.
  8172. * src/main.cc (showUsage)
  8173. Removed unused classes.
  8174. * src/RequestInfo.h
  8175. (FileInfo): Removed.
  8176. (checksum): Removed.
  8177. (fileInfo): Removed.
  8178. (setChecksum): Removed.
  8179. (getChecksum): Removed.
  8180. (getFileInfo): Removed.
  8181. Use ISO units.
  8182. * src/ConsoleDownloadEngine.cc
  8183. * src/TorrentConsoleDownloadEngine.cc
  8184. * src/Util.cc (abbrevSize)
  8185. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8186. Added the default listening ports to the help message.
  8187. * src/main.cc (showUsage)
  8188. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8189. Reduce the number of calls to gettimeofday to lower CPU load.
  8190. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8191. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8192. * src/Peer.h (calculateUploadSpeed): New function.
  8193. (calculateDownloadSpeed): New function.
  8194. * src/DefaultPeerStorage.cc
  8195. (CalculateStat): Added _now variable.
  8196. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8197. and Peer::calculateUploadSpeed(const struct timeval&)
  8198. Drop connection if no request or piece message is exchanged in
  8199. a certain interval.
  8200. * src/DefaultBtInteractive.h
  8201. (btRuntime): New variable.
  8202. (inactiveCheckPoint): New variable.
  8203. (checkActiveInteraction): New function.
  8204. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8205. request or piece message is received.
  8206. (checkActiveInteraction): New function.
  8207. (doInteractionProcessing): Call checkActiveInteraction.
  8208. Fixed the bug that causes remote Metalink and Torrent files are not
  8209. processed.
  8210. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8211. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8212. Changed format of log file.
  8213. * src/SimpleLogger.cc
  8214. * Release 0.11.0
  8215. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8216. * src/AbstractCommand.cc
  8217. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8218. MSG_MAX_TRY from error to info.
  8219. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8220. * src/message.h
  8221. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8222. (MSG_DOWNLOAD_ABORTED): Added %s.
  8223. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8224. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8225. * src/PeerAbstractCommand.cc
  8226. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8227. * src/Request.h
  8228. (cookieBox): Made ShardHandle.
  8229. * src/RequestGroup.h, src/RequestGroup.cc
  8230. (createNextCommandWithAdj): New function.
  8231. * src/FileAllocationCommand.cc
  8232. (executeInternal): Use createNextCommandWithAdj().
  8233. * src/CheckIntegrityCommand.cc
  8234. (executeInternal): Use createNextCommandWithAdj().
  8235. Added --load-cookies command-option.
  8236. * src/OptionHandlerFactory.cc
  8237. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8238. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8239. Now aria2 can handle cookie's expiration date.
  8240. * src/Cookie.h (expires): Changed its type to time_t.
  8241. * src/main.cc: Added --load-cookies command-line option.
  8242. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8243. * src/Util.h, src/Util.cc (httpGMT): New function.
  8244. * src/Request.cc (Request): Initialize cookieBox using
  8245. CookieBoxFactory.
  8246. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8247. * src/CookieParser.h, src/CookieParser.cc: New class.
  8248. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8249. * src/HttpResponseCommand.cc
  8250. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8251. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8252. download.
  8253. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8254. Added -j command-line option.
  8255. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8256. * src/main.cc
  8257. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8258. Rewritten using stringstream.
  8259. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8260. Rewritten using stringstream.
  8261. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8262. Make download size shown in MB, KB.
  8263. * src/ConsoleDownloadEngine.h (sendStatistics)
  8264. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8265. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8266. Accept incoming connections if download rate is low.
  8267. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8268. (_lowestSpeedLimit): New variable.
  8269. (setLowestSpeedLimit): New function.
  8270. (execute): Accept incoming connections if download rate is low.
  8271. MAX_PEERS is ignored in this case.
  8272. Disable PREF_OUT in multiple concurrent download:
  8273. * src/RequestGroup.h, src/RequestGroup.cc
  8274. (setUserDefinedFilename): New function.
  8275. * src/DownloadEngineFactory.cc
  8276. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8277. concurrent download.
  8278. * src/DefaultSegmentManFactory.cc
  8279. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8280. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8282. Added its overloaded method.
  8283. * src/RequestGroup.h
  8284. (_numConcurrentCommand): New variable.
  8285. (setNumConcurrentCommand): New function.
  8286. * src/RequestGroup.cc
  8287. Abort download if same file is being downloaded concurrently.
  8288. * src/RequestGroup.h, src/RequestGroupMan.cc
  8289. (isSameFileBeingDownloaded): New function.
  8290. * src/HttpResponseCommand.cc (executeInternal)
  8291. * src/FtpNegotiateCommand.cc (recvSize)
  8292. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8293. * main.cc: Added help message for -i option.
  8294. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8295. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8296. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8297. * src/MetalinkEntry.h
  8298. (checksum): Changed to ChecksumHandle
  8299. * src/MetalinkRequestInfo.cc
  8300. (checksum): Changed to ChecksumHandle
  8301. * src/File.cc
  8302. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8303. * src/common.h
  8304. (DIR_OPEN_MODE): New definition
  8305. * src/RequestGroup.cc
  8306. (prepareForNextAction): Added an argument.
  8307. * src/message.h
  8308. (MSG_GOOD_CHECKSUM): New definition
  8309. (MSG_BAD_CHECKSUM): New definition
  8310. * src/HttpResponseCommand.cc
  8311. (handleDefaultEncoding): Continue download sequence in new
  8312. non-segmented download.
  8313. * src/FileAllocationEntry.h
  8314. (_nextDownloadCommand): New variable.
  8315. * src/DownloadCommand.cc
  8316. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8317. available.
  8318. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8319. * src/IteratableChecksumValidator.h,
  8320. src/IteratableChecksumValidator.cc: New class.
  8321. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8322. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8323. Change file mode to 666:
  8324. * src/common.h (OPEN_MODE): New definition.
  8325. * src/File.cc
  8326. * src/Util.cc
  8327. * src/Directry.cc
  8328. * src/AbstractDiskWriter.cc
  8329. Change the level of log message "download aborted" to debug:
  8330. * src/PeerAbstractCommand.cc (execute)
  8331. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8332. * src/TrackerWatcherCommand.cc
  8333. (createCommand): Sleep some seconds after request failed.
  8334. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8335. then abort tracker request.
  8336. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8337. * Added the simultaneous download feature.
  8338. * src/main.cc: Print "Exception caught: " when exception is caught.
  8339. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8340. * src/ActivePeerConnectionCommand.cc
  8341. * src/PeerInteractionCommand.cc
  8342. * src/BtRuntime.h
  8343. (cuidCounter): Removed.
  8344. (getNewCuid): Removed.
  8345. * src/DownloadEngineFactory.cc
  8346. * src/PeerListenCommand.cc
  8347. * src/TrackerUpdateCommand.cc
  8348. * src/PeerInitiateConnectionCommand.cc
  8349. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8350. * src/PeerAbstractCommand.cc
  8351. (onAbort): Call PeerStorage::returnPeer()
  8352. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8353. (incomingPeers): New variable.
  8354. (addIncomingPeer): New function.
  8355. (returnPeer): New function.
  8356. (onErasingPeer): New function.
  8357. (addPeer): push_back -> push_front
  8358. (getActivePeers): Rewritten.
  8359. (calculateStat): Rewritten.
  8360. * src/PeerStorage.h
  8361. (TransferStat::copy): New function.
  8362. (TransferStat::TransferStat): New function.
  8363. (TransferStat::operator=): New function.
  8364. (addIncomingPeer): New function.
  8365. (returnPeer): New function.
  8366. * src/PeerListenCommand.cc
  8367. (execute): Use PeerStorage::addIncomingPeer() instead of
  8368. Peer::addPeer().
  8369. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8370. Connect to a peer actively when download speed is lower than specified
  8371. speed in torrent download:
  8372. * src/ActivePeerConnectionCommand.h: New class.
  8373. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8374. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8375. * src/main.cc: Fixed the bug that prevents download if .netrc
  8376. doesn't exist.
  8377. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8378. To cache resolved hostname:
  8379. * src/AbstractCommand.h, src/AbstractCommand.cc
  8380. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8381. Added dns cache.
  8382. * src/FtpInitiateConnectionCommand.cc
  8383. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8384. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8385. NameResolver working without ares.
  8386. * src/TorrentRequestInfo.cc
  8387. (execute): Don't cache dns in torrent download.
  8388. * src/HttpInitiateConnectionCommand.cc
  8389. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8390. * src/DNSCache.h: New class.
  8391. * src/UrlRequestInfo.cc
  8392. (execute): Use dns cache.
  8393. In http request, suppress port number in http request header if port
  8394. is 80 or 443:
  8395. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8396. request header if port is 80 or 443.
  8397. (createProxyRequest): Allways send port number.
  8398. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8399. To add the command-line option which disables netrc support:
  8400. * src/OptionHandlerFactory.cc
  8401. (createOptionHandlers): Added PREF_NO_NETRC.
  8402. * src/main.cc: Added -n option.
  8403. * src/prefs.h (PREF_NO_NETRC): New definition.
  8404. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8405. V_TRUE.
  8406. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8407. is V_FALSE. This may get configurable in the future release.
  8408. To clear peer's error status by time basis:
  8409. * src/PeerAbstractCommand.cc
  8410. (onAbort): Call Peer::startBadCondition().
  8411. * src/Peer.h, src/Peer.cc
  8412. (error): Removed.
  8413. (_badConditionStartTime): New variable.
  8414. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8415. (startBadCondition): New function.
  8416. (isGood): New function.
  8417. * src/DefaultPeerStorage.cc
  8418. (addPeer): Use Peer::isGood().
  8419. (FindFinePeer): Use Peer::isGood().
  8420. Always include port number in http request header:
  8421. * src/HttpRequest.cc (getHostText): Always include port number in
  8422. http request header.
  8423. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8424. To the ability to read options from a config file:
  8425. * src/main.cc: Command-line parameter validation is delegated to
  8426. OptionHandler class.
  8427. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8428. * src/Option.h, src/Option.cc (clear): New function.
  8429. * src/OptionParser.h, src/OptionParser.cc: New class.
  8430. * src/OptionHandler.h: New class.
  8431. * src/NameMatchOptionHandler.h: New class.
  8432. * src/OptionHandlerImpl.h: New classes.
  8433. * src/prefs.h: '_' -> '-'
  8434. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8435. (FTP_PASV): New definition.
  8436. * src/Util.h, src/Util.cc (getRealSize): New function.
  8437. To disable netrc support if .netrc file does not have correct
  8438. permissions:
  8439. * src/File.h, src/File.cc (mode): New function.
  8440. To prevent confidential information to be logged:
  8441. * src/HttpConnection.h, src/HttpConnection.cc
  8442. (eraseConfidentialInfo): New function.
  8443. (sendRequest): Call eraseConfidentialInfo().
  8444. (sendProxyRequest): Call eraseConfidentialInfo().
  8445. * src/main.cc: Validate permissions of .netrc file.
  8446. To add --user-agent command-line option:
  8447. * src/main.cc: Added new command line option: --user-agent
  8448. * src/prefs.h (PREF_USER_AGENT): New definition.
  8449. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8450. parameter to HttpRequest object.
  8451. * src/AbstractProxyRequestCommand.cc
  8452. (executeInternal): Set user-agent option parameter to HttpRequest
  8453. object.
  8454. Marged the patches from Dan Fandrich.
  8455. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8456. Use filename and size from Metalink file instead of sending HEAD
  8457. request:
  8458. * src/UrlRequestInfo.h
  8459. (_filename): New variable.
  8460. (_totalLength): New variable.
  8461. (setTotalLength): New variable.
  8462. (setFilename): New variable.
  8463. * src/MetalinkRequestInfo.cc
  8464. (execute): Set filename and size to UrlRequestInfo
  8465. * src/UrlRequestInfo.cc
  8466. (execute): Use filename and size from Metalink instead of seding
  8467. HEAD request to servers.
  8468. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8469. To add the ability to resume downloading a partially downloaded file
  8470. which is downloaded from the beginning:
  8471. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8472. takes this role.
  8473. * src/main.cc: Added -c option.
  8474. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8475. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8476. * src/prefs.h (PREF_CONTINUE): New definition.
  8477. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8478. * src/DefaultDiskWriter.cc
  8479. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8480. * src/AbstractDiskWriter.h
  8481. (glowFileAllocator): New variable.
  8482. * src/AbstractDiskWriter.cc
  8483. (openExistingFile): Now preallocate file space from the end of the
  8484. existing file if totalLength argument is specified and grater than 0.
  8485. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8486. to download exists in local, continue the download of the file.
  8487. --allow-overwrite=true is assumed in this context.
  8488. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8489. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8490. Throw exception if --check-integrity=true is specified but chunk
  8491. checksums are not provided:
  8492. * src/UrlRequestInfo.cc
  8493. Do not print URLs to stdout:
  8494. * src/UrlRequestInfo.cc
  8495. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8496. * src/Request.h: Use AuthResolver to get authentication information.
  8497. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8498. set to RequestFactory object.
  8499. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8500. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8501. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8502. create Request object.
  8503. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8504. To integrate Netrc into exsiting classes:
  8505. * src/Request.h
  8506. (_userDefinedAuthConfig): New variable.
  8507. (findNetrcAuthenticator): New function.
  8508. (segment): Removed.
  8509. (setUserDefinedAuthConfig): New function.
  8510. (resolveHttpAuthConfigItem): New function.
  8511. (resolveFtpAuthConfigItem): New function.
  8512. (resolveHttpProxyAuthConfigItem): New function.
  8513. * src/HttpRequest.h
  8514. (authConfig): Removed.
  8515. (proxyAuthConfig): Removed.
  8516. (setAuthConfig): Removed.
  8517. (setProxyAuthConfig): Removed.
  8518. * src/UrlRequest.h
  8519. (getHeadResult): Added a parameter: authConfigHandle
  8520. * src/common.h
  8521. (SingletonHolder.h): New include.
  8522. * src/main.cc
  8523. (Netrc.h): New include.
  8524. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8525. Added initial value of PREF_NETRC_PATH.
  8526. Added the initialization of netrc.
  8527. * src/AuthConfig.h: New class.
  8528. * src/prefs.h
  8529. (PREF_NETRC_PATH): New definition.
  8530. * src/HttpAuthConfig.h: Removed.
  8531. * src/Netrc.cc
  8532. (getRequiredNextToken): New function.
  8533. (skipMacdef): New function.
  8534. (parse): Rewritten.
  8535. * src/Netrc.h
  8536. (getRequiredNextToken): New function.
  8537. (skipMacdef): New function.
  8538. * src/Util.h, src/Util.cc
  8539. (getHomeDir): New function.
  8540. * src/TrackerWatcherComand.cc
  8541. (createRequestCommand): Use AuthConfig.
  8542. * src/FtpConnection.cc
  8543. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8544. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8545. * src/Request.cc
  8546. (findNetrcAuthenticator): New function.
  8547. (resolveHttpAuthConfigItem): New function.
  8548. (resolveFtpAuthConfigItem): New function.
  8549. (resolveHttpProxyAuthConfigItem): New function.
  8550. * src/UrlRequestInfo.cc: Use AuthConfig.
  8551. * src/HttpRequest.cc
  8552. (createRequest): Use authConfig.
  8553. (getProxyAuthString): Use authConfig.
  8554. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8555. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8556. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8557. To reduce overhead to find commands whose socket is either
  8558. readable or writable in the download engine loop:
  8559. * src/Command.h, src/Command.cc
  8560. (STATUS): New enum.
  8561. (status): New variable.
  8562. (statusMatch): New function.
  8563. (setStatusActive): New function.
  8564. (setStatusInactive): New function.
  8565. * src/DownloadEngine.h, src/DownloadEngine.cc
  8566. (executeCommand): New function.
  8567. (run): Simplified.
  8568. (waitData): Call Command::setStatusActive() when command's socket is
  8569. readable or writable.
  8570. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8571. To handle Segment as SegmentHandle:
  8572. * src/AbstractCommand.cc (execute): Rewritten.
  8573. * src/SegmentMan.h: Segment -> SegmentHandle
  8574. Introducded HttpResponse class, HttpRequest class to improve code
  8575. extensiveness and make it clear:
  8576. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8577. HttpResponse class.
  8578. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8579. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8580. * src/HttpConnection.cc: Contruction of http request were moved to
  8581. HttpRequest class.
  8582. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8583. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8584. * src/HttpAuthConfig.h: New class.
  8585. * src/Range.h: New class.
  8586. To make FtpTunnel{Request, Response}Command and
  8587. HttpProxy{Request, Response}Command derived from
  8588. AbstractProxy{Request, Response}Command:
  8589. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8590. Derived from AbstractProxyRequestCommand class.
  8591. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8592. Derived from AbstractProxyResponseCommand class.
  8593. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8594. Derived from AbstractProxyRequestCommand class.
  8595. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8596. Derived from AbstractProxyResponseCommand class.
  8597. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8598. : New class.
  8599. * src/AbstractProxyResponseCommand.h,
  8600. src/AbstractProxyResponseCommand.cc: New class.
  8601. To add netrc support:
  8602. * src/Netrc.h, src/Netrc.cc: New class.
  8603. * src/Util.h, src/Util.cc (split): New function.
  8604. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8605. "Content-Range" header instead of "Range" header.
  8606. * src/HttpHeader.h
  8607. (getStatus): Removed.
  8608. (setStatus): Removed.
  8609. * src/Segment.h
  8610. (getPositionToWrite): New function.
  8611. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8612. * src/HttpHeader.h
  8613. (Range.h): New include.
  8614. (status): New variable.
  8615. (HttpHeader): Initialized status with 0.
  8616. (getStatus): New function.
  8617. (setStatus): New function.
  8618. (getRange): New function.
  8619. (HttpHeaderHandle): New function.
  8620. * src/HttpHeader.cc
  8621. (getRange): New function.
  8622. * src/Request.h
  8623. (RequestWeakHandle): New definition.
  8624. * src/HttpConnection.h
  8625. (HttpConnectionHandle): New type definition.
  8626. * src/HttpConnection.cc
  8627. (receiveResponse): Set HTTP status to headers.
  8628. * src/main.cc
  8629. (showUsage): Fixed typo.
  8630. * src/Segment.h
  8631. (SegmentHandle): New type definition.
  8632. * src/BitfieldMan.h
  8633. (getMissingUnusedLength): New function.
  8634. * src/BitfieldMan.cc
  8635. (getMissingUnusedLength): New function.
  8636. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8637. To fix static initialization order problem:
  8638. * src/BitfieldManFactory.h
  8639. (defaultRandomizer): Removed.
  8640. (factory): New variable.
  8641. (getNewFactory): Removed.
  8642. (getFactoryInstance): New function.
  8643. (setDefaultRandomizer): Rewritten.
  8644. (getDefaultRandomizer): Rewritten.
  8645. * src/BitfieldManFactory.cc
  8646. (defaultRandomizer): Removed.
  8647. (factory): Initialized to 0.
  8648. (BitfieldManFactory): Initialized randomizer to 0.
  8649. * src/DefaultPieceStorage.cc
  8650. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8651. * src/Peer.cc
  8652. (Peer): getNewFactory() -> getFactoryInstance()
  8653. * src/SegmentMan.cc
  8654. (initBitfield): getNewFactory() -> getFactoryInstance()
  8655. * src/Piece.cc
  8656. (Piece): getNewFactory() -> getFactoryInstance()
  8657. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8658. To fix the bug that causes crash on Max OS X:
  8659. * src/SimpleRandomizer.h
  8660. (getInstance): Create new instance if the static variable is null.
  8661. * src/SimpleRandomizer.cc
  8662. (randomizer): Initialized to 0.
  8663. * src/BitfieldManFactory.h
  8664. (getNewFactory): Removed the call to setRandomizer().
  8665. To fix the miscalculation of the range of checksum:
  8666. * src/BitfieldMan.h
  8667. (isBitSetOffsetRange): New function.
  8668. * src/BitfieldMan.cc
  8669. (isBitSetOffsetRange): New function.
  8670. * src/SegmentMan.cc
  8671. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8672. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8673. * Release 0.10.1
  8674. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8675. To lower CPU usage in BitTorrent download when --max-upload-limit
  8676. command-line option specified:
  8677. * src/DefaultBtMessageDispatcher.cc
  8678. (sendMessages): Calculate uploading speed only when current message
  8679. is uploading data and is not sent yet.
  8680. * src/DefaultPeerStorage.h
  8681. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8682. * src/HttpResponseCommand.cc
  8683. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8684. This fixes compile error in Soralis 10.
  8685. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8686. To fix segfault in Metalink download:
  8687. * src/UrlRequestInfo.h
  8688. (filename): Removed.
  8689. (totalLength): Removed.
  8690. (setTotalLength): Removed.
  8691. (setFilename): Removed.
  8692. * src/MetalinkRequestInfo.cc
  8693. (execute): Do not set filename and totalLength to reqInfo.
  8694. Set chunk checksum to reqInfo if it is not null.
  8695. * src/HttpResponseCommand.cc
  8696. (executeInternal): Fixed filename in log.
  8697. (handleDefaultEncoding): Removed the call to initBitfield() and
  8698. markAllPiecesDone().
  8699. (handleOtherEncoding): Added HEAD method handling.
  8700. * src/FtpNegotiateCommand.cc
  8701. (executeInternal): Added SEQ_HEAD_OK handling.
  8702. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8703. return false.
  8704. * src/FtpNegotiateCommand.h
  8705. (SEQ_HEAD_OK): New definition.
  8706. * src/SegmentMan.cc
  8707. (initBitfield): Delete bitfield.
  8708. (isChunkChecksumValidationReady): Fixed the condition.
  8709. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8710. works fine.
  8711. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8712. * src/Xml2MetalinkProcessor.h
  8713. (xpathExists): New function.
  8714. * src/Xml2MetalinkProcessor.cc
  8715. (xpathExists): New function.
  8716. Not to send HEAD request if filename and size are available in Metalink
  8717. file:
  8718. * src/UrlRequestInfo.h
  8719. (filename): New variable.
  8720. (totalLength): New variable.
  8721. (setTotalLength): New function.
  8722. (setFilename): New function.
  8723. * src/MetalinkRequestInfo.cc
  8724. (execute): Set filename and size to UrlRequestInfo.
  8725. * src/MetalinkEntry.cc
  8726. (MetalinkEntry): Initialize size with 0.
  8727. * src/UrlRequestInfo.cc
  8728. (execute): Set filename and size to SegmentMan.
  8729. Not to download rest of the files after selected files are downloaded
  8730. in BitTorrent:
  8731. * src/PieceStorage.h
  8732. (allDownloadFinished): New function.
  8733. * src/DefaultBtAnnounce.cc
  8734. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8735. downloadFinished.
  8736. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8737. * src/DefaultPieceStorage.cc
  8738. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8739. Commented out the call to finishSelectiveDownloadingMode().
  8740. (downloadFinished): Call isFilteredAllBitSet() instead of
  8741. isAllBitSet().
  8742. (allDownloadFinished): New function.
  8743. * src/DefaultBtInteractive.cc
  8744. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8745. downloadFinished().
  8746. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8747. * src/TorrentDownloadEngine.cc
  8748. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8749. * src/BitfieldMan.h
  8750. (isFilteredAllBitSet): New function.
  8751. * src/ShareRatioSeedCriteria.h
  8752. (PieceStorage.h): New include.
  8753. (pieceStorage): New variable.
  8754. (evaluate):
  8755. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8756. * src/BitfieldMan.cc
  8757. (isFilteredAllBitSet): New function.
  8758. (isAllBitSet): Filter is not took into account.
  8759. Rename --force-truncate as --allow-overwrite:
  8760. * src/TorrentRequestInfo.cc
  8761. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8762. * src/main.cc
  8763. (showUsage): --force-truncate -> --allow-overwrite
  8764. * src/message.h
  8765. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8766. * src/prefs.h
  8767. (PREF_FORCE_TRUNCATE): Removed.
  8768. (PREF_ALLOW_OVERWRITE): New definition.
  8769. * src/SegmentMan.cc
  8770. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  8771. * src/MetalinkRequestInfo.cc
  8772. (execute): Queueing message are now logged in info level.
  8773. * src/common.h
  8774. (LONG_LONG_MAX): Removed.
  8775. (LONG_LONG_MIN): Removed.
  8776. * src/HttpResponseCommand.cc
  8777. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  8778. * src/FtpNegotiateCommand.cc
  8779. (recvSize): LONG_LONG_MAX -> INT64_MAX
  8780. * src/main.cc
  8781. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  8782. command-line option.
  8783. (main): Added --check-integriy and --realtime-chunk-checksum
  8784. command-line option.
  8785. --force-truncate -> --allow-overwrite
  8786. Set initial value of --check-integrity option to false.
  8787. Don't show usage when error occurs while persing command-line options.
  8788. Removed deprecated --upload-limit option.
  8789. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8790. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  8791. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  8792. * src/BtAllowedFastMessage.cc:
  8793. * src/BtBitfieldMessage.cc
  8794. * src/BtCancelMessage.cc
  8795. * src/BtChokeMessage.cc
  8796. * src/BtHaveAllMessage.cc
  8797. * src/BtHaveMessage.cc
  8798. * src/BtHaveNoneMessage.cc
  8799. * src/BtInterestedMessage.cc
  8800. * src/BtNotInterestedMessage.cc
  8801. * src/BtPieceMessage.cc
  8802. * src/BtPortMessage.cc
  8803. * src/BtRejectMessage.cc
  8804. * src/BtRequestMessage.cc
  8805. * src/BtSuggestPieceMessage.cc
  8806. * src/BtUnchokeMessage.cc
  8807. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  8808. files are affected.
  8809. * src/ChunkChecksumValidator.cc
  8810. * src/SegmentMan.cc
  8811. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8812. To add chunk checksum validation:
  8813. * src/MetalinkEntry.h
  8814. (MetalinkChunkChecksum.h): New include.
  8815. (chunkChecksum): New variable.
  8816. * src/Request.h
  8817. (method): New variable.
  8818. (setMethod): New function.
  8819. (getMethod): New function.
  8820. (METHOD_GET): New static constant.
  8821. (METHOD_HEAD): New static constant.
  8822. * src/Xml2MetalinkProcessor.h
  8823. (getPieceHash): New function.
  8824. * src/PieceStorage.h
  8825. (markAllPiecesDone): New function.
  8826. (checkIntegrity): New function.
  8827. * src/FileAllocator.h
  8828. (NullFileAllocationMonitor.h): New include.
  8829. (FileAllocator): Initialize fileAllocationMonitor with new
  8830. NullFileAllocationMonitor().
  8831. * src/MultiDiskAdaptor.h
  8832. (messageDigest.h): Remove include.
  8833. (ctx): Removed.
  8834. (hashUpdate): Added ctx.
  8835. (MultiDiskAdaptor): Removed ctx.
  8836. (sha1Sum): Renamed as messageDigest.
  8837. (messageDigest): New function.
  8838. * src/UrlRequestInfo.h
  8839. (HeadResult): New class.
  8840. (digestAlgo): New variable.
  8841. (chunkChecksumLength): New variable.
  8842. (chunkChecksums): New variable.
  8843. (getHeadResult): New function.
  8844. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  8845. (setDigestAlgo): New function.
  8846. (setChunkChecksumLength): New function.
  8847. (setChunkChecksums): New function.
  8848. * src/DefaultPieceStorage.cc
  8849. (DiskAdaptorWriter.h): New include.
  8850. (ChunkChecksumValidator.h): New include.
  8851. (markAllPiecesDone): New function.
  8852. (checkIntegrity): New function.
  8853. * src/DefaultBtContext.h
  8854. (getPieceHashes): New function.
  8855. * src/TorrentRequestInfo.cc
  8856. (execute): Try to validate chunk checksum if file already exists and
  8857. .aria2 file doesn't there and user allows aria2 to overwrite it.
  8858. * src/messageDigest.h
  8859. (~MessageDigestContext): Added digestFree().
  8860. * src/MetalinkRequestInfo.cc
  8861. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  8862. * src/DiskAdaptor.h
  8863. (messageDigest.h): New include.
  8864. (sha1Sum): Renamed as messageDigest.
  8865. (messageDigest): New function.
  8866. * src/DownloadCommand.h
  8867. (PeerStat.h): New include.
  8868. (maxDownloadSpeedLimit): New variable.
  8869. (startupIdleTime): New variable.
  8870. (lowestDownloadSpeedLimit): New variable.
  8871. (peerStat): New variable.
  8872. (setMaxDownloadSpeedLimit): New function.
  8873. (setStartupIdleTime): New function.
  8874. (setLowestDownloadSPeedLimit): New function.
  8875. * src/BtContext.h
  8876. (getPieceHashes): New function.
  8877. * src/main.cc
  8878. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  8879. option to true for testing purpose.
  8880. * src/BtPieceMessage.cc
  8881. (checkPieceHash): Use messageDigest
  8882. * src/DownloadEngine.cc
  8883. (SetDescriptor): Removed.
  8884. (AccumulateActiveCommand): Removed.
  8885. (waitData): Rewritten.
  8886. (updateFdSet): Rewritten.
  8887. * src/MultiDiskAdaptor.cc
  8888. (hashUpdate): Added ctx.
  8889. (sha1Sum): Renamed as messageDigest.
  8890. (messageDigest): New function.
  8891. * src/BitfieldMan.h
  8892. (isBitRangeSet): New function.
  8893. (unsetBitRange): New function.
  8894. * src/ByteArrayDiskWriter.h
  8895. (sha1Sum): Renamed as messageDigest.
  8896. (messageDigest): New function.
  8897. * src/ConsoleDownloadEngine.cc
  8898. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  8899. * src/DiskWriter.h
  8900. (messageDigest.h): New include.
  8901. (sha1Sum): Renamed as messageDigest.
  8902. (messageDigest): New function.
  8903. * src/ChunkChecksumValidator.h: New class.
  8904. * src/DiskAdaptorWriter.h: New class.
  8905. * src/prefs.h
  8906. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  8907. (PREF_CHECK_INTEGRITY): New definition.
  8908. * src/HttpResponseCommand.cc
  8909. (handleDefaultEncoding): Added method "HEAD" handling.
  8910. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8911. (handleOtherEncoding):
  8912. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  8913. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  8914. startupIdleTime, lowestDownloadSpeedLimit to command.
  8915. * src/SegmentMan.h
  8916. (getSegmentEntryByIndex): New function.
  8917. (getSegmentEntryByCuid): New function.
  8918. (getSegmentEntryIteratorByCuid): New function.
  8919. (diskWriter): DiskWriter -> DiskWriterHandle
  8920. (pieceHashes): New variable.
  8921. (chunkHashLength): New variable.
  8922. (digestAlgo): New variable.
  8923. (FindPeerStat): Removed.
  8924. (getPeerStat): Rewritten.
  8925. (markAllPiecesDone): New function.
  8926. (checkIntegrity): New function.
  8927. (tryChunkChecksumValidation): New function.
  8928. (isChunkChecksumValidationReady): New function.
  8929. * src/BitfieldMan.cc
  8930. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  8931. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  8932. blocks to 0.
  8933. (isBitRangeSet): New function.
  8934. (unsetBitRange): New function.
  8935. * src/FtpNegotiateCommand.cc
  8936. (executeInternal): Set maxDownloadSpeedLimit,
  8937. startupIdleTime, lowestDownloadSpeedLimit to command.
  8938. (recvSize): Added method "HEAD" handling.
  8939. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  8940. * src/AbstractSingleDiskAdaptor.cc
  8941. (sha1Sum): Renamed as messageDigest.
  8942. (messageDigest): New function.
  8943. * src/AbstractSingleDiskAdaptor.h
  8944. (sha1Sum): Renamed as messageDigest.
  8945. (messageDigest): New function.
  8946. * src/Util.h
  8947. (indexRange): New function.
  8948. * src/MetalinkEntry.cc
  8949. (MetalinkEntry): Initialized chunkChecksum to 0.
  8950. * src/ShaVisitor.cc
  8951. (~ShaVisitor): Removed the call to ctx.digestFree().
  8952. * src/SegmentMan.cc
  8953. (ChunkChecksumValidator.h): New include.
  8954. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  8955. to DIGEST_ALGO_SHA1.
  8956. (~SegmentMan): Removed diskWriter.
  8957. (FindSegmentEntryByIndex): Removed.
  8958. (FindSegmentEntryByCuid): Removed.
  8959. (checkoutSegment): Rewritten.
  8960. (findSlowerSegmentEntry): Rewritten.
  8961. (getSegment): Rewritten.
  8962. (updateSegment): Rewritten.
  8963. (completeSegment): Rewritten.
  8964. (markAllPiecesDone): New function.
  8965. (checkIntegrity): New function.
  8966. (isChunkChecksumValidationReady): New function.
  8967. (tryChunkChecksumValidation): New function.
  8968. * src/Xml2MetalinkProcessor.cc
  8969. (getEntry): Get size and set it to entry.
  8970. Get chunk checksum and set it to entry.
  8971. (getPieceHash): New function.
  8972. * src/Util.cc
  8973. (sha1Sum): Removed ctx.digestFree()
  8974. (fileChecksum): Removed ctx.digestFree()
  8975. (indexRange): New function.
  8976. * src/Request.cc
  8977. (METHOD_GET): New variable.
  8978. (METHOD_HEAD): New variable.
  8979. (Request): Added method.
  8980. * src/UrlRequestInfo.cc
  8981. (FatalException.h): New include.
  8982. (message.h): New include.
  8983. (operator<<): Added operator<< for class HeadResult.
  8984. (getHeadResult): New function.
  8985. (execute): Get filename and size in separate download engine.
  8986. * src/ChunkChecksumValidator.cc: New class.
  8987. * src/DownloadCommand.cc:
  8988. (DownloadCommand): Added peerStat.
  8989. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  8990. the value from Option.
  8991. The buffer size is now 16KB.
  8992. Use peerStat member instead of getting it from SegmentMan.
  8993. Use startupIdleTime member instead of gettingit from Option.
  8994. Added chunk checksum validation.
  8995. * src/AbstractDiskWriter.cc
  8996. (AbstractDiskWriter): Removed ctx.
  8997. (~AbstractDiskWriter): Removed ctx.digestFree()
  8998. (writeDataInternal): Returns the return value of write.
  8999. (readDataInternal): Returns the return value of read.
  9000. (sha1Sum): Renamed as messageDigest
  9001. (messageDigest): New function.
  9002. * src/AbstractDiwkWriter.h
  9003. (messageDigest.h): Removed include.
  9004. (ctx): Removed.
  9005. (sha1Sum): Renamed as messageDigest
  9006. (messageDigest): New function.
  9007. * src/DefaultPieceStorage.h
  9008. (markAllPiecesDone): New function.
  9009. (checkIntegrity): New function.
  9010. * src/NullFileAllocationMonitor.h: New class.
  9011. * src/MetalinkChunkChecksum.h: New class.
  9012. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9013. To decrease CPU usage in bittorrent download, calculation results in
  9014. BitfieldMan were cached and realtime fetching PeerObject was removed
  9015. with WeakHandle introduced. Option values are set to the objects
  9016. by setter before download begins.
  9017. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9018. * src/DefaultBtRequestFactory.h
  9019. (dispatcher): BtMessageDispatcherHandle ->
  9020. BtMessageDispatcherWeakHandle.
  9021. (messageFactory): New variable.
  9022. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9023. BtMessageDispatcherWeakHandle.
  9024. (setBtMessageFactory): New function.
  9025. * src/DefaultBtMessageDispatcher.cc:
  9026. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9027. from Option.
  9028. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9029. feating the value from Option.
  9030. Use messageFactory member.
  9031. * src/PeerInteractionCommand.cc
  9032. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9033. Add reverse dependencies to factory object.
  9034. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9035. dispatcher.
  9036. Set messageFactory to receiver.
  9037. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9038. btInteractive.
  9039. Set receiver to peerObject.
  9040. Set maxDownloadSpeedLimit to this.
  9041. (executeInternal): Use maxDownloadSpeedLimit member.
  9042. * src/BtChokeMessage.cc
  9043. (doReceivedAction): Use dispatcher, requestFactory member.
  9044. (onSendComplete): Use dispatcher member.
  9045. * src/PeerInteractionCommand.h
  9046. (maxDownloadSpeedLimit): New variable.
  9047. * src/DefaultBtMessageReceiver.h
  9048. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9049. (dispatcher):
  9050. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9051. (messageFactory): New variable.
  9052. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9053. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9054. (setDispatcher):
  9055. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9056. (setBtMessageFactory): New function.
  9057. * src/DefaultBtInteractive.cc
  9058. (initiateHandshake): Use messageFactory member.
  9059. (addBitfieldMessageToQueue): Use messageFactory member.
  9060. (addAllowedFastMessageToQueue): Use messageFactory member.
  9061. (decideChoking): Use messageFactory member.
  9062. (checkHave): Use messageFactory member.
  9063. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9064. (receiveMessages): Use maxDownloadSpeedLimit member.
  9065. (decideInterest): Use messageFactory member.
  9066. * src/BtRequestMessage.cc
  9067. (doReceivedAction): Use messageFactory, dispatcher member.
  9068. (onQueued): Use dispatcher member.
  9069. * src/BtPieceMessage.cc
  9070. (doReceivedAction): Use dispatcher member.
  9071. (send): Use peerConnection member.
  9072. (onWrongPiece): Use requestFactory member.
  9073. (handleChokingEvent): Use messageFactory, dispatcher member.
  9074. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9075. * src/BtMessageDispatcher.h
  9076. (BtMessageDispatcherWeakHandle): New type definition.
  9077. * src/SimpleBtMessage.cc
  9078. (send): Use peerConnection member.
  9079. * src/BtRejectMessage.cc
  9080. (doReceivedAction): Use dispatcher member.
  9081. * src/DefaultBtMessageDispatcher.h
  9082. (Option.h): Removed include.
  9083. (messageFactory): New variable.
  9084. (option): Removed.
  9085. (maxUploadSpeedLimit): New variable.
  9086. (requestTimeout): New variable.
  9087. (DefaultBtMessageDispatcher): Removed option.
  9088. Added maxUploadSpeedLimit, requestTimeout.
  9089. (setOption): Removed.
  9090. (getOption): Removed.
  9091. (setMaxUploadSpeedLimit): New function.
  9092. (setRequestTimeout): New function.
  9093. (setBtMessageFactory): New function.
  9094. * src/DefaultBtInteractive.h
  9095. (btMessageReceiver):
  9096. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9097. (dispatcher):
  9098. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9099. (btRequestFactory):
  9100. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9101. (peerConnection):
  9102. PeerConnectionHandle -> PeerConnectionWeakHandle
  9103. (messageFactory): New variable.
  9104. (option): Removed.
  9105. (keepAliveInterval): New variable.
  9106. (maxDownloadSpeedLimit): New variable.
  9107. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9108. (setBtMessageReceiver):
  9109. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9110. (setDispatcher):
  9111. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9112. (setBtRequestFactory):
  9113. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9114. (setPeerConnection):
  9115. PeerConnectionHandle -> PeerConnectionWeakHandle
  9116. (setOption): Removed.
  9117. (setKeepAliveInterval): New function.
  9118. (setMaxDownloadSpeedLimit): New function.
  9119. (setBtMessageFactory): New function.
  9120. * src/BitfieldMan.h
  9121. (cachedNumMissingBlock): New variable.
  9122. (cachedNumFilteredBlock): New variable.
  9123. (cachedCompletedLength): New variable.
  9124. (cachedFilteredComletedLength): New variable.
  9125. (cachedFilteredTotalLength): New variable.
  9126. (countMissingBlockNow): New function.
  9127. (countFilteredBlockNow): New function.
  9128. (getFilteredTotalLengthNow): New function.
  9129. (getCompletedLengthNow): New function.
  9130. (getFilteredCompletedLengthNow): New function.
  9131. (updateCache): New function.
  9132. * src/AbstractBtMessage.h
  9133. (BtMessageDispatcher.h): New include.
  9134. (PeerConnection.h): New include.
  9135. (BtRequestFactory.h): New include
  9136. (BtMessageFactory.h): New include.
  9137. (dispatcher): New variable.
  9138. (messageFactory): New variable.
  9139. (peerConnection: New variable.
  9140. (setBtMessageDispatcher): New function.
  9141. (setPeerConnection): New function.
  9142. (setBtMessageFactory): New function.
  9143. (setBtRequestFactory): New function.
  9144. * src/DefaultBtMessageFactory.cc
  9145. (setCommonProperty): Set dispatcher, requestFactory, this,
  9146. peerConnection to msg.
  9147. * src/BtRegistry.h
  9148. (BT_MESSAGE_RECEIVER): New macro.
  9149. * src/PeerConnection.h
  9150. (PeerConnectionWeakHandle): New type definition.
  9151. * src/BtMessageFactory.h
  9152. (BtMessageFactoryWeakHandle): New type definition.
  9153. * src/BitfieldMan.cc
  9154. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9155. cachedCompletedLength, cachedFilteredComletedLength,
  9156. cachedFilteredTotalLength.
  9157. Call updateCache().
  9158. (countMissingBlock): Return cachedNumMissingBlock.
  9159. (countMissingBlockNow): New function.
  9160. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9161. (countFilteredBlockNow): New function.
  9162. (setBit): Call updateCache().
  9163. (unsetBit): Call updateCache().
  9164. (setBitfield): Call updateCache().
  9165. (clearAllBit): Call updateCache().
  9166. (setAllBit): Use setBitInternal instead of setBit.
  9167. Call updateCache().
  9168. (addFilter): Call updateCache().
  9169. (enableFilter): Call updateCache().
  9170. (disableFilter): Call updateCache().
  9171. (clearFilter): Call updateCache().
  9172. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9173. (getFilteredTotalLengthNow): New function.
  9174. (getCompletedLength): Return cachedCompletedLength.
  9175. (getCompletedLengthNow): New function.
  9176. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9177. (getFilteredCompletedLengthNow): New function.
  9178. (updateCache): New function.
  9179. * src/BtMessageReceiver.h
  9180. (BtMessageReceiverWeakHandle): New type definition.
  9181. * src/DefaultBtMessageReceiver.cc
  9182. (receiveHandshake): Use messageFactory member.
  9183. (sendHandshake): Use messageFactory member.
  9184. (receiveMessage): Use messageFactory member.
  9185. * src/DefaultBtMessageFactory.h
  9186. (dispatcher): New variable.
  9187. (requestFactory): New variable.
  9188. (peerConnection): New variablle.
  9189. (setBtMessageDispatcher): New function.
  9190. (setBtRequestFactory): New function.
  9191. (setPeerConnection): New function.
  9192. * src/SharedHandle.h
  9193. (RefCount): New class.
  9194. (WeakHandle): New class.
  9195. * src/PeerObject.h
  9196. (BtMessageReceiver.h): New include.
  9197. (PeerObject): Added btMessageReceiver.
  9198. (btMessageReceiver): New variable.
  9199. * src/Util.cc
  9200. (countBit): Simplified.
  9201. * src/BtCancelMessage.cc
  9202. (doReceivedAction): Use dispatcher member.
  9203. * src/BtRequestFactory.h
  9204. (BtRequestFactoryWeakHandle): New type definition.
  9205. * src/PeerStorage.h
  9206. (downloadSpeed): int -> uint32_t
  9207. (uploadSpeed): int -> uint32_t
  9208. (sessionDownloadLength): long long int -> uint64_t
  9209. (sessionUploadLength): long long int -> uint64_t
  9210. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9211. To add RecoverableException, FatalException:
  9212. * src/AbstractCommand.cc
  9213. (onAbort): Exception -> RecoverableException
  9214. * src/PeerAbstractCommand.h
  9215. (RecoverableException.h): New include.
  9216. (onAbort): Exception -> RecoverableException.
  9217. * src/PeerInteractionCommand.cc
  9218. (onAbort): Exception -> RecoverableException.
  9219. * src/PeerAbstractCommand.cc
  9220. (execute): Exception -> RecoverableException.
  9221. (onAbort): Exception -> RecoverableException.
  9222. * src/TorrentRequestInfo.cc
  9223. (execute): Exception -> RecoverableException.
  9224. * src/MetalinkRequestInfo.cc
  9225. (execute): Exception -> RecoverableException.
  9226. * src/MetaFileUtil.cc: RecoverableException.
  9227. * src/AbstractCommand.h
  9228. (onAbort): Exception -> RecoverableException.
  9229. * src/DlRetryEx.h: Exception -> RecoverableException.
  9230. * src/DlAbortEx.h: Exception -> RecoverableException.
  9231. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9232. * src/Util.cc: Exception -> RecoverableException.
  9233. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9234. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9235. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9236. To make ID static const int
  9237. * src/BtInterestedMessage.h
  9238. (ID_t): Removed.
  9239. (ID): New variable.
  9240. (getId): Made non-const.
  9241. * src/BtPieceMessage.h
  9242. (ID_t): Removed.
  9243. (ID): New variable.
  9244. (getId): Made non-const.
  9245. * src/BtChokeMessage.h
  9246. (ID_t): Removed.
  9247. (ID): New variable.
  9248. (getId): Made non-const.
  9249. * src/BtHaveAllMessage.h
  9250. (ID_t): Removed.
  9251. (ID): New variable.
  9252. (getId): Made non-const.
  9253. * src/BtKeepAliveMessage.h
  9254. (ID_t): Removed.
  9255. (ID): New variable.
  9256. (getId): Made non-const.
  9257. * src/BtHandshakeMessage.h
  9258. (ID): New variable.
  9259. (getId): Made non-const.
  9260. * src/BtSuggestPieceMessage.h
  9261. (ID_t): Removed.
  9262. (ID): New variable.
  9263. (getId): Made non-const.
  9264. * src/BtPortMessage.h
  9265. (ID_t): Removed.
  9266. (ID): New variable.
  9267. (getId): Made non-const.
  9268. * src/AbstractBtMessage.h
  9269. (id): Removed.
  9270. (AbstractBtMessage): Removed id.
  9271. (getId): Removed.
  9272. * src/BtHaveMessage.h
  9273. (ID_t): Removed.
  9274. (ID): New variable.
  9275. (getId): Made non-const.
  9276. * src/BtAllowedFastMessage.h
  9277. (ID_t): Removed.
  9278. (ID): New variable.
  9279. (getId): Made non-const.
  9280. * src/BtCancelMessage.h
  9281. (ID_t): Removed.
  9282. (ID): New variable.
  9283. (getId): Made non-const.
  9284. * src/BtNotInterestedMessage.h
  9285. (ID_t): Removed.
  9286. (ID): New variable.
  9287. (getId): Made non-const.
  9288. * src/BtChokeMessage.h
  9289. (ID_t): Removed.
  9290. (ID): New variable.
  9291. (getId): Made non-const.
  9292. * src/BtRejectMessage.h
  9293. (ID_t): Removed.
  9294. (ID): New variable.
  9295. (getId): Made non-const.
  9296. * src/BtBitfieldMessage.h
  9297. (ID_t): Removed.
  9298. (ID): New variable.
  9299. (getId): Made non-const.
  9300. * src/BtUnchokeMessage.h
  9301. (ID_t): Removed.
  9302. (ID): New variable.
  9303. (getId): Made non-const.
  9304. * src/BtRequestMessage.h
  9305. (ID_t): Removed.
  9306. (ID): New variable.
  9307. (getId): Made non-const.
  9308. * src/BtHaveMessage.h
  9309. (ID_t): Removed.
  9310. (ID): New variable.
  9311. (getId): Made non-const.
  9312. To add --force-truncate command-line option and a check whether
  9313. the file already exists:
  9314. * src/DirectDiskAdaptor.h
  9315. (getFilePath): Made virtual public.
  9316. * src/MultiDiskAdaptor.h
  9317. (File.h): New include.
  9318. (DiskWriterEntry::fileEntry): Made private.
  9319. (DiskWriterEntry::fileExists): New function.
  9320. (DiskWriterEntry::getFileEntry): New function.
  9321. (fileExists): New function.
  9322. (getFilePath): New function.
  9323. * src/TorrentRequestInfo.cc
  9324. (FatalException.h): New include.
  9325. (message.h): New include.
  9326. (RecoverableException.h): New include.
  9327. (execute): Added a check whether file is already exists or not.
  9328. * src/DiskAdaptor.h
  9329. (fileExists): New function.
  9330. (getFilePath): New function.
  9331. * src/main.cc
  9332. (showUsage): Added an explanation of --force-truncate command-line
  9333. option.
  9334. (main): Added --force-truncate command-line option.
  9335. * src/Exception.h
  9336. (setMsg): buf[256] -> buf[1024]
  9337. * src/CopyDiskWriter.h
  9338. (getFilePath): Made public virtual.
  9339. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9340. (fileExists): New function.
  9341. * src/DownloadEngineFactory.cc
  9342. (newTorrentConsoleEngine): Don't open file here.
  9343. * src/message.h
  9344. (EX_FILE_ALREADY_EXISTS): New definition.
  9345. * src/prefs.h
  9346. (PREF_FOECE_TRUNCATE): New definition.
  9347. * src/HttpResponseCommand.cc
  9348. (handleDefaultEncoding): Added a check whether the file already exists.
  9349. * src/SegmentMan.h
  9350. (fileExists): New function.
  9351. (shouldCancelDownloadForSafety): New function.
  9352. * src/FtpNegotiateCommand.cc
  9353. (recvSize): Added a check whether the file already exists.
  9354. * src/AbstractSingleDiskAdaptor.cc
  9355. (File.h): New include.
  9356. (fileExists): New function.
  9357. * src/AbstractSingleDiskAdaptor.h
  9358. (getFilePath): Removed.
  9359. (fileExists): New function.
  9360. * src/SegmentMan.cc
  9361. (fileExists): New function.
  9362. (shouldCancelDownloadForSafety): New function.
  9363. To fix regression bug in torrent downloading:
  9364. * src/DefaultBtRequestFactory.cc
  9365. (doChokedAction): New function.
  9366. * src/DefaultBtRequestFactory.h
  9367. (doChokedAction): New function.
  9368. * src/DefaultBtMessageDispatcher.cc
  9369. (doChokedAction): Do not delete request if its target is in allowed
  9370. fast set.
  9371. * src/DefaultBtInteractive.cc
  9372. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9373. (sendKeepAlive): Send keep alive message even if the outgoing message
  9374. queue is not empty.
  9375. (decideInterest): Simplified the code.
  9376. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9377. it is already called when BtChokeMessage is received from a peer.
  9378. * src/BtRequestFactory.h
  9379. (doChokedAction): New function.
  9380. To clean up code:
  9381. * src/PeerInteractionCommand.h
  9382. (executeInternal): Added virtual keyword explicitly.
  9383. (prepareForRetry): Added virtual keyword explicitly.
  9384. (prepareForNextPeer): Added virtual keyword explicitly.
  9385. (onAbort): Added virtual keyword explicitly.
  9386. * src/RequestSlot.cc
  9387. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9388. * src/BtPieceMessage.cc
  9389. (doReceivedAction): Added a debug log of piece's bitfield.
  9390. * src/Piece.h
  9391. (getBitfieldLength): New function.
  9392. * src/ByteArrayDiskWriter.cc
  9393. (clear): Added buf = 0 to avoid double free corruption.
  9394. * src/FileAllocator.cc
  9395. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9396. Added cp.reset().
  9397. * src/BitfieldMan.h
  9398. (operator=): Rewritten.
  9399. * src/BitfieldMan.cc
  9400. (BitfieldMan): Initialized bitfield, useBitfield.
  9401. * src/PeerConnection.cc
  9402. (receiveMessage): Added a call to socket->readable() after getting
  9403. message length to avoid possible EOF.
  9404. * src/Util.cc
  9405. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9406. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9407. To add an ability to pre-allocate file space:
  9408. * src/DirectDiskAdaptor.h: Rewritten.
  9409. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9410. * src/MultiDiskAdaptor.h: Rewritten.
  9411. * src/DefaultPieceStorage.cc
  9412. (MultiDiskWriter.h): Removed include.
  9413. (PreAllocationDiskWriter.h): Removed include.
  9414. (FileAllocationMonitor.h): New include.
  9415. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9416. (initStorage): Rewritten.
  9417. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9418. * src/FileAllocator.h: New class.
  9419. * src/FileAllocator.cc: New class.
  9420. * src/FileAllocationMonitor.h: New class.
  9421. * src/FileAllocationMonitor.cc: New class.
  9422. * src/ConsoleFileAllocationMonitor.h: New class.
  9423. * src/ConsoleFileAllocationMonitor.cc: New class.
  9424. * src/AbstractSingleDiskAdaptor.h: New class.
  9425. * src/AbstractSingleDiskAdaptor.cc: New class.
  9426. * src/DiskAdaptor.h
  9427. (Directory.h): Removed include.
  9428. (DiskWriter.h): Removed include.
  9429. (FileEntry.h): Removed include.
  9430. (diskWriter): Removed.
  9431. (DiskAdaptor): Removed diskWriter.
  9432. (openFile): Made pure virtual.
  9433. (closeFile): Made pure virtual.
  9434. (openExistingFile): Made pure virtual.
  9435. (initAndOpenFile): Made pure virtual.
  9436. (writeData): Made pure virtual.
  9437. (readData): Made pure virtual.
  9438. (sha1Sum): Made pure virtual.
  9439. (getStoreDir): Returns const reference of storeDir.
  9440. (DiskAdaptorHandle): New type definition.
  9441. * src/main.cc
  9442. (ConsoleFileAllocationMonitor.h): New include.
  9443. (showUsage): Added default value description of -s option.
  9444. Added the description of --file-allocation option.
  9445. (main): Set default value of --file-allocation option to 'none'.
  9446. Added --file-allocation command-line option.
  9447. Setup FileAllocationMonitorFactory.
  9448. * src/FtpInitiateConnectionCommand.cc
  9449. (executeInternal): Removed diskWriter related processing, which was
  9450. moved to FtpNegotiationCommand.cc.
  9451. * src/DirectDiskAdaptor.cc
  9452. (getFilePath): Made non-const.
  9453. * src/CopyDiskAdaptor.h
  9454. (DiskAdaptor.h): Removed include.
  9455. (DiskWriter.h): Removed include.
  9456. (AbstractSingleDiskAdaptor.h): New include.
  9457. (getFilePath): Made non-const. Added virtual keyword.
  9458. (CopyDiskAdaptor): Removed diskWriter.
  9459. (getTempFile): Returns const reference.
  9460. (CopyDiskAdaptorHandle): New type definition.
  9461. * src/ByteArrayDiskWriter.cc
  9462. (clear): Simplified.
  9463. (initAndOpenFile): Rewritten.
  9464. (openFile): Call initAndOpenFile()
  9465. * src/MultiDiskAdaptor.cc: Rewritten.
  9466. * src/DownloadEngineFactory.cc
  9467. (FileAllocator.h): New include.
  9468. (FileAllocationMonitor.h): New include.
  9469. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9470. create DefaultDiskWriter with file allocator.
  9471. * src/DiskWriter.h
  9472. (initAndOpenFile): Added totalLength argument.
  9473. (openFile): Added totalLength argument.
  9474. * src/prefs.h
  9475. (PREF_FILE_ALLOCATION): New definition.
  9476. (V_PREALLOC): New definition.
  9477. (V_NONE): New definition.
  9478. * src/HttpResponseCommand.cc
  9479. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9480. size.
  9481. * src/FtpNegotiateCommand.cc
  9482. (Util.h): New include.
  9483. (recvSize): Open file here.
  9484. * src/Util.h
  9485. (ullitos): New function.
  9486. * src/CopyDiskWriter.h
  9487. (getFilePath): Made non-const.
  9488. * src/DefaultDiskWriter.h
  9489. (Option.h): New include.
  9490. (totalLength): Removed.
  9491. (DefaultDiskWriter): Removed totalLength.
  9492. (initAndOpenFile): Added totalLength argument.
  9493. (DefaultDiskWriterHandle): New type definition.
  9494. (createNewDiskWriter): New function.
  9495. * src/Util.cc
  9496. (ullitos): New function.
  9497. * src/DefaultDiskWriter.cc
  9498. (message.h): New include.
  9499. (FileAllocator.h): New include.
  9500. (prefs.h): New include.
  9501. (Util.h): New include.
  9502. (DefaultDiskWriter): Removed totalLength.
  9503. (initAndOpenFile): Added file allocation.
  9504. (createNewDiskWriter): New function. Just for temporary solution.
  9505. It will be rewritten later.
  9506. * src/DiskAdaptor.cc
  9507. (DiskAdaptor): Removed diskWriter.
  9508. * src/AbstractDiskWriter.cc
  9509. (LogFactory.h): New include.
  9510. (AbstractDiskWriter): Added fileAllocator, logger.
  9511. (openFile): Added totalLength argument.
  9512. * src/AbstractDiskWriter.h
  9513. (FileAllocator.h): New include.
  9514. (Logger.h): New include.
  9515. (fileAllocator): New variable.
  9516. (logger): New variable.
  9517. (openFile): Added totalLength argument. Added virtual keyword
  9518. explicitly.
  9519. (openExistingFile): Added totalLength argument. Added virtual keyword
  9520. explicitly.
  9521. (closeFile): Added virtual keyword explicitly.
  9522. (sha1Sum): Added virtual keyword explicitly.
  9523. (writeData): Added virtual keyword explicitly.
  9524. (readData): Added virtual keyword explicitly.
  9525. (setFileAllocator): New function.
  9526. * src/DefaultPieceStorage.h
  9527. (FileAllocator.h): New include.
  9528. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9529. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9530. * src/FileProgressMonitor.h: New class.
  9531. To compile aria2 on PC-BSD:
  9532. * src/DefaultBtContext.cc
  9533. (libgen.h): New include.
  9534. To fix memory leak:
  9535. * src/Exception.h
  9536. (~Exception): Delete cause. Fixed memory leak.
  9537. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9538. Rewritten a portion of bittorrent implementation:
  9539. * src/BtMessageValidator.h: New class.
  9540. * src/BtBitfieldMessageValidator.h: New class.
  9541. * src/BtHandshakeMessageValidator.h: New class.
  9542. * src/BtRequestMessageValidator.h: New class.
  9543. * src/BtSuggestPieceMessageValidator.h: New class.
  9544. * src/BtAllowedFastMessageValidator.h: New class.
  9545. * src/BtRejectMessageValidator.h: New class.
  9546. * src/BtCancelMessageValidator.h: New class.
  9547. * src/BtPieceMessageValidator.h: New class.
  9548. * src/BtHaveMessageValidator.h: New class.
  9549. * src/BtEventListener.h: New class.
  9550. * src/AbstractBtEventListener.h: New class.
  9551. * src/BtEvent.h: New class.
  9552. * src/BtChokingEvent.h: New class.
  9553. * src/BtChokedEvent.h: New class.
  9554. * src/BtCancelSendingPieceEvent.h: New class.
  9555. * src/BtAbortOutstandingRequestEvent.h: New class.
  9556. * src/Randomizer.h: New class.
  9557. * src/SimpleRandomizer.h: New class.
  9558. * src/BtMessage.h: New class.
  9559. * src/AbstractBtMessage.h: New class.
  9560. * src/SimpleBtMessage.h: New class.
  9561. * src/BtHaveMessage.h: New class.
  9562. * src/BtInterestedMessage.h: New class.
  9563. * src/BtAllowedFastMessage.h: New class.
  9564. * src/BtUnchokeMessage.h: New class.
  9565. * src/BtCancelMessage.h: New class.
  9566. * src/BtNotInterestedMessage.h: New class.
  9567. * src/BtChokeMessage.h: New class.
  9568. * src/BtHaveNoneMessage.h: New class.
  9569. * src/BtHandshakeMessage.h: New class.
  9570. * src/BtSuggestPieceMessage.h: New class.
  9571. * src/BtHaveMessage.h: New class.
  9572. * src/BtPieceMessage.h: New class.
  9573. * src/BtHaveAllMessage.h: New class.
  9574. * src/BtKeepAliveMessage.h: New class.
  9575. * src/BtPortMessage.h: New class.
  9576. * src/BtRejectMessage.h: New class.
  9577. * src/BtBitfieldMessage.h: New class.
  9578. * src/BtRequestMessage.h: New class.
  9579. * src/DefaultBtRequestFactory.h: New class.
  9580. * src/DefaultBtMessageReceiver.h: New class.
  9581. * src/BtInteractive.h: New class.
  9582. * src/BtMessageDispatcher.h: New class.
  9583. * src/DefaultBtMessageDispatcher.h: New class.
  9584. * src/DefaultBtInteractive.h: New class.
  9585. * src/BitfieldManFactory.h: New class.
  9586. * src/HandleRegistry.h: New class.
  9587. * src/BtMessageFactory.h: New class.
  9588. * src/BtMessageReceiver.h: New class.
  9589. * src/DefaultBtMessageFactory.h: New class.
  9590. * src/PeerObject.h: New class.
  9591. * src/BtRequestFactory.h: New class.
  9592. * src/SuggestPieceMessage.h: Removed.
  9593. * src/PortMessage.h: Removed.
  9594. * src/SuggestPieceMessage.h: Removed.
  9595. * src/KeepAliveMessage.h: Removed.
  9596. * src/HandshakeMessage.h: Removed.
  9597. * src/PeerInteraction.h: Removed.
  9598. * src/UnchokeMessage.h: Removed.
  9599. * src/PieceMessage.h: Removed.
  9600. * src/RequestMessage.h: Removed.
  9601. * src/InterestedMessage.h: Removed.
  9602. * src/HaveMessage.h: Removed.
  9603. * src/CancelMessage.h: Removed.
  9604. * src/RejectMessage.h: Removed.
  9605. * src/AllowedFastMessage.h: Removed.
  9606. * src/HaveNoneMessage.h: Removed.
  9607. * src/SimplePeerMessage.h: Removed.
  9608. * src/HaveAllMessage.h: Removed.
  9609. * src/BitfieldMessage.h: Removed.
  9610. * src/PeerMessageFactory.h: Removed.
  9611. * src/NotInterestedMessage.h: Removed.
  9612. * src/ChokeMessage.h: Removed.
  9613. * src/PeerMessage.h: Removed.
  9614. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9615. To know root cause of exception:
  9616. * src/Exception.h
  9617. (cause): New variable.
  9618. (Exception): Added a parameter.
  9619. (getMsg): Return const reference to msg.
  9620. (getCause): New function.
  9621. * src/DlRetryEx.h
  9622. (DlRetryEx): Added a parameter 'cause'.
  9623. Added an overloaded constructor.
  9624. (DlAbortEx): Added a parameter 'cause'.
  9625. Added an overloaded constructor.
  9626. * src/SimpleLogger.cc
  9627. (writeLog): Log nested exception messages recursively.
  9628. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9629. * src/DefaultBtProgressInfoFile.cc
  9630. (load): Fixed memory leak when the infohash doesn't match.
  9631. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9632. * src/DefaultPeerStorage.cc
  9633. (calculateStat): Simplified the code by combining 2 loops into 1.
  9634. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9635. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9636. for BitTorrent download:
  9637. * src/PeerAbstractCommand.cc
  9638. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9639. * src/main.cc:
  9640. (timeoutSpecified): Removed.
  9641. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9642. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9643. * src/TorrentRequestInfo.cc
  9644. (timeoutSpecified): Removed.
  9645. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9646. timeout value.
  9647. * src/prefs.h
  9648. (PREF_BT_TIMEOUT): New definition.
  9649. Delete unused variables:
  9650. * src/TorrentRequestInfo.cc
  9651. (requestInfo): Removed.
  9652. Move setSignalHander to Util::setGlobalSignalHandler:
  9653. * src/TorrentRequestInfo.cc:
  9654. setSignalHander -> Util::setGlobalSignalHandler
  9655. * src/main.cc
  9656. (setSignalHander): Removed.
  9657. (main): setSignalHander -> Util::setGlobalSignalHandler
  9658. * src/Util.h
  9659. (setGlobalSignalHandler): New function.
  9660. * src/Util.cc
  9661. (setGlobalSignalHandler): New function.
  9662. * src/UrlRequestInfo.cc:
  9663. setSignalHander -> Util::setGlobalSignalHandler
  9664. Reset peer status in order to exit gracefully:
  9665. * src/PeerAbstractCommand.cc
  9666. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9667. To fix the bug that causes the number of bytes uploaded is not saved
  9668. to .aria2 file:
  9669. * src/DefaultPeerStorage.h
  9670. (removedPeerSessionDownloadLength): New variable.
  9671. (removedPeerSessionUploadLength): New variable.
  9672. * src/DefaultPeerStorage.cc
  9673. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9674. removedPeerSessionUploadLength(0).
  9675. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9676. through all peers, and then add removedPeerSessionDownloadLength(
  9677. removedPeerSessionUploadLength) to it.
  9678. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9679. (to) the peer to removedPeerSessionDownloadLength
  9680. (removedPeerSessionUploadLength).
  9681. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9682. To add Metalink location option:
  9683. * src/MetalinkRequestInfo.cc
  9684. (execute): Call MetalinkEntry::setLocationPreference()
  9685. * src/main.cc
  9686. (showUsage): Added the help message for --metalink-location option.
  9687. (main): Added --metalink-location option.
  9688. * src/prefs.h
  9689. (PREF_METALINK_LOCATION): New definition.
  9690. * src/MetalinkEntry.cc
  9691. (AddLocationPreference): New function object.
  9692. (setLocationPreference): New function.
  9693. * src/Xml2MetalinkProcessor.cc
  9694. (getResource): Set location attribute to MetalinkResource
  9695. To show URLs to download
  9696. * src/UrlRequestInfo.h
  9697. (printUrls): New function.
  9698. To add multiple <file> Metalink support:
  9699. * src/MetalinkEntry.h
  9700. (MetalinkResources): Removed.
  9701. (setLocationPreference): New function.
  9702. (MetalinkEntryHandle): New type definition.
  9703. (MetalinkEntries): New type definition.
  9704. * src/Xml2MetalinkProcessor.h
  9705. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9706. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9707. (parseFile): Metalinker* -> MetalinkerHandle
  9708. * src/UrlRequestInfo.h
  9709. (execute): RequestInfo* -> RequestInfos
  9710. * src/MetalinkRequestInfo.cc
  9711. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9712. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9713. (execute): RequestInfo* -> RequestInfos
  9714. Added multiple <file> support. Print filename when it is queued.
  9715. * src/MetalinkRequestInfo.h
  9716. (execute): RequestInfo* -> RequestInfos
  9717. (getDownloadEngine): Removed.
  9718. * src/RequestInfo.h
  9719. (RequestInfoHandle): New type definition.
  9720. (RequestInfos): New type definition.
  9721. (execute): RequestInfo* -> RequestInfos
  9722. (getDownloadEngine): Removed.
  9723. * src/MetalinkResource.h
  9724. (MetalinkResourceHandle): New type definition.
  9725. (MetalinkResources): New type definition.
  9726. * src/MetalinkEntry.cc
  9727. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9728. because the element is now of type MetalinkResourceHandle.
  9729. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9730. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9731. (dropUnsupportedResource): Removed the deletion of the elements of
  9732. resources because the element is now of type MetalinkResourceHandle.
  9733. * src/Xml2MetalinkProcessor.cc
  9734. (parseFile): Metalinker* -> MetalinkerHandle
  9735. MetalinkEntry* -> MetalinkEntryHandle
  9736. Removed try-catch block.
  9737. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9738. MetalinkResource* -> MetalinkResourceHandle
  9739. Removed try-catch block.
  9740. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9741. Free result by using xmlXPathFreeObject()
  9742. * src/Metalinker.cc
  9743. (~Metalinker): Removed the deletion of entries.
  9744. MetalinkEntry* -> MetalinkEntryHandle
  9745. (queryEntry): Add multiple <file> Metalink support.
  9746. * src/Metalinker.h
  9747. (MetalinkEntries): Removed.
  9748. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9749. * src/MetalinkProcessor.h
  9750. (parseFile): Metalinker* -> MetalinkerHandle
  9751. Bug fixes:
  9752. * src/PeerChokeCommand.cc
  9753. (execute): cat01->cat02
  9754. * src/DefaultPieceStorage.cc
  9755. (DefaultPieceStorage): Added diskAdaptor(0)
  9756. * src/TrackerWatcherComand.cc:
  9757. (execute): Use btAnnounce->noMoreAnnounce()
  9758. to determin whether the function returns true or not.
  9759. * src/TrackerUpdateCommand.cc:
  9760. (execute): Use btAnnounce->noMoreAnnounce()
  9761. to determin whether the function returns true or not.
  9762. * src/FtpConnection.cc
  9763. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9764. This is the fix of the busy loop bug.
  9765. * src/DownloadCommand.cc
  9766. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9767. cached PeerStat.
  9768. The value of "name" entry in torrent file is now set by
  9769. *DiskAdaptor::setTopDir(...) methods.
  9770. * src/MultiDiskAdaptor.h
  9771. (topDir): New variable.
  9772. (setTopDir): New function.
  9773. (getTopDir): New function.
  9774. * src/MultiDiskAdaptor.cc
  9775. (getFilePath): Concat storDir, "/" and topDir.
  9776. (mkdir): Use getFilePath() to get the directory path for output.
  9777. * src/DefaultPieceStorage.cc
  9778. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  9779. CopyDiskAdaptor.
  9780. * src/CopyDiskAdaptor.h
  9781. (topDir): New variable.
  9782. (setTopDir): New function.
  9783. (getTopDir): New function.
  9784. * src/CopyDiskAdaptor.cc
  9785. (fixFilename): Updated.
  9786. Misc
  9787. * src/UrlRequestInfo.h
  9788. (e): Removed.
  9789. (UrlRequestInfo): Removed e.
  9790. (getDownloadEngine): Removed.
  9791. * src/UrlRequestInfo.cc
  9792. (handler): Rewritten.
  9793. (printUrls): New function.
  9794. (execute): Call printUrls().
  9795. * src/HandshakeMessage.cc
  9796. (check): peerinteraction->getBtContext() -> btContext
  9797. * src/PeerInteraction.h
  9798. (getBtContext): Removed.
  9799. * src/TorrentRequestInfo.h
  9800. (execute): RequestInfo* -> RequestInfos
  9801. (getDownloadEngine): Removed.
  9802. * src/TorrentRequestInfo.cc
  9803. (haltRequested): Removed.
  9804. (btHaltRequested): New variable.
  9805. (torrentHandler): haltRequested -> btHaltRequested
  9806. (execute): RequestInfo* -> RequestInfos
  9807. * src/TorrentConsoleDownloadEngine.cc
  9808. (afterEachIteration): haltRequested -> btHaltRequested.
  9809. * src/ConsoleDownloadEngine.h
  9810. (initStatistics): Added virtual.
  9811. (calculateStatistics): Added virtual.
  9812. (onEndOfRun): Added virtual.
  9813. (afterEachIteration): Added virtual.
  9814. * src/ConsoleDownloadEngine.cc
  9815. (haltRequested): New variable.
  9816. (afterEachIteration): New function.
  9817. * src/main.cc
  9818. (requestInfo): Removed.
  9819. * src/SegmentMan.cc
  9820. (findSlowerSegmentEntry): Refactored.
  9821. * Release 0.9.0
  9822. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9823. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  9824. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  9825. * src/TorrentMan.h: Removed.
  9826. * src/TorrentMan.cc: Removed.
  9827. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  9828. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  9829. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  9830. * src/PeerAbstractCommand.cc: Use btRuntime.
  9831. * src/BtContextAwareCommand.h: New class.
  9832. * src/FileEntry.h: Added accessor methods for following variables.
  9833. (path): Made private.
  9834. (length): Made private.
  9835. (offset): Made private.
  9836. (extracted): Made private.
  9837. (requested): Made private.
  9838. (FileEntries): New definition.
  9839. (FileEntryHandle): New definition.
  9840. * src/FileEntry.cc: New file.
  9841. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  9842. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  9843. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  9844. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  9845. * src/PieceStorage.h: New file.
  9846. * src/PeerInteractionCommand.h: Use btContext.
  9847. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  9848. btRuntime.
  9849. * src/DefaultBtProgressInfoFile.h: New file.
  9850. * src/DefaultBtProgressInfoFile.cc: New file.
  9851. * src/File.cc
  9852. (Util.h): New include.
  9853. (mkdirs): New function.
  9854. * src/MultiDiskAdaptor.h
  9855. (mkdir): New function.
  9856. * src/PeerListProcessor.h
  9857. (Peers): Removed.
  9858. * src/PeerInteraction.h
  9859. (torrentMan): Removed.
  9860. (btContext): New variable.
  9861. (peerStorage): New variable.
  9862. (pieceStorage): New variable.
  9863. (btAnnounce): New variable.
  9864. (getTorrentMan): Removed.
  9865. (getBtContext): New function.
  9866. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  9867. btAnnounce.
  9868. * src/HandshakeMessage.h
  9869. (TorrentMan.h): Removed.
  9870. * src/HandshakeMessage.cc: Use btContext.
  9871. * src/DefaultBtAnnounce.cc: New file.
  9872. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  9873. * src/DefaultPieceStorage.cc: New file.
  9874. * src/DefaultBtContext.h: New file.
  9875. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  9876. Use the accessor methods of FileEntry.
  9877. * src/CookieBox.cc: Updated to use Util::slice().
  9878. * src/PieceMessage.cc: Use btContext, pieceStorage.
  9879. * src/common.h (SharedHandle.h): New include.
  9880. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  9881. pieceStorage.
  9882. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  9883. * src/DiskAdaptor.h
  9884. (topDir): Removed.
  9885. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  9886. (setTopDir): Removed.
  9887. (getTopDir): Removed.
  9888. * src/BtContext.h: New file.
  9889. * src/DefaultPeerStorage.h: New file.
  9890. * src/PieceMessage.h (TorrentMan.h): Removed.
  9891. * src/RequestMessage.h (TorrentMan.h): Removed.
  9892. * src/TorrentDownloadEngine.h
  9893. (uploadLength): New variable.
  9894. (btContext): New variable.
  9895. (btRuntime): New variable.
  9896. (pieceStorage): New variable.
  9897. (peerStorage): New variable.
  9898. (btAnnounce): New variable.
  9899. (btProgressInfoFile): New variable.
  9900. (torrentMan): Removed.
  9901. (setBtContext): New function.
  9902. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  9903. peerStorage, btAnnounce, btProgressInfoFile.
  9904. * src/Piece.h
  9905. (toString): New function.
  9906. (Pieces): New type definition.
  9907. * src/Peer.h
  9908. (active): New variable.
  9909. (Peer): Added active.
  9910. (activate): Set active to true.
  9911. (deactivate): Set active to false.
  9912. (isActive): New function.
  9913. (Peers): New type definition.
  9914. * src/DirectDiskAdaptor.cc
  9915. (getFilePath): Use the accessor methods of FileEntry.
  9916. * src/TorrentConsoleDownloadEngine.h
  9917. (afterEachIteration): New function.
  9918. * src/TorrentConsoleDownloadEngine.cc
  9919. (haltRequested): New variable.
  9920. (sendStatistics): Use pieceStorage, btRuntime.
  9921. (afterEachIteration): New function.
  9922. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  9923. * src/Directry.h
  9924. (Directory): New function.
  9925. (DirectoryHandle): New type definition.
  9926. * src/BtProgressInfoFile.h: New file.
  9927. * src/RequestMessage.cc: Use pieceStorage.
  9928. * src/BtRuntime.h: New file.
  9929. * src/DefaultBtContext.cc: New file.
  9930. * src/BitfieldMan.h
  9931. (getCompletedLength): New function(private).
  9932. (getCompletedLength): New function.
  9933. (getFilteredCompletedLength): New function.
  9934. * src/BitfieldMan.h
  9935. (getCompletedLength): New function(private).
  9936. (getCompletedLength): New function.
  9937. (getFilteredCompletedLength): New function.
  9938. * src/MultiDiskAdaptor.cc
  9939. (mkdir): New function.
  9940. (openFile): Call mkdir().
  9941. (initAndOpenFile): Call mkdir().
  9942. * src/CancelMessage.h
  9943. (TorrentMan.h): Removed.
  9944. * src/RejectMessage.h
  9945. (TorrentMan.h): Removed.
  9946. * src/DownloadEngineFactory.cc
  9947. (DefaultPieceStorage.h): New include.
  9948. (DefaultPeerStorage.h): New include.
  9949. (DefaultBtAnnounce.h): New include.
  9950. (DefaultBtProgressInfoFile.h): New include.
  9951. (newTorrentConsoleEngine): Rewritten.
  9952. * src/ShareRatioSeedCriteria.h
  9953. (torrentMan): Removed.
  9954. (btContext): New variable.
  9955. (peerStorage): New variable.
  9956. (btRuntime): New variable.
  9957. (evaluate): Use btContext, btRuntime, peerStorage.
  9958. * src/AnnounceTier.h: New file.
  9959. * src/BtAnnounce.h: New file.
  9960. * src/BtRegistry.h: New file.
  9961. * src/PeerInitiateConnectionCommand.h: Added btContext.
  9962. * src/PeerConnection.h (TorrentMan.h): Removed.
  9963. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  9964. * src/Util.h
  9965. (slice): Added an argument.
  9966. * src/Util.cc
  9967. (slice): Added an argument to control whether trim is made or not.
  9968. * src/PeerStorage.h: New file.
  9969. * src/BtRegistry.cc: New file.
  9970. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  9971. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  9972. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  9973. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  9974. * src/TorrentRequestInfo.h
  9975. (e): Removed.
  9976. (showFileEntry): Added an argument.
  9977. (getDownloadEngine): Return 0.
  9978. * src/DefaultBtAnnounce.h: New file.
  9979. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  9980. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  9981. * src/PeerMessageFactory.h
  9982. (btContext): New variable.
  9983. (pieceStorage): New variable.
  9984. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  9985. btAnnounce.
  9986. * src/DiskAdaptor.cc
  9987. (DiskAdaptor): Removed topDir.
  9988. (~DiskAdaptor): Removed topDir.
  9989. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  9990. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  9991. * src/File.h (mkdirs): New function.
  9992. * src/DefaultPeerStorage): New file.
  9993. * src/DownloadEngineFactory.h
  9994. (newTorrentConsoleEngine): Use btContext.
  9995. * src/BtContextAwareCommand.cc: New file.
  9996. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  9997. * src/PeerMessage.h
  9998. (btContext): New variable.
  9999. (peerStorage): New variable.
  10000. (pieceStorage): New variable.
  10001. (setBtContext): New function.
  10002. * src/Directry.cc
  10003. (Directory): New function.
  10004. (createDir): Do nothing if name.size() == 0.
  10005. * src/AnnounceList.h
  10006. (AnnounceTier): Removed.
  10007. (AnnounceTiers): Removed.
  10008. * src/DefaultPieceStorage.h: New file.
  10009. * src/Piece.cc (toString): New function.
  10010. To fix typo:
  10011. * src/main.cc (showVersion): Fixed typo.
  10012. To fix compile warning:
  10013. * src/DelegatingPeerListProcessor.cc
  10014. (canHandle): Added "return false".
  10015. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10016. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10017. make the process of announce request testable.
  10018. * src/TrackerWatcherCommand.h
  10019. (TimeA2.h): Removed.
  10020. (interval): Removed.
  10021. (checkPoint): Removed.
  10022. (createRequestCommand): Added an argument 'url'.
  10023. (TrackerWatherCommand): Removed interval.
  10024. (createCommand): New function.
  10025. * src/DownloadEngineFactory.cc
  10026. (newTorrentConsoleEngine): Updated according to the changes in
  10027. TrackerWatherCommand.
  10028. * src/TorrentMan.cc
  10029. (DelegatingPeerListProcessor.h): New includes.
  10030. (TorrentMan): Added the initialization of announceInterval.
  10031. (isStoppedAnnounceReady): New function.
  10032. (isCompletedAnnounceReady): New function.
  10033. (isDefaultAnnounceReady): New function.
  10034. (isAnnounceReady): New function.
  10035. (getAnnounceUrl): New function.
  10036. (announceStart): New function.
  10037. (announceFailure): New function.
  10038. (announceSuccess): New function.
  10039. (isAllAnnounceFailed): New function.
  10040. (resetAnnounce): New function.
  10041. (processAnnounceResponse): New function.
  10042. (needMorePeerConnection): New function.
  10043. (noMoreAnnounce): New function.
  10044. * src/TrackerUpdateCommand.h
  10045. (getTrackerResponse): int->size_t
  10046. * src/TorrentMan.h
  10047. (isStoppedAnnounceReady): New function.
  10048. (isCompletedAnnounceReady): New function.
  10049. (isDefaultAnnounceReady): New function.
  10050. (announceInterval): New variable.
  10051. (isAnnounceReady): New function.
  10052. (getAnnounceUrl): New function.
  10053. (announceStart): New function.
  10054. (announceFailure): New function.
  10055. (announceSuccess): New function.
  10056. (isAllAnnounceFailed): New function.
  10057. (resetAnnounce): New function.
  10058. (processAnnounceResponse): New function.
  10059. (needMorePeerConnection): New function.
  10060. (noMoreAnnounce): New function.
  10061. * src/TrackerWatcherCommand.cc
  10062. (TrackerWatherCommand): Removed interval and checkPoint.
  10063. (execute): Rewritten.
  10064. (createCommand): New function.
  10065. (createRequestCommand): Rewritten.
  10066. * src/TrackerUpdateCommand.cc
  10067. (MetaFileUtil.h): Removed.
  10068. (DelegatingPeerListProcessor.h): Removed.
  10069. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10070. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10071. Request -> RequestHandle:
  10072. * src/HttpResponseCommand.h: Request->RequestHandle
  10073. * src/AbstractCommand.cc: Request->RequestHandle
  10074. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10075. * src/HttpRequestCommand.cc: Request->RequestHandle
  10076. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10077. * src/AbstractCommand.h: Request->RequestHandle
  10078. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10079. * src/HttpResponseCommand.cc: Request->RequestHandle
  10080. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10081. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10082. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10083. * src/HttpConnection.h: Request->RequestHandle
  10084. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10085. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10086. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10087. * src/DownloadCommand.h: Request->RequestHandle
  10088. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10089. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10090. * src/HttpRequestCommand.h: Request->RequestHandle
  10091. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10092. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10093. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10094. * src/HttpDownloadCommand.h: Request->RequestHandle
  10095. * src/FtpConnection.cc: Request->RequestHandle
  10096. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10097. * src/UrlRequestInfo.cc: Request->RequestHandle
  10098. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10099. * src/HttpConnection.h: Request->RequestHandle
  10100. * src/DownloadCommand.cc: Request->RequestHandle
  10101. * src/FtpConnection.h: Request->RequestHandle
  10102. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10103. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10104. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10105. * src/Request.h
  10106. (SharedHandle.h): New include.
  10107. (RequestHandle): New type definition.
  10108. (Requests): Redefined.
  10109. To add MULTITRACKER support:
  10110. * src/TrackerWatcherCommand.h
  10111. (createRequestCommand): New function.
  10112. * src/DownloadEngineFactory.cc
  10113. (newTorrentConsoleEngine): Removed req.
  10114. * src/prefs.h
  10115. (PREF_TRACKER_MAX_TRIES): New definition.
  10116. * src/TorrentMan.cc
  10117. (TorrentMan): Removed req. Added trackerNumTry.
  10118. (~TorrentMan): Removed req.
  10119. (setupInternal1): Added announceList.
  10120. * src/TorrentRequestInfo.cc
  10121. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10122. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10123. * src/main.cc
  10124. (main): Added PREF_TRACKER_MAX_TRIES.
  10125. * src/TorrentMan.h
  10126. (Request.h): Removed.
  10127. (AnnounceList.h): New include.
  10128. (trackerNumTry): New variable.
  10129. (req): Removed.
  10130. (announceList): New variable.
  10131. * src/TrackerWatcherCommand.cc
  10132. (execute): Rewritten.
  10133. (createRequestCommand): New function.
  10134. * src/TrackerUpdateCommand.cc
  10135. (execute): Updated with the use of AnnounceList.
  10136. * src/AnnounceList.cc: New class.
  10137. * src/AnnounceList.h: New class.
  10138. To fix typo:
  10139. * src/prefs.h
  10140. (PREF_MAX_TRIES): max_try->max_tries
  10141. To not to decode "+" as space in URL decode:
  10142. * src/Util.cc
  10143. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10144. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10145. To add timeout to async name resolution:
  10146. * src/AbstractCommand.h
  10147. (nameResolveFinished): New function. This is not elegant way. It needs
  10148. to be more refined.
  10149. (nameResolverCheck): New variable.
  10150. * src/AbstractCommand.cc
  10151. (AbstractCommand): Added nameResolverCheck.
  10152. (execute): Added the check whether the name resolution has finished.
  10153. (setNameResolverCheck): Set nameResolverCheck to true.
  10154. (disableNameResolverCheck): Set nameResolverCheck to false.
  10155. (nameResolverFinished): New function.
  10156. * src/FtpInitiateConnectionCommand.h
  10157. (nameResolverFinished): New function.
  10158. * src/FtpInitiateConnectionCommand.cc
  10159. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10160. * src/HttpInitiateConnectionCommand.h
  10161. (nameResolverFinished): New function.
  10162. * src/HttpInitiateConnectionCommand.cc
  10163. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10164. * src/prefs.h
  10165. (PREF_DNS_TIMEOUT): New definition.
  10166. * src/main.cc
  10167. (main): Added PREF_DNS_TIMEOUT.
  10168. To add the support for a non-compact response from a tracker:
  10169. * src/PeerListProcessor.h: New class.
  10170. * src/DefaultPeerListProcessor.h: New class.
  10171. * src/DefaultPeerListProcessor.cc: New class.
  10172. * src/CompactPeerListProcessor.h: New class.
  10173. * src/CompactPeerListProcessor.cc: New class.
  10174. * src/DelegatingPeerListProcessor.h: New class.
  10175. * src/DelegatingPeerListProcessor.cc: New class.
  10176. * src/TorrentMan.cc
  10177. (addPeer): New function(overload).
  10178. (addPeer): Delete unused peers only when new peer is added.
  10179. * src/TorrentMan.h
  10180. (PeerListProcessor.h): Included.
  10181. (Peers): Removed.
  10182. (addPeer): New function(overload).
  10183. * src/TrackerUpdateCommand.cc
  10184. (netinet/in.h): Removed.
  10185. (DelegatingPeerListProcessor.h): Included.
  10186. (execute): Updated to use DelegatingPeerListProcessor.
  10187. To fix the memory leak in TorrentMan::peers:
  10188. * src/PeerAbstractCommand.cc
  10189. (onAbort): Added peer->resetStatus().
  10190. * src/Peer.h
  10191. (resetStatus): Made public.
  10192. To improve the precision of the speed calculation:
  10193. * src/SpeedCalc.h
  10194. (nextInterval): New variable.
  10195. * src/SpeedCalc.cc
  10196. (reset): Added nextInterval.
  10197. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10198. (changeSw): Set nextInterval to 15 seconds relative to the current
  10199. instant time.
  10200. * src/main.cc
  10201. (showVersion): Updated.
  10202. (showUsage): Updated.
  10203. * Release 0.8.1
  10204. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10205. * src/main.cc
  10206. (showUsage): Commented out --min-segment-size option.
  10207. (main): Commented out --min-segment-size option.
  10208. * Release 0.8.0
  10209. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10210. * src/*.{h,cc}:
  10211. Added an exception to the license which allows linking with OpenSSL.
  10212. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10213. * src/AbstractCommand.cc
  10214. (execute): Check whether the download has finished before checking
  10215. socket status.
  10216. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10217. Do not exit even if no segment is available.
  10218. * src/prefs.h
  10219. (PREF_STARTUP_IDLE_TIME): New definition.
  10220. * src/PeerInteractionCommand.cc
  10221. (executeInternal): Removed max speed limit. Because it performs bad.
  10222. (receiveMessages): Added max speed limit. This was better than above,
  10223. but still a little bit to be desired. Sometimes the download speed
  10224. became much faster than I specified.
  10225. * src/SpeedCalc.h
  10226. (start): New variable.
  10227. (accumulatedLength): New variable.
  10228. (getAvgSpeed): New function.
  10229. * src/SpeedCalc.cc
  10230. (reset): Added start, accumulatedLength.
  10231. (update): Added calculation of an average speed.
  10232. (getAvgSpeed): New function.
  10233. * src/DownloadCommand.h
  10234. (sw): Removed.
  10235. * src/main.cc
  10236. (main): Added PREF_STARTUP_IDLE_TIME.
  10237. * src/PeerStat.h
  10238. (STATUS): Added REQUEST_IDLE.
  10239. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10240. (getAvgDownloadSpeed): New function
  10241. (requestIdle): New function.
  10242. * src/SegmentMan.h
  10243. (SegmentEntryHandle): New type definition.
  10244. (SegmentEntries): Now holds SegmentEntryHandle.
  10245. (findSlowerSegmentEntry): New funtion.
  10246. * src/SegmentMan.cc
  10247. (save): Updated according to the changes in SegmentEntries.
  10248. (read): Updated according to the changes in SegmentEntries.
  10249. (FindSegmentEntryByIndex): Updated according to the changes in
  10250. SegmentEntries.
  10251. (FindSegmentEntryByCuid): Updated according to the changes in
  10252. SegmentEntries.
  10253. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10254. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10255. Renamed uitr as itr.
  10256. (findSlowerSegmentEntry): New function.
  10257. (getSegment): Updated according to the changes in SegmentEntries.
  10258. Added the feature that cancels the segment with slow server and fast
  10259. one takes it over.
  10260. (cancelSegment): Updated according to the changes in SegmentEntries.
  10261. (getDownloadLength): Updated according to the changes in
  10262. SegmentEntries.
  10263. (init): Assigned 0 to bitfield after deleting it.
  10264. * src/DownloadCommand.cc
  10265. (STARTUP_IDLE_TIME): Removed.
  10266. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10267. * src/PeerChokeCommand.cc
  10268. (optUnchokingPeer): Updated according to the changes in Peer.
  10269. (ResetDelta): Removed.
  10270. (UploadFaster): Updated according to the changes in Peer.
  10271. (DownloadFaster): Updated according to the changes in Peer.
  10272. (execute): I clarify the meaning of "upload" and "download" here.
  10273. "upload" means the transfer from localhost to remote host.
  10274. "download" means the transfer from remote host to localhost.
  10275. Based on this rule, I swapped orderByUploadRate and
  10276. orderByDownloadRate.
  10277. * src/PeerInteractionCommand.cc
  10278. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10279. (executeInternal): Removed the argument of
  10280. peerInteraction->sendMessages().
  10281. (receiveMessages): Rewritten download speed limit.
  10282. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10283. * src/HttpResponseCommand.cc
  10284. (handleDefaultEncoding): If file size is unknown in torrent request,
  10285. do not call segmentMan->initBitfield() here.
  10286. Disabled persistent connection feature in torrent request.
  10287. * src/UrlRequestInfo.h
  10288. (UrlRequestInfo): Removed const qualifier from option.
  10289. * src/TorrentMan.h
  10290. (TransferStat): New class.
  10291. (deltaDownloadLength): Removed.
  10292. (deltaUploadLength): Removed.
  10293. (addDeltaDownloadLength): Removed.
  10294. (getDeltaDownloadLength): Removed.
  10295. (resetDeltaDownloadLength): Removed.
  10296. (addDeltaUploadLength): Removed.
  10297. (getDeltaUploadLength): Removed.
  10298. (resetDeltaUploadLength): Removed.
  10299. (addActivePeer): Added peer->activate().
  10300. (deleteActivePeer): Added peer->deactivate().
  10301. (calculateStat): New function.
  10302. * src/TorrentMan.cc
  10303. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10304. (calculateStat): New function.
  10305. * src/PeerInteraction.h
  10306. (uploadLimit): Removed.
  10307. (option): New variable.
  10308. (setUploadLimit): Removed.
  10309. (getUploadSpeed): Removed.
  10310. (sendMessages): Removed the argument "currentUploadSpeed".
  10311. * src/PeerInteraction.cc
  10312. (prefs.h): Included.
  10313. (PeerInteraction): Removed uploadLimit. Added option.
  10314. (sendMessages): Rewritten upload speed limit.
  10315. (sendHandshake): Removed the argument from sendMessages().
  10316. (sendBitfield): Removed the argument from sendMessages().
  10317. * src/PeerAbstractCommand.cc
  10318. (execute): Commented out the portion of upload limit.
  10319. (onAbort): Removed peer->resetStatus().
  10320. * src/TorrentRequestInfo.cc
  10321. (timeoutSpecified): Declared extern.
  10322. (execute): Set timeout to 180 if timeout is not specified by.
  10323. command-line.
  10324. * src/PieceMessage.cc
  10325. (receivedAction): Added peer->updateDownloadLength().
  10326. Removed peer->addPeerUpload().
  10327. Removed torrentMan->addDeltaDownloadLength().
  10328. (send): Added peer->updateUploadLength().
  10329. Removed peer->addPeerDownload().
  10330. Removed torrentMan->addDeltaUploadLength().
  10331. * src/main.cc
  10332. (timeoutSpecified): New variable.
  10333. (main): Set timeoutSpecified to false.
  10334. If the command-line option "--upload-limit" is specified, then
  10335. timeoutSpecified is set to true. This option will remain in the next
  10336. release, but be deprecated in the future release.
  10337. * src/TorrentRequestInfo.h
  10338. (TorrentRequestInfo): Removed const qualifier from op.
  10339. * src/PeerStat.h
  10340. (uploadSpeed): New variable.
  10341. (PeerStat): Added default value to cuid.
  10342. (calculateUploadSpeed): New function.
  10343. (updateUploadLength): New function.
  10344. (getMaxUploadSpeed): New function.
  10345. (getAvgUploadSpeed): New function.
  10346. (reset): Added uploadSpeed. Set status to IDLE.
  10347. * src/TorrentDownloadEngine.h
  10348. (cp): Declared as Time.
  10349. (sessionDownloadLengthArray): Removed.
  10350. (sessionUploadLengthArray): Removed.
  10351. (currentCp): Removed.
  10352. (lastCalcStat): New variable
  10353. (lastElapsed): Removed.
  10354. (sessionDownloadLength): Removed.
  10355. (calculateStat): New function.
  10356. * src/TorrentDownloadEngine.cc
  10357. (initStatistics): Removed lastElapsed, cp[],
  10358. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10359. currentCp, sessionDownloadLength.
  10360. Added cp.reset() and lastCalcStat.reset().
  10361. (calculateSpeed): Changed the name of the argument.
  10362. (calculateStatistics): Rewritten.
  10363. (calculateStat): New function.
  10364. * src/Peer.h
  10365. (PeerStat.h): Included.
  10366. (peerUpload): Removed.
  10367. (peerDownload): Removed.
  10368. (peerStat): New variable.
  10369. (sessionUploadLength): New variable.
  10370. (sessionDownloadLength): New variable.
  10371. (deltaUpload): Removed.
  10372. (deltaDownload): Removed.
  10373. (resetStatus): Made private.
  10374. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10375. Removed peerUpload, peerDownload.
  10376. (updateUploadLength): New function.
  10377. (addDeltaUpload): Removed.
  10378. (updateDownloadLength): New function.
  10379. (resetDeltaUpload): Removed.
  10380. (getDeltaUpload): Removed.
  10381. (addDeltaDownload): Removed.
  10382. (calculateUploadSpeed): New function.
  10383. (resetDeltaDownload): Removed.
  10384. (getDeltaDownload): Removed.
  10385. (calculateDownloadSpeed): New function.
  10386. (getSessionUploadLength): New function.
  10387. (getSessionDownloadLength): New function.
  10388. (activate): New function.
  10389. (deactivate): New function.
  10390. (addPeerUpload): Removed.
  10391. (setPeerUpload): Removed.
  10392. (getPeerUpload): Removed.
  10393. (addPeerDownload): Removed.
  10394. (setPeerDownload): Removed.
  10395. (getPeerDownload): Removed.
  10396. * src/Peer.cc
  10397. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10398. * src/MetalinkRequestInfo.h
  10399. (MetalinkRequestInfo): Removed const qualifier from op.
  10400. * src/RequestInfo.h
  10401. (op): Removed const qualifier.
  10402. (RequestInfo): Removed const qualifier from op.
  10403. * src/prefs.h
  10404. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10405. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10406. * src/PeerInteractionCommand.cc
  10407. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10408. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10409. * src/PeerInteraction.cc
  10410. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10411. * src/main.cc
  10412. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10413. Added the description of "--max-download-limit" option.
  10414. Removed the description of "--upload-limit" option.
  10415. Added the description of "--max-upload-limit" option.
  10416. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10417. Added "--max-download-limit" option and "--max-upload-limit" option.
  10418. Added the warning message if "--upload-limit" option is used.
  10419. * src/DownloadCommand.cc
  10420. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10421. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10422. To rewrite segment download mechanism for HTTP/FTP download.
  10423. Use BitfieldMan to manage segment download.
  10424. * src/HttpResponseCommand.h
  10425. (executeInternal): Pass the reference of segment.
  10426. * src/AbstractCommand.cc
  10427. (prepareForRetry): Call segmentMan->cancelSegment here.
  10428. (onAbort): Call segmentMan->cancelSegment here.
  10429. * src/HttpDownloadCommand.cc
  10430. (prepareForNextSegment): New function.
  10431. * src/DownloadEngineFactory.cc
  10432. (newConsoleEngine): Removed splitter.
  10433. (newTorrentConsoleEngine): Removed splitter.
  10434. * src/Request.h
  10435. (segment): Renamed from seg.
  10436. * src/FtpInitiateConnectionCommand.h
  10437. (executeInternal): Pass the reference of segment.
  10438. * src/AbstractCommand.h
  10439. (executeInternal): Pass the reference of segment.
  10440. * src/pref.h
  10441. (PREF_SEGMENT_SIZE): New definition.
  10442. * src/HttpProxyRequestCommand.h
  10443. (executeInternal): Pass the reference of segment.
  10444. * src/HttpResponseCommand.cc
  10445. (checkResponse): Allowed status 206 when a request range starts 0.
  10446. (handleDefaultEncoding): Rewritten the code related to Segment.
  10447. (handleOtherEncoding): Rewritten the code related to Segment.
  10448. * src/SegmentMan.h
  10449. (SegmentEntry): New class.
  10450. (SegmentEntries): New type definition.
  10451. (bitfield): New variable.
  10452. (usedSegmentEntries): New variable.
  10453. (onNullBitfield): New function.
  10454. (checkoutSegment): New function.
  10455. (segments): Removed.
  10456. (splitter): Removed.
  10457. (unregisterId): Removed.
  10458. (getSegment): New function(overload)
  10459. (getDownloadedSize): Removed.
  10460. (cancelSegment): New function.
  10461. (completeSegment): New function.
  10462. (initBitfield): New function.
  10463. (hasSegment): New function.
  10464. (getDownloadLength): New function.
  10465. * src/BitfieldMan.h
  10466. (getStartIndex): New function.
  10467. (getEndIndex): New function.
  10468. (getMissingUnusedIndex): New function(overload).
  10469. (getSparseMissingUnusedIndex): New function.
  10470. * src/BitfieldMan.cc
  10471. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10472. (getMissingUnusedIndex): New function(overload).
  10473. (Range): New class.
  10474. (getStartIndex): New function.
  10475. (getEndIndex): New function.
  10476. (getSparseMissingUnusedIndex): New function.
  10477. (isBitSetInternal): Return false if the given index is less than 0.
  10478. * src/HttpInitiateConnectionCommand.h
  10479. (executeInternal): Pass the reference of segment.
  10480. * src/FtpNegotiateCommand.h
  10481. (executeInternal): Pass the reference of segment.
  10482. * src/FtpNegotiateCommand.cc
  10483. (recvSize): Initialize bitfield here.
  10484. * src/FtpTunnelResponseCommand.h
  10485. (executeInternal): Pass the reference of segment.
  10486. * src/HttpConnection.cc
  10487. (createRequest): Rewritten range header processing.
  10488. * src/DownloadCommand.h
  10489. (executeInternal): Pass the reference of segment.
  10490. (prepareForRetry): Removed.
  10491. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10492. function.
  10493. * src/main.cc
  10494. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10495. * src/SegmentMan.cc
  10496. (SegmentMan): Added bitfield. Removed splitter.
  10497. (~SegmentMan): Added bitfield. Removed splitter.
  10498. (unregisterId): Removed.
  10499. (getSegment): Rewritten.
  10500. (updateSegment): Rewritten.
  10501. (save): Rewritten.
  10502. (read): Rewritten.
  10503. (finished): Rewritten.
  10504. (getDownloadedSize): Removed.
  10505. (initBitfield): New function.
  10506. (FindSegmentEntryByIndex): New function object.
  10507. (FindSegmentEntryByCuid): New function object.
  10508. (checkoutSegment): New function.
  10509. (onNullBitfield): New function.
  10510. (getSegment): New function(overload).
  10511. (CancelSegment): New function object.
  10512. (cancelSegment): New function.
  10513. (completeSegment): New function.
  10514. (hasSegment): New function.
  10515. (getDownloadLength): New function.
  10516. * src/FtpInitiateConnectionCommand.cc
  10517. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10518. * src/Segment.h: Rewritten.
  10519. * src/Segment.cc (operator<<): New function.
  10520. * src/HttpDownloadCommand.h
  10521. (prepareForNextSegment): New function.
  10522. * src/Request.cc
  10523. (resetUrl): Made segment null.
  10524. * src/DownloadEngine.cc
  10525. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10526. * src/HttpProxyRequestCommand.h
  10527. (executeInternal): Pass the reference of segment.
  10528. * src/DownloadCommand.cc
  10529. (executeInternal): Rewritten the code related to Segment.
  10530. (prepareForRetry): Removed.
  10531. (prepareForNextSegment): Rewritten.
  10532. * src/FtpTunnelResponseCommand.h
  10533. (executeInternal): Pass the reference of segment.
  10534. To add HTTP 1.1 persistent connection support(experimental)
  10535. * src/HttpRequestCommand.cc
  10536. (executeInternal): Disable keep alive if it is disabled by
  10537. configuration.
  10538. * src/Request.h
  10539. (keepAlive): New variable.
  10540. (isKeepAlive): New function.
  10541. (setKeepAlive): New function.
  10542. * src/pref.h
  10543. (PREF_HTTP_KEEP_ALIVE): New definition.
  10544. * src/HttpResponseCommand.cc
  10545. (executeInternal): Check the remote server supports keep alive.
  10546. * src/HttpConnection.cc
  10547. (createRequest): Send "Connection: close" only if keep alive is
  10548. disabled.
  10549. * src/main.cc
  10550. (main):
  10551. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10552. To add max download speed limit:
  10553. * src/pref.h
  10554. (PREF_MAX_SPEED_LIMIT): New definition.
  10555. * src/PeerInteractionCommand.cc
  10556. (executeInternal): Added max download speed limit. Not tested yet.
  10557. * src/SegmentMan.h
  10558. (PeerStats): New type definition.
  10559. (peerStats): New variable.
  10560. (registerPeerStat): New function.
  10561. (FindPeerStat): New function object.
  10562. (getPeerStat): New function.
  10563. (calculateDownloadSpeed): New function.
  10564. * src/SpeedCalc.h: New class.
  10565. * src/SpeedCalc.cc: New class.
  10566. * src/main.cc
  10567. (main):
  10568. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10569. download speed is not restricted).
  10570. * src/PeerStat.h: New class.
  10571. * src/SegmentMan.cc
  10572. (registerPeerStat): New function.
  10573. (calculateDownloadSpeed): New function.
  10574. * src/DownloadCommand.cc
  10575. (STARTUP_IDLE_TIME): New definition.
  10576. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10577. downloadStart.
  10578. (~DownloadCommand): Call peerStat->downloadStop.
  10579. (executeInternal): Added download speed limitter. Rewritten lowest
  10580. speed limitter.
  10581. * src/HttpConnection.cc
  10582. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10583. * src/AbstractCommand.cc
  10584. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10585. Added hostname to the error message.
  10586. * src/ConsoleDownloadEngine.cc
  10587. (calculateStatistics): Initialize psize with dlSize.
  10588. * src/PieceMessage.cc
  10589. (receivedAction): Do not call peerInteraction->abortPiece here.
  10590. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10591. * src/BitfieldMan.h
  10592. (clearAllUseBit): New function.
  10593. (setAllUseBit): New function.
  10594. * src/BitfieldMan.cc
  10595. (clearAllBit): Do not clear useBitfield here.
  10596. (clearAllUseBit): New function.
  10597. (setAllUseBit): New function.
  10598. * src/Piece.cc
  10599. (clearAllBlock): Call bitfield->clearAllUseBit().
  10600. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10601. To make filename URL-decoded:
  10602. * src/HttpResponseCommand.h: Updated doc.
  10603. * src/HttpResponseCommand.cc
  10604. (determinFilename): Made filename URL-decoded.
  10605. * src/FtpInitiateConnectionCommand.cc
  10606. (executeInternal): Made filename URL-decoded.
  10607. * src/Util.h (urldecode): New function.
  10608. * src/Util.cc (urldecode): New function.
  10609. To fix a bug that caused assertion failure in ares_strerror:
  10610. * src/NameResolver.cc (callback): Fixed the bug.
  10611. * Release 0.7.3
  10612. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10613. To add --seed-time and --seed-ratio command-line option:
  10614. * src/Option.h (getAsDouble): New function.
  10615. * src/Option.cc (getAsDouble): New function.
  10616. * src/SeedCheckCommand.h: New class.
  10617. * src/SeedCheckCommand.cc: New class.
  10618. * src/DownloadEngineFactory.cc
  10619. (SeedCheckCommand.h): Included.
  10620. (UnionSeedCriteria.h): Included.
  10621. (TimeSeedCriteria.h): Included.
  10622. (ShareRatioSeedCriteria.h): Included.
  10623. (newTorrentConsoleEngine): Added the processing of seed option.
  10624. * src/SeedCriteria.h: New class.
  10625. * src/ShareRatioSeedCriteria.h: New class.
  10626. * src/TimeSeedCriteria.h: New class.
  10627. * src/UnionSeedCriteria.h: New class.
  10628. * src/prefs.h
  10629. (PREF_SEED_TIME): New definition.
  10630. (PREF_SEED_RATIO): New definition.
  10631. * src/main.cc
  10632. (showUsage): Added --seed-time and --seed-ratio option.
  10633. (main): Added --seed-time and --seed-ratio option.
  10634. Made default log file name "/dev/null".
  10635. * src/SharedHandle.h
  10636. (SharedHandle): Copy constructor. Made it assignable from the
  10637. SharedHandle of the subclasses.
  10638. (operator=): Made it assignable from the SharedHandle of the
  10639. subclasses.
  10640. (getRefCount): New function.
  10641. To add notice log level and the switch to write log to stdout. This
  10642. switch is configurable per log level.
  10643. * src/Logger.h
  10644. (notice): New function.
  10645. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10646. constant.
  10647. * src/LogFactory.cc
  10648. (getInstance): The use of NullLogger was removed. A log message with
  10649. notice log level was made written to stdout along with log file.
  10650. * src/NullLogger.h
  10651. (notice): New function.
  10652. * src/SimpleLogger.h
  10653. (writeHeader): Added the 'file' argument.
  10654. (writeLog): Added the 'file' argument.
  10655. (writeFile): New function.
  10656. (stdoutField): New variable.
  10657. (SimpleLogger): Removed the default constructor.
  10658. (SimpleLogger): Made the default value of logfile 0.
  10659. (debug): Added 'virtual' keyword.
  10660. (info): Added 'virtual' keyword.
  10661. (warn): Added 'virtual' keyword.
  10662. (error): Added 'virtual' keyword.
  10663. (notice): New function.
  10664. (setStdout): New function.
  10665. * src/SimpleLogger.cc
  10666. (WRITE_LOG): Replaced writeLog with writeFile.
  10667. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10668. (SimpleLogger): Removed the default constructor.
  10669. (setStdout): New function.
  10670. (writeLog): Added the handling of NOTICE log level.
  10671. (writeFile): New function.
  10672. (notice): New function.
  10673. * src/TorrentMan.h: Updated doc.
  10674. * src/BitfieldMan.h: Updated doc.
  10675. * src/TrackerWatcherCommand.cc
  10676. (execute): Return true if error occurred in the request to the tracker
  10677. and halt is requested.
  10678. * src/TrackerUpdateCommand.cc
  10679. (execute): Return true if error occurred in the request to the tracker
  10680. and halt is requested.
  10681. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10682. DownloadEngine:
  10683. * src/TorrentConsoleDownloadEngine.h
  10684. (onSelectiveDownloadingCompletes): Removed.
  10685. * src/TorrentConsoleDownloadEngine.cc
  10686. (onSelectiveDownloadingCompletes): Removed.
  10687. * src/TorrentDownloadEngine.h
  10688. (onEndOfRun): Added 'virtual' keyword.
  10689. (afterEachIteration): Removed.
  10690. (onSelectiveDownloadingCompletes): Removed.
  10691. * src/TorrentDownloadEngine.cc
  10692. (onEndOfRun): Removed filenameFixed.
  10693. (afterEachIteration): Removed.
  10694. * src/TorrentMan.cc
  10695. (completePiece): Call onDownloadComplete here.
  10696. (onDownloadComplete): Added 2 log messages.
  10697. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10698. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10699. * src/NameResolver.h: Added the prototype declaration of callback().
  10700. To support c-ares library:
  10701. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10702. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10703. * src/FtpInitiateConnectionCommand.h:
  10704. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10705. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10706. * src/HttpInitiateConnectionCommand.h:
  10707. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10708. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10709. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10710. #1542285 by tizianomueller)
  10711. * src/HttpInitiateConnectionCommand.cc:
  10712. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10713. * src/FtpInitiateConnectionCommand.cc:
  10714. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10715. * src/DownloadEngine.h:
  10716. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10717. * src/DownloadEngine.cc:
  10718. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10719. To fix the bug that causes compilation failure with metalink-support
  10720. disabled(bug#1543587):
  10721. * src/main.cc: Fixed with the patch by tizianomueller.
  10722. * Release 0.7.2
  10723. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10724. * src/main.cc
  10725. (main): Added a message to inform users that aria2 is starting to
  10726. verify checksum.
  10727. * src/RequestInfo.cc
  10728. (printDownloadAbortMessage): Added a message to inform users that
  10729. transfer can be resumed.
  10730. * src/FeatureConfig.cc
  10731. (FEATURE_ASYNC_DNS): New definition.
  10732. (FeatureConfig): Added aysnc DNS entry.
  10733. To replace CommandUuid with Command* in SocketEntry and
  10734. NameResolverEntry:
  10735. * src/DownloadEngine.h
  10736. (CommandUuids): Removed.
  10737. (SocketEntry::commandUuid): Removed.
  10738. (SocketEntry::command): New variable.
  10739. (SocketEntry::SocketEntry): Updated.
  10740. (SocketEntry::operator==): Updated.
  10741. (NameResolverEntry::commandUuid): Removed.
  10742. (NameResolverEntry::command): New variable.
  10743. (NameResolverEntry::NameResolverEntry): Updated.
  10744. (NameResolverEntry::operator==): Updated.
  10745. (waitData): Changed the argument type.
  10746. (addSocketForReadCheck): Changed the argument type.
  10747. (deleteSocketForReadCheck): Changed the argument type.
  10748. (addSocketForWriteCheck): Changed the argument type.
  10749. (deleteSocketForWriteCheck): Changed the argument type.
  10750. (addNameResolverCheck): Changed the argument type.
  10751. (deleteNameResolverCheck): Changed the argument type.
  10752. * src/DownloadEngine.cc
  10753. (FindCommand): Removed.
  10754. (run): Removed activeUuid. Added activeCommands instead.
  10755. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10756. (AccumulateActiveCommand): New function object.
  10757. (waitData): Use AccumulateActiveCommand.
  10758. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10759. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10760. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10761. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10762. (addNameResolverCheck): Use Command instead of CommandUuid.
  10763. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10764. * src/AbstractCommand.cc
  10765. (disableReadCheckSocket): Updated according to the changes in
  10766. DownloadEngine.
  10767. (setReadCheckSocket): Updated according to the changes in
  10768. DownloadEngine.
  10769. (disableWriteCheckSocket): Updated according to the changes in
  10770. DownloadEngine.
  10771. (setWriteCheckSocket): Updated according to the changes in
  10772. DownloadEngine.
  10773. (setNameResolverCheck): Updated according to the changes in
  10774. DownloadEngine.
  10775. (disableNameResolverCheck): Updated according to the changes in
  10776. DownloadEngine.
  10777. * src/AbstractCommand.cc
  10778. (disableReadCheckSocket): Updated according to the changes in
  10779. DownloadEngine.
  10780. (setReadCheckSocket): Updated according to the changes in
  10781. DownloadEngine.
  10782. (disableWriteCheckSocket): Updated according to the changes in
  10783. DownloadEngine.
  10784. (setWriteCheckSocket): Updated according to the changes in
  10785. DownloadEngine.
  10786. * release 0.7.1
  10787. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10788. To handle the case where some BitTorrent tracker requires all letters
  10789. except for [A-Za-z0-9] is URL encoded.
  10790. * src/Util.h
  10791. (torrentUrlencode): New function.
  10792. * src/Util.cc
  10793. (ctype.h): Included.
  10794. (torrentUrlencode): New function.
  10795. * src/TrackerWatcherCommand.cc
  10796. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  10797. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10798. To add asynchronous DNS support(libares):
  10799. * src/AbstractCommand.h
  10800. (setNameResolverCheck): New function.
  10801. (disableNameResolverCheck): New function
  10802. (resolveHostname): New function.
  10803. * src/AbstractCommand.cc
  10804. (setNameResolverCheck): New function.
  10805. (disableNameResolverCheck): New function
  10806. (resolveHostname): New function.
  10807. * src/FtpInitiateConnectionCommand.h
  10808. (nameResolver): New function.
  10809. * src/FtpInitiateConnectionCommand.cc
  10810. (Util.h): Included.
  10811. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  10812. disableWriteCheckSocket.
  10813. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  10814. (executeInternal): Added async DNS support.
  10815. * src/HttpInitiateConnectionCommand.h
  10816. (nameResolver): New function.
  10817. * src/HttpInitiateConnectionCommand.cc
  10818. (DlRetryEx.h): Included.
  10819. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  10820. disableWriteCheckSocket.
  10821. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  10822. (executeInternal): Added async DNS support.
  10823. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  10824. by extern "C" declaration.
  10825. * src/NameResolver.cc: New class.
  10826. * src/Util.h:
  10827. (isNumberAndDotsNotation): New function
  10828. * src/Util.cc
  10829. (isNumberAndDotsNotation): New function.
  10830. * src/DownloadEngine.h
  10831. (NameResolver.h): Included.
  10832. (NameResolverEntry): New class.
  10833. (NameResolverEntries): New type definition.
  10834. (addNameResolverCheck): New function.
  10835. (deleteNameResolverCheck): New function.
  10836. * src/DownloadEngine.cc
  10837. (run): Initialize cp with 0.
  10838. (SetDescriptor::operator()): Added for NameResolverEntry.
  10839. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  10840. (waitData): Check nameResolver entries.
  10841. (updateFdSet): Update fds in nameResolver entries.
  10842. (addNameResolverCheck): New function.
  10843. (deleteNameResolverCheck): new function.
  10844. * src/PeerInteractionCommand.cc
  10845. (executeInternal): Fixed wrong socket handling.
  10846. * src/main.cc
  10847. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  10848. * src/Util.cc
  10849. (fileChecksum): Removed the call to ctx.digestReset().
  10850. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10851. * po/ru.po: Azamat sent me Russian translation.
  10852. * src/FtpNegotiateCommand.cc
  10853. (recvGreeting): Call disableWriteCheckSocket just after
  10854. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  10855. (recvRetr): Recognized status code 125 as a acceptable response code.
  10856. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  10857. case-insesitive filesystem(BUG#1531057).
  10858. * src/Time.h: Renamed as TimeA2.h.
  10859. * src/Time.cc: Renamed as TimeA2.cc.
  10860. * src/TimeA2.h: New class.
  10861. * src/TimeA2.cc: New class.
  10862. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  10863. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  10864. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  10865. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  10866. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  10867. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10868. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  10869. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  10870. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  10871. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  10872. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  10873. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  10874. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  10875. * release 0.7.0
  10876. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10877. * src/PeerChokeCommand.h
  10878. (PeerChokeCommand): Rearranged the arguments.
  10879. * src/PeerChokeCommand.cc
  10880. (PeerChokeCommand): Rearranged the arguments.
  10881. * src/MetalinkEntry.h
  10882. (Checksum.h): Included.
  10883. (md5): Removed.
  10884. (sha1): Removed.
  10885. (checksum): New variable.
  10886. (operator=): Updated.
  10887. (check): Removed.
  10888. * src/prefs.h
  10889. (PREF_LOWEST_SPEED_LIMIT): New definition.
  10890. (PREF_FOLLOW_TORRENT): New definition.
  10891. (PREF_SELECT_FILE): New definition.
  10892. (PREF_FOLLOW_METALINK): New definition.
  10893. * src/MetalinkResource.h
  10894. (TYPE_HTTPS): Added to enum TYPE.
  10895. * src/TorrentMan.cc
  10896. (~TorrentMan): Rewritten.
  10897. * src/MultiDiskWriter.cc
  10898. (MultiDiskAdaptor): Updated according to the changes in
  10899. MessageDigestContext.
  10900. (~MultiDiskAdaptor): Updated according to the changes in
  10901. MessageDigestContext.
  10902. (hashUpdate): Updated according to the changes in MessageDigestContext.
  10903. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10904. * src/Util.h
  10905. (fileChecksum): Updated according to the changes in
  10906. MessageDigestContext.
  10907. * src/Util.cc
  10908. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10909. (fileChecksum): Updated according to the changes in
  10910. MessageDigestContext.
  10911. * src/messageDigest.h: Rewritten.
  10912. * src/MetalinkEntry.cc
  10913. (check): Removed.
  10914. (Supported): Updated.
  10915. (dropUnsupportedResource): Fixed a memory leak.
  10916. * src/ShaVisitor.cc
  10917. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  10918. (~ShaVisitor): Updated according to the changes in
  10919. MessageDigestContext.
  10920. (visit): Updated according to the changes in MessageDigestContext.
  10921. * src/main.cc
  10922. (main): Rewritten the portion of download loop. --lowest-speed-limit
  10923. command-line option added.
  10924. * src/DownloadEngine.h
  10925. (SocketEntry): New class.
  10926. (SocketEntries): New definition.
  10927. (PairFind): Removed.
  10928. (SockCmdMap): Removed.
  10929. * src/DownloadEngine.cc
  10930. (DownloadEngine): Rewritten.
  10931. (~DownloadEngine): Rewritten.
  10932. (run): Renamed activeCommandUuids as activeUuids.
  10933. (SetDescriptor): Rewritten.
  10934. (AccumulateActiveCommandUuid): Removed.
  10935. (AccumulateActiveUuid): New function object.
  10936. (waitData): Rewritten.
  10937. (updateFdSet): Rewritten.
  10938. (addSocket): Rewritten.
  10939. (deleteSocket): Rewritten.
  10940. (addSocketForReadCheck): Rewritten.
  10941. (deleteSocketForReadCheck): Rewritten.
  10942. (addSocketForWriteCheck): Rewritten.
  10943. (deleteSocketForWriteCheck): Rewritten.
  10944. * src/Xml2MetalinkProcessor.cc
  10945. (getEntry): Rewritten the portion of MetalinkEntry creation.
  10946. * src/DownloadCommand.cc
  10947. (executeInternal): Added the check routine for lowest speed limit.
  10948. * src/AbstractDiskWriter.cc
  10949. (AbstractDiskWriter): Updated according to the changes in
  10950. MessageDigestContext.
  10951. (~AbstractDiskWriter): Updated according to the changes in
  10952. MessageDigestContext.
  10953. (sha1Sum): Updated according to the changes in MessageDigestContext.
  10954. * src/RequestInfo.h: New class.
  10955. * src/UrlRequestInfo.h: New class.
  10956. * src/UrlRequestInfo.cc: New class.
  10957. * src/TorrentRequestInfo.h: New class.
  10958. * src/TorrentRequestInfo.cc: New class.
  10959. * src/MetalinkRequestInfo.h: New class.
  10960. * src/MetalinkRequestInfo.cc: New class.
  10961. * src/Checksum.h: New class.
  10962. * src/DownloadEngineFactory.h: New class.
  10963. * src/DownloadEngineFactory.cc: New class.
  10964. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10965. * src/Option.h
  10966. (getAsBool): New function.
  10967. * src/Option.cc
  10968. (prefs.h): Included.
  10969. (defined): 0-length value is now recognized as undefined.
  10970. (getAsInt): Rewritten.
  10971. (getAsLLInt): Rewritten.
  10972. (getAsBool): New function.
  10973. * src/FeatureConfig.h: Rewritten.
  10974. * src/FeatureConfig.cc: Rewritten.
  10975. * src/prefs.h
  10976. (PREF_STDOUT_LOG): New definition.
  10977. (PREF_LOG): New definition.
  10978. (PREF_DIR): New definition.
  10979. (PREF_OUT): New definition.
  10980. (PREF_SPLIT): New definition.
  10981. (PREF_DAEMON): New definition.
  10982. (PREF_REFERER): New definition.
  10983. (PREF_TORRENT_FILE): New definition.
  10984. (PREF_LISTEN_PORT): New definition.
  10985. (PREF_METALINK_FILE): New definition.
  10986. (PREF_METALINK_VERSION): New definition.
  10987. (PREF_METALINK_LANGUAGE): New definition.
  10988. (PREF_METALINK_OS): New definition.
  10989. (PREF_METALINK_SERVERS): New definition.
  10990. * src/main.cc
  10991. (main): Following command-line parameters are now put into Option
  10992. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  10993. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  10994. metalinkLanguage, metalinkOs, metalinkServers
  10995. To fix the bug that aria2 can not handle http response header properly.
  10996. * src/HttpHeader.cc
  10997. (put): Made name lowercased.
  10998. (defined): Made name lowercased.
  10999. (getFirst): Made name lowercased.
  11000. (get): Made name lowercased.
  11001. (getFirstAsInt): Rewritten.
  11002. (getFirstAsLLInt): Rewritten.
  11003. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11004. * src/TorrentMan.h:
  11005. (advertisePiece): Updated doc.
  11006. (getAdvertisedPieceIndexes): Updated doc.
  11007. (removeAdvertisedPiece); New function.
  11008. * src/TorrentMan.cc
  11009. (FindElapsedHave): New function object.
  11010. (removeAdvertisedPiece): New function.
  11011. * src/HaveEraseCommand.h: New class.
  11012. * src/HaveEraseCommand.cc: New class.
  11013. * src/FeatureConfig.h: New class.
  11014. * src/FeatureConfig.cc: New class.
  11015. * src/Request.h
  11016. (defaultPorts): Removed.
  11017. * src/Request.cc
  11018. (FeatureConfig.h): Included.
  11019. (Request): Removed the statements related to defaultPorts.
  11020. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11021. A default port number is now retrieved from FeatureConfig.
  11022. * src/main.cc
  11023. (HaveEraseCommand.h): Included.
  11024. (showVersion): Added the output of feature list.
  11025. (main): Added HaveEraseCommand to command queue in BitTorrent
  11026. downloading.
  11027. * src/PeerInteractionCommand.h
  11028. (chokeCheckPoint): Commented out.
  11029. (periodicExecPoint): New variable.
  11030. * src/PeerInteractionCommand.cc
  11031. (executeInternal): Following methods are now called in at least every
  11032. 0.5 seconds to reduce CPU usage:
  11033. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11034. checkHave(), sendKeepAlive().
  11035. (checkLongTimePeerChoking): Commented out.
  11036. * src/BitfieldMan.h
  11037. (getNthBitIndex): Changed the method signature.
  11038. (getMissingIndexRandomly): Changed the method signature.
  11039. * src/BitfieldMan.cc
  11040. (getNthBitIndex): Rewritten
  11041. (getMissingIndexRandomly): Rewritten.
  11042. (hasMissingPiece): Rewritten.
  11043. (getMissingIndex): Refactored.
  11044. (getMissingUnusedIndex); Refactored.
  11045. (getMissingIndex): Refactored.
  11046. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11047. * src/PeerMessage.h
  11048. (Piece.h): Included.
  11049. (SharedHandle.h): Included.
  11050. (invalidate): New variable.
  11051. (uploading): New variable.
  11052. (isInvalidate): New function.
  11053. (isUploading): New function.
  11054. (onPush): New function.
  11055. (onChoked): New function.
  11056. (onCanceled): New function.
  11057. (onAbortPiece): New function.
  11058. (PeerMessageHandle): New type definition.
  11059. * src/PeerMessage.cc
  11060. (PeerMessage): Added the initialization for invalidate and uploading.
  11061. * src/CancelMessage.h
  11062. (CancelMessage): Rewritten.
  11063. * src/RejectMessage.h
  11064. (RejectMessage): Rewritten.
  11065. * src/Metalinker.h
  11066. (operator=): Defined.
  11067. * src/MetaEntry.h
  11068. (operator=): Defined.
  11069. * src/MetalinkResource.h
  11070. (operator=): Defined.
  11071. * src/AllowedFastMessage.h
  11072. (AllowedFastMessage): Rewritten.
  11073. * src/HandshakeMessage.h
  11074. (HandshakeMessage): New function(overload).
  11075. * src/HandshakeMessage.cc
  11076. (HandshakeMessage): Rewritten.
  11077. (init): New function.
  11078. * src/HaveMessage.h
  11079. (HaveMessage): Rewritten.
  11080. * src/Time.h
  11081. (operator=): Defined the function body here.
  11082. * src/Time.cc
  11083. (operator=): Removed.
  11084. * src/SocketCore.h
  11085. (operator==): Defined here.
  11086. (operator!=): Defined here.
  11087. (operator<): Defined here.
  11088. * src/SocketCore.cc
  11089. (operator==): Removed.
  11090. (operator<): Removed.
  11091. * src/BitfieldMan.h
  11092. (operator=): Defined the function body here.
  11093. * src/BitfieldMan.cc
  11094. (operator=): Removed.
  11095. * src/TorrentMan.h
  11096. (deleteErrorPeer): Removed.
  11097. (deleteUnusedPeer); New function.
  11098. * src/TorrentMan.cc
  11099. (addPeer): Call deleteUnusedPeer.
  11100. (deleteErrorPeer): Removed.
  11101. (deleteUnusedPeer): New function.
  11102. * src/PeerAbstractCommand.h
  11103. (setNoCheck): New function.
  11104. (noCheck): New variable.
  11105. * src/PeerAbstractCommand.cc
  11106. (PeerAbstractCommand): Added the initialization of noCheck.
  11107. (execute): Added a check for noCheck.
  11108. (setNoCheck): New function.
  11109. * src/Util.h
  11110. (stdio.h): Included.
  11111. * src/Util.cc
  11112. (unistd.h): Included.
  11113. * src/DefaultDiskWriter.cc
  11114. (unistd.h): Included.
  11115. * src/Peer.h
  11116. (operator==): Defined the function body here.
  11117. (operator!=): Defined the function body here.
  11118. * src/Peer.cc
  11119. (operator==): Removed.
  11120. (operator!=): Removed.
  11121. * src/Piece.h
  11122. (Piece): Defined the function body here(copy constructor).
  11123. (operator=): Defined the function body here.
  11124. (operator==): Defined the function body here.
  11125. * src/Piece.cc
  11126. (Piece): Removed(copy constructor).
  11127. (operator=): Removed.
  11128. (operator==): Removed.
  11129. * src/PeerMessageUtil.h
  11130. (ChokeMessage.h): Removed.
  11131. (UnchokeMessage.h): Removed.
  11132. (InterestedMessage.h): Removed.
  11133. (NotInterestedMessage.h): Removed.
  11134. (HaveMessage.h): Removed.
  11135. (BitfieldMessage.h): Removed.
  11136. (RequestMessage.h): Removed.
  11137. (CancelMessage.h): Removed.
  11138. (PieceMessage.h): Removed.
  11139. (HandshakeMessage.h): Removed.
  11140. (KeepAliveMessage.h): Removed.
  11141. (PortMessage.h): Removed.
  11142. (HaveAllMessage.h): Removed.
  11143. (HaveNoneMessage.h): Removed.
  11144. (PeerConnection.h): Removed.
  11145. (HandshakeMessage.h): Included.
  11146. * src/BitfieldMessage.h
  11147. (init): New function.
  11148. (BitfieldMessage): Rewritten.
  11149. (BitfieldMessage): New function(overload).
  11150. * src/RequestSlot.h
  11151. (operator=): Defined the function body here.
  11152. (operator==): Defined the function body here.
  11153. * src/RequestSlot.cc
  11154. (operator=): Removed.
  11155. (operator==): Removed.
  11156. To remove the dependency on the PeerMessage subclass from
  11157. PeerInteraction:
  11158. * src/PeerMessageFactory.h: New class.
  11159. * src/PeerMessageFactory.cc: New class.
  11160. * src/SimplePeerMessage.cc
  11161. (send): If invalidate is true then do nothing.
  11162. * src/PeerInteractionCommand.cc
  11163. (HandshakeMessage.h): Included.
  11164. (KeepAliveMessage.h): Included.
  11165. (ChokeMessage.h): Included.
  11166. (UnchokeMessage.h): Included.
  11167. (HaveMessage.h): Included.
  11168. (executeInternal): Call setNoCheck().
  11169. Removed setWriteCheckSocket(socket).
  11170. * src/PeerInteraction.h
  11171. (ChokeMessage.h): Removed.
  11172. (UnchokeMessage.h): Removed.
  11173. (InterestedMessage.h): Removed.
  11174. (NotInterestedMessage.h): Removed.
  11175. (HaveMessage.h): Removed.
  11176. (BitfieldMessage.h): Removed.
  11177. (RequestMessage.h): Removed.
  11178. (CancelMessage.h): Removed.
  11179. (PieceMessage.h): Removed.
  11180. (HandshakeMessage.h): Removed.
  11181. (KeepAliveMessage.h): Removed.
  11182. (PortMessage.h): Removed.
  11183. (HaveAllMessage.h): Removed.
  11184. (HaveNoneMessage.h): Removed.
  11185. (RejectMessage.h): Removed.
  11186. (AllowedFastMessage.h): Removed.
  11187. (SuggestPieceMessage.h): Removed.
  11188. (PeerMessageFactory.h): Included.
  11189. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11190. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11191. (PeerMessageFactory): New variable.
  11192. (createPeerMessage): Removed.
  11193. (createHandshakeMessage): Removed.
  11194. (setPeerMessageCommonProperty): Removed.
  11195. (addRequestSlot): New function.
  11196. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11197. (getPeerMessageFactory): New function.
  11198. (createRequestMessage): Removed.
  11199. (createCancelMessage): Removed.
  11200. (createPieceMessage): Removed.
  11201. (createHaveMessage): Removed.
  11202. (createChokeMessage): Removed.
  11203. (createUnchokeMessage): Removed.
  11204. (createInterestedMessage): Removed.
  11205. (createNotInterestedMessage): Removed.
  11206. (createBitfieldMessage): Removed.
  11207. (createKeepAliveMessage): Removed.
  11208. (createHaveAllMessage): Removed.
  11209. (createHaveNoneMessage): Removed.
  11210. (createRejectMessage): Removed.
  11211. (createAllowedFastMessage): Removed.
  11212. * src/PeerInteraction.cc
  11213. (PeerInteraction): Allocate PeerMessageFactory here.
  11214. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11215. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11216. PieceMessage::ID.
  11217. (addMessage): Simplified by using PeerMessage::onPush().
  11218. (addRequestSlot): New function.
  11219. (rejectAllPieceMessageInQueue): Simplified by using
  11220. PeerMessage::onChoked().
  11221. (rejectPieceMessageInQueue): Simplified by using
  11222. PeerMessage::onCanceled().
  11223. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11224. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11225. (createHandshakeMessage): Removed.
  11226. (createPeerMessage): Removed.
  11227. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11228. (setPeerMessageCommonProperty): Removed.
  11229. (createRequestMessage): Removed.
  11230. (createCancelMessage): Removed.
  11231. (createPieceMessage): Removed.
  11232. (createHaveMessage): Removed.
  11233. (createChokeMessage): Removed.
  11234. (createUnchokeMessage): Removed.
  11235. (createInterestedMessage): Removed.
  11236. (createNotInterestedMessage): Removed.
  11237. (createBitfieldMessage): Removed.
  11238. (createKeepAliveMessage): Removed.
  11239. (createHaveAllMessage): Removed.
  11240. (createHaveNoneMessage): Removed.
  11241. (createRejectMessage): Removed.
  11242. (createAllowedFastMessage): Removed.
  11243. * src/PieceMessage.h
  11244. (createRejectMessage): New function.
  11245. (PieceMessage): Rewritten.
  11246. (onChoked): New function.
  11247. (onCanceled): New function.
  11248. * src/PieceMessage.cc
  11249. (send): If invalidate is true then do nothing, just return.
  11250. (createRejectMessage): New function.
  11251. (onChoked): New function.
  11252. (onCanceled): New function.
  11253. * src/RequestMessage.h
  11254. (RequestMessage): Rewritten.
  11255. (onPush): New function.
  11256. (onAbortPiece): New function.
  11257. * src/RequestMessage.cc
  11258. (onPush): New function.
  11259. (onAbortPiece): New function.
  11260. Update fd_set when a socket is added or deleted in order to improve
  11261. performance:
  11262. * src/DownloadEngine.h
  11263. (rfdset): New variable.
  11264. (wfdset): New variable.
  11265. (updateFdSet): New function.
  11266. * src/DownloadEngine.cc
  11267. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11268. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11269. (waitData): Copy rfdset and wfdset.
  11270. (updateFdSet): New function.
  11271. (addSocket): Call updateFdSet.
  11272. (deleteSocket): Call updateFdSet.
  11273. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11274. To add the support for Metalink3.0 backward compatible links:
  11275. * src/Request.h
  11276. (SAFE_CHARS): Added '#'.
  11277. (METALINK_MARK): New definition.
  11278. * src/Request.cc
  11279. (parseUrl): Added the support for Metalink3.0 backward compatible
  11280. links.
  11281. etc
  11282. * src/PeerInteraction.cc
  11283. (MsgPushBack): Removed.
  11284. (sendMessages): Use STL copy and back_inserter.
  11285. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11286. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11287. * src/TorrentMan.h
  11288. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11289. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11290. * src/SharedHandle.h: New class.
  11291. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11292. * src/HttpResponseCommand.h
  11293. (HttpResponseCommand): Wrapped Socket.
  11294. * src/SocketCore.h
  11295. (operator==): New function.
  11296. (operator!=): New function.
  11297. (operator<): New function.
  11298. (getSockfd): New function.
  11299. (isOpen): New function.
  11300. (writeData): New function.
  11301. * src/SocketCore.cc
  11302. (operator==): New function.
  11303. (operator!=): New function.
  11304. (operator<): New function.
  11305. * src/AbstractCommand.h
  11306. (socket): Changed its type to SocketHandle.
  11307. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11308. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11309. (disableReadCheckSocket): New function.
  11310. (disableWriteCheckSocket): New function.
  11311. (readCheckTarget): Changed its type to SocketHandle.
  11312. (writeCheckTarget): Changed its type to SocketHandle.
  11313. (AbstractCommand): Replaced Socket with SocketHandle.
  11314. * src/AbstractCommand.cc
  11315. (AbstractCommand): Replaced Socket with SocketHandle.
  11316. (~AbstractCommand): Removed the deallocation for Socket object.
  11317. (disableReadCheckSocket): New function.
  11318. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11319. (disableWriteCheckSocket): New function.
  11320. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11321. * src/HttpDownloadCommand.cc
  11322. (DownloadCommand): Replaced Socket with SocketHandle.
  11323. * src/PeerAbstractCommand.h
  11324. (socket): Changed its type to SocketHandle.
  11325. (peer): Changed its type to PeerHandle.
  11326. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11327. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11328. (disableReadCheckSocket): New function.
  11329. (disableWriteCheckSocket): New function.
  11330. (readCheckTarget): Changed its type to SocketHandle.
  11331. (writeCheckTarget): Changed its type to SocketHandle.
  11332. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11333. Replaced Peer with PeerHandle.
  11334. * src/HttpRequestCommand.cc
  11335. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11336. Use disableReadCheckSocket.
  11337. * src/PeerInitiateConnectionCommand.h
  11338. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11339. * src/PeerChokeCommand.cc
  11340. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11341. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11342. (execute): Use PeerHandle.
  11343. * src/PeerConnection.h
  11344. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11345. (socket): Changed its type to SocketHandle.
  11346. (PeerConnection): Replaced Socket with SocketHandle.
  11347. * src/PeerConnection.cc
  11348. (PeerConnection): Replaced Socket with SocketHandle.
  11349. * src/PeerInteractionCommand.h
  11350. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11351. Replaced Peer with PeerHandle.
  11352. * src/PeerInteractionCommand.cc
  11353. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11354. Replaced Peer with PeerHandle.
  11355. (executeInternal): Use disableWriteCheckSocket.
  11356. Use HandshakeMessageHandle.
  11357. (receiveMessages): Use PeerMessageHandle.
  11358. (prepareForNextPeer): Use PeerHandle.
  11359. * src/HttpProxyRequestCommand.h
  11360. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11361. * src/HttpResponseCommand.cc
  11362. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11363. * src/TorrentMan.cc
  11364. (nullPeer): Added external reference.
  11365. (~TorrentMan): Removed the deallocation of the elements of peers.
  11366. (addPeer): Rewritten.
  11367. (isPeerAvailable): Use nullPeer.
  11368. (deleteOldpeers): Replaced with deleteErrorPeer.
  11369. (deleteErrorPeer): New function.
  11370. (getPeer): Use PeerHandle and nullPeer.
  11371. (hasMissingPiece): Replaced Peer with PeerHandle.
  11372. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11373. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11374. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11375. (getMissingPiece): Replaced Peer with PeerHandle.
  11376. * src/FtpNegotiateCommand.cc
  11377. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11378. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11379. (recvGreeting): Use disableWriteCheckSocket.
  11380. (recvPasv): Removed the allocation of Socket.
  11381. Use disableReadCheckSocket.
  11382. (sendRestPasv): Use disableWriteCheckSocket.
  11383. (recvRetr): Changed assertion.
  11384. * src/PeerInteraction.h
  11385. (SharedHandle.h): Included SharedHandle.h.
  11386. (PeerMessageHandle): New type definition.
  11387. (HandshakeMessageHandle): New type definition.
  11388. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11389. (peer): Changed its type to PeerHandle.
  11390. (createHandshakeMessage): Replaced HandshakeMessage with
  11391. HandshakeMessageHandle.
  11392. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11393. (PeerInteraction): Replaced Peer with PeerHandle.
  11394. Replaced Socket with SocketHandle.
  11395. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11396. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11397. (receiveHandshake): Replaced HandshakeMessage with
  11398. HandshakeMessageHandle.
  11399. * src/PeerInteraction.cc
  11400. (PeerInteraction): Replaced Peer with PeerHandle.
  11401. Replaced Socket with SocketHandle.
  11402. (~PeerInteraction): Removed the deallocation of the elements of
  11403. messageQueue.
  11404. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11405. (isSendingMessageInProgress): Replaced PeerMessage with
  11406. PeerMessageHandle.
  11407. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11408. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11409. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11410. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11411. (abortPiece): Use PeerMessageHandle.
  11412. (receiveHandshake): Replaced HandshakeMessage with
  11413. HandshakeMessageHandle. Removed try-catch block.
  11414. (createHandshakeMessage): Replaced HandshakeMessage with
  11415. HandshakeMessageHandle.
  11416. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11417. Removed try-catch block.
  11418. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11419. * src/HttpProxyResponseCommand.cc
  11420. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11421. * src/FtpTunnelResponseCommand.h
  11422. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11423. * src/HttpConnection.cc
  11424. (HttpConnection): Replaced Socket with SocketHandle.
  11425. * src/PeerAbstractCommand.cc
  11426. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11427. (~PeerAbstractCommand): Removed the deallocation of socket.
  11428. Use disableReadCheckSocket, disableWriteCheckSocket.
  11429. (disableReadCheckSocket): New function.
  11430. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11431. (disableWriteCheckSocket): New function.
  11432. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11433. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11434. * src/FtpTunnelRequestCommand.cc
  11435. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11436. (~FtpTunnelRequestCommand): Corrected indentation.
  11437. * src/DownloadCommand.h
  11438. (DownloadCommand): Replaced Socket with SocketHandle.
  11439. * src/PeerListenCommand.cc
  11440. (PeerListenCommand): Removed the initialization of socket.
  11441. (~PeerListenCommand): Removed the deallocation of socket.
  11442. (bindPort): Use SocketHandle.
  11443. (execute): Use SocketHandle and PeerHandle.
  11444. * src/FtpDowndloadCommand.cc
  11445. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11446. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11447. * src/main.cc
  11448. (main): Corrected indentation.
  11449. * src/HttpInitiateConnectionCommand.cc
  11450. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11451. (executeInternal): Removed the allocation of socket.
  11452. * src/HttpRequestCommand.h
  11453. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11454. * src/FtpNegotiationCommand.h
  11455. (dataSocket): Changed its type to SocketHandle.
  11456. (serverSocket): Changed its type to SocketHandle.
  11457. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11458. * src/TorrentMan.h
  11459. (MAX_PEER_UPDATE): Removed.
  11460. (MAX_PEERS): New definition.
  11461. (Peers): The element is now of type PeerHandle.
  11462. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11463. (getPeer): Replaced Peer with PeerHandle.
  11464. (deleteOldErrorPeers): Removed.
  11465. (deleteErrorPeer): New function.
  11466. (hasMissingPiece): Replaced Peer with PeerHandle.
  11467. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11468. (getMissingPiece): Replaced Peer with PeerHandle.
  11469. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11470. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11471. (addActivePeer): Replaced Peer with PeerHandle.
  11472. (deleteActivePeer): Replaced Peer with PeerHandle.
  11473. Added a check for the return value of find.
  11474. * src/FtpTunnelResponseCommand.cc
  11475. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11476. * src/FtpInitiateConnectionCommand.cc
  11477. (executeInternal): Removed the allocation of socket.
  11478. * src/DownloadEngine.h
  11479. (Sockets): An element is now of type SocketHandle.
  11480. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11481. (CommandUuids): New type definition.
  11482. (rsockets): Changed its type to SockCmdMap.
  11483. (wsockets): Changed its type to SockCmdMap.
  11484. (addSocket): Rewritten.
  11485. (deleteSocket): Rewritten.
  11486. (addSocketForReadCheck): Rewritten.
  11487. (deleteSocketForReadCheck): Rewritten.
  11488. (addSocketForWriteCheck): Rewritten.
  11489. (deleteSocketForWriteCheck): Rewritten.
  11490. (PairFind): New template class.
  11491. * src/HttpDownloadCommand.h
  11492. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11493. * src/FtpConnection.cc
  11494. (FtpConnection): Replaced Socket with SocketHandle.
  11495. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11496. block.
  11497. * src/InitiateConnectionCommandFactory.cc
  11498. (DlAbortEx.h): Included DlAbortEx.h.
  11499. (createInitiateConnectionCommand): Throw exception if the protocol of
  11500. requested URI is not supported.
  11501. * src/Peer.cc
  11502. (nullPeer): Changed its type to PeerHandle.
  11503. (operator==): New function.
  11504. (operator!=): New function.
  11505. * src/Peer.h
  11506. (SharedHandle.h): Included SharedHandle.h.
  11507. (operator==): New function.
  11508. (operator!=): New function.
  11509. (Peer): Added the default constructor.
  11510. Use resetStatus() to initialize member variables.
  11511. (nullPeer): Removed.
  11512. * src/TrackerUpdateCommand.cc
  11513. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11514. with MIN_PEERS.
  11515. * src/PeerListenCommand.h
  11516. (socket): Changed its type to SocketHandle.
  11517. * src/Command.h
  11518. (CommandUuid): New type definition.
  11519. (uuid): New variable.
  11520. (uuidGen): New variable.
  11521. (Command): Added the initialization of uuid.
  11522. (getUuid): New function.
  11523. * src/Socket.h
  11524. (Socket): Removed.
  11525. (SocketHandle): New type definition.
  11526. * src/DownloadEngine.h
  11527. (FindCommand): New function object.
  11528. (run): The portion of socket check was rewritten.
  11529. (SetDescriptor): New function object.
  11530. (AccumulateActiveCommandUuid): New function object.
  11531. (waitData): Rewritten.
  11532. (addSocket): Rewritten.
  11533. (deleteSocket): Rewritten.
  11534. (addSocketForReadCheck): Rewritten.
  11535. (addSocketForWriteCheck): Rewritten.
  11536. (deleteSocketForReadCheck): Rewritten.
  11537. (deleteSocketForWriteCheck): Rewritten.
  11538. * src/HttpProxyResponseCommand.h
  11539. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11540. * src/HttpConnection.h
  11541. (socket): Changed its type to SocketHandle.
  11542. (HttpConnection): Replaced Socket with SocketHandle.
  11543. * src/PeerInitiateConnectionCommand.cc
  11544. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11545. (executeInternal): Removed the allocation of socket.
  11546. (prepareForNextPeer): Use PeerHandle.
  11547. * src/PeerMessage.h
  11548. (peer): Changed its type to PeerHandle.
  11549. (getPeer): Replaced Peer with PeerHandle.
  11550. (setPeer): Replaced Peer with PeerHandle.
  11551. * src/DownloadCommand.cc
  11552. (DownloadCommand): Replaced Socket with SocketHandle.
  11553. * src/FtpConnection.h
  11554. (socket): Changed its type to SocketHandle.
  11555. (FtpConnection): Replaced Socket with SocketHandle.
  11556. (sendPort); Replaced Socket with SocketHandle.
  11557. * src/FtpDowndloadCommand.h
  11558. (ctrlSocket): Changed its type to SocketHandle.
  11559. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11560. * src/HttpProxyRequestCommand.cc
  11561. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11562. * src/FtpTunnelRequestCommand.h
  11563. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11564. etc
  11565. * src/PeerChokeCommand.h
  11566. (setAllPeerChoked): Removed.
  11567. (setAllPeerResetDelta): Removed.
  11568. * src/PeerChokeCommand.cc
  11569. (setAllPeerChoked): Removed.
  11570. (ChokePeer): New function object.
  11571. (setAllPeerResetDelta): Removed.
  11572. (ResetDelta): New function object.
  11573. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11574. (execute): Show download speed when the local node is a seeder.
  11575. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11576. using STL.
  11577. * src/TrackerWatcherCommand.h
  11578. (MIN_PEERS): Removed.
  11579. * src/TorrentMan.cc
  11580. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11581. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11582. To fix the bug that .aria2 file is not saved if downloading is stopped
  11583. by the errors:it results that aria2 can not resume downloading:
  11584. * src/main.cc
  11585. (normalDownload): Added the call to save().
  11586. (main): Added the deletion of the elements in 'reserved'.
  11587. To fix log:
  11588. * src/PeerInteraction.cc
  11589. (receiveHandshake): Fixed log.
  11590. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11591. To improve download performance in BitTorrent:
  11592. * src/TorrentMan.cc
  11593. (getPeer): Check the number of connections. Return nullPeer if
  11594. it is greater than MAX_PEER_UPDATE.
  11595. This code was originally here, but was removed in 0.5.1.
  11596. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11597. To improve the conditional compilation:
  11598. * src/MultiDiskWriter.h:
  11599. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11600. * src/MultiDiskWriter.cc:
  11601. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11602. * src/Util.h:
  11603. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11604. Added ENABLE_BITTORRENT around computeFastSet().
  11605. * src/Util.cc:
  11606. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11607. Added ENABLE_BITTORRENT around computeFastSet().
  11608. * src/messageDigest.h:
  11609. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11610. * src/ShaVisitor.h:
  11611. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11612. * src/ShaVisitor.cc:
  11613. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11614. * src/main.cc:
  11615. Added ENABLE_BITTORRENT around includes and blocks related to
  11616. BitTorrent.
  11617. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11618. digest support is not available.
  11619. * src/AbstractDiskWriter.h:
  11620. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11621. * src/AbstractDiskWriter.cc:
  11622. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11623. * src/MetalinkEntry.cc
  11624. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11625. support is not available.
  11626. To add command-line options for Metalink:
  11627. * src/main.cc:
  11628. Added metalink-version, metalink-language, metalink-os,
  11629. follow-metalink.
  11630. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11631. * src/main.cc: Use these definition.
  11632. * Release 0.6.0
  11633. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11634. To add Metalink support(http/ftp only):
  11635. * src/AbstractCommand.h
  11636. (tryReserved): New function.
  11637. * src/AbstractCommand.cc
  11638. (execute): Call tryReserved().
  11639. (tryReserved): New function.
  11640. * src/Request.h
  11641. (Requests): New type definition.
  11642. * src/SegmentMan.h
  11643. (reserved): New variable.
  11644. * src/Util.h
  11645. (fileChecksum): New function.
  11646. (toUpper): New function.
  11647. (toLower): New function.
  11648. * src/Util.cc
  11649. (messageDigest.h): Included.
  11650. (trim): Trim \r\n\t.
  11651. (fileChecksum): New function.
  11652. (toUpper): New function.
  11653. (toLower): New function.
  11654. * src/main.cc
  11655. (normalDownload): New function.
  11656. (main): Added 2 command-line options: metalink-file,
  11657. metalink-connection. Their usage has not been written yet.
  11658. * src/MetalinkProcessor.h: New class.
  11659. * src/Xml2MetalinkProcessor.h: New class.
  11660. * src/Xml2MetalinkProcessor.cc: New class.
  11661. * src/MetalinkEntry.h: New class.
  11662. * src/MetalinkEntry.cc: New class.
  11663. * src/MetalinkResource.h: New class.
  11664. * src/MetalinkResource.cc: New class.
  11665. To add md5 message digest checking:
  11666. * src/messageDigest.h: Rewritten.
  11667. * src/MultiDiskWriter.cc: Updated according to the changes in
  11668. messageDigest.h.
  11669. * src/ShaVisitor.cc: Updated according to the changes in
  11670. messageDigest.h.
  11671. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11672. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11673. messageDigest.h.
  11674. To fix a bug that causes segfault when the payload length in peer
  11675. message is less than 0:
  11676. * src/PeerConnection.cc:
  11677. (receiveMessage): Fixed the bug.
  11678. * src/PeerMessageUtil.cc
  11679. (checkLength): Throw an exception if length is less than or equals to
  11680. 0.
  11681. To add new interfaces to Base64 encoding/decoding:
  11682. * src/Base64.h
  11683. (part_encode): Changed the method signature.
  11684. (encode): New function(overload).
  11685. (decode): New function(overload).
  11686. * src/Base64.cc
  11687. (part_encode): Rewritten.
  11688. (encode): Rewritten.
  11689. (encode): New function(overload).
  11690. To prevent a peer to download same piece if there is an error in
  11691. checksum:
  11692. * src/PieceMessage.cc
  11693. (receivedAction): Call peerInteraction->abortPiece().
  11694. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11695. To fix the bug that causes same have message is sent many times to
  11696. a single peer.
  11697. * src/Time.cc
  11698. (isNewer): Use Util::difftv().
  11699. * src/Util.cc
  11700. (difftv): Added a cast to (long long int).
  11701. * src/TorrentMan.cc
  11702. (advertisePiece): Use push_front.
  11703. (getAdvertisedPieceIndexes): A performance improvement was made.
  11704. To fix the bug that sends tracker requests without a sleep interval
  11705. when the number of connections is less than 15.
  11706. * src/TrackerWatcherCommand.cc
  11707. (execute): Now the number of connections is not a factor to decide
  11708. whether or not a tracker request should be sent or not.
  11709. * src/Time.h
  11710. (setTimeInSec): New function.
  11711. * src/Time.cc
  11712. (setTimeInSec): New function.
  11713. etc.
  11714. * src/ChokeMessage.cc
  11715. (receivedAction): Removed peer->snubbing = false
  11716. * src/PeerConnection.h
  11717. (receiveHandshake): Updated doc.
  11718. * src/TorrentMan.h
  11719. (getAdvertisedPieceIndexes): Updated the method signature.
  11720. * src/TorrentMan.cc
  11721. (getAdvertisedPieceIndexes): Updated the method signature.
  11722. * src/Time.h
  11723. (getTimeInMicros): Added a cast to (long long int).
  11724. (getTimeInMillis): Added a cast to (long long int).
  11725. * Release 0.5.2
  11726. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11727. To make a listening socket non-block:
  11728. * src/SocketCore.h
  11729. (setNonBlockingMode): New function.
  11730. * src/SocketCore.cc
  11731. (setNonBlockingMode): New function.
  11732. (beginListen): Added a call to setNonBlockingMode().
  11733. (acceptConnection): Call setNonBlockingMode().
  11734. (setBlockingMode): Updated.
  11735. To handle tracker's NAT-checking:
  11736. * src/PeerConnection.cc
  11737. (receiveHandshake): 'msg' param is filled with received data and
  11738. its length is assigned to 'length' param, even if all handshake
  11739. message is not yet received.
  11740. * src/PeerInteractionCommand.cc
  11741. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11742. a new peer connects to localhost.
  11743. A call to peerInteraction->sendHandshake() was removed because
  11744. it is called from peerInteraction->receiveHandshake(true).
  11745. * src/PeerInteraction.h
  11746. (quickReplied): New variable.
  11747. (receiveHandshake): Added an argument.
  11748. * src/PeerInteraction.cc
  11749. (PeerInteraction): Added the initialization of quickReplied.
  11750. (receiveHandshake): Send handshake message as soon as the info hash
  11751. in a handshake message from a peer is correct.
  11752. To change the random part of peer id and key parameter:
  11753. * src/TorrentMan.h
  11754. (key): New variable.
  11755. * src/TorrentMan.cc
  11756. (setupInternal1): Use Util::randomAlpha() to generate random part
  11757. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11758. key is also generated by Util::randomAlpha() and it is now 8 character
  11759. long.
  11760. * src/Util.h
  11761. (randomAlpha): New function.
  11762. * src/Util.cc
  11763. (randomAlpha): New function.
  11764. * src/TrackerWatcherCommand.cc
  11765. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11766. Added no_peer_id=1.
  11767. Set snubbing flag to false when a choke message is received from a
  11768. snubbed peer.
  11769. * src/ChokeMessage.cc
  11770. (receivedAction): Set snubbing flag to false.
  11771. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11772. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  11773. * src/SimpleLogger.h (writeHeader): New function.
  11774. * src/SimpleLogger.cc (writeHeader): New function.
  11775. (writeLog): Fixed the bug that causes segfaults if exception message
  11776. contains an unescaped "%" character.
  11777. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  11778. when a tracker request fails.
  11779. * src/Request.cc (parseUrl): Query string is now handled properly.
  11780. * Release 0.5.1
  11781. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11782. To add Time class which represents a specific instant in time and
  11783. its precision is microseconds. Time checking procedures were rewritten
  11784. using this object.
  11785. * src/Time.h: New class.
  11786. * src/Time.cc: New class.
  11787. * src/AbstractCommand.h
  11788. (updateCheckPoint): Removed.
  11789. (isTimeoutDetected): Removed.
  11790. (checkPoint): Changed the type to Time.
  11791. (timeout): New variable.
  11792. (setTimeout): New function.
  11793. * src/AbstractCommand.cc
  11794. (AbstractCommand): Removed the initialization of checkPoint.
  11795. Added the initialization of timeout.
  11796. (updateCheckPoint): Removed.
  11797. (isTimeoutDetected): Removed.
  11798. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11799. * src/PeerChokeCommand.h
  11800. (checkPoint): Changed the type to Time.
  11801. * src/PeerChokeCommand.cc
  11802. (PeerChokeCommand): Removed the initialization of checkPoint.
  11803. (execute): Rewritten using Time object.
  11804. * src/TrackerWatcherCommand.h
  11805. (checkPoint): Changed the type to Time.
  11806. * src/TrackerWatcherCommand.cc
  11807. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  11808. (execute): Rewritten.
  11809. * src/ConsoleDownloadEngine.h
  11810. (cp): Changed the type to Time.
  11811. (startup): Changed the type to Time.
  11812. * src/ConsoleDownloadEngine.cc
  11813. (initStatistics): Use cp.reset(), startup.reset().
  11814. (calculateStatistics): Rewritten using Time object.
  11815. * src/PeerAbstractCommand.h
  11816. (updateCheckPoint): Removed.
  11817. (isTimeoutDetected): Removed.
  11818. (checkPoint): Changed the type to Time.
  11819. * src/PeerAbstractCommand.cc
  11820. (PeerAbstractCommand): Removed the initialization of checkPoint.
  11821. (updateCheckPoint): Removed.
  11822. (isTimeoutDetected): Removed.
  11823. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  11824. * src/PeerInteractionCommand.cc
  11825. (PeerInteractionCommand): Removed the initializations of struct
  11826. timeval variables.
  11827. * src/PeerInteractionCommand.h
  11828. (keepAliveCheckPoint): Changed the type to Time.
  11829. (chokeCheckPoint): Changed the type to Time.
  11830. (freqCheckPoint): Changed the type to Time.
  11831. (haveCheckTime): Changed the type to Time.
  11832. * src/PeerInteractionCommand.cc
  11833. (executeInternal): Rewritten using Time object.
  11834. (detectMessageFlooding): Rewritten using Time object.
  11835. (checkLongTimePeerChoking): Rewritten using Time object.
  11836. (sendKeepAlive): Rewritten using Time object.
  11837. (checkHave): Rewritten using Time object.
  11838. * src/SleepCommand.h
  11839. (checkPoint): Changed the type to Time.
  11840. * src/SleepCommand.cc
  11841. (SleepCommand): Removed the initialization of checkPoint.
  11842. (execute): Rewritten using Time object.
  11843. * src/TorrentAutoSaveCommand.h
  11844. (checkPoint): Changed the type to Time.
  11845. * src/TorrentAutoSaveCommand.cc
  11846. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  11847. (execute): Rewritten.
  11848. * src/DownloadCommand.h
  11849. (sw): Changed the type to Time.
  11850. * src/DownloadCommand.cc
  11851. (DownloadCommand): Removed the initialization of sw.
  11852. (executeInternal): Rewritten.
  11853. * src/RequestSlot.h
  11854. (dispatchedTime): Changed the type to Time.
  11855. * src/RequestSlot.cc
  11856. (RequestSlot): Removed the call to setDispatchedTime().
  11857. (setDispatchedTime): Rewirtten.
  11858. (isTimeout): Rewritten.
  11859. (getLatencyInMillis): Rewritten.
  11860. * src/TorrentDownloadEngine.h
  11861. (cp): Changed the type to Time[2].
  11862. (startup): Changed the type to Time.
  11863. * src/TorrentDownloadEngine.cc
  11864. (initStatistics): Rewritten.
  11865. (calculateStatistics): Rewritten.
  11866. * src/DownloadEngine.cc
  11867. (run): Rewritten.
  11868. To detect all attempts to connect to the tracker are failed:
  11869. * src/AbstractCommand.cc
  11870. (execute): Increment e->segmentMan->errors if a command aborted.
  11871. * src/SegmentMan.h
  11872. (errors): New variable.
  11873. * src/SegmentMan.cc
  11874. (SegmentMan): Added the initialization of errors.
  11875. (init): Added the initialization of errors.
  11876. * src/TrackerWatcherCommand.cc
  11877. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  11878. request was failed.
  11879. To handle snubbed peers:
  11880. * src/PeerChokeCommand.cc
  11881. (optUnchokingPeer): Snubbed peers don't get unchoked.
  11882. (execute): Snubbed peers don't get unchoked.
  11883. * src/PeerInteraction.h
  11884. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  11885. * src/PeerInteraction.cc
  11886. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  11887. back the requested 16k block in 60 seconds.
  11888. * src/PieceMessage.cc
  11889. (receivedAction): A peer's snubbed state is cleard if it sends
  11890. the requested 16k block in 60 seconds.
  11891. * src/Peer.h
  11892. (snubbing): New variable.
  11893. * src/Peer.cc
  11894. (resetStatus): Added snubbed = false.
  11895. To fix the bug that causes have message is not sent:
  11896. * src/PeerInteractionCommand.cc
  11897. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  11898. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  11899. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  11900. * src/TorrentMan.h
  11901. (HaveEntry): New class.
  11902. (advertisePiece): Rewritten.
  11903. (getAdvertisedPieceIndexes): Rewritten.
  11904. (Haves): Changed the type.
  11905. (getAdvertisedPieceIndexes): Added an argument.
  11906. Others:
  11907. * src/TorrentMan.h
  11908. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  11909. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  11910. * src/TorrentMan.cc
  11911. (getPeer): Don't check the number of connections here.
  11912. (setupInternal1): Changed peerId.
  11913. * src/PeerInteractionCommand.h
  11914. (KEEP_ALIVE_INTERVAL): New definition.
  11915. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  11916. * src/main.cc
  11917. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  11918. * src/DownloadEngine.h: Removed unnecessary header includes.
  11919. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11920. To fix the bug that causes segfaults if a tracker returns a zero-length
  11921. list as "peers":
  11922. * src/TrackerUpdateCommand.cc
  11923. (execute): Added a check to see wether the type of peers is Data*.
  11924. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11925. * Release 0.5.0
  11926. To fix compile issue with gcc3:
  11927. * src/CancelMessage.h
  11928. (ID): Renamed as ID_t
  11929. (ID_t): New enum.
  11930. * src/RejectMessage.h
  11931. (ID): Renamed as ID_t
  11932. (ID_t): New enum.
  11933. * src/SuggestPieceMessage.h
  11934. (ID): Renamed as ID_t
  11935. (ID_t): New enum.
  11936. * src/AllowedFastMessage.h
  11937. (ID): Renamed as ID_t
  11938. (ID_t): New enum.
  11939. * src/PortMessage.h
  11940. (ID): Renamed as ID_t
  11941. (ID_t): New enum.
  11942. * src/HaveNoneMessage.h
  11943. (ID): Renamed as ID_t
  11944. (ID_t): New enum.
  11945. * src/KeepAliveMessage.h
  11946. (ID): Renamed as ID_t
  11947. (ID_t): New enum.
  11948. * src/HaveAllMessage.h
  11949. (ID): Renamed as ID_t
  11950. (ID_t): New enum.
  11951. * src/UnchokeMessage.h
  11952. (ID): Renamed as ID_t
  11953. (ID_t): New enum.
  11954. * src/BitfieldMessage.h
  11955. (ID): Renamed as ID_t
  11956. (ID_t): New enum.
  11957. * src/PieceMessage.h
  11958. (ID): Renamed as ID_t
  11959. (ID_t): New enum.
  11960. * src/RequestMessage.h
  11961. (ID): Renamed as ID_t
  11962. (ID_t): New enum.
  11963. * src/NotInterestedMessage.h
  11964. (ID): Renamed as ID_t
  11965. (ID_t): New enum.
  11966. * src/ChokeMessage.h
  11967. (ID): Renamed as ID_t
  11968. (ID_t): New enum.
  11969. * src/InterestedMessage.h
  11970. (ID): Renamed as ID_t
  11971. (ID_t): New enum.
  11972. * src/HaveMessage.h
  11973. (ID): Renamed as ID_t
  11974. (ID_t): New enum.
  11975. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11976. * src/PeerAbstractCommand.h
  11977. (beforeSocketCheck): Removed.
  11978. * src/PeerAbstractCommand.cc
  11979. Modified in order to call executeInternal() even if socket check
  11980. and upload limit check fail.
  11981. * src/PeerInteractionCommand.h
  11982. (keepAlive): Removed.
  11983. (sendKeepAlive): New function.
  11984. (checkHave): New function.
  11985. (beforeSocketCheck): Removed.
  11986. * src/PeerInteractionCommand.cc
  11987. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  11988. calls to checkHave() and sendKeepAlive().
  11989. (keepAlive): Renamed to sendKeepAlive().
  11990. (sendKeepAlive): New function.
  11991. (beforeSocketCheck): Removed.
  11992. (checkHave): New function.
  11993. * src/BitfieldMan.cc
  11994. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  11995. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  11996. 0.
  11997. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  11998. * src/TorrentMan.h
  11999. (UsedPieces): Removed.
  12000. (Pieces): New type definition.
  12001. * src/Piece.h: Updated doc.
  12002. * src/Peer.h
  12003. (totalLength): Removed.
  12004. * src/Peer.cc
  12005. (updateLatency): Fixed the latency calculation.
  12006. * src/TorrentMan.cc
  12007. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12008. than or equal to MAX_PEER_LIST_SIZE.
  12009. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12010. then return false.
  12011. (deleteOldErrorPeers): Rewritten.
  12012. (deleteUsedPiece): Fixed the miss use of STL remove.
  12013. * src/PeerInteraction.h
  12014. (Pieces): Removed.
  12015. (deleteTimeoutRequestSlot): Removed.
  12016. (deleteCompletedRequestSlot): Removed.
  12017. (checkRequestSlot): New function.
  12018. * src/PeerInteraction.cc
  12019. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12020. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12021. (checkRequestSlot): New function.
  12022. * src/DownloadEngine.cc
  12023. (run): Clear activeSockets before calling waitData().
  12024. (waitData): Removed a call to activeSockets.clear().
  12025. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12026. To attempt to handle EINTR:
  12027. * src/SocketCore.cc
  12028. (isReadable): Added EINTR handling.
  12029. (isWritable): Added EINTR handling.
  12030. To improve the performance:
  12031. * src/AbstractCommand.cc
  12032. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12033. * src/PeerInteractionCommand.h
  12034. (receiveMessage): Renamed as receiveMessages().
  12035. (receiveMessages): New function.
  12036. * src/PeerInteractionCommand.cc
  12037. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12038. () function. detectMessageFlooding() is moved here.
  12039. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12040. (). The flooding detection for have message is comment out.
  12041. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12042. Util::difftv().
  12043. (receiveMessage): Renamed as receiveMessages().
  12044. (receiveMessages): New function.
  12045. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12046. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12047. * src/SleepCommand.cc
  12048. (execute): Use Util::difftvsec() instead of Util::difftv().
  12049. * src/BitfieldMan.h
  12050. (getNthBitIndex): New function.
  12051. (hasMissingPiece): New function.
  12052. (getAllMissingIndexes): New function.
  12053. * src/BitfieldMan.cc
  12054. (countSetBit): Rewritten.
  12055. (getNthBitIndex): New function.
  12056. (getMissingIndexRandomly): Rewritten.
  12057. (hasMissingPiece): New function.
  12058. (getAllMissingIndexes): New function.
  12059. * src/TorrentMan.cc
  12060. (hasMissingPiece): New function.
  12061. (deleteUsedPiece): Rewritten using STL.
  12062. * src/PeerInteraction.cc
  12063. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12064. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12065. (addRequests): Updated the number of pending requests.
  12066. * src/PeerAbstractCommand.cc
  12067. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12068. (execute): Returns true if TorrentMan::isHalt() is true.
  12069. Corrected the condition of upload limit checking.
  12070. * src/Util.h
  12071. (countBit): New function.
  12072. * src/Util.cc
  12073. (nbits): New variable.
  12074. (countBit): New function.
  12075. * src/DownloadEngine.h
  12076. (SockCmdMap): New type definition.
  12077. (waitData): Added an argument.
  12078. (addSocket): Added an argument.
  12079. (addSocketForReadCheck): Added an argument.
  12080. (addSocketForWriteCheck): Added an argument.
  12081. * src/DownloadEngine.cc
  12082. (run): Executes only commands whose sockets are ready to read or write.
  12083. All commands are executed in every 1 second.
  12084. (waitData): Calls select() again if it returned
  12085. EINTR.
  12086. (addSocket): Saves socket and command object pair to the map.
  12087. (deleteSocket): Deletes socket and command object pair from the map.
  12088. (addSocketForReadCheck): Added an argument.
  12089. (addSocketForWriteCheck): Added an argument.
  12090. * src/DownloadCommand.cc
  12091. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12092. To send "event=stopped" to the tracker when the application finishes:
  12093. * src/PeerChokeCommand.h
  12094. (checkPoint): New variable.
  12095. * src/PeerChokeCommand.cc
  12096. (PeerChokeCommand): Added the initialization of checkPoint.
  12097. (execute): The interval check is now done by checkPoint, not
  12098. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12099. * src/TorrentMan.h
  12100. (halt): New function.
  12101. (hasMissingPiece): New function.
  12102. (isHalt): New function.
  12103. (setHalt): New function.
  12104. * src/TorrentMan.cc
  12105. (TorrentMan): Added the initialization of halt.
  12106. * src/TorrentAutoSaveCommand.h
  12107. (checkPoint): New variable.
  12108. * src/PeerListenCommand.cc
  12109. (execute): Returns true if TorrentMan::isHalt() is true.
  12110. * src/main.cc
  12111. (setSignalHander): Added flags argument.
  12112. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12113. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12114. Removed printDownloadAbortMessage() after torrent downloading loop.
  12115. * src/TorrentAutoSaveCommand.cc
  12116. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12117. (execute): Returns true if TorrentMan::isHalt() is true.
  12118. The interval check is now done by checkPoint, not SleepCommand.
  12119. * src/TrackerWatcherCommand.cc
  12120. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12121. event=stopped.
  12122. * src/TrackerUpdateCommand.cc
  12123. (prepareForRetry): Do not use SleepCommand here.
  12124. (execute): Returns true if TorrentMan::isHalt() is true.
  12125. Others:
  12126. * src/TorrentMan.cc
  12127. (getMissingPieceIndex): Updated log message.
  12128. * src/PeerInteraction.cc
  12129. (createPeerMessag): Updated log message.
  12130. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12131. To add the ability to download several pieces in mix in a command and
  12132. increase the number of request slots according to request-cancel
  12133. latency:
  12134. * src/PeerInteractionCommand.cc
  12135. (executeInternal): The number of messages to be received at a time
  12136. is increased from 10 to 50.
  12137. * src/LogFactory
  12138. (getInstance): Added NullLogger.
  12139. * src/NullLogger.h: New class.
  12140. * src/BitfieldMan.h
  12141. (getMissingIndex): New function.
  12142. * src/BitfieldMan.cc
  12143. (getMissingIndex): New function.
  12144. * src/TorrentMan.h
  12145. (checkOutPiece): New function.
  12146. (getMissingPieceIndex): New function.
  12147. (getMissingFastPieceIndex): New function.
  12148. (getMissingFastPiece): New function.
  12149. * src/TorrentMan.cc
  12150. (updatePiece): Rewritten using STL.
  12151. (syncPiece): Rewritten using STL.
  12152. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12153. checkOutPiece().
  12154. (getMissingPieceIndex): New function.
  12155. (getMissingFastPieceIndex): New function.
  12156. (getMissingFastPiece): New function.
  12157. (checkOutPiece): New function.
  12158. * src/PeerInteraction.h
  12159. (Pieces): New type definition.
  12160. (piece): Removed.
  12161. (pieces): New variable.
  12162. (getNewPieceAndSendInterest): Added the "piece" argument.
  12163. (abortPiece): Added the "piece" argument.
  12164. (abortAllPieces): New function.
  12165. (isInRequestSlot): New function.
  12166. (hasDownloadPiece): Added the "index" argument.
  12167. (setDownloadPiece): Removed.
  12168. (getDownloadPiece): Added the "index" argument.
  12169. (updatePiece): New function.
  12170. (createRequestMessage): Added the "index" argument.
  12171. * src/PeerInteraction.cc
  12172. (onChoked): Rewritten.
  12173. (abortPiece): Rewirtten.
  12174. (abortAllPieces): New function.
  12175. (deleteTimeoutRequestSlot): Rewritten.
  12176. Clarified code a little bit.
  12177. (deleteCompletedRequestSlot): Rewritten.
  12178. (isInRequestSlot): New function.
  12179. (syncPiece): Rewritten.
  12180. (updatePiece): New function.
  12181. (getNewPieceAndSendInterest): Rewritten.
  12182. (addRequests): Rewritten.
  12183. (getDownloadPiece): Rewritten.
  12184. (hasDownloadPiece): Rewritten.
  12185. (createRequestMessage): Added the "index" argument.
  12186. * src/common.h
  12187. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12188. (DIV_FLOOR): New definition.
  12189. * src/PieceMessage.cc
  12190. (receivedAction): Update request-piece latency here.
  12191. * src/RequestSlot.h
  12192. (getLatencyInMillis): New function.
  12193. * src/RequestSlot.cc
  12194. (isTimeout): Rewritten using getLatencyInMillis.
  12195. (getLatencyInMillis): New function.
  12196. * src/Piece.h
  12197. (operator==): New function.
  12198. (getMissingBlockIndex): New function.
  12199. * src/Piece.cc
  12200. (operator==): New function.
  12201. (getMissingBlockIndex): New function.
  12202. * src/Peer.h
  12203. (DEFAULT_LATENCY): New definition.
  12204. (latency): New variable.
  12205. (updateLatency): New function.
  12206. (getLatency): New function.
  12207. * src/Peer.cc
  12208. (resetStatus): Reset latecy.
  12209. (updateLatency): New function.
  12210. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12211. * src/SocketCore.cc
  12212. (isReadable): Added secure to the condition.
  12213. * src/HttpConnection.cc
  12214. (receiveResponse): Fixed a bug that causes no response header
  12215. exception.
  12216. * src/Peer.h
  12217. (getFastSet): Fixed the return value type.
  12218. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12219. To remove a wait from download loop:
  12220. * src/DownloadEngine.cc
  12221. (run): Comment out shortSleep.
  12222. To rewrite the message handling:
  12223. * src/SimplePeerMessage.h: New class.
  12224. * src/SimplePeerMessage.cc: New class.
  12225. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12226. (msg): New variable.
  12227. (create): New function.
  12228. (send): Removed.
  12229. (getMessage): New function.
  12230. (getMessageLength): New function.
  12231. * src/CancelMessage.cc
  12232. (create): New function.
  12233. (receivedAction): Replaced deleteRequestMessageInQueue with
  12234. rejectPieceMessageInQueue.
  12235. (send): Removed.
  12236. (getMessage): New function.
  12237. (getMessageLength): New function.
  12238. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12239. (msg): New variable.
  12240. (msgLength): New variable.
  12241. (~BitfieldMessage): Deleted msg.
  12242. (send): Removed.
  12243. (getMessage): New function.
  12244. (getMessageLength): New function.
  12245. * src/BitfieldMessage.cc
  12246. (create): New function.
  12247. (send): Removed.
  12248. (getMessage): New function.
  12249. (getMessageLength): New function.
  12250. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12251. (msg): New variable.
  12252. (sendPredicate): New function.
  12253. (onSendComplete): New function.
  12254. (send): Removed.
  12255. (getMessage): New function.
  12256. (getMessageLength): New function.
  12257. (create): New function.
  12258. * src/ChokeMessage.cc
  12259. (create): New function.
  12260. (send): Removed.
  12261. (sendPredicate): New function.
  12262. (getMessage): New function.
  12263. (getMessageLength): New function.
  12264. (onSendComplete): New function.
  12265. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12266. (msg): New variable.
  12267. (send): Removed.
  12268. (getMessage): New function.
  12269. (getMessageLength): New function.
  12270. * src/KeepAliveMessage.cc
  12271. (send): Removed.
  12272. (getMessage): New function.
  12273. (getMessageLength): New function.
  12274. * src/PortMessage.h
  12275. (create): New function.
  12276. (receivedAction): Updated log message.
  12277. * src/PortMessage.cc: New file.
  12278. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12279. (msg): New variable.
  12280. (sendPredicate): New function.
  12281. (onSendComplete): New function.
  12282. (create): New function.
  12283. (send): Removed.
  12284. (getMessage): New function.
  12285. (getMessageLength): New function.
  12286. * src/UnchokeMessage.cc
  12287. (create): New function.
  12288. (send): Removed.
  12289. (sendPredicate): New function.
  12290. (getMessage): New function.
  12291. (getMessageLength): New function.
  12292. (onSendComplete): New function.
  12293. * src/PieceMessage.h
  12294. (leftPieceDataLength): Removed.
  12295. (leftDataLength): New variable.
  12296. (headerSend): New variable.
  12297. (pendingCount): New variable.
  12298. (msgHeader): New variable.
  12299. (sendPieceData): New function.
  12300. (incrementPendingCount): New function.
  12301. (isPendingCountMax): New function.
  12302. (create): New function.
  12303. (getMessageHeader): New function.
  12304. (getMessageHeaderLength): New function.
  12305. * src/PieceMessage.cc
  12306. (create): New function.
  12307. (getMessageHeader): New function.
  12308. (getMessageHeaderLength): New function.
  12309. (send): Rewritten.
  12310. (sendPieceData): New function.
  12311. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12312. (msg): New variable.
  12313. (create): New function.
  12314. (getMessage): New function.
  12315. (getMessageLength): New function.
  12316. * src/HaveMessage.cc
  12317. (create): New function.
  12318. (send): Removed.
  12319. (sendPieceData): New function.
  12320. (getMessage): New function.
  12321. (getMessageLength): New function.
  12322. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12323. (msg): New variable.
  12324. (create): New function.
  12325. (send): Removed.
  12326. (getMessage): New function.
  12327. (getMessageLength): New function.
  12328. * src/RequestMessage.cc
  12329. (create): New function.
  12330. (receivedAction): Added the handling of fast extension.
  12331. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12332. (send): Removed.
  12333. (getMessage): New function.
  12334. (getMessageLength): New function.
  12335. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12336. (msg): New variable.
  12337. (sendPredicate): New function.
  12338. (onSendComplete): New function.
  12339. (create): New function.
  12340. (getMessage): New function.
  12341. (getMessageLength): New function.
  12342. * src/InterestedMessage.cc
  12343. (create): New function.
  12344. (send): Removed.
  12345. (sendPieceData): New function.
  12346. (getMessage): New function.
  12347. (getMessageLength): New function.
  12348. (onSendComplete): New function.
  12349. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12350. (msg): New variable.
  12351. (sendPieceData): New function.
  12352. (onSendComplete): New function.
  12353. (create): New function.
  12354. (send): Removed.
  12355. (getMessage): New function.
  12356. (getMessageLength): New function.
  12357. * src/NotInterestedMessage.cc
  12358. (create): New function.
  12359. (send): Removed.
  12360. (sendPredicate): New function.
  12361. (getMessage): New function.
  12362. (getMessageLength): New function.
  12363. (onSendComplete): New function.
  12364. * src/AllowedFastMessage.h: New class.
  12365. * src/AllowedFastMessage.cc: New class.
  12366. * src/RejectMessage.h: New class.
  12367. * src/RejectMessage.cc: New class.
  12368. * src/SuggestPieceMessage.h: New class.
  12369. * src/SuggestPieceMessage.cc: New class.
  12370. * src/HaveAllMessage.h: New class.
  12371. * src/HaveAllMessage.cc: New class.
  12372. * src/HaveNoneMessage.h: New class.
  12373. * src/HaveNoneMessage.cc: New class.
  12374. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12375. (msg): New variable.
  12376. (reserved): New variable.
  12377. (create): New function.
  12378. (getId): New function.
  12379. (receivedAction): New function.
  12380. (getMessage): New function.
  12381. (getMessageLength): New function.
  12382. (isFastExtensionSupported): New function.
  12383. * src/HandshakeMessage.cc
  12384. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12385. (create): New function.
  12386. (getMessage): New function.
  12387. (getMessageLength): New function.
  12388. (toString): Added the output of reserved field.
  12389. (check): Added const qualifier.
  12390. (isFastExtensionSupported): New function.
  12391. * src/PeerMessageUtil.h
  12392. (createChokeMessage): Removed.
  12393. (createUnchokeMessage): Removed.
  12394. (createInterestedMessage): Removed.
  12395. (createNotInterestedMessage): Removed.
  12396. (createHaveMessage): Removed.
  12397. (createBitfieldMessage): Removed.
  12398. (createRequestMessage): Removed.
  12399. (createCancelMessage): Removed.
  12400. (createPieceMessage): Removed.
  12401. (createPortMessage): Removed.
  12402. (createChokeMessage): Removed.
  12403. (createUnchokeMessage): Removed.
  12404. (createInterestedMessage): Removed.
  12405. (createNotInterestedMessage): Removed.
  12406. (createHaveMessage): Removed.
  12407. (createBitfieldMessage): Removed.
  12408. (createRequestMessage): Removed.
  12409. (createCancelMessage): Removed.
  12410. (createPieceMessage): Removed.
  12411. (createKeepAliveMessage): Removed.
  12412. (createHandshakeMessage): Removed.
  12413. (setIntParam): New function.
  12414. (createPeerMessageString): New function.
  12415. * src/PeerMessageUtil.cc
  12416. (createChokeMessage): Removed.
  12417. (createUnchokeMessage): Removed.
  12418. (createInterestedMessage): Removed.
  12419. (createNotInterestedMessage): Removed.
  12420. (createHaveMessage): Removed.
  12421. (createBitfieldMessage): Removed.
  12422. (createRequestMessage): Removed.
  12423. (createCancelMessage): Removed.
  12424. (createPieceMessage): Removed.
  12425. (createPortMessage): Removed.
  12426. (createRequestMessage): Removed.
  12427. (createCancelMessage): Removed.
  12428. (createPieceMessage): Removed.
  12429. (createHaveMessage): Removed.
  12430. (createChokeMessage): Removed.
  12431. (createUnchokeMessage): Removed.
  12432. (createInterestedMessage): Removed.
  12433. (createNotInterestedMessage): Removed.
  12434. (createBitfieldMessage): Removed.
  12435. (createKeepAliveMessage): Removed.
  12436. (createHandshakeMessage): Removed.
  12437. (setIntParam): New function.
  12438. (createPeerMessageString): New function.
  12439. * src/PeerConnection.h
  12440. (peer): Removed.
  12441. (torrentMan): Removed.
  12442. (createNLengthMessage): Removed.
  12443. (setIntParam): Removed.
  12444. (writeOutgoingMessageLog): Removed all overloaded functions.
  12445. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12446. (sendMessage): New function.
  12447. (sendHandshake): Removed.
  12448. (sendKeepAlive): Removed.
  12449. (sendChoke): Removed.
  12450. (sendUnchoke): Removed.
  12451. (sendInterested): Removed.
  12452. (sendNotInterested): Removed.
  12453. (sendHave): Removed.
  12454. (sendBitfield): Removed.
  12455. (sendRequest): Removed.
  12456. (sendPiece): Removed.
  12457. (sendPieceHeader): Removed.
  12458. (sendPieceData): Removed.
  12459. (sendCancel): Removed.
  12460. (getPeer): Removed.
  12461. * src/PeerConnection.cc
  12462. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12463. (sendHandshake): Removed.
  12464. (sendKeepAlive): Removed.
  12465. (createNLengthMessage): Removed.
  12466. (setIntParam): Removed.
  12467. (writeOutgoingMessageLog): Removed all overloaded functions.
  12468. (sendChoke): Removed.
  12469. (sendUnchoke): Removed.
  12470. (sendInterested): Removed.
  12471. (sendNotInterested): Removed.
  12472. (sendHave): Removed.
  12473. (sendBitfield): Removed.
  12474. (sendRequest): Removed.
  12475. (sendPiece): Removed.
  12476. (sendPieceHeader): Removed.
  12477. (sendPieceData): Removed.
  12478. (sendMessage): New function.
  12479. (sendCancel): Removed.
  12480. * src/PeerInteractionCommand.cc
  12481. (PeerInteractionCommand): Call setUploadLimit.
  12482. (executeInternal): Call setUploadLimit.
  12483. Added the handling of "inProgress" state of handshake message.
  12484. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12485. sendNow().
  12486. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12487. sendNow().
  12488. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12489. * src/TorrentMan.h
  12490. (PEER_ID_LENGTH): New definition.
  12491. (hasAllPieces): New function.
  12492. * src/TorrentMan.cc
  12493. (getMissingPiece): Added the handling of fast extension.
  12494. (cancelPiece): Call updatePiece().
  12495. (hasAllPieces): New function.
  12496. * src/PeerInteraction.h
  12497. (fastSet): New variable.
  12498. (getNewPieceAndSendInterest): Changed the return type to void.
  12499. (send): Renamed as sendMessages.
  12500. (deleteAllRequestSlot): Removed.
  12501. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12502. (cancelAllRequest): Removed all overloaded functions.
  12503. (deleteAllRequestSlot): Removed.
  12504. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12505. (rejectPieceMessageInQueue): New function.
  12506. (rejectAllPieceMessageInQueue): New function.
  12507. (onChoked): New function.
  12508. (isSendingMessageInProgress): New function.
  12509. (getCorrespondingRequestSlot): Changed its arguments.
  12510. (isInFastSet): New function.
  12511. (addFastSetIndex): New function.
  12512. (addRequests): New function.
  12513. (sendNow): Removed.
  12514. (trySendNow): Removed.
  12515. (sendBitfield): New function.
  12516. (sendAllowdFast): New function.
  12517. (createHaveAllMessage): New function.
  12518. (createHaveNoneMessage): New function.
  12519. (createRejectMessage): New function.
  12520. (createAllowedFastMessage): New function.
  12521. * src/PeerInteraction.cc
  12522. (send): Renamed as sendMessages.
  12523. (sendMessages): New function.
  12524. (MsgPushBack): New class.
  12525. (isSendingMessageInProgress): New function.
  12526. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12527. (rejectAllPieceMessageInQueue): New function.
  12528. Added the handling of fast extension.
  12529. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12530. (rejectPieceMessageInQueue): New function.
  12531. Added the handling of fast extension.
  12532. (deleteRequestSlot): Replaced for loop with std::find.
  12533. (onChoked): New function.
  12534. (deleteAllRequestSlot): Removed.
  12535. (abortPiece): Rewirtten.
  12536. (deleteTimeoutRequestSlot): Updated log messages.
  12537. (getCorrespondingRequestSlot): Changed its arguments.
  12538. (cancelAllRequest): Removed all overloaded functions.
  12539. (receiveHandshake): Added the check to see whether an incoming peer
  12540. supports fast extension.
  12541. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12542. PeerMessageUtil.
  12543. (createPeerMessage): Use create() of each message class instead of
  12544. PeerMessageUtil.
  12545. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12546. AllowedFastMessage were added.
  12547. (getNewPieceAndSendInterest): Changed its return value type to void.
  12548. Added the handling of fast extension.
  12549. (addRequests): New function.
  12550. (sendNow): Removed.
  12551. (sendHandshake): Rewritten.
  12552. (trySendNow): Removed.
  12553. (sendBitfield): New function.
  12554. (sendAllowdFast): New function.
  12555. (isInFastSet): New function.
  12556. (addFastSetIndex): New function.
  12557. (createRequestMessage): Use RequestMessage::create instead of
  12558. PeerMessageUtil.
  12559. (createCancelMessage): Use CancelMessage::create instead of
  12560. PeerMessageUtil.
  12561. (createPieceMessage): Use PieceMessage::create instead of
  12562. PeerMessageUtil.
  12563. (createHaveMessage): Use HaveMessage::create instead of
  12564. PeerMessageUtil.
  12565. (createChokeMessage): Use ChokeMessage::create instead of
  12566. PeerMessageUtil.
  12567. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12568. PeerMessageUtil.
  12569. (createInterestedMessage): Use InterestedMessage::create instead of
  12570. PeerMessageUtil.
  12571. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12572. of PeerMessageUtil.
  12573. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12574. PeerMessageUtil.
  12575. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12576. PeerMessageUtil.
  12577. (createHaveAllMessage): New function.
  12578. (createHaveNoneMessage): New function.
  12579. (createRejectMessage): New function.
  12580. (createAllowedFastMessage: New function.
  12581. * src/Util.h
  12582. (sha1Sum): New function.
  12583. (computeFastSet): New function.
  12584. * src/Util.cc
  12585. (sha1Sum): New function.
  12586. (computeFastSet): New function.
  12587. * src/Peer.h
  12588. (fastExtensionEnabled): New variable.
  12589. (fastSet): New variable.
  12590. (setAllBitfield): New function.
  12591. (setFastExtensionEnabled): New function.
  12592. (isFastExtensionEnabled): New function.
  12593. (addFastSetIndex): New function.
  12594. (getFastSet): New function.
  12595. (isInFastSet): New function.
  12596. (countFastSet): New function.
  12597. * src/Peer.cc
  12598. (isInFastSet): New function.
  12599. (addFastSetIndex): New function.
  12600. (setAllBitfield): New function.
  12601. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12602. sockets.
  12603. * src/PeerAbstractCommand.cc
  12604. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12605. and uploadLimit.
  12606. (execute): Changed the procedure of checking sockets. The upload speed
  12607. checking were added.
  12608. (setUploadLimit): New function.
  12609. (setUploadLimitCheck): New function.
  12610. * src/PeerAbstractCommand.h
  12611. (setUploadLimit): New function.
  12612. (setUploadLimitCheck): New function.
  12613. (uploadLimit): New variable.
  12614. (uploadLimitCheck): New variable.
  12615. To contact a tracker regularly:
  12616. * src/TrackerWatcherCommand.h (interval): New variable.
  12617. (checkPoint): New variable.
  12618. (TrackerWatcherCommand): Added interval argument.
  12619. * src/TrackerWatcherCommand.cc
  12620. (TrackerWatcherCommand): Initialized checkPoint.
  12621. (execute): Now a tracker is contacted in every specified period.
  12622. If peer list is not needed, send request with numwant=0.
  12623. * src/TrackerUpdateCommand.cc
  12624. (execute): Updated log messages.
  12625. * src/DownloadEngine.cc
  12626. (~DownloadEngine): Removed two asserts.
  12627. (waitData): Uncommented wfds. May be a bug fix.
  12628. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12629. * src/PeerInteractionCommand.h
  12630. (checkInactiveConnection): Removed.
  12631. * src/PeerInteractionCommand.cc
  12632. (executeInternal): Removed following function calls:
  12633. detectMessageFlooding(), checkLongTimePeerChoking and
  12634. checkInactiveConnection().
  12635. (checkInactiveConnection): Removed.
  12636. (detectMessageFlooding): Removed function call to
  12637. checkInactiveConnection().
  12638. * src/PeerMessageUtil.h
  12639. (createChokeMessage): New function. Overload.
  12640. (createUnchokeMessage): New function. Overload.
  12641. (createInterestedMessage): New function. Overload.
  12642. (createNotInterestedMessage): New function. Overload.
  12643. (createHaveMessage): New function. Overload.
  12644. (createBitfieldMessage): New function. Overload.
  12645. (createRequestMessage): New function. Overload.
  12646. (createCancelMessage): New function. Overload.
  12647. (createPieceMessage): New function. Overload.
  12648. (createKeepAliveMessage): New function. Overload.
  12649. * src/PeerMessageUtil.cc
  12650. (createChokeMessage): New function. Overload.
  12651. (createUnchokeMessage): New function. Overload.
  12652. (createInterestedMessage): New function. Overload.
  12653. (createNotInterestedMessage): New function. Overload.
  12654. (createHaveMessage): New function. Overload.
  12655. (createBitfieldMessage): New function. Overload.
  12656. (createRequestMessage): New function. Overload.
  12657. (createCancelMessage): New function. Overload.
  12658. (createPieceMessage): New function. Overload.
  12659. (createKeepAliveMessage): New function. Overload.
  12660. * src/SendMessageQueue.cc
  12661. (createRequestMessage): Use PeerMessageUtil.
  12662. (createCancelMessage): Use PeerMessageUtil.
  12663. (createPieceMessage): Use PeerMessageUtil.
  12664. (createHaveMessage): Use PeerMessageUtil.
  12665. (createChokeMessage): Use PeerMessageUtil.
  12666. (createUnchokeMessage): Use PeerMessageUtil.
  12667. (createInterestedMessage): Use PeerMessageUtil.
  12668. (createNotInterestedMessage): Use PeerMessageUtil.
  12669. (createBitfieldMessage): Use PeerMessageUtil.
  12670. (createKeepAliveMessage): Use PeerMessageUtil.
  12671. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12672. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12673. * src/PeerInteraction.h: New class.
  12674. * src/PeerInteraction.cc: New class.
  12675. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12676. Each peer message has its own class.
  12677. * src/PendingMessages.h: Removed.
  12678. * src/PendingMessages.cc: Removed. The sending process was moved to
  12679. each message class.
  12680. * src/RequestSlotMan.h: Removed.
  12681. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12682. SendMessageQueue.
  12683. * src/RequestMessage.h: New class.
  12684. * src/RequestMessage.cc: New class.
  12685. * src/CancelMessage.h: New class.
  12686. * src/CancelMessage.cc: New class.
  12687. * src/BitfieldMessage.h: New class.
  12688. * src/BitfieldMessage.cc: New class.
  12689. * src/ChokeMessage.h: New class.
  12690. * src/ChokeMessage.cc: New class.
  12691. * src/KeepAliveMessage.h: New class.
  12692. * src/KeepAliveMessage.cc: New class.
  12693. * src/PortMessage.h: New class.
  12694. * src/UnchokeMessage.h: New class.
  12695. * src/UnchokeMessage.cc: New class.
  12696. * src/PieceMessage.h: New class.
  12697. * src/PieceMessage.cc: New class.
  12698. * src/HaveMessage.h: New class.
  12699. * src/HaveMessage.cc: New class.
  12700. * src/BitfieldMessage.h: New class.
  12701. * src/BitfieldMessage.cc: New class.
  12702. * src/NotInterestedMessage.h: New class.
  12703. * src/NotInterestedMessage.cc: New class.
  12704. * src/InterestedMessage.h: New class.
  12705. * src/InterestedMessage.cc: New class.
  12706. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12707. (getSendMessageQueue): New function.
  12708. (setSendMessageQueue): New function.
  12709. * src/HandshakeMessage.cc: New class.
  12710. * src/PeerConnection.h (receiveMessage): Changed return value and
  12711. arguments.
  12712. (receiveHandshake): Changed return value and arguments.
  12713. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12714. here.
  12715. (receiveHandshake): Do not create handshake class here.
  12716. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12717. (piece): Removed.
  12718. (syncPiece): Removed.
  12719. (sendInterest): Removed.
  12720. (sendMessages): Removed.
  12721. (createRequestPendingMessage): Removed.
  12722. (checkPieceHash): Removed.
  12723. (erasePieceOnDisk): Removed.
  12724. (getNewPieceAndSendInterest): Removed.
  12725. (onGotNewPice): Removed.
  12726. (onGotWrongPiece): Removed.
  12727. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12728. Removed peerConnection, piece.
  12729. (~PeerInteractionCommand): Removed peerConnection.
  12730. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12731. (syncPiece): Moved to SendMessageQueue.
  12732. (decideChoking): Removed PendingMessage.
  12733. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12734. The action after receiving peer message was moved to each message
  12735. class.
  12736. (onGotNewPice): Moved to SendMessageQueue.
  12737. (onGotWrongPiece): Moved to SendMessageQueue.
  12738. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12739. (sendInterest): Moved to SendMessageQueue.
  12740. (createRequestPendingMessage): Removed.
  12741. (sendMessages): Moved to SendMessageQueue.
  12742. (onAbort): Use SendMessageQueue::abortPiece()
  12743. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12744. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12745. (checkPieceHash): Moved to SendMessageQueue.
  12746. (erasePieceOnDisk): Moved to SendMessageQueue.
  12747. * src/PeerMessageUtil.h
  12748. (createBitfieldMessage): Removed.
  12749. (createHaveMessage): Changed return value and arguments.
  12750. (createBitfieldMessage): Changed return value and arguments.
  12751. (createRequestCancelMessage): Removed.
  12752. (createPieceMessage): Changed return value and arguments.
  12753. (getShortIntParam): New function.
  12754. (checkIndex): Changed arguments.
  12755. (checkBegin): Changed arguments.
  12756. (checkLength): Changed arguments.
  12757. (checkPieceOffset): Removed.
  12758. (checkRange): New function.
  12759. (checkBitfield): Changed arguments.
  12760. (createPeerMessage): Removed.
  12761. (checkIntegrity): Removed.
  12762. (createHandshakeMessage): Changed arguments.
  12763. (createChokeMessage): New function.
  12764. (createUnchokeMessage): New function.
  12765. (createInterestedMessage): New function.
  12766. (createNotInterestedMessage): New function.
  12767. (createRequestMessage): New function.
  12768. (createCancelMessage): New function.
  12769. (createPortMessage): New function.
  12770. * src/PeerMessageUtil.cc
  12771. (createBitfieldMessage): Removed.
  12772. (createHaveMessage): Changed return value and arguments.
  12773. (createBitfieldMessage): Changed return value and arguments.
  12774. (createRequestCancelMessage): Removed.
  12775. (createPieceMessage): Changed return value and arguments.
  12776. (getShortIntParam): New function.
  12777. (checkIndex): Changed arguments.
  12778. (checkBegin): Changed arguments.
  12779. (checkLength): Changed arguments.
  12780. (checkPieceOffset): Removed.
  12781. (checkRange): New function.
  12782. (checkBitfield): Changed arguments.
  12783. (createPeerMessage): Removed.
  12784. (checkIntegrity): Removed.
  12785. (createHandshakeMessage): Changed arguments.
  12786. (createChokeMessage): New function.
  12787. (createUnchokeMessage): New function.
  12788. (createInterestedMessage): New function.
  12789. (createNotInterestedMessage): New function.
  12790. (createRequestMessage): New function.
  12791. (createCancelMessage): New function.
  12792. (createPortMessage): New function.
  12793. * src/PeerMessage.h
  12794. (id): Removed.
  12795. (index): Removed.
  12796. (begin): Removed.
  12797. (length): Removed.
  12798. (bitfield): Removed.
  12799. (bitfieldLength): Removed.
  12800. (block): Removed.
  12801. (blockLength): Removed.
  12802. (inProgress): New variable.
  12803. (cuid): New variable.
  12804. (peer): New variable.
  12805. (sendMessageQueue): New variable.
  12806. (logger): New variable.
  12807. (setBitfield): Removed.
  12808. (getBitfield): Removed.
  12809. (setBlock): Removed.
  12810. (getBlock): Removed.
  12811. (getBitfieldLength): Removed.
  12812. (getBlockLength): Removed.
  12813. (isInProgress): New function.
  12814. (toString): Made pure virtual.
  12815. (check): New function.
  12816. (send): New function.
  12817. (receivedAction): New function.
  12818. (getId): Made pure virtual.
  12819. (setId): Removed.
  12820. (getIndex): Removed.
  12821. (setIndex): Removed.
  12822. (getBegin): Removed.
  12823. (setBegin): Removed.
  12824. (getLength): Removed.
  12825. (setLength): Removed.
  12826. (getCuid): New function.
  12827. (setCuid): New function.
  12828. (getPeer): New function.
  12829. (setPeer): New function.
  12830. (getSendMessageQueue): New function.
  12831. (setSendMessageQueue): New function.
  12832. (ID): Removed.
  12833. * src/PeerMessage.cc
  12834. (setBitfield): Removed.
  12835. (setBlock): Removed.
  12836. (toString): Removed.
  12837. * src/TorrentMan.h
  12838. (getPieceLength): New function.
  12839. (getPieceLength): New function.
  12840. * src/SendMessageQueue.h
  12841. (REQUEST_TIME_OUT): New definition.
  12842. (RequestSlots): New definition.
  12843. (MessageQueue): New definition.
  12844. (requestSlotMan): Removed.
  12845. (pendingMessages): Removed.
  12846. (requestSlots): New variable.
  12847. (messageQueue): New variable.
  12848. (torrentMan): New variable.
  12849. (peerConnection): New variable.
  12850. (peer): New variable.
  12851. (piece): New variable.
  12852. (getNewPieceAndSendInterest): New function.
  12853. (createPeerMessage): New function.
  12854. (createHandshakeMessage): New function.
  12855. (send): Made private.
  12856. (setPeerMessageCommonProperty): New function.
  12857. (deleteAllRequestSlot): New function.
  12858. (deleteRequestMessageInQueue): New function.
  12859. (cancelAllRequest): Made private.
  12860. (cancelAllRequest): Made private.
  12861. (countRequestSlot): Made private.
  12862. (addPendingMessage): Removed.
  12863. (deletePendingPieceMessage): Removed.
  12864. (deletePendingRequestMessage): Removed.
  12865. (addMessage): New function.
  12866. (deletePieceMessageInQueue): New function.
  12867. (deleteTimeoutRequestSlot): Changed argument.
  12868. (deleteCompletedRequestSlot): Changed argument.
  12869. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  12870. (getCorrespondingRequestSlot): New function.
  12871. (countPendingMessage): Removed.
  12872. (countMessageInQueue): New function.
  12873. (getTorrentMan): New function.
  12874. (getPeerConnection): New function.
  12875. (hasDownloadPiece): New function.
  12876. (getDownloadPiece): New function.
  12877. (setDownloadPiece): New function.
  12878. (syncPiece): New function.
  12879. (sendMessages): New function.
  12880. (sendNow): New function.
  12881. (trySendNow): New function.
  12882. (abortPiece): New function.
  12883. (sendHandshake): New function.
  12884. (receiveMessage): New function.
  12885. (receiveHandshake): New function.
  12886. (createRequestMessage): New function.
  12887. (createCancelMessage): New function.
  12888. (createPieceMessage): New function.
  12889. (createHaveMessage): New function.
  12890. (createChokeMessage): New function.
  12891. (createUnchokeMessage): New function.
  12892. (createInterestedMessage): New function.
  12893. (createNotInterestedMessage): New function.
  12894. (createBitfieldMessage): New function.
  12895. (createKeepAliveMessage): New function.
  12896. * src/SendMessageQueue.cc
  12897. (SendMessageQueue): Removed requestSlotMan.
  12898. Instantiated peerConnection here.
  12899. (~SendMessageQueue): Removed requestSlotMan.
  12900. Added deletion of peerConnection and the contents of messageQueue.
  12901. (send): Updated according to the change of messageQueue.
  12902. (addPendingMessage): Renamed to addMessage.
  12903. (addMessage): New function.
  12904. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  12905. (deletePieceMessageInQueue): New function.
  12906. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  12907. (deleteRequestMessageInQueue): New function.
  12908. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  12909. here.
  12910. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  12911. (...) was moved here.
  12912. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  12913. moved here.
  12914. (deleteCompletedRequestSlot):
  12915. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  12916. (getCorrespondingRequestSlot):
  12917. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  12918. And renamed to getCorrespondingRequestSlot, correcting a typo.
  12919. (countPendingMessage): Renamed to countMessageInQueue.
  12920. (countMessageInQueue): New function.
  12921. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  12922. (receiveHandshake): New function.
  12923. (createHandshakeMessage): New function.
  12924. (receiveMessage): New function.
  12925. (createPeerMessage): New function.
  12926. (syncPiece): New function.
  12927. (getNewPieceAndSendInterest): New function.
  12928. (sendMessages): New function.
  12929. (sendNow): New function.
  12930. (trySendNow): New function.
  12931. (sendHandshake): New function.
  12932. (abortPiece): New function.
  12933. (getDownloadPiece): New function.
  12934. (getPeerMessageCommonProperty): New function.
  12935. (createRequestMessage): New function.
  12936. (createCancelMessage): New function.
  12937. (createPieceMessage): New function.
  12938. (createHaveMessage): New function.
  12939. (createChokeMessage): New function.
  12940. (createUnchokeMessage): New function.
  12941. (createInterestedMessage): New function.
  12942. (createNotInterestedMessage): New function.
  12943. (createBitfieldMessage): New function.
  12944. (createKeepAliveMessage): New function.
  12945. To add simple Content-Disposition support:
  12946. * src/HttpResponseCommand.h (determinFilename): New function.
  12947. * src/HttpResponseCommand.cc (executeInternal):
  12948. Use determinFilename(headers) instead of req->getFile() when comparing
  12949. filename.
  12950. (determinFilename): New function.
  12951. (handleDefaultEncoding): Use determinFilename(headers) instead of
  12952. req->getFile().
  12953. (handleOtherEncoding): Use determinFilename(headers) instead of
  12954. req->getFile().
  12955. * src/Util.h (getContentDispositionFilename): New function.
  12956. * src/Util.cc (getContentDispositionFilename): New function.
  12957. * src/LogFactory.h (release): New function.
  12958. * src/LogFactory.cc (release): New function.
  12959. To fix a bug that causes out-of-bound exception when HTTP status
  12960. line is wrong:
  12961. * src/HttpConnection.cc (receiveResponse): Added a check for header
  12962. size.
  12963. * src/common.h (Deleter): New class.
  12964. * src/SegmentMan.cc
  12965. (~SegmentMan): Added deletion of splitter and diskWriter.
  12966. * src/DownloadEngine.h
  12967. (Commands): Use deque.
  12968. (clearQueue): New function.
  12969. * src/DownloadEngine.cc
  12970. (~DownloadEngine): Added deletion of segmentMan.
  12971. (cleanQueue): New function.
  12972. * src/TorrentDownloadEngine.h
  12973. (TorrentDownloadEngine): The implementation was moved to
  12974. TorrentDownloadEngine.cc.
  12975. (~TorrentDownloadEngine): The implementation was moved to
  12976. TorrentDownloadEngine.cc.
  12977. * src/TorrentDownloadEngine.cc
  12978. (~TorrentDownloadEngine): Added deletion of torrentMan.
  12979. * src/main.cc
  12980. (clearRequest): Removed.
  12981. (handler): Added deletion of e.
  12982. (torrentHandler): Added deletion of te.
  12983. (main): Do not share splitter.
  12984. Use Deleter instead of clearRequest.
  12985. Deletion of classes were updated.
  12986. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12987. * src/main.cc (main): Fixed typo.
  12988. * src/message.h: Fixed typo.
  12989. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  12990. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12991. To add --select-file command-line option:
  12992. * src/Util.cc
  12993. (unfoldRange): New function.
  12994. (getNum): New function.
  12995. (unfoldSubRange): New function
  12996. * src/main.cc
  12997. (showUsage): Added help message.
  12998. (main): Added --select-file command-line option. Updated the layout of
  12999. file listing.
  13000. * src/common.h
  13001. (Integers): New definition.
  13002. * src/SocketCore.cc
  13003. (writeData): Removed timeout argument.
  13004. (readData): Removed timeout argument.
  13005. (peekData): Removed timeout argument.
  13006. * src/Socket.cc
  13007. (writeData): Removed timeout argument.
  13008. (readData): Removed timeout argument.
  13009. (peekData): Removed timeout argument.
  13010. * Release 0.4.1
  13011. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13012. To deploy upload rate based choking algorithm:
  13013. * src/PeerInteractionCommand.cc
  13014. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13015. peer currently used.
  13016. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13017. download completes. Simplified.
  13018. (receiveMessage): Updated.
  13019. * src/TorrentMan.h
  13020. (activePeers): New variable.
  13021. (addActivePeer): New function.
  13022. (getActivePeers): New function.
  13023. (deleteActivePeer): New function.
  13024. * src/TorrentMan.cc
  13025. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13026. * src/PeerAbstractCommand.cc
  13027. (onAbort): Use peer->resetStatus().
  13028. * src/main.cc
  13029. (PeerChokeCommand.h): Included.
  13030. (main): Added the instance of ChokingCommand to the command queue.
  13031. * src/Peer.h
  13032. (amChoking): Renamed from amChocking
  13033. (chokingRequired): New variable.
  13034. (optUnchoking): New variable.
  13035. (deltaUpload): New variable.
  13036. (deltaDownload): New variable.
  13037. (addDeltaUpload): New function.
  13038. (resetDeltaUpload): New function.
  13039. (addDeltaDownload): New function.
  13040. (resetDeltaDownload): New function.
  13041. (addPeerUpload): Added a call to addDeltaUpload.
  13042. (addPeerDownload): Added a call to addDeltaDownload.
  13043. * src/Peer.cc
  13044. (shouldBeChoking): Renamed from shouldChoke.
  13045. (resetStatus): New function.
  13046. * src/PeerChokeCommand.h: New class.
  13047. * src/PeerChokeCommand.cc: New class.
  13048. To add lazy upload speed limiter:
  13049. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13050. statistics calculation to TorrentDownloadEngine.
  13051. * src/TorrentConsoleDownloadEngine.cc
  13052. (sendStatistics): Renamed from printStatistics.
  13053. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13054. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13055. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13056. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13057. calculation.
  13058. (sendStatistics): New function as pure virtual function.
  13059. (getUploadSpeed): New function.
  13060. * src/TorrentDownloadEngine.cc
  13061. (initStatistics): New function.
  13062. (calculateSpeed): New function.
  13063. (calculateStatistics): New function.
  13064. * src/SendMessageQueue.h
  13065. (uploadLength): New variable.
  13066. (send): Added an argument.
  13067. (setUploadLimit): New function.
  13068. (getUploadLimit): New function.
  13069. * src/SendMessageQueue.cc
  13070. (send): Added upload speed limiter.
  13071. * src/prefs.h
  13072. (PREF_UPLOAD_LIMIT): New definition.
  13073. * src/PeerInteractionCommand.cc
  13074. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13075. * src/main.cc
  13076. (main): Added --upload-limit option
  13077. For bug fixes:
  13078. * src/main.cc
  13079. (showUsage): Corrected --listen-port help
  13080. Other changes:
  13081. * src/TorrentMan.cc
  13082. (getPeer): Return nullPeer if connection is grather than
  13083. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13084. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13085. To add some useful information to the exception message:
  13086. * src/SocketCore.cc : Updated messages.
  13087. * src/SegmentMan.cc :
  13088. * src/TorrentMan.cc : Updated messages.
  13089. * src/MultiDiskWriter.cc : Updated messages.
  13090. * src/Util.cc : Updated messages.
  13091. * src/AbstractDiskWriter.cc : Updated messages.
  13092. * src/PreAllocationDiskWriter.cc : Updated messages.
  13093. * src/message.cc : Added new messages. Updated some messages.
  13094. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13095. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13096. Updated threshold from 30 to 15.
  13097. * src/AbstractDiskWriter.h (filename): New variable.
  13098. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13099. (createFile): Assigned filename.
  13100. * src/main.cc: Updated the help message for http-auth-scheme.
  13101. * Release 0.4.0
  13102. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13103. To add TrackerUpdateCommand with which replaces
  13104. CompactTrackerResponseProcessor:
  13105. * src/TrackerWatcherCommand.h (req): Removed.
  13106. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13107. if the number of peer connections are less than 30.
  13108. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13109. * src/SegmentMan.h (diskWriter): New function.
  13110. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13111. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13112. (main): Use TrackerUpdateCommand.
  13113. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13114. (req): New variable.
  13115. (setTrackerResponseProcessor): Removed.
  13116. (getTrackerResponseProcessor): Removed.
  13117. (processTrackerResponse): Removed.
  13118. * src/DownloadEngine.h (diskWriter): Removed.
  13119. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13120. to torrentMan->processTrackerResponse().
  13121. To add Util::expandBuffer:
  13122. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13123. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13124. * src/Util.h (expandBuffer): New function.
  13125. To fix the bug that causes segmentation fault when "-l ." is specified
  13126. in command-line option:
  13127. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13128. (openFile): New function.
  13129. (closeFile): New function.
  13130. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13131. (~SimpleLogger): Call closeFile();
  13132. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13133. * src/main.cc (main): Added a check to see logger is configured
  13134. properly.
  13135. To enable HTTP authentication without specifying "--http-auth-scheme"
  13136. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13137. * src/HttpConnection.cc (createRequest): Send Authorization header
  13138. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13139. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13140. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13141. * src/Peer.cc (shouldChoke): Updated algorithm.
  13142. * src/message.h (EX_AUTH_FAILED): New definition.
  13143. (EX_FILE_OPEN): New definition.
  13144. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13145. if status == 401.
  13146. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13147. if req->isTorrent == true.
  13148. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13149. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13150. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13151. (createFile): Updated message.
  13152. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13153. To add a readout of estimated remaining time to normal HTTP/FTP
  13154. downloads:
  13155. * src/ConsoleDownloadEngine.h (startup): New variable.
  13156. (startupLength): New variable.
  13157. (isStartupLengthSet): New variable.
  13158. (avgSpeed): New variable.
  13159. (eta): New variable.
  13160. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13161. estimated remaining time.
  13162. (initStatistics): Initialized newly added variables.
  13163. (calculateStatistics): Calculate average speed and estimated remaining
  13164. time.
  13165. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13166. * src/TrackerDownloadCommand.h: Removed.
  13167. * src/TrackerDownloadCommand.cc: Removed.
  13168. * src/TrackerInitCommand.h: Removed.
  13169. * src/TrackerInitCommand.cc: Removed.
  13170. * src/TrackerUpdateCommand.h: Removed.
  13171. * src/TrackerUpdateCommand.cc: Removed.
  13172. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13173. url written in TrackerInitCommand was moved here. Do not create
  13174. tracker request command if torrentMan->trackers != 0.
  13175. * src/CompactTrackerResponseProcessor.h: New class.
  13176. * src/CompactTrackerResponseProcessor.cc: New class.
  13177. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13178. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13179. Decoupled TorrentDownloadEngine from this.
  13180. * src/SegmentMan.h (init): New function.
  13181. * src/SegmentMan.cc (init): New function.
  13182. * src/TorrentMan.h (responseProcessor): New variable.
  13183. (trackers): New variable.
  13184. (setTrackerResponseProcessor): New function.
  13185. (getTrackerResponseProcessor): New function.
  13186. (processTrackerResponse): New function.
  13187. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13188. (processTrackerResponse): New function.
  13189. * src/main.cc (main): Use ByteArrayDiskWriter and
  13190. CompactTrackerResponseProcessor.
  13191. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13192. processTrackerResponse().
  13193. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13194. readout.
  13195. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13196. which indicates download has completed.
  13197. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13198. (closeFile): fd >= 0, not fd > 0
  13199. * src/main.cc (main): Added short cut for show-files.
  13200. Added short cut for torrent-file.
  13201. Added new command-line option listen-port.
  13202. Updated i18n messages.
  13203. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13204. To add LogFactory which creates singleton logger:
  13205. * src/LogFactory.h: New class.
  13206. * src/LogFactory.cc: New class.
  13207. * src/Command.h (logger): New variable.
  13208. (Constructor): Use LogFactory.
  13209. * src/AbstractCommand.cc: Use Command::logger
  13210. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13211. Use LogFactory.
  13212. * src/SegmentSplitter.h : Made logger protected.
  13213. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13214. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13215. * src/DownloadEngine.h : Made logger protected.
  13216. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13217. * src/PeerInteractionCommand.cc : Use Command::logger.
  13218. * src/HttpResponseCommand.cc : Use Command::logger.
  13219. * src/SegmentMan.h : Made logger private.
  13220. * src/TorrentMan.h : Made logger private.
  13221. * src/TorrentMan.cc : Use LogFactory.
  13222. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13223. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13224. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13225. Use LogFactory.
  13226. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13227. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13228. Use LogFactory.
  13229. * src/DownloadCommand.cc : Use Command::logger.
  13230. * src/PeerAbstractCommand.cc : Use Command::logger.
  13231. * src/PeerListenCommand.cc : Use Command::logger.
  13232. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13233. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13234. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13235. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13236. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13237. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13238. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13239. Use LogFactory.
  13240. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13241. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13242. Use LogFactory.
  13243. * src/main.cc (main): Use LogFactory.
  13244. * src/DiskAdaptor.h (logger): New variable.
  13245. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13246. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13247. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13248. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13249. parameter to a tracker request.
  13250. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13251. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13252. * src/main.cc (setSignalHander): New function.
  13253. (main): Added a handler for SIGTERM.
  13254. (handler): Updated message.
  13255. (torrentHandler): Updated message.
  13256. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13257. * src/TorrentConsoleDownloadEngine.cc
  13258. (onPartialDownloadingCompletes): Renamed as
  13259. onSelectiveDownloadingCompletes.
  13260. (onSelectiveDownloadingCompletes): Updated message.
  13261. To add DiskAdaptor which abstract DiskWriter family:
  13262. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13263. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13264. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13265. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13266. MultiDiskAdaptor.h.
  13267. (readFileEntry): Changed its arguments.
  13268. (setup): setupDiskWriter is merged into this function.
  13269. (setupDiskWriter): Removed.
  13270. (setFileFilter): New function.
  13271. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13272. made in readFileEntry.
  13273. (getFilePath): Removed.
  13274. (getTempFilePath): Removed.
  13275. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13276. (fixFilename): Removed.
  13277. (copySingleFile): Removed.
  13278. (splitMultiFile): Removed.
  13279. (deleteTempFile): Removed.
  13280. (setFileEntriesToDownload): Removed.
  13281. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13282. (isSelectiveDownloadingMode): New function.
  13283. (setAllMultiFileRequestedState): Removed.
  13284. (finishPartialDownloadingMode): Renamed as
  13285. finishSelectiveDownloadingMode.
  13286. (finishSelectiveDownloadingMode): New function.
  13287. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13288. (getSelectedTotalLength): New function.
  13289. (onDownloadComplete): Use diskAdaptor.
  13290. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13291. (Range): Removed.
  13292. (setMultiFileEntries): Renamed as setFileEntries.
  13293. (setFileEntries): New function.
  13294. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13295. (pieceLength): New variable.
  13296. * src/main.cc (printDownloadCompeleteMessage): New function.
  13297. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13298. (main): Renamed torrent-show-files to show-files.
  13299. Rewritten file contents listing.
  13300. * src/TorrentMan.h (FileEntry): Removed.
  13301. (multiFileTopDir): Removed.
  13302. (multiFileEntries): Removed.
  13303. (diskWriter): Removed.
  13304. (diskAdaptor): New variable.
  13305. * src/DefaultDiskWriter.h (totalLength): New variable.
  13306. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13307. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13308. diskWriter.
  13309. * src/TorrentConsoleDownloadEngine.h
  13310. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13311. (partialTotalLength): Renamed as selectedTotalLength.
  13312. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13313. openExistingFile, otherwise call initAndOpenFile.
  13314. (closeFile): fd > 0, not fd != 0.
  13315. * src/DirectDiskAdaptor.h: New class.
  13316. * src/DirectDiskAdaptor.cc: New class.
  13317. * src/MultiDiskAdaptor.h: New class.
  13318. * src/MultiDiskAdaptor.cc: New class.
  13319. * src/CopyDiskAdaptor.h: New class.
  13320. * src/CopyDiskAdaptor.cc: New class.
  13321. * src/DiskAdaptor.h: New class.
  13322. * src/DiskAdaptor.cc: New class.
  13323. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13324. (PREF_SHOW_FILES): New definition.
  13325. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13326. To add the ability to download multi torrent into respective files
  13327. directly:
  13328. * src/DiskWriter.h (openFile): New function.
  13329. (seek): Removed.
  13330. * src/MultiDiskWriter.h: New class.
  13331. * src/MultiDiskWriter.cc: New class.
  13332. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13333. protected.
  13334. (openFile): New function.
  13335. * src/AbstractDiskWriter.cc (openFile): New function.
  13336. * src/prefs.h (V_FALSE): New definition.
  13337. (PREF_DIRECT_FILE_MAPPING): New definition.
  13338. * src/TorrentMan.h (setupDiskWriter): New function.
  13339. (setAllMultiFileRequestedState): New function.
  13340. (onDownloadComplete): New function.
  13341. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13342. (setupDiskWriter): New function.
  13343. (getFilePath): Updated.
  13344. (getTempFilePath): Updated.
  13345. (getSegmentFilePath): Updated.
  13346. (fixFilename): Updated.
  13347. (deleteTempFile): Updated.
  13348. (setAllMultiFileRequestedState): New function.
  13349. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13350. (finishPartialDownloadingMode): Reset requested flags.
  13351. (onDownloadComplete): New function.
  13352. * src/main.cc: Added --direct-file-mapping option.
  13353. Use TorrentMan::setupDiskWriter().
  13354. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13355. onDownloadComplete().
  13356. To fix ETA bug:
  13357. * src/Util.h (difftvsec): New function.
  13358. * src/Util.cc (difftvsec): New function.
  13359. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13360. type of "elapsed" instead of long long int.
  13361. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13362. The updates of statistics takes place every 1 seconds.
  13363. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13364. (calculateSpeed): Changed its argument signature.
  13365. * src/PeerMessage.cc (toString): Fixed message.
  13366. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13367. To print ETA:
  13368. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13369. completion handling when dealing with
  13370. TorrentMan::isPartialDownloadingMode() == true.
  13371. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13372. New function.
  13373. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13374. (sessionDownloadLength): New variable.
  13375. (avgSpeed): New variable.
  13376. (eta): New variable.
  13377. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13378. new variables: eta, avgSpeed, startup.
  13379. (calculateSpeed): Calculate average speed and ETA.
  13380. (printStatistics): Added ETA.
  13381. * src/Util.h (secfmt): New function.
  13382. * src/Util.cc (secfmt): New function.
  13383. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13384. To detect "keep alive" flooding:
  13385. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13386. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13387. variable: keepAliveCount.
  13388. (detectMessageFlooding): Added "keep alive" flooding detection.
  13389. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13390. received.
  13391. To add the ability to download only specified files in multi-file
  13392. torrent:
  13393. * src/BitfieldMan.h (filterBitfield): New variable.
  13394. (filterEnabled): New variable.
  13395. (setFilterBit): New function.
  13396. (enableFilter): New function.
  13397. (disableFilter): New function.
  13398. (isFilterEnabled): New function.
  13399. (getFilteredTotalLength): New function.
  13400. (getCompletedLength): New function.
  13401. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13402. filterBitfield, filterEnabled.
  13403. (CopyConstructor): Added filterBitfield and filterEnabled.
  13404. (operator==): Added filterBitfield and filterEnabled.
  13405. (Destructor): Added filterBitfield.
  13406. (getMissingIndex): Use filterBitfield.
  13407. (getMissingUnusedIndex): Use filterBitfield.
  13408. (getFirstMissingUnusedIndex): Use filterBitfield.
  13409. (getFirstMissingUnusedIndex): Use filterBitfield.
  13410. (getAllMissingIndexes): Use filterBitfield.
  13411. (countMissingBlock): Use filterBitfield.
  13412. (countBlock): Use filterBitfield.
  13413. (setBitInternal): Added new argument on.
  13414. (setUseBit): Use setBitInternal.
  13415. (unsetUseBit): Use setBitInternal.
  13416. (setBit): Use setBitInternal.
  13417. (unsetBit): Use setBitInternal.
  13418. (isAllBitSet): Use filterBitfield.
  13419. (setFilterBit): New function.
  13420. (addFilter): New function.
  13421. (enableFilter): New function.
  13422. (disableFilter): New function.
  13423. (clearFilter): New function.
  13424. (isFilterEnabled): New function.
  13425. (getFilteredTotalLength): New function.
  13426. (getCompletedLength): New function.
  13427. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13428. Initalized newly added variables.
  13429. [FileEntry](offset): New variable.
  13430. [FileEntry](extracted): New variable.
  13431. [FileEntry](requested): New variable.
  13432. (readFileEntry): New function.
  13433. (option): New variable.
  13434. (splitMultiFile): Removed const qualifier.
  13435. (fixFilename): Removed const qualifier.
  13436. (readFileEntryFromMetaInfoFile): New function.
  13437. (finishPartialDownloadingMode): New function.
  13438. (isPartialDownloadingMode): New function.
  13439. (setFileEntriesToDownload): New function.
  13440. (getCompletedLength): New function.
  13441. (getPartialTotalLength): New function.
  13442. * src/TorrentMan.cc (readFileEntry): New function.
  13443. (setup): Use readFileEntry. If no-preallocation option is specified,
  13444. use DefaultDiskWriter.
  13445. (readFileEntryFromMetaInfoFile): New function.
  13446. (fixFilename): Removed const qualifier.
  13447. (splitMultiFile): Removed const qualifier.
  13448. (setFileEntriesToDownload): New function.
  13449. (isPartialDownloadingMode): New function.
  13450. (finishPartialDownloadingMode): New function.
  13451. (getCompletedLength): New function.
  13452. (getPartialTotalLength): New function.
  13453. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13454. New variable.
  13455. (partialTotalLength): New variable.
  13456. (downloadLength): New variable.
  13457. (totalLength): New variable.
  13458. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13459. Added log.
  13460. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13461. partialTotalLength, downloadLength, totalLength.
  13462. (calculate): Calculate downloadLength and totalLength.
  13463. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13464. * src/main.cc (addCommand): Changed argument signature.
  13465. (main): Added new variable: args. Added new option "torrent-show-files"
  13466. "no-preallocation". Usage is not updated yet.
  13467. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13468. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13469. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13470. Attempt to add the ability to listing file entries in a .torrent file.
  13471. This feature is not yet complete.
  13472. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13473. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13474. (getName): New function.
  13475. * src/TorrentMan.h (getMultiFileEntries): New function.
  13476. (getName): New function.
  13477. * src/main.cc (main): Use above 2 funtion.
  13478. * Release 0.3.2
  13479. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13480. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13481. (detectMessageFlooding): Updated threshold value.
  13482. (checkLongTimePeerChoking): Updated timeout value.
  13483. (getNewPieceAndSendInterest): Added debug log.
  13484. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13485. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13486. (getPeer): Updated.
  13487. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13488. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13489. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13490. is localhost.
  13491. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13492. * src/PendingMessage.cc (processMessage): Not to send piece message
  13493. if peer is not interested in the pieces localhost has.
  13494. * src/Peer.cc (shouldChoke): Updated.
  13495. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13496. * src/Util.cc (isPowerOf): New function.
  13497. * src/Util.h (isPowerOf): New function.
  13498. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13499. whether or not it is power of 2.
  13500. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13501. Added new class SendMessageQueue that includes PendingMessages and
  13502. RequestSlotMan.
  13503. * src/SendMessageQueue.h: New class.
  13504. * src/SendMessageQueue.cc: New class.
  13505. * src/PendingMessage.h: Added new member variable blockIndex and its
  13506. accessors.
  13507. (createRequestMessage): Updated.
  13508. * src/PendingMessage.cc (createRequestMessage): Updated.
  13509. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13510. SendMessageQueue.
  13511. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13512. (receiveMessage): Updated with SendMessageQueue.
  13513. (deletePendingPieceMessage): Removed.
  13514. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13515. (sendInterest): Updated with SendMessageQueue.
  13516. (createRequestPendingMessage): Updated with SendMessageQueue.
  13517. (sendMessages): Updated with SendMessageQueue.
  13518. (onAbort): Updated with SendMessageQueue.
  13519. (keepAlive): Updated with SendMessageQueue.
  13520. (beforeSocketCheck): Updated SendMessageQueue.
  13521. * src/PeerInteractionCommand (sendMessages): Shuffle
  13522. missingBLockIndexes before using it.
  13523. Added its own timeout for peer connection.
  13524. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13525. setter.
  13526. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13527. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13528. Added setTimeout() call.
  13529. (executeInternal): Added setTimeout() call.
  13530. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13531. Added timeout.
  13532. (isTimeoutDetected): Updated.
  13533. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13534. option.
  13535. Added *simple* message flooding checker.
  13536. * src/PeerInteractionCommand.cc (executeInternal):
  13537. Added detectMessageFlooding() call.
  13538. (detectMessageFlooding): New function.
  13539. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13540. (beforeSocketCheck): Added detectMessageFlooding() call.
  13541. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13542. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13543. Removed deletePendingPieceMessage(), getRequestSlot(),
  13544. deleteRequestSlot(), deleteAllRequestSlot().
  13545. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13546. Added checkLongTimePeerChoking() call.
  13547. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13548. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13549. if duplicate == false.
  13550. The parameter "uploaded" and "downloaded" in the tracker request are
  13551. the size since the client sent the "started" event to the tracker.
  13552. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13553. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13554. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13555. getSessionDownloadedSize(), getSessionUploadedSize().
  13556. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13557. getSessionUploadedSize() instead of getDownloadedSize(),
  13558. getUploadedSize().
  13559. * src/PendingMessage.cc (processMessage): Do not send request message
  13560. if the peer is choking the client.
  13561. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13562. less than interval.
  13563. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13564. * configure.in: Added gnutls support. Added several CPP macros.
  13565. * m4/openssl.m4: Added.
  13566. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13567. readData(), peekData(). Added gnutls support.
  13568. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13569. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13570. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13571. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13572. Instead, added a check for whether setup method has executed
  13573. successfully.
  13574. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13575. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13576. * src/Makefile.am: Updated.
  13577. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13578. using whether OpenSSL or gcrypt, depending on the result of configure
  13579. script.
  13580. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13581. messageDigest.h.
  13582. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13583. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13584. Fixed memory leak.
  13585. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13586. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13587. Removed instantiation of TrackerInitCommand. Instead,
  13588. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13589. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13590. ENABLE_SSL.
  13591. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13592. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13593. If a piece is already acquired by another command, delete the request
  13594. slots for the piece.
  13595. * src/TrackerUpdateCommand.cc (execute):
  13596. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13597. Added a check whether peer list is null.
  13598. Fixed the bug that causes sending completed event to the tracker
  13599. several times.
  13600. * src/TrackerInitCommand.cc (execute):
  13601. Fixed the bug that causes sending completed event to the tracker
  13602. several times.
  13603. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13604. by using messageDigest.h.
  13605. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13606. * PeerConnection.cc: Replaced log message "keep-alive" with
  13607. "keep alive".
  13608. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13609. localhost long time.
  13610. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13611. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13612. at most 100 failure entry from the list. If with duplicate = false,
  13613. MAX_PEER_LIST is not checked.
  13614. * PeerListenCommand.cc: Fixed the argument order of log message.
  13615. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13616. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13617. Added warn().
  13618. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13619. Implemented warn().
  13620. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13621. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13622. * Request.h: Added AFTER_COMPLETED event.
  13623. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13624. instead of downloaded size and progress(%) after download completes.
  13625. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13626. message to the peer if it is interested in what localhost has
  13627. downloaded.
  13628. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13629. destination instead of just renaming it.
  13630. * TorrentMan.cc: Added deleteTempFile().
  13631. * PeerAbstractCommand.cc: do not stop execution after download
  13632. completes. This makes localhost a seeder.
  13633. * Util.{h,cc}: Added fileCopy().
  13634. * PeerListenCommand.cc: do not stop execution after download completes.
  13635. This makes localhost a seeder.
  13636. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13637. Added TorrentMan::deleteTempFile() to torrentHandler.
  13638. Initialized the variable dir as ".".
  13639. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13640. Deleted renameSingleFile().
  13641. Added copySingleFile(), deleteTempFile().
  13642. * DownloadEngine.h: Added virtual function afterEachIteration().
  13643. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13644. in onEndOfRun() to afterEachIteration().
  13645. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13646. true.
  13647. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13648. In rangedFileCopy(), added try-catch block to properly close file
  13649. descriptors.
  13650. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13651. Added afterEachIteration(), isFilenameFixed().
  13652. * Peer.cc: Changed choking strategy.
  13653. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13654. * TrackerInitCommand.cc: Send completed event only once.
  13655. * DownloadEngine.cc: Added a call to afterEachIteration().
  13656. * TrackerUpdateCommand.cc: Do not stop execution after download
  13657. completes.
  13658. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13659. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13660. received from a tracker.
  13661. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13662. Decreased the number of failure peers to delete to 0(just comment out
  13663. the line).
  13664. * Release 0.3.1
  13665. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13666. * PeerInteractionCommand.cc: added a call to
  13667. TorrentMan::unadvertisePiece in Destructor.
  13668. * PeerInteractionCommand.cc: make have message sent immediately
  13669. if the size of pending message queue is zero.
  13670. * TorrentMan.cc: set the maximum size of peer list to 250.
  13671. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13672. to deque.
  13673. * Util.cc: fixed rangedFileCopy.
  13674. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13675. to Constructor. Also, moved digest cleanup to Destructor.
  13676. * MetaFileUtil.cc: fixed memory leak
  13677. * replaced std::vector with std::deque.
  13678. * AbstractCommand.cc: casted timeout value to long long int.
  13679. * ChunkedEncoding.cc: fixed memory leak.
  13680. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13681. * SleepCommand.cc: casted timeout value to long long int.
  13682. * Data.cc: fixed memory leak.
  13683. * Data.cc: fixed toLLInt().
  13684. * BitfieldMan.cc: fixed memory leak.
  13685. * TorrentMan.cc: initialized storeDir to ".".
  13686. * TorrentMan.cc: fixed memory leak.
  13687. * TorrentMan.cc: corrected file paths of splitted files.
  13688. * PeerAbstractCommand.cc: casted timeout to long long int.
  13689. * main.cc: added delete(req) and delete(te->diskWriter).
  13690. * RequestSlot.cc: casted timeout value to long long int.
  13691. * Request.cc: fixed memory leak.
  13692. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13693. have the piece.
  13694. * Peer.{h,cc}: added hasPiece(int index).
  13695. * main.cc: corrected addCommand.
  13696. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13697. * BitTorrent protocol support added.
  13698. * Release 0.3.0
  13699. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13700. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13701. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13702. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13703. decoding did not work properly.
  13704. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13705. * DownloadEngine.h: included sys/time.h
  13706. * DownloadEngine.cc: remove sys/time.h
  13707. * Makefile.am (SUBDIRS): Add intl.
  13708. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13709. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13710. * main.cc: correct help message for --http-auth-scheme.
  13711. * main.cc: changed e-mail address for bug reports.
  13712. * ja.po: added japanese translation.
  13713. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13714. * SimpleLogger.cc: flush log file instead of stdout.
  13715. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13716. * main.cc: Fixed command-line option: max-tries
  13717. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13718. does not equal to seg.sp.
  13719. * DownloadCommand.cc: If EOF is got from the server and the total size
  13720. of file is not zero, then throw DlRetryEx.
  13721. * main.cc: Set the minium value of min-segment-size to 1024.
  13722. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13723. fails because of a regression since 0.2.0 release.
  13724. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13725. * HttpConnection.cc:
  13726. * common.h: defined the user agent name as macro
  13727. * DownloadEngine.{h, cc}:
  13728. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13729. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13730. * main.cc: Download complete/abort message is now generated by main.
  13731. * Makefile.am (SUBDIRS): Add m4.
  13732. (ACLOCAL_AMFLAGS): New variable.
  13733. (EXTRA_DIST): New variable.
  13734. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13735. * gettext: added gettext functionality
  13736. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13737. * AbstractCommand.cc:
  13738. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13739. unregister its cuid from SegmentMan.
  13740. * DownloadEngine.cc: .aria2 file was written when a downloading
  13741. failed with errors.
  13742. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13743. Added "User-Agent" header to CONNECT proxy request.
  13744. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13745. properly.
  13746. * Logger.h:
  13747. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13748. * ChunkedEncoding.cc: Added #include directive for strings.h
  13749. * Release 0.2.1
  13750. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13751. * Util.{h,cc}: added startsWith().
  13752. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13753. Util::endsWith().
  13754. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13755. * common.h: added #include directive of limit.h.
  13756. * DownloadEngine.cc: added #include directive of sys/time.h and
  13757. algorithm.
  13758. * Exception.h: added #include directive of stdio.h.
  13759. * AbstractCommand.h: added #include directive of sys/time.h.
  13760. * DownloadCommand.h: added #include directive of sys/time.h.
  13761. * *.h: added #include directive of common.h to all base classes.
  13762. subclasses' one was removed.
  13763. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13764. does not define these macros.
  13765. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13766. * Release 0.2.0
  13767. * main.cc:
  13768. * HttpInitiateConnectionCommand.{h,cc}:
  13769. * prefs.h:
  13770. * HttpConnection.{h,cc}: added --http-proxy-method option.
  13771. We can now use GET command in http proxy.
  13772. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13773. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  13774. that splits slowest segment of SegmentMan::commands vector.
  13775. This is the default split algorithm of aria2.
  13776. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  13777. that splits first segment of SegmentMan::commands vector.
  13778. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  13779. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  13780. * Segment.h:
  13781. * SegmentMan.cc: Added speed field to Segment.h
  13782. * main.cc: -s option now affects all URLs in command-line arguemtns.
  13783. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  13784. * message.h: Change file size related %d to %lld.
  13785. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13786. * FtpInitiateConnectionCommand.{h,cc}:
  13787. * FtpNegotiationCommand.{h,cc}:
  13788. * FtpDownloadCommand.{h,cc}:
  13789. * FtpConnection.{h,cc}: Added FTP support
  13790. * SimpleLogger.cc: Log message now includes time information.
  13791. * main.cc: The value of --http-auth-scheme option is chagned from
  13792. 'BASIC' to 'basic'
  13793. * main.cc: Added --timeout command-line option.
  13794. * main.cc: Added --min-segment-size command-line option.
  13795. * main.cc: Added --max-retries command-line option.
  13796. * prefs.h: option string constants are now defined in prefs.h
  13797. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13798. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  13799. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  13800. with version 0.1.0's one.
  13801. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13802. * configure.in: Added --enable-ssl option to configure script.
  13803. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  13804. cannot permit absoluteURI as Request-URI.
  13805. * HttpConnection.cc: Added Referer support.
  13806. * main.cc: Added referer command-line option.
  13807. * main.cc: Added rety-wait command-line option.
  13808. * Exception.h: Fixed formating bug in Exception::setMsg()
  13809. * SocketCore.{h,cc}:
  13810. * Socket.{h, cc}:
  13811. * Request.cc:
  13812. * InitiateConnectionCommandFactory.cc:
  13813. * HttpRequestCommand.cc: Added HTTPS support.
  13814. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  13815. for SocketCore.
  13816. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  13817. size is wrong
  13818. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  13819. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  13820. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  13821. * Release 0.1.0