ChangeLog 539 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052
  1. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  2. Added tellActiveStatus xml-rpc command which reports download
  3. status of active downloads.
  4. * src/XmlRpcMethodFactory.cc
  5. * src/XmlRpcMethodImpl.cc
  6. * src/XmlRpcMethodImpl.h
  7. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  8. Added addTorrentFile xml-rpc command which receives uploaded
  9. torrent file and add download for it.
  10. * src/RequestGroupMan.cc
  11. * src/XmlRpcMethodFactory.cc
  12. * src/XmlRpcMethodImpl.cc
  13. * src/XmlRpcMethodImpl.h
  14. * src/download_helper.cc
  15. * src/download_helper.h
  16. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  17. Added remove xml-rpc command which removes specified download.
  18. There is a known issue: the removed unfinished downloads are
  19. reported ERR when aria2 exits. They should be reported as INPR.
  20. * src/RequestGroupMan.cc
  21. * src/RequestGroupMan.h
  22. * src/XmlRpcMethodFactory.cc
  23. * src/XmlRpcMethodImpl.cc
  24. * src/XmlRpcMethodImpl.h
  25. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  26. If --enable-http-server is enabled, don't stop aria2 when all
  27. download finished and don't quit when no files to download at
  28. start up.
  29. * src/RequestGroupMan.cc
  30. * src/main.cc
  31. * src/option_processing.cc
  32. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  33. Added missing AM_CONDITIONAL
  34. * configure.ac
  35. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  36. Added xml-rpc functionality. Currently only addURI commad is
  37. supported. To enable xml-rpc, run aria2 with
  38. --enable-http-server. This option name is temporal and will be
  39. changed. The feature that reports download progress in html format
  40. is temporarily disabled.
  41. * src/HttpServer.cc
  42. * src/HttpServer.h
  43. * src/HttpServerBodyCommand.cc
  44. * src/HttpServerBodyCommand.h
  45. * src/HttpServerCommand.cc
  46. * src/HttpServerResponseCommand.cc
  47. * src/Makefile.am
  48. * src/OptionParser.cc
  49. * src/OptionParser.h
  50. * src/RequestGroupMan.cc
  51. * src/RequestGroupMan.h
  52. * src/XmlRpcMethod.cc
  53. * src/XmlRpcMethod.h
  54. * src/XmlRpcMethodFactory.cc
  55. * src/XmlRpcMethodFactory.h
  56. * src/XmlRpcMethodImpl.cc
  57. * src/XmlRpcMethodImpl.h
  58. * src/download_helper.cc
  59. * src/download_helper.h
  60. * test/Makefile.am
  61. * test/XmlRpcMethodTest.cc
  62. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  63. Added xml-rpc request parser. The supported value types are:
  64. i4/int, string, double, struct, array, base64. Currently only
  65. libxml2 version is provided.
  66. * src/Xml2XmlRpcRequestProcessor.cc
  67. * src/Xml2XmlRpcRequestProcessor.h
  68. * src/XmlRpcElements.cc
  69. * src/XmlRpcElements.h
  70. * src/XmlRpcRequest.h
  71. * src/XmlRpcRequestParserController.cc
  72. * src/XmlRpcRequestParserController.h
  73. * src/XmlRpcRequestParserState.h
  74. * src/XmlRpcRequestParserStateImpl.cc
  75. * src/XmlRpcRequestParserStateImpl.h
  76. * src/XmlRpcRequestParserStateMachine.cc
  77. * src/XmlRpcRequestParserStateMachine.h
  78. * src/XmlRpcRequestProcessor.h
  79. * test/XmlRpcRequestParserControllerTest.cc
  80. * test/XmlRpcRequestProcessorTest.cc
  81. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  82. * Release 1.3.3
  83. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  84. Fixed compile error since r1202.
  85. * src/ExpatMetalinkProcessor.cc
  86. 2009-05-08 Tatsuhiro Tsujikawa <[email protected]>
  87. Updated Ukrainian, Russian and Simplified Chinese
  88. translations. Thanks to all translators.
  89. * po/ru.po
  90. * po/uk.po
  91. * po/zh_CN.po
  92. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  93. Pass reference of Option object instead of pointer.
  94. * src/download_helper.cc
  95. * src/download_helper.h
  96. * src/main.cc
  97. * test/DownloadHelperTest.cc
  98. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  99. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  100. from option directly. Instead, get them from RequestGroup.
  101. * src/ActivePeerConnectionCommand.cc
  102. * src/ActivePeerConnectionCommand.h
  103. * src/PeerReceiveHandshakeCommand.cc
  104. * src/RequestGroup.h
  105. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  106. Removed unused uploadLimitCheck and uploadLimit from
  107. PeerAbstractCommand. Removed unused maxDownloadLimit from
  108. PeerInteractionCommand.
  109. * src/PeerAbstractCommand.cc
  110. * src/PeerAbstractCommand.h
  111. * src/PeerInteractionCommand.cc
  112. * src/PeerInteractionCommand.h
  113. 2009-05-07 Tatsuhiro Tsujikawa <[email protected]>
  114. Fixed broken file renaming feature since r1202.
  115. * src/FtpNegotiationCommand.cc
  116. * src/FtpNegotiationCommand.h
  117. * src/HttpResponseCommand.cc
  118. * src/RequestGroup.cc
  119. * src/RequestGroup.h
  120. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  121. Removed unused debug log
  122. * src/SocketCore.cc
  123. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  124. Generated configure and Makefile.in using autoconf 2.63 and
  125. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  126. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  127. * configure.ac
  128. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  129. Moved piece statistics stuff to new PieceStatMan class.
  130. Refactored PieceSelector interface.
  131. * src/DefaultPieceStorage.cc
  132. * src/DefaultPieceStorage.h
  133. * src/LongestSequencePieceSelector.cc
  134. * src/LongestSequencePieceSelector.h
  135. * src/Makefile.am
  136. * src/PieceSelector.h
  137. * src/PieceStatMan.cc
  138. * src/PieceStatMan.h
  139. * src/RarestPieceSelector.cc
  140. * src/RarestPieceSelector.h
  141. * src/RequestGroup.cc
  142. * test/DefaultPieceStorageTest.cc
  143. * test/InOrderPieceSelector.h
  144. * test/Makefile.am
  145. * test/PieceStatManTest.cc
  146. * test/RarestPieceSelectorTest.cc
  147. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  148. Added static member _protocolFamily to SocketCore. By default,
  149. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  150. address. Sometime SocketCore::bind() and
  151. SocketCore::establishConnection() use difference protocl family
  152. and latter cannot connect to former. To avoid this situation, we
  153. limit protocol family to AF_INET for unit tests.
  154. * src/SocketCore.cc
  155. * src/SocketCore.h
  156. * test/AllTest.cc
  157. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  158. Avoid std::bad_alloc for negative bencode string length.
  159. * src/bencode.cc
  160. 2009-05-06 Tatsuhiro Tsujikawa <[email protected]>
  161. Supported segmented downloading with chunked transfer encoding and
  162. content-length.
  163. * src/DownloadCommand.cc
  164. * src/HttpResponseCommand.cc
  165. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  166. Bump up version number to 1.3.3
  167. * configure.ac
  168. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  169. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  170. from 4096 to 65536 (for insanely large ftp login banners)
  171. * src/FtpConnection.h
  172. * test/FtpConnectionTest.cc
  173. 2009-05-05 Tatsuhiro Tsujikawa <[email protected]>
  174. In DefaultBtContext::getActualBasePath(), return first
  175. FileEntry::getPath() for single file torrent.
  176. * src/DefaultBtContext.cc
  177. * test/DefaultBtContextTest.cc
  178. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  179. Removed directIOAllowed() from BinaryStream, DiskWriter,
  180. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  181. Removed _directIOAllowed member from DiskWriter.
  182. * src/AbstractDiskWriter.cc
  183. * src/AbstractDiskWriter.h
  184. * src/AbstractSingleDiskAdaptor.cc
  185. * src/AbstractSingleDiskAdaptor.h
  186. * src/BinaryStream.h
  187. * src/ByteArrayDiskWriter.h
  188. * src/DefaultPieceStorage.cc
  189. * src/DiskWriter.h
  190. * src/MultiDiskAdaptor.cc
  191. * src/MultiDiskAdaptor.h
  192. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  193. Now the constructor of AbstractDiskWriter takes filename as an
  194. argument and filename argument is removed from openFile(),
  195. initAndOpenFile(), openExistingFile() interface. storeDir member
  196. and its accessor functions are removed from DiskAdaptor because it
  197. is not used anymore. size() member function of DefaultDiskWriter,
  198. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  199. opening file.
  200. * src/AbstractDiskWriter.cc
  201. * src/AbstractDiskWriter.h
  202. * src/AbstractSingleDiskAdaptor.cc
  203. * src/AbstractSingleDiskAdaptor.h
  204. * src/ByteArrayDiskWriter.cc
  205. * src/ByteArrayDiskWriter.h
  206. * src/ByteArrayDiskWriterFactory.cc
  207. * src/ByteArrayDiskWriterFactory.h
  208. * src/DefaultDiskWriter.cc
  209. * src/DefaultDiskWriter.h
  210. * src/DefaultDiskWriterFactory.cc
  211. * src/DefaultDiskWriterFactory.h
  212. * src/DefaultPieceStorage.cc
  213. * src/DirectDiskAdaptor.cc
  214. * src/DirectDiskAdaptor.h
  215. * src/DiskAdaptor.h
  216. * src/DiskWriter.h
  217. * src/DiskWriterFactory.h
  218. * src/MessageDigestHelper.cc
  219. * src/MultiDiskAdaptor.cc
  220. * src/RequestGroup.cc
  221. * src/UnknownLengthPieceStorage.cc
  222. * src/Util.cc
  223. * test/DefaultDiskWriterTest.cc
  224. * test/DirectDiskAdaptorTest.cc
  225. * test/FallocFileAllocationIteratorTest.cc
  226. * test/MessageDigestHelperTest.cc
  227. * test/MetalinkProcessorTest.cc
  228. * test/MultiDiskAdaptorTest.cc
  229. * test/MultiFileAllocationIteratorTest.cc
  230. * test/SingleFileAllocationIteratorTest.cc
  231. * test/UtilTest.cc
  232. 2009-05-04 Tatsuhiro Tsujikawa <[email protected]>
  233. Fixed the bug that aria2 aborts when --select-file is used. This
  234. bug was introduced in r1199.
  235. * src/MultiDiskAdaptor.cc
  236. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  237. Code cleanup
  238. * test/MockPieceStorage.cc
  239. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  240. Fixed the bug that read-only file with wrong file size will cause
  241. error because it cannot be truncated to the correct size. Now if
  242. file size is different than the expected one, re-open file in
  243. writable mode.
  244. * src/AbstractSingleDiskAdaptor.cc
  245. * src/AbstractSingleDiskAdaptor.h
  246. * src/BtCheckIntegrityEntry.cc
  247. * src/DiskAdaptor.h
  248. * src/MultiDiskAdaptor.h
  249. * src/RequestGroup.cc
  250. 2009-05-03 Tatsuhiro Tsujikawa <[email protected]>
  251. Fixed the bug that with --check-integrity option aria2 reports
  252. downloaded file size is 0 even if some parts of file is correctly
  253. downloaded. This bug is reproducible for the download that a file
  254. includes last piece is missing. This bug doesn't reveal for
  255. single-torrent with file allocation on.
  256. * src/IteratableChecksumValidator.cc
  257. * test/IteratableChecksumValidatorTest.cc
  258. 2009-05-01 Tatsuhiro Tsujikawa <[email protected]>
  259. Avoid circular reference between RequestGroup and AdaptiveURISelector
  260. * src/RequestGroupMan.cc
  261. * src/AdaptiveURISelector.cc
  262. * src/AdaptiveURISelector.h
  263. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  264. * Release 1.3.2
  265. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  266. Updated README
  267. * README
  268. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  269. Updated Ukrainian translations. Thanks to Alexander10.
  270. * po/uk.po
  271. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  272. Code cleanup
  273. * src/MetalinkParserStateMachine.cc
  274. * src/MetalinkParserStateMachine.h
  275. 2009-04-28 Tatsuhiro Tsujikawa <[email protected]>
  276. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  277. and expat simultaneously, MetalinkProcessor is now not base class
  278. and it is directly implemented in XML2SAXMetalinkProcessor and
  279. ExpatMetalinkProcessor.
  280. * src/ExpatMetalinkProcessor.cc
  281. * src/ExpatMetalinkProcessor.h
  282. * src/Makefile.am
  283. * src/MetalinkHelper.cc
  284. * src/MetalinkProcessor.h
  285. * src/MetalinkProcessorFactory.cc: Removed.
  286. * src/MetalinkProcessorFactory.h: Removed
  287. * src/XML2SAXMetalinkProcessor.cc
  288. * src/XML2SAXMetalinkProcessor.h
  289. * test/MetalinkProcessorTest.cc
  290. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  291. Bump up version number to 1.3.2
  292. * configure.ac
  293. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  294. Added missing file.
  295. * test/Makefile.am
  296. * test/url-list-singleFileEndsWithSlash.torrent
  297. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  298. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  299. request.
  300. * src/AnnounceList.cc
  301. * src/AnnounceList.h
  302. * src/BDE.cc: Added
  303. * src/BDE.h: Added
  304. * src/DHTAbstractMessage.cc
  305. * src/DHTAbstractMessage.h
  306. * src/DHTAnnouncePeerMessage.cc
  307. * src/DHTAnnouncePeerMessage.h
  308. * src/DHTAnnouncePeerReplyMessage.cc
  309. * src/DHTAnnouncePeerReplyMessage.h
  310. * src/DHTFindNodeMessage.cc
  311. * src/DHTFindNodeMessage.h
  312. * src/DHTFindNodeReplyMessage.cc
  313. * src/DHTFindNodeReplyMessage.h
  314. * src/DHTGetPeersMessage.cc
  315. * src/DHTGetPeersMessage.h
  316. * src/DHTGetPeersReplyMessage.cc
  317. * src/DHTGetPeersReplyMessage.h
  318. * src/DHTMessageFactory.h
  319. * src/DHTMessageFactoryImpl.cc
  320. * src/DHTMessageFactoryImpl.h
  321. * src/DHTMessageReceiver.cc
  322. * src/DHTMessageTracker.cc
  323. * src/DHTMessageTracker.h
  324. * src/DHTPingMessage.cc
  325. * src/DHTPingMessage.h
  326. * src/DHTPingReplyMessage.cc
  327. * src/DHTPingReplyMessage.h
  328. * src/DHTQueryMessage.cc
  329. * src/DHTQueryMessage.h
  330. * src/DHTResponseMessage.cc
  331. * src/DHTResponseMessage.h
  332. * src/DefaultBtAnnounce.cc
  333. * src/DefaultBtContext.cc
  334. * src/DefaultBtContext.h
  335. * src/HandshakeExtensionMessage.cc
  336. * src/Makefile.am
  337. * src/PeerListProcessor.h
  338. * src/UTPexExtensionMessage.cc
  339. * src/bencode.cc
  340. * src/bencode.h
  341. * test/AnnounceListTest.cc
  342. * test/BDETest.cc: Added
  343. * test/BencodeTest.cc
  344. * test/DHTAnnouncePeerMessageTest.cc
  345. * test/DHTAnnouncePeerReplyMessageTest.cc
  346. * test/DHTFindNodeMessageTest.cc
  347. * test/DHTFindNodeReplyMessageTest.cc
  348. * test/DHTGetPeersMessageTest.cc
  349. * test/DHTGetPeersReplyMessageTest.cc
  350. * test/DHTMessageFactoryImplTest.cc
  351. * test/DHTMessageTrackerTest.cc
  352. * test/DHTPingMessageTest.cc
  353. * test/DHTPingReplyMessageTest.cc
  354. * test/Makefile.am
  355. * test/MockDHTMessageFactory.h
  356. * test/PeerListProcessorTest.cc
  357. 2009-04-27 Tatsuhiro Tsujikawa <[email protected]>
  358. Use url-list (web-seeding) only for single-file torrent. This is
  359. basically the same behavior with Metalink file with torrent and
  360. URIs.
  361. * src/RequestGroup.cc
  362. * src/DefaultBtContext.cc
  363. * test/DefaultBtContextTest.cc
  364. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  365. Rewritten expr
  366. * src/array_fun.h
  367. * test/array_funTest.cc
  368. 2009-04-26 Tatsuhiro Tsujikawa <[email protected]>
  369. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  370. * src/DefaultBtMessageDispatcher.cc
  371. * src/a2algo.h
  372. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  373. Removed ExtendedMessagingAware. Instead of using inheritance,
  374. added ExtensionMessageRegistry and it is passed to
  375. DefaultExtensionMessageFactory.
  376. * src/DefaultBtInteractive.cc
  377. * src/DefaultBtInteractive.h
  378. * src/DefaultExtensionMessageFactory.cc
  379. * src/DefaultExtensionMessageFactory.h
  380. * src/ExtendedMessagingAware.h: Removed.
  381. * src/ExtensionMessageFactory.h
  382. * src/ExtensionMessageRegistry.h: Added.
  383. * src/Makefile.am
  384. * src/PeerInteractionCommand.cc
  385. * test/DefaultExtensionMessageFactoryTest.cc
  386. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  387. Fixed typo in log messages
  388. * src/MSEHandshake.cc
  389. 2009-04-25 Tatsuhiro Tsujikawa <[email protected]>
  390. Fixed the bug that prevents torrent download from finishing. The
  391. bug doesn't reveal for all torrents. The torrents affected this
  392. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  393. of pieces.
  394. * src/bitfield.h
  395. * test/bitfieldTest.cc
  396. 2009-04-24 Tatsuhiro Tsujikawa <[email protected]>
  397. Code cleanup
  398. * src/PeerListProcessor.h
  399. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  400. Removed RequestGroupAware
  401. * src/AbstractCommand.cc
  402. * src/AbstractCommand.h
  403. * src/ActivePeerConnectionCommand.cc
  404. * src/ActivePeerConnectionCommand.h
  405. * src/DHTGetPeersCommand.cc
  406. * src/DHTGetPeersCommand.h
  407. * src/InitiatorMSEHandshakeCommand.cc
  408. * src/InitiatorMSEHandshakeCommand.h
  409. * src/Makefile.am
  410. * src/PeerInitiateConnectionCommand.cc
  411. * src/PeerInitiateConnectionCommand.h
  412. * src/PeerInteractionCommand.cc
  413. * src/PeerInteractionCommand.h
  414. * src/RealtimeCommand.cc
  415. * src/RealtimeCommand.h
  416. * src/RequestGroupAware.cc: Removed
  417. * src/RequestGroupAware.h: Removed
  418. * src/SeedCheckCommand.cc
  419. * src/SeedCheckCommand.h
  420. * src/SleepCommand.cc
  421. * src/TrackerWatcherCommand.cc
  422. * src/TrackerWatcherCommand.h
  423. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  424. Rewritten PeerListProcessor
  425. * src/PeerListProcessor.h
  426. * src/CompactPeerListProcessor.h: Removed
  427. * src/CompactPeerListProcessor.cc: Removed
  428. * src/DelegatingPeerListProcessor.cc: Removed.
  429. * src/DefaultBtAnnounce.cc
  430. * src/Makefile.am
  431. * src/UTPexExtensionMessage.cc
  432. * src/DefaultPeerListProcessor.h: Removed.
  433. * src/DefaultPeerListProcessor.cc: Removed.
  434. * src/DelegatingPeerListProcessor.h: Removed.
  435. * test/Makefile.am
  436. * test/PeerListProcessorTest.cc
  437. * test/DefaultPeerListProcessorTest.cc: Removed.
  438. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  439. Rewritten RequestGroupMan::calculateStat()
  440. * src/RequestGroupMan.cc
  441. 2009-04-23 Tatsuhiro Tsujikawa <[email protected]>
  442. Removed unnecessary virtual destructor for Request class.
  443. * src/Request.cc
  444. * src/Request.h
  445. 2009-04-22 Tatsuhiro Tsujikawa <[email protected]>
  446. Avoid dynamic_pointer_cast.
  447. * src/DHTGetPeersCommand.cc
  448. * src/DHTGetPeersCommand.h
  449. 2009-04-21 Tatsuhiro Tsujikawa <[email protected]>
  450. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  451. BtEvent.
  452. * src/AbstractBtEventListener.h: Removed.
  453. * src/AbstractBtMessage.cc
  454. * src/AbstractBtMessage.h
  455. * src/BtAbortOutstandingRequestEvent.h
  456. * src/BtCancelSendingPieceEvent.h
  457. * src/BtChokedEvent.h: Removed.
  458. * src/BtChokingEvent.h
  459. * src/BtEvent.h: Removed
  460. * src/BtEventListener.h: Removed.
  461. * src/BtMessage.h
  462. * src/BtPieceMessage.cc
  463. * src/BtPieceMessage.h
  464. * src/BtRequestMessage.cc
  465. * src/BtRequestMessage.h
  466. * src/DefaultBtMessageDispatcher.cc
  467. * src/Makefile.am
  468. * src/a2functional.h
  469. * test/BtPieceMessageTest.cc
  470. * test/BtRequestMessageTest.cc
  471. * test/DefaultBtMessageDispatcherTest.cc
  472. * test/MockBtMessage.h
  473. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  474. Code cleanup
  475. * src/RequestGroupMan.cc
  476. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  477. Code cleanup
  478. * src/DownloadCommand.cc
  479. 2009-04-17 Tatsuhiro Tsujikawa <[email protected]>
  480. Fixed segmentation fault when GZipDecoder::decode() returns 0
  481. byte.
  482. * src/DownloadCommand.cc
  483. * src/bitfield.h
  484. * test/bitfieldTest.cc
  485. Fixed the bug that causes infinite loop if broken web server
  486. returns chunked response without last "0" chunk-size marker and
  487. closes connection.
  488. * src/DownloadCommand.cc
  489. Instantiate properly configured HttpDownloadCommand for
  490. non-resumable downlaods.
  491. * src/HttpResponseCommand.cc
  492. 2009-04-16 Tatsuhiro Tsujikawa <[email protected]>
  493. Rewritten array operation functions.
  494. * src/BitfieldMan.cc
  495. * src/array_fun.h
  496. * test/array_funTest.cc
  497. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  498. Removed unused variable 'query'
  499. * src/Request.cc
  500. 2009-04-14 Tatsuhiro Tsujikawa <[email protected]>
  501. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  502. accidentally set to false in r1162.
  503. * configure.ac
  504. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  505. Code cleanup
  506. * src/BNode.cc
  507. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  508. Increase prefixLength for the bucket which doesn't own local node
  509. ID when splitting bucket.
  510. * src/DHTBucket.cc
  511. * test/DHTBucketTest.cc
  512. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  513. * Release 1.3.1
  514. 2009-04-13 Tatsuhiro Tsujikawa <[email protected]>
  515. Bump up version number to 1.3.1
  516. * configure.ac
  517. 2009-04-08 Tatsuhiro Tsujikawa <[email protected]>
  518. Removed unused variable checkPoint. Also removed include directive
  519. for TimeA2.h.
  520. * src/SeedCheckCommand.h
  521. 2009-04-07 Tatsuhiro Tsujikawa <[email protected]>
  522. Fixed the bug that upload limit exceeds the value specified in
  523. --seed-ratio option depending on the timing of the execution of
  524. SeedCheckCommand.
  525. * src/SeedCheckCommand.cc
  526. 2009-04-05 Tatsuhiro Tsujikawa <[email protected]>
  527. Fixed the bug that removed peer's session upload/download length
  528. are counted twice in _cachedTransferStat before it is
  529. re-calculated. This affected the calculation of shara ratio,
  530. resulting aria2 wrongly determines that specified share ratio is
  531. reached. Also fixed the typo in calculateStatFor function name.
  532. * src/BtSetup.cc
  533. * src/DefaultPeerStorage.cc
  534. * src/ShareRatioSeedCriteria.h
  535. * test/ShareRatioSeedCriteriaTest.cc
  536. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  537. * Release 1.3.0
  538. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  539. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  540. Nynorsk translations. Thanks to all translators.
  541. * po/es.po
  542. * po/ja.po
  543. * po/nn.po
  544. * po/ru.po
  545. * po/uk.po
  546. 2009-04-01 Tatsuhiro Tsujikawa <[email protected]>
  547. Rewritten isInRange()
  548. * src/DHTBucket.cc
  549. * test/DHTBucketTest.cc
  550. 2009-03-30 Tatsuhiro Tsujikawa <[email protected]>
  551. Fixed typo
  552. * doc/aria2c.1.txt
  553. 2009-03-29 Tatsuhiro Tsujikawa <[email protected]>
  554. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  555. malloc/realloc is not used.
  556. * src/configure.ac
  557. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  558. BitfieldMan::getMissingIndexes family functions now takes unsigned
  559. char* bitfield instead of stl container for efficiency.
  560. PieceSelector::select now takes this
  561. bitfield. RarestPieceSelector::select now also performs
  562. efficiently for this change. bitfield namespace is introduced and
  563. it has several helper functions to handle basic bitfield
  564. operations such as test, count set bits, etc.
  565. * src/BitfieldMan.cc
  566. * src/BitfieldMan.h
  567. * src/DefaultBtRequestFactory.cc
  568. * src/DefaultPieceStorage.cc
  569. * src/DefaultPieceStorage.h
  570. * src/LongestSequencePieceSelector.cc
  571. * src/LongestSequencePieceSelector.h
  572. * src/Makefile.am
  573. * src/Piece.cc
  574. * src/Piece.h
  575. * src/PieceSelector.h
  576. * src/RarestPieceSelector.cc
  577. * src/RarestPieceSelector.h
  578. * src/Util.cc
  579. * src/Util.h
  580. * src/bitfield.h
  581. * test/BitfieldManTest.cc
  582. * test/LongestSequencePieceSelectorTest.cc
  583. * test/Makefile.am
  584. * test/RarestPieceSelectorTest.cc
  585. * test/UtilTest.cc
  586. * test/bitfieldTest.cc
  587. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  588. Made accepted socket non-block.
  589. * src/FtpNegotiationCommand.cc
  590. * src/HttpListenCommand.cc
  591. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  592. Guarded #ifdef HAVE_POSIX_FALLOCATE
  593. * src/AbstractSingleDiskAdaptor.cc
  594. * src/DefaultPieceStorage.cc
  595. * src/DiskAdaptor.h
  596. * src/DiskAdaptor.h
  597. * src/MultiFileAllocationIterator.cc
  598. 2009-03-28 Tatsuhiro Tsujikawa <[email protected]>
  599. Run
  600. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  601. in every 1 sec. The timeout of RequestSlot is 60s by default and
  602. it doesn't need to be called every time when
  603. DefaultBtInteractive::doInteractionProcessing() is called.
  604. * src/DefaultBtInteractive.cc
  605. * src/DefaultBtInteractive.h
  606. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  607. Documented 'falloc' in man page.
  608. * doc/aria2c.1.txt
  609. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  610. Updated doc
  611. * src/usage_text.h
  612. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  613. Added 'falloc' parameter for --file-allocation option. 'falloc'
  614. allocation mode uses posix_fallocate() system call to allocate
  615. file on disk. If you are using newer file systems such as ext4
  616. (with extents support), btrfs or xfs, 'falloc' is your best
  617. choice. It allocates large(few GiB) files almost instantly. Don't
  618. use 'falloc' with legacy file systems such as ext3 because it
  619. takes almost same time as 'prealloc' and it blocks aria2 entirely
  620. until allocation finishes. 'falloc' may not be available if your
  621. system doesn't have posix_fallocate() system call.
  622. * configure.ac
  623. * src/AbstractDiskWriter.cc
  624. * src/AbstractDiskWriter.h
  625. * src/AbstractSingleDiskAdaptor.cc
  626. * src/BinaryStream.h
  627. * src/BtCheckIntegrityEntry.cc
  628. * src/ByteArrayDiskWriter.h
  629. * src/CheckIntegrityEntry.cc
  630. * src/CheckIntegrityEntry.h
  631. * src/DefaultPieceStorage.cc
  632. * src/DiskAdaptor.cc
  633. * src/DiskAdaptor.h
  634. * src/DiskWriter.h
  635. * src/FallocFileAllocationIterator.cc
  636. * src/FallocFileAllocationIterator.h
  637. * src/FileAllocationEntry.cc
  638. * src/FileAllocationEntry.h
  639. * src/Makefile.am
  640. * src/MultiFileAllocationIterator.cc
  641. * src/MultiFileAllocationIterator.h
  642. * src/OptionHandlerFactory.cc
  643. * src/RequestGroup.cc
  644. * src/StreamCheckIntegrityEntry.cc
  645. * src/prefs.cc
  646. * src/prefs.h
  647. * src/usage_text.h
  648. * test/FallocFileAllocationIteratorTest.cc
  649. * test/Makefile.am
  650. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  651. Removed duplicate enableDirectIO() call.
  652. * src/MultiFileAllocationIterator.cc
  653. 2009-03-25 Tatsuhiro Tsujikawa <[email protected]>
  654. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  655. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  656. cost of std::rotate().
  657. * src/RarestPieceSelector.cc
  658. * src/RarestPieceSelector.h
  659. * test/RarestPieceSelectorTest.cc
  660. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  661. Updated usage doc for --bt-tracker-interval option.
  662. * src/usage_text.h
  663. * doc/aria2c.1.txt
  664. 2009-03-22 Tatsuhiro Tsujikawa <[email protected]>
  665. Documented --bt-tracker-interval option in man page.
  666. * doc/aria2c.1.txt
  667. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  668. Added an option to specify the interval between tracker requests.
  669. If non-zero value is specified, aria2 uses it and ignores the
  670. interval value in the response of tracker. If zero is specified,
  671. aria2 determines the inteval value based on the tarcker response
  672. and download progress.
  673. * src/DefaultBtAnnounce.cc
  674. * src/DefaultBtAnnounce.h
  675. * src/OptionHandlerFactory.cc
  676. * src/RequestGroup.cc
  677. * src/prefs.cc
  678. * src/prefs.h
  679. * src/usage_text.h
  680. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  681. Added operator+=, operator-=, operator-
  682. * src/TransferStat.cc
  683. * src/TransferStat.h
  684. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  685. Refactored RarestPieceSelector to reduce CPU load, especially for
  686. addPieceStats.
  687. * src/RarestPieceSelector.cc
  688. * src/RarestPieceSelector.h
  689. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  690. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  691. getAllMissingBlockIndexes to reduce a call to
  692. array_function_base::operator[].
  693. * src/BitfieldMan.cc
  694. 2009-03-20 Tatsuhiro Tsujikawa <[email protected]>
  695. Cached TransferStat/download speed to avoid to sum them up in each
  696. call.
  697. * src/DefaultPeerStorage.cc
  698. * src/DefaultPeerStorage.h
  699. * src/SegmentMan.cc
  700. * src/SegmentMan.h
  701. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  702. Typedefed cuid_t as int32_t in Command.h
  703. * src/CUIDCounter.h
  704. * src/Command.cc
  705. * src/Command.h
  706. * src/DownloadEngine.cc
  707. * src/DownloadEngine.h
  708. * src/PeerStat.h
  709. * src/SegmentMan.cc
  710. * src/SegmentMan.h
  711. 2009-03-19 Tatsuhiro Tsujikawa <[email protected]>
  712. Reduced the number of calls to PeerStorage::calculateStat() and
  713. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  714. transfer rate.
  715. * src/DefaultBtInteractive.cc
  716. * src/DefaultBtMessageDispatcher.cc
  717. * src/DefaultPeerStorage.cc
  718. * src/DefaultPeerStorage.h
  719. * src/DownloadCommand.cc
  720. * src/DownloadEngine.cc
  721. * src/PeerStorage.h
  722. * src/SegmentMan.cc
  723. * src/SegmentMan.h
  724. * test/MockPeerStorage.h
  725. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  726. Prepended _dir+"/" after joining path elements in torrent file.
  727. * src/DefaultBtContext.cc
  728. * test/DefaultBtContextTest.cc
  729. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  730. Added missing IndexBtMessageValidator.h
  731. * src/Makefile.am
  732. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  733. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  734. Chinese translations. Thank you for contributing our project.
  735. * po/id.po
  736. * po/it.po
  737. * po/ru.po
  738. * po/uk.po
  739. * po/zh_CN.po
  740. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  741. Updated README
  742. * README
  743. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  744. Bump up version number to 1.3.0
  745. * configure.ac
  746. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  747. Updated doc
  748. * src/DefaultBtContext.h
  749. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  750. Slice/joinPath for name of single torrent.
  751. * src/DefaultBtContext.cc
  752. * test/DefaultBtContextTest.cc
  753. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  754. Updated man page: Documented --dry-run and --index-out
  755. options. Changed the default value of --uri-selector and
  756. --http-auth-challenge options. Removed --direct-file-mapping
  757. option. Added example for --index-out
  758. * doc/aria2c.1.txt
  759. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  760. Updated TEXT_DRY_RUN
  761. * src/usage_text.h
  762. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  763. Changed the default value of --uri-selector option from 'inorder'
  764. to 'feedback'
  765. * src/OptionHandlerFactory.cc
  766. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  767. Included current URI in exception message.
  768. * src/AbstractCommand.cc
  769. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  770. Renamed ServerStatURISelector as FeedbackURISelector.
  771. * src/FeedbackURISelector.cc
  772. * src/FeedbackURISelector.h
  773. * src/Makefile.am
  774. * src/RequestGroupMan.cc
  775. * src/ServerStatURISelector.cc
  776. * src/ServerStatURISelector.h
  777. * test/FeedbackURISelectorTest.cc
  778. * test/Makefile.am
  779. * test/ServerStatURISelectorTest.cc
  780. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  781. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  782. all URIs are tested and their timeout is not reached.
  783. * src/AdaptiveURISelector.cc
  784. * src/AdaptiveURISelector.h
  785. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  786. Changed the default value of --http-auth-challenge option to false.
  787. * src/OptionHandlerFactory.cc
  788. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  789. Reuse URIs when all unused URIs run out.
  790. * src/OptionHandlerFactory.cc
  791. * src/RequestGroup.cc
  792. * src/prefs.cc
  793. * src/prefs.h
  794. 2009-03-13 Tatsuhiro Tsujikawa <[email protected]>
  795. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  796. and BtRejectMessage are derived from RangeBtMessage class.
  797. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  798. derived from IndexBtMessage class. BtChokeMessage,
  799. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  800. BtNotInterestedMessage and BtUnchokeMessage are derived from
  801. ZeroBtMessage class.
  802. * src/AbstractBtMessage.cc
  803. * src/AbstractBtMessage.h
  804. * src/BtAllowedFastMessage.cc
  805. * src/BtAllowedFastMessage.h
  806. * src/BtAllowedFastMessageValidator.h: Removed
  807. * src/BtBitfieldMessage.cc
  808. * src/BtBitfieldMessage.h
  809. * src/BtCancelMessage.cc
  810. * src/BtCancelMessage.h
  811. * src/BtCancelMessageValidator.h: Removed
  812. * src/BtChokeMessage.cc
  813. * src/BtChokeMessage.h
  814. * src/BtExtendedMessage.cc
  815. * src/BtExtendedMessage.h
  816. * src/BtHandshakeMessage.cc
  817. * src/BtHandshakeMessage.h
  818. * src/BtHaveAllMessage.cc
  819. * src/BtHaveAllMessage.h
  820. * src/BtHaveMessage.cc
  821. * src/BtHaveMessage.h
  822. * src/BtHaveMessageValidator.h: Removed
  823. * src/BtHaveNoneMessage.cc
  824. * src/BtHaveNoneMessage.h
  825. * src/BtInterestedMessage.cc
  826. * src/BtInterestedMessage.h
  827. * src/BtKeepAliveMessage.cc
  828. * src/BtKeepAliveMessage.h
  829. * src/BtNotInterestedMessage.cc
  830. * src/BtNotInterestedMessage.h
  831. * src/BtPieceMessage.cc
  832. * src/BtPieceMessage.h
  833. * src/BtPortMessage.cc
  834. * src/BtPortMessage.h
  835. * src/BtRejectMessage.cc
  836. * src/BtRejectMessage.h
  837. * src/BtRejectMessageValidator.h: Removed
  838. * src/BtRequestMessage.cc
  839. * src/BtRequestMessage.h
  840. * src/BtRequestMessageValidator.h: Removed
  841. * src/BtSuggestPieceMessage.cc
  842. * src/BtSuggestPieceMessage.h
  843. * src/BtSuggestPieceMessageValidator.h: Removed
  844. * src/BtUnchokeMessage.cc
  845. * src/BtUnchokeMessage.h
  846. * src/DefaultBtMessageFactory.cc
  847. * src/IndexBtMessage.cc
  848. * src/IndexBtMessage.h
  849. * src/IndexBtMessageValidator.h
  850. * src/Makefile.am
  851. * src/PeerMessageUtil.cc
  852. * src/PeerMessageUtil.h
  853. * src/RangeBtMessage.cc
  854. * src/RangeBtMessage.h
  855. * src/RangeBtMessageValidator.h
  856. * src/SimpleBtMessage.cc
  857. * src/SimpleBtMessage.h
  858. * src/ZeroBtMessage.cc
  859. * src/ZeroBtMessage.h
  860. * test/BtRequestMessageTest.cc
  861. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  862. Reverted usage_text.h to r1093 to avoid to lose translated
  863. messages.
  864. * src/usage_text.h
  865. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  866. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  867. declared as non-const previously is now const and defined in class
  868. definition.
  869. * src/AbstractBtMessage.cc
  870. * src/AbstractBtMessage.h
  871. * src/BtAllowedFastMessage.cc
  872. * src/BtAllowedFastMessage.h
  873. * src/BtBitfieldMessage.h
  874. * src/BtCancelMessage.cc
  875. * src/BtCancelMessage.h
  876. * src/BtChokeMessage.cc
  877. * src/BtChokeMessage.h
  878. * src/BtExtendedMessage.cc
  879. * src/BtExtendedMessage.h
  880. * src/BtHandshakeMessage.cc
  881. * src/BtHandshakeMessage.h
  882. * src/BtHaveAllMessage.cc
  883. * src/BtHaveAllMessage.h
  884. * src/BtHaveMessage.cc
  885. * src/BtHaveMessage.h
  886. * src/BtHaveNoneMessage.cc
  887. * src/BtHaveNoneMessage.h
  888. * src/BtInterestedMessage.cc
  889. * src/BtInterestedMessage.h
  890. * src/BtKeepAliveMessage.cc
  891. * src/BtKeepAliveMessage.h
  892. * src/BtMessage.h
  893. * src/BtNotInterestedMessage.cc
  894. * src/BtNotInterestedMessage.h
  895. * src/BtPieceMessage.h
  896. * src/BtPortMessage.cc
  897. * src/BtPortMessage.h
  898. * src/BtRejectMessage.cc
  899. * src/BtRejectMessage.h
  900. * src/BtRequestMessage.cc
  901. * src/BtRequestMessage.h
  902. * src/BtSuggestPieceMessage.cc
  903. * src/BtSuggestPieceMessage.h
  904. * src/BtUnchokeMessage.cc
  905. * src/BtUnchokeMessage.h
  906. * src/SimpleBtMessage.cc
  907. * src/SimpleBtMessage.h
  908. * test/MockBtMessage.h
  909. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  910. Use FileEntry::exists()
  911. * src/MultiDiskAdaptor.cc
  912. 2009-03-12 Tatsuhiro Tsujikawa <[email protected]>
  913. Added exists()
  914. * src/FileEntry.cc
  915. * src/FileEntry.h
  916. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  917. Added missing prefix dir.
  918. * src/download_helper.cc
  919. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  920. Removed --direct-file-mapping option and CopyDiskAdaptor.
  921. * src/CopyDiskAdaptor.cc: Removed
  922. * src/CopyDiskAdaptor.h: Removed
  923. * src/DefaultPieceStorage.cc
  924. * src/Makefile.am
  925. * src/OptionHandlerFactory.cc
  926. * src/prefs.cc
  927. * src/prefs.h
  928. * src/usage_text.h
  929. * test/CopyDiskAdaptorTest.cc: Removed
  930. * test/Makefile.am
  931. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  932. Rewritten isSameFileBeingDownloaded()
  933. * src/RequestGroupMan.cc
  934. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  935. Removed getName() from DownloadContext. getName() is declared in
  936. BtContext.
  937. * src/BtContext.h
  938. * src/DownloadContext.h
  939. * src/SingleFileDownloadContext.cc
  940. * src/SingleFileDownloadContext.h
  941. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  942. in AbstractSingleDiskAdaptor.
  943. * src/AbstractSingleDiskAdaptor.h
  944. * src/DiskAdaptor.h
  945. * src/MultiDiskAdaptor.h
  946. * src/RequestGroup.cc
  947. Removed setTopDir() and getTopDir() and getTopDirPath() from
  948. MultiDiskAdaptor.
  949. * src/DefaultPieceStorage.cc
  950. * src/MultiDiskAdaptor.cc
  951. * src/MultiDiskAdaptor.h
  952. * test/MultiDiskAdaptorTest.cc
  953. 2009-03-10 Tatsuhiro Tsujikawa <[email protected]>
  954. FileEntry::getPath() contains store(top level) directory to
  955. simplify path handling operation. In the previous implementation,
  956. store directory is concatenated to FileEntry::getPath() in
  957. DownloadContext.
  958. * src/BtDependency.cc
  959. * src/BtPostDownloadHandler.cc
  960. * src/CopyDiskAdaptor.cc
  961. * src/DefaultBtContext.cc
  962. * src/DirectDiskAdaptor.cc
  963. * src/FileEntry.cc
  964. * src/FileEntry.h
  965. * src/FtpNegotiationCommand.cc
  966. * src/HttpResponse.cc
  967. * src/HttpResponseCommand.cc
  968. * src/Metalink2RequestGroup.cc
  969. * src/MultiDiskAdaptor.cc
  970. * src/MultiDiskAdaptor.h
  971. * src/MultiFileAllocationIterator.cc
  972. * src/RequestGroup.cc
  973. * src/SingleFileDownloadContext.cc
  974. * src/SingleFileDownloadContext.h
  975. * src/download_helper.cc
  976. * test/BtDependencyTest.cc
  977. * test/CopyDiskAdaptorTest.cc
  978. * test/DefaultBtContextTest.cc
  979. * test/DefaultBtProgressInfoFileTest.cc
  980. * test/DirectDiskAdaptorTest.cc
  981. * test/DownloadHelperTest.cc
  982. * test/FileEntryTest.cc
  983. * test/MultiDiskAdaptorTest.cc
  984. * test/MultiFileAllocationIteratorTest.cc
  985. * test/RequestGroupTest.cc
  986. * test/SingleFileDownloadContextTest.cc
  987. 2009-03-09 Tatsuhiro Tsujikawa <[email protected]>
  988. Fixed compiler warning
  989. * src/download_helper.cc
  990. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  991. Throw exception if same infohash torrent is now downloading.
  992. * src/RequestGroup.cc
  993. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  994. Added --dry-run option. In this mode, aria2 just checks whether
  995. the remote file is available and doesn't download data. This
  996. option has effect on HTTP/FTP downloads and BitTorrent downloads
  997. are canceled in this mode.
  998. * src/FtpNegotiationCommand.cc
  999. * src/HttpResponseCommand.cc
  1000. * src/HttpResponseCommand.h
  1001. * src/OptionHandlerFactory.cc
  1002. * src/RequestGroup.cc
  1003. * src/RequestGroupMan.cc
  1004. * src/prefs.cc
  1005. * src/prefs.h
  1006. * src/usage_text.h
  1007. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1008. Fixed compiler waring
  1009. * test/UriListParserTest.cc
  1010. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1011. Parse options in -i list using OptionParser.
  1012. * src/UriListParser.cc
  1013. * src/UriListParser.h
  1014. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1015. Don't reset URI in retry to avoid additional round trips because
  1016. of redirects.
  1017. * src/AbstractCommand.cc
  1018. * src/OptionHandlerFactory.cc
  1019. * src/prefs.cc
  1020. * src/prefs.h
  1021. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1022. Declared hide() in OptionHandler.
  1023. * src/NameMatchOptionHandler.h
  1024. * src/OptionHandler.h
  1025. * src/OptionHandlerImpl.h
  1026. 2009-03-08 Tatsuhiro Tsujikawa <[email protected]>
  1027. Updated doc
  1028. * src/Peer.h
  1029. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1030. Added log message in setStatusInternal()
  1031. * src/ServerStat.cc
  1032. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1033. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1034. effectively exclude failed server.
  1035. * src/AbstractCommand.cc
  1036. 2009-03-07 Tatsuhiro Tsujikawa <[email protected]>
  1037. Added --index-out option to specify each file path for torrent.
  1038. Here index shown in --show-files option is used to specify which
  1039. file path should be altered. For example, to change the file path
  1040. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1041. option multiple times: --index-out=1=aria2.tar.bz2
  1042. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1043. available. This option can be specified in -i list.
  1044. * src/DefaultBtContext.cc
  1045. * src/DefaultBtContext.h
  1046. * src/MultiDiskAdaptor.cc
  1047. * src/MultiDiskAdaptor.h
  1048. * src/MultiFileAllocationIterator.cc
  1049. * src/OptionHandlerFactory.cc
  1050. * src/OptionHandlerImpl.h
  1051. * src/Util.cc
  1052. * src/Util.h
  1053. * src/download_helper.cc
  1054. * src/prefs.cc
  1055. * src/prefs.h
  1056. * src/usage_text.h
  1057. * test/DefaultBtContextTest.cc
  1058. * test/MultiDiskAdaptorTest.cc
  1059. * test/MultiFileAllocationIteratorTest.cc
  1060. * test/UtilTest.cc
  1061. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1062. Use Util::pathJoin()
  1063. * src/MetalinkParserController.cc
  1064. * test/test.xml
  1065. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1066. Use Util::pathJoin()
  1067. * src/DefaultBtContext.cc
  1068. 2009-03-05 Tatsuhiro Tsujikawa <[email protected]>
  1069. Added Util::pathJoin()
  1070. * src/Util.h
  1071. * test/UtilTest.cc
  1072. 2009-03-04 Tatsuhiro Tsujikawa <[email protected]>
  1073. Applied basename function to remove directory element in
  1074. content-disposition value.
  1075. Return empty string if content-disposition value is ".." or ".".
  1076. * src/Util.cc
  1077. * test/UtilTest.cc
  1078. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1079. Added --max-overall-download-limit in man page.
  1080. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1081. * doc/aria2c.1.txt
  1082. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1083. Added --max-overall-download-limit option. Now --max-upload-limit
  1084. option is not ignored when --max-overall-upload-limit option has
  1085. non-zero value. aria2 checks download(upload) speed in the order:
  1086. first checks overall speed limit and if it is not exceeded, then
  1087. checks speed limit per download. Thus you can specify both
  1088. value. For example, set --max-overall-download-limit=1M and
  1089. --max-download-limit=500K to prevent from one download from eating
  1090. all overall speed limit.
  1091. * src/DefaultBtInteractive.cc
  1092. * src/DefaultBtInteractive.h
  1093. * src/DefaultBtMessageDispatcher.cc
  1094. * src/DefaultBtMessageDispatcher.h
  1095. * src/DownloadCommand.cc
  1096. * src/DownloadCommand.h
  1097. * src/FtpNegotiationCommand.cc
  1098. * src/HttpResponseCommand.cc
  1099. * src/OptionHandlerFactory.cc
  1100. * src/PeerInteractionCommand.cc
  1101. * src/RequestGroup.cc
  1102. * src/RequestGroup.h
  1103. * src/RequestGroupMan.cc
  1104. * src/RequestGroupMan.h
  1105. * src/prefs.cc
  1106. * src/prefs.h
  1107. * src/usage_text.h
  1108. * test/DefaultBtMessageDispatcherTest.cc
  1109. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1110. Documented select-file option in Input File section.
  1111. Documented --http-auth-challenge option.
  1112. * doc/aria2c.1.txt
  1113. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1114. Now select-file can be specified in the uri list(-i list).
  1115. * src/BtContext.cc
  1116. * src/BtContext.h
  1117. * src/RequestGroup.cc
  1118. * src/Sequence.h
  1119. * src/download_helper.cc
  1120. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1121. Made the upper value of --max-concurrent-downloads options unlimited.
  1122. * src/OptionHandlerFactory.cc
  1123. 2009-02-28 Tatsuhiro Tsujikawa <[email protected]>
  1124. Fixed the bug that disk writer is not created even if it shares
  1125. same piece with the preceding file if the length of previous file
  1126. is 0.
  1127. * src/MultiDiskAdaptor.cc
  1128. * test/MultiDiskAdaptorTest.cc
  1129. 2009-02-23 Tatsuhiro Tsujikawa <[email protected]>
  1130. In BitTorrent, Open files in read-only mode for hash check. After
  1131. that, re-open file in read/write mode only when the download is
  1132. not finished.
  1133. * src/AbstractDiskWriter.cc
  1134. * src/AbstractDiskWriter.h
  1135. * src/AbstractSingleDiskAdaptor.cc
  1136. * src/AbstractSingleDiskAdaptor.h
  1137. * src/BtCheckIntegrityEntry.cc
  1138. * src/DiskAdaptor.h
  1139. * src/DiskWriter.h
  1140. * src/MultiDiskAdaptor.cc
  1141. * src/MultiDiskAdaptor.h
  1142. * src/RequestGroup.cc
  1143. 2009-02-19 Tatsuhiro Tsujikawa <[email protected]>
  1144. Added --http-auth-challenge option. If it is set to true(by
  1145. default), aria2 sends HTTP authorization header only when it is
  1146. requested by the server. If false is set, then authorization
  1147. header is always sent to the server. This is useful for servers
  1148. that don't respond 401 code when authentication is required.
  1149. There is an exception: if username and password are embedded in
  1150. URI, authorization header is always sent to the server regardless
  1151. of this option.
  1152. * src/AuthConfigFactory.cc
  1153. * src/HttpSkipResponseCommand.cc
  1154. * src/OptionHandlerFactory.cc
  1155. * src/prefs.cc
  1156. * src/prefs.h
  1157. * src/usage_text.h
  1158. * test/AuthConfigFactoryTest.cc
  1159. * test/HttpRequestTest.cc
  1160. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1161. * Release 1.2.0
  1162. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1163. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1164. Thanks to all translators.
  1165. * po/es.po
  1166. * po/ja.po
  1167. * po/ru.po
  1168. * po/uk.po
  1169. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1170. Call deleteSocketForReadCheck() before socket is closed.
  1171. * src/HttpListenCommand.cc
  1172. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1173. Defined virtual destructor for BObject.
  1174. * src/bencode.h
  1175. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1176. Rewritten BDE to make it efficient.
  1177. * src/bencode.cc
  1178. * src/bencode.h
  1179. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1180. Removed function throw list.
  1181. * src/bencode.cc
  1182. * src/bencode.h
  1183. * test/BencodeTest.cc
  1184. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1185. Enclosed all URLs in double quotes in command-line examples.
  1186. * doc/aria2c.1.txt
  1187. 2009-02-15 Tatsuhiro Tsujikawa <[email protected]>
  1188. Updated reference/see also section.
  1189. * README
  1190. * doc/aria2c.1.txt
  1191. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  1192. Reorganized man page based on man man-pages.
  1193. * doc/aria2c.1.txt
  1194. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  1195. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1196. because same documents are available in man page. Added
  1197. References section.
  1198. * README
  1199. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  1200. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1201. PERFORMANCE PROFILE section.
  1202. * doc/aria2c.1.txt
  1203. 2009-02-14 Tatsuhiro Tsujikawa <[email protected]>
  1204. Rewritten the section for configuration file.
  1205. * README
  1206. * doc/aria2c.1.txt
  1207. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1208. Fixed the segmentation fault during execution of choking algorithm
  1209. in leecher state because of broken compare operator
  1210. implementation.
  1211. * src/BtLeecherStateChoke.cc
  1212. * src/BtLeecherStateChoke.h
  1213. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1214. Open file in binary mode.
  1215. * src/CookieStorage.cc
  1216. * src/DHTSetup.cc
  1217. * src/DHTUtil.cc
  1218. * src/Netrc.cc
  1219. * src/NsCookieParser.cc
  1220. * src/ProtocolDetector.cc
  1221. * src/RequestGroupMan.cc
  1222. * src/Signature.cc
  1223. * src/bencode.cc
  1224. * src/download_helper.cc
  1225. * src/option_processing.cc
  1226. * test/CookieParserTest.cc
  1227. * test/DefaultBtProgressInfoFileTest.cc
  1228. * test/FileTest.cc
  1229. * test/GZipDecoderTest.cc
  1230. * test/RequestGroupManTest.cc
  1231. * test/SignatureTest.cc
  1232. * test/SingleFileAllocationIteratorTest.cc
  1233. * test/UriListParserTest.cc
  1234. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1235. Removed operator[] because it is ambiguous with built-in []
  1236. operator.
  1237. * src/array_fun.h
  1238. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1239. Fixed compile error
  1240. * src/OptionParser.cc
  1241. 2009-02-13 Tatsuhiro Tsujikawa <[email protected]>
  1242. Added missing call to arrayWrapperConst
  1243. * test/array_funTest.cc
  1244. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1245. Use array_wrapper instead of array_ptr.
  1246. * src/DHTRoutingTableDeserializer.cc
  1247. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1248. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1249. * src/array_fun.h
  1250. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1251. Added array_wrapper template.
  1252. * src/array_fun.h
  1253. * test/array_funTest.cc
  1254. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1255. Use operator T* of array_ptr.
  1256. * src/OptionParser.cc
  1257. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1258. Use localhost instead of 127.0.0.1
  1259. * test/FtpConnectionTest.cc
  1260. * test/MSEHandshakeTest.cc
  1261. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1262. Added operator T*
  1263. * src/array_fun.h
  1264. * test/array_funTest.cc
  1265. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1266. Use dynamically allocated char array to detect memory access
  1267. violation.
  1268. * src/DHTRoutingTableDeserializer.cc
  1269. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1270. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1271. defined.
  1272. * src/PeerMessageUtil.cc
  1273. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1274. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1275. * configure.ac
  1276. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1277. Added a check to see struct sockaddr_in has sin_len member.
  1278. * configure.ac
  1279. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1280. Fixed buffer overrun.
  1281. * src/DHTRoutingTableDeserializer.cc
  1282. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1283. Added LL for long long int constant.
  1284. * test/FtpConnectionTest.cc
  1285. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1286. Casted to unsigned int to suppress compiler warning on netbsd.
  1287. * src/BtRuntime.h
  1288. 2009-02-12 Tatsuhiro Tsujikawa <[email protected]>
  1289. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1290. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1291. type time_t.
  1292. * src/SimpleLogger.cc
  1293. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1294. Added test for FtpConnection::receiveSizeResponse().
  1295. * test/FtpConnectionTest.cc
  1296. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1297. Fix epoll error on the old kernel 2.6.8 or ealier.
  1298. * src/EpollEventPoll.cc
  1299. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1300. Use Util::parseLLInt instead of sscanf for portability. The
  1301. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1302. * src/FtpConnection.cc
  1303. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1304. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1305. block. It should not filter anything.
  1306. * src/BitfieldMan.cc
  1307. * src/ConsoleStatCalc.cc
  1308. * test/BitfieldManTest.cc
  1309. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1310. Fixed the bug that the boolean options that don't take arguments
  1311. don't work.
  1312. * src/OptionHandlerImpl.h
  1313. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1314. Fixed broken selected file BitTorrent download.
  1315. * src/MultiDiskAdaptor.cc
  1316. * test/MultiDiskAdaptorTest.cc
  1317. * test/MultiFileAllocationIteratorTest.cc
  1318. 2009-02-11 Tatsuhiro Tsujikawa <[email protected]>
  1319. Fixed #define guard for EpollEventPoll
  1320. * src/EpollEventPoll.h
  1321. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1322. Wait 2 seconds. 1 second is sometimes not enough.
  1323. * test/TimeSeedCriteriaTest.cc
  1324. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1325. Use localhost instead of 127.0.0.1.
  1326. * test/DHTConnectionImplTest.cc
  1327. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1328. Suppressed compiler warning.
  1329. * src/AdaptiveURISelector.cc
  1330. * src/DefaultPieceStorage.cc
  1331. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1332. Defined virtual destructor.
  1333. * src/MetalinkParserState.h
  1334. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1335. Give NULL for second argument of getaddrinfo instead of "0".
  1336. * src/NameResolver.cc
  1337. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1338. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1339. included strptime doesn't parse data for this format.
  1340. * src/FtpConnection.cc
  1341. * test/FtpConnectionTest.cc
  1342. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1343. Removed tests giving -1 for unsigned argument.
  1344. * test/SingleFileDownloadContextTest.cc
  1345. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1346. Don't use sha256 in tests because it might not be supported by the
  1347. SSL library.
  1348. * test/MetalinkProcessorTest.cc
  1349. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1350. Removed tests giving -1 for unsigned argument.
  1351. * test/AlphaNumberDecoratorTest
  1352. * test/BitfieldManTest.cc
  1353. * test/DefaultBtContextTest.cc
  1354. 2009-02-10 Tatsuhiro Tsujikawa <[email protected]>
  1355. Fixed compile error without libcares when epoll is available.
  1356. * src/EpollEventPoll.cc
  1357. 2009-02-09 Tatsuhiro Tsujikawa <[email protected]>
  1358. Included fstream instead of iostream.
  1359. * test/SignatureTest.cc
  1360. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  1361. Removed #include <algorithm>
  1362. * test/RequestGroupTest.cc
  1363. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  1364. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1365. using RequestGroup::extractURIResult().
  1366. * src/AdaptiveURISelector.cc
  1367. * src/RequestGroup.cc
  1368. * src/RequestGroup.h
  1369. * test/RequestGroupTest.cc
  1370. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  1371. Added tests for array_ptr.
  1372. * test/array_funTest.cc
  1373. 2009-02-08 Tatsuhiro Tsujikawa <[email protected]>
  1374. Don't send ip parameter to a tracker if ip parameter is empty
  1375. string.
  1376. * src/DefaultBtAnnounce.cc
  1377. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1378. Adjusted line feed.
  1379. * src/version_usage.cc
  1380. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1381. Print tags, possible values when OptionHandlerException is caught.
  1382. * src/option_processing.cc
  1383. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1384. Changed the message for FatalException.
  1385. * src/OptionParser.cc
  1386. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1387. Documented --bt-external-ip option in man page. Updated man pages
  1388. for --proxy-method option.
  1389. * doc/aria2c.1.txt
  1390. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1391. Use GET method for FTP via HTTP proxy.
  1392. * src/FtpInitiateConnectionCommand.cc
  1393. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1394. Changed the default value of --proxy-method option from 'tunnel'
  1395. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1396. option.
  1397. * src/AbstractCommand.cc
  1398. * src/AbstractCommand.h
  1399. * src/FtpInitiateConnectionCommand.cc
  1400. * src/HttpDownloadCommand.cc
  1401. * src/HttpInitiateConnectionCommand.cc
  1402. * src/HttpInitiateConnectionCommand.h
  1403. * src/OptionHandlerFactory.cc
  1404. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1405. Initialized _logger
  1406. * src/SelectEventPoll.cc
  1407. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1408. Defined a copy constructor for the same type.
  1409. * src/SharedHandle.h
  1410. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1411. Added OptionParser::parseArg() which internally uses getopt_long
  1412. to parse command-line options. All command-line options are now
  1413. configured by OptionHandler. No manual editing of struct option*
  1414. is required any more.
  1415. * src/NameMatchOptionHandler.h
  1416. * src/OptionHandler.h
  1417. * src/OptionHandlerFactory.cc
  1418. * src/OptionHandlerImpl.h
  1419. * src/OptionParser.cc
  1420. * src/OptionParser.h
  1421. * src/array_fun.h
  1422. * src/main.cc
  1423. * src/option_processing.cc
  1424. * test/OptionHandlerTest.cc
  1425. * test/OptionParserTest.cc
  1426. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1427. Fixed configure error with --disable-epoll
  1428. * configure.ac
  1429. 2009-02-07 Tatsuhiro Tsujikawa <[email protected]>
  1430. Fixed compile error when HAVE_EPOLL is not defined.
  1431. Fixed linker error on bigendian systems.
  1432. * src/SocketCore.cc
  1433. * src/SocketCore.h
  1434. * test/DefaultBtProgressInfoFileTest.cc
  1435. 2009-02-04 Tatsuhiro Tsujikawa <[email protected]>
  1436. Added --bt-external-ip option. You can specify the external IP
  1437. address to report to a BitTorrent tracker. Although this function
  1438. is named 'external', it can accept any kind of IP addresses.
  1439. * src/DefaultBtAnnounce.cc
  1440. * src/OptionHandlerFactory.cc
  1441. * src/option_processing.cc
  1442. * src/prefs.cc
  1443. * src/prefs.h
  1444. * src/usage_text.h
  1445. * test/DefaultBtAnnounceTest.cc
  1446. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  1447. Extracted the algorithm to find the longest incremental sequence
  1448. as max_sequence template.
  1449. * src/LongestSequencePieceSelector.cc
  1450. * src/a2algo.h
  1451. * test/Makefile.am
  1452. * test/a2algoTest.cc
  1453. 2009-02-03 Tatsuhiro Tsujikawa <[email protected]>
  1454. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1455. * src/usage_text.h
  1456. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  1457. Updated doc for --uri-selector, --http-server-listen-port and
  1458. --enable-http-server option. Documented --event-poll option.
  1459. * doc/aria2c.1.txt
  1460. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  1461. Updated doc for --enable-http-server.
  1462. * src/usage_text.h
  1463. 2009-02-02 Tatsuhiro Tsujikawa <[email protected]>
  1464. Documented --http-server-listen-port and --enable-http-server in
  1465. man page.
  1466. * doc/aria2c.1.txt
  1467. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1468. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1469. translations. Thanks to all translators.
  1470. * po/es.po
  1471. * po/id.po
  1472. * po/it.po
  1473. * po/ru.po
  1474. * po/uk.po
  1475. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1476. Bump up version number to 1.2.0
  1477. * configure.ac
  1478. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1479. BtContext::getAnnounceTiers() now returns const reference.
  1480. * src/BtContext.h
  1481. * src/DefaultBtContext.cc
  1482. * src/DefaultBtContext.h
  1483. * test/MockBtContext.h
  1484. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1485. Change the number of retries for tracker request based on the
  1486. number of available tracker in a torrent file.
  1487. * src/TrackerWatcherCommand.cc
  1488. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1489. Added _maxTries property to RequestGroup and assign the option
  1490. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1491. RequestGroup::getMaxTries() instead of
  1492. Option::getAsInt(PREF_MAX_TRIES).
  1493. * src/AbstractCommand.cc
  1494. * src/RequestGroup.cc
  1495. * src/RequestGroup.h
  1496. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1497. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1498. Mandriva. I modified the patch: make RequestGroup have the
  1499. timeout value and AdaptiveURISelector directly modifies that
  1500. value.
  1501. * src/AbstractCommand.cc
  1502. * src/AdaptiveURISelector.cc
  1503. * src/AdaptiveURISelector.h
  1504. * src/FtpNegotiationCommand.cc
  1505. * src/RequestGroup.cc
  1506. * src/RequestGroup.h
  1507. 2009-02-01 Tatsuhiro Tsujikawa <[email protected]>
  1508. Fixed compiler warning
  1509. * test/IteratableChecksumValidatorTest.cc
  1510. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  1511. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1512. integrated downloads. This PieceSelector subclass finds the
  1513. longest continuous sequence in the available missing pieces and
  1514. selects the last index of such sequence. This makes HTTP/FTP
  1515. connections less interrupted by the pieces obtained by BitTorrent
  1516. peers.
  1517. * src/DefaultPieceStorage.cc
  1518. * src/DefaultPieceStorage.h
  1519. * src/LongestSequencePieceSelector.cc
  1520. * src/LongestSequencePieceSelector.h
  1521. * src/Makefile.am
  1522. * src/PieceSelector.h
  1523. * src/RarestPieceSelector.h
  1524. * src/RequestGroup.cc
  1525. * test/BtDependencyTest.cc
  1526. * test/DefaultPieceStorageTest.cc
  1527. * test/IteratableChecksumValidatorTest.cc
  1528. * test/LongestSequencePieceSelectorTest.cc
  1529. * test/Makefile.am
  1530. * test/SegmentManTest.cc
  1531. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  1532. Fixed the bug that the average speed is wrong in
  1533. http/ftp/BitTorrent integrated download. Only the download bytes
  1534. in BitTorrent were considered.
  1535. * src/RequestGroup.cc
  1536. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  1537. Choose port for BitTorrent/DHT randomly from the specified range.
  1538. * src/DHTConnectionImpl.cc
  1539. * src/PeerListenCommand.cc
  1540. 2009-01-31 Tatsuhiro Tsujikawa <[email protected]>
  1541. Send HTTP Authorization header only if it is requested by the
  1542. server(response 401). There are some exceptions. The authorization
  1543. header for proxy is always sent if it is available without request
  1544. by the server. If username/password is specified in the URI, it
  1545. is immediately sent to the server without request by the server.
  1546. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1547. SharedHandle<AuthConfig>().
  1548. NetrcAuthResolver::resolveAuthConfig() returns
  1549. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1550. * src/AbstractAuthResolver.cc
  1551. * src/AbstractProxyRequestCommand.cc
  1552. * src/AuthConfigFactory.cc
  1553. * src/AuthConfigFactory.h
  1554. * src/HttpConnection.cc
  1555. * src/HttpRequest.cc
  1556. * src/HttpRequest.h
  1557. * src/HttpResponse.cc
  1558. * src/HttpResponseCommand.cc
  1559. * src/HttpSkipResponseCommand.cc
  1560. * test/AuthConfigFactoryTest.cc
  1561. * test/HttpRequestTest.cc
  1562. * test/HttpResponseTest.cc
  1563. 2009-01-27 Tatsuhiro Tsujikawa <[email protected]>
  1564. Remove leading "--" from help keyword and a substring after "="
  1565. from help keyword, so that one can query options by '-h--max-' or
  1566. '-hmax-peers=10'.
  1567. * src/option_processing.cc
  1568. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  1569. Rewritten PStringVisitor and its implementation.
  1570. * src/PStringBuildVisitor.cc
  1571. * src/PStringBuildVisitor.h
  1572. * src/PStringDatum.h
  1573. * src/PStringNumLoop.h
  1574. * src/PStringSegment.cc
  1575. * src/PStringSegment.h
  1576. * src/PStringSelect.h
  1577. * src/PStringVisitor.h
  1578. * src/download_helper.cc
  1579. * test/PStringBuildVisitorTest.cc
  1580. * test/ParameterizedStringParserTest.cc
  1581. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  1582. Persist connection between the built-in HTTP server and a client
  1583. if a client supports keep-alive. Fixed the bug that aria2 exits
  1584. when the HTTP server receives EOF from a client.
  1585. * src/HttpServer.cc
  1586. * src/HttpServer.h
  1587. * src/HttpServerCommand.cc
  1588. * src/HttpServerCommand.h
  1589. * src/HttpServerResponseCommand.cc
  1590. 2009-01-25 Tatsuhiro Tsujikawa <[email protected]>
  1591. Added experimental built-in HTTP server. Currently, when a client
  1592. accesses to the server, it responds with the current download
  1593. progress. By default, it is disabled. To enable the server, give
  1594. --enable-http-server option. To change the default port number
  1595. for the server to listen to, use --http-server-listen-port option.
  1596. The response HTML is very simple and refreshes it self each 1
  1597. second. Because of this refresh, you see flicker in normal web
  1598. browser such as Firefox. I recommend to use console-based browser
  1599. such as elinks, w3m. To connect to the server, run 'elinks
  1600. http://localhost:6800/' while running aria2. Please replace port
  1601. number '6800'(which is default) with your preference.
  1602. * src/DownloadEngineFactory.cc
  1603. * src/HttpHeader.cc
  1604. * src/HttpHeader.h
  1605. * src/HttpHeaderProcessor.cc
  1606. * src/HttpHeaderProcessor.h
  1607. * src/HttpListenCommand.cc
  1608. * src/HttpListenCommand.h
  1609. * src/HttpServer.cc
  1610. * src/HttpServer.h
  1611. * src/HttpServerCommand.cc
  1612. * src/HttpServerCommand.h
  1613. * src/HttpServerResponseCommand.cc
  1614. * src/HttpServerResponseCommand.h
  1615. * src/Makefile.am
  1616. * src/OptionHandlerFactory.cc
  1617. * src/Util.cc
  1618. * src/Util.h
  1619. * src/help_tags.h
  1620. * src/option_processing.cc
  1621. * src/prefs.cc
  1622. * src/prefs.h
  1623. * src/usage_text.h
  1624. * test/HttpHeaderProcessorTest.cc
  1625. * test/UtilTest.cc
  1626. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1627. Removed.
  1628. * src/CheckIntegrityMan.cc
  1629. * src/FileAllocationMan.cc
  1630. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1631. Made (piece) hash check sequential for each RequestGroup because
  1632. simultaneous hash check is slower than sequential execution.
  1633. * src/CheckIntegrityCommand.cc
  1634. * src/CheckIntegrityDispatcherCommand.cc
  1635. * src/CheckIntegrityDispatcherCommand.h
  1636. * src/CheckIntegrityMan.h
  1637. * src/ConsoleStatCalc.cc
  1638. * src/DownloadCommand.cc
  1639. * src/DownloadEngine.cc
  1640. * src/DownloadEngine.h
  1641. * src/DownloadEngineFactory.cc
  1642. * src/Makefile.am
  1643. * src/Makefile.in
  1644. * src/RequestGroup.cc
  1645. * src/StatCalc.h
  1646. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1647. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1648. SequentialDispatcherCommand.
  1649. * src/FileAllocationDispatcherCommand.cc
  1650. * src/SequentialDispatcherCommand.h
  1651. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1652. Rewritten FileAllocationDispatcherCommand using brand new
  1653. SequentialDispatcherCommand.
  1654. * src/DownloadEngineFactory.cc
  1655. * src/FileAllocationCommand.cc
  1656. * src/FileAllocationDispatcherCommand.cc
  1657. * src/FileAllocationDispatcherCommand.h
  1658. * src/Makefile.am
  1659. * src/SequentialDispatcherCommand.h
  1660. 2009-01-24 Tatsuhiro Tsujikawa <[email protected]>
  1661. Replaced FileAllocationMan with
  1662. SequentialPicker<FileAllocationEntry>.
  1663. * src/BtCheckIntegrityEntry.cc
  1664. * src/ConsoleStatCalc.cc
  1665. * src/DownloadEngine.cc
  1666. * src/DownloadEngine.h
  1667. * src/DownloadEngineFactory.cc
  1668. * src/FileAllocationCommand.cc
  1669. * src/FileAllocationDispatcherCommand.cc
  1670. * src/FileAllocationMan.h
  1671. * src/Makefile.am
  1672. * src/SequentialPicker.h
  1673. * src/StatCalc.h
  1674. * src/StreamCheckIntegrityEntry.cc
  1675. * test/Makefile.am
  1676. * test/SequentialPickerTest.cc
  1677. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1678. Added doc for adaptive URI selector.
  1679. * doc/aria2c.1.txt
  1680. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1681. Added doc for adaptive URI selector.
  1682. * src/usage_text.h
  1683. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1684. Added doc for --bt-max-peers option.
  1685. * doc/aria2c.1.txt
  1686. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1687. Added doc for --bt-hash-check-seed option.
  1688. * doc/aria2c.1.txt
  1689. 2009-01-19 Tatsuhiro Tsujikawa <[email protected]>
  1690. Documented exit codes.
  1691. * doc/aria2c.1.txt
  1692. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  1693. Added --bt-max-peers option to specify the maximum number of peers
  1694. per torrent. 0 means unlimited number of peers.
  1695. * src/ActivePeerConnectionCommand.cc
  1696. * src/BtRuntime.h
  1697. * src/DefaultPeerStorage.cc
  1698. * src/DefaultPeerStorage.h
  1699. * src/OptionHandlerFactory.cc
  1700. * src/RequestGroup.cc
  1701. * src/option_processing.cc
  1702. * src/prefs.cc
  1703. * src/prefs.h
  1704. * src/usage_text.h
  1705. * test/DefaultPeerStorageTest.cc
  1706. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  1707. Added --bt-hash-check-seed option. If true is given to this
  1708. option, after hash check using --check-integrity option and file
  1709. is complete, continue to seed file. If you want to check file and
  1710. download it only when it is damaged or incomplete, set this option
  1711. to false. This option has effect only on BitTorrent download.
  1712. The default value is true(This is the same behavior with the
  1713. previous release).
  1714. * src/BtCheckIntegrityEntry.cc
  1715. * src/OptionHandlerFactory.cc
  1716. * src/option_processing.cc
  1717. * src/prefs.cc
  1718. * src/prefs.h
  1719. * src/usage_text.h
  1720. 2009-01-18 Tatsuhiro Tsujikawa <[email protected]>
  1721. Updated copyright year.
  1722. * src/version_usage.cc
  1723. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  1724. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1725. * doc/aria2c.1.txt
  1726. * src/usage_text.h
  1727. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  1728. Made the max value of split option unlimited.
  1729. * doc/aria2c.1.txt
  1730. * src/OptionHandlerFactory.cc
  1731. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  1732. Fixed compile warning/error.
  1733. * src/DownloadResult.h
  1734. * src/HttpDownloadCommand.cc
  1735. * src/ServerStat.cc
  1736. * test/RequestGroupTest.cc
  1737. 2009-01-16 Tatsuhiro Tsujikawa <[email protected]>
  1738. Added --event-poll option to select the method for polling events.
  1739. The available methods are "select" and "epoll". "epoll" is
  1740. available on Linux only. The earlier release has the compile
  1741. option to choose from these methods.
  1742. * configure.ac
  1743. * src/RequestGroupMan.cc
  1744. * src/OptionHandlerFactory.cc
  1745. * src/EpollEventPoll.h
  1746. * src/StreamFileAllocationEntry.cc
  1747. * src/a2io.h
  1748. * src/SelectEventPoll.h
  1749. * src/option_processing.cc
  1750. * src/prefs.h
  1751. * src/EpollEventPoll.cc
  1752. * src/EventPoll.h
  1753. * src/SocketCore.h
  1754. * src/Makefile.am
  1755. * src/main.cc
  1756. * src/DownloadEngine.h
  1757. * src/SelectEventPoll.cc
  1758. * src/DownloadEngine.cc
  1759. * src/SocketCore.cc
  1760. * src/DownloadEngineFactory.cc
  1761. * src/Makefile.in
  1762. * src/prefs.cc
  1763. * src/usage_text.h
  1764. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  1765. Included RecoverableException.h from main.cc
  1766. * src/main.cc
  1767. 2009-01-12 Tatsuhiro Tsujikawa <[email protected]>
  1768. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1769. now returns last error encountered in the HTTP/FTP downloads as a
  1770. exit status value. If all downloads finished successfully, aria2
  1771. returns 0. The error code is defined in src/DownloadResult.h.
  1772. The error occurred in the download currently in progress is not
  1773. reported as a last error. If no error has encountered but there
  1774. are in progress or waiting downloads, aria2 returns 7.
  1775. * src/AbstractCommand.cc
  1776. * src/DlAbortEx.h
  1777. * src/DlRetryEx.h
  1778. * src/DownloadCommand.cc
  1779. * src/DownloadFailureException.h
  1780. * src/DownloadResult.h
  1781. * src/FtpNegotiationCommand.cc
  1782. * src/HttpSkipResponseCommand.cc
  1783. * src/Makefile.am
  1784. * src/MultiUrlRequestInfo.cc
  1785. * src/MultiUrlRequestInfo.h
  1786. * src/RecoverableException.h
  1787. * src/RequestGroup.cc
  1788. * src/RequestGroup.h
  1789. * src/RequestGroupMan.cc
  1790. * src/RequestGroupMan.h
  1791. * src/URIResult.cc
  1792. * src/URIResult.h
  1793. * src/main.cc
  1794. * src/option_processing.cc
  1795. * test/RequestGroupTest.cc
  1796. 2009-01-06 Tatsuhiro Tsujikawa <[email protected]>
  1797. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1798. patch adds AdaptiveURISelector, which selects one of the bests
  1799. mirrors for first and reserved connections. For supplementary
  1800. ones, it returns mirrors which has not been tested yet, and if
  1801. each of them already tested, returns mirrors which has to be
  1802. tested again. Otherwise, it doesn't return anymore mirrors.
  1803. * src/AdaptiveURISelector.cc
  1804. * src/AdaptiveURISelector.h
  1805. * src/FtpNegotiationCommand.cc
  1806. * src/HttpResponseCommand.cc
  1807. * src/Makefile.am
  1808. * src/Makefile.in
  1809. * src/OptionHandlerFactory.cc
  1810. * src/RequestGroup.cc
  1811. * src/RequestGroup.h
  1812. * src/RequestGroupMan.cc
  1813. * src/ServerStat.cc
  1814. * src/ServerStat.h
  1815. * src/ServerStatMan.cc
  1816. * src/SpeedCalc.cc
  1817. * src/URISelector.h
  1818. * src/prefs.cc
  1819. * src/prefs.h
  1820. * test/RequestGroupManTest.cc
  1821. * test/ServerStatManTest.cc
  1822. * test/ServerStatTest.cc
  1823. 2009-01-04 Tatsuhiro Tsujikawa <[email protected]>
  1824. Fixed unit test error.
  1825. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  1826. 2008-12-30 Tatsuhiro Tsujikawa <[email protected]>
  1827. * Release 1.1.2
  1828. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1829. Updated Russian translation. Thanks to the translators.
  1830. * po/ru.po
  1831. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1832. Added the description of --use-head option to man page.
  1833. * doc/aria2c.1.txt
  1834. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1835. Bump up version number to 1.1.2
  1836. * configure.ac
  1837. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1838. Added --use-head option to toggle whether HEAD method should be
  1839. used in the first HTTP request. By default aria2 uses HEAD method
  1840. as the first request. When the server doesn't recognize HEAD, then
  1841. give aria2 --use-head=false to force aria2 to use GET method
  1842. instead.
  1843. * src/OptionHandlerFactory.cc
  1844. * src/RequestGroupMan.cc
  1845. * src/option_processing.cc
  1846. * src/prefs.cc
  1847. * src/prefs.h
  1848. * src/usage_text.h
  1849. 2008-12-29 Tatsuhiro Tsujikawa <[email protected]>
  1850. Fixed the bug that BitTorrent download doesn't finish when REJECT
  1851. message is received before CHOKE message. The old implementation
  1852. doen't clear the use-bit of the piece when recieved REJECT
  1853. message.
  1854. * src/DefaultBtMessageDispatcher.cc
  1855. * test/DefaultBtMessageDispatcherTest.cc
  1856. 2008-12-25 Tatsuhiro Tsujikawa <[email protected]>
  1857. * Release 1.1.1
  1858. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  1859. Bump up version number to 1.1.1.
  1860. * configure.ac
  1861. 2008-12-24 Tatsuhiro Tsujikawa <[email protected]>
  1862. Fixed the bug that --summary-interval=0 doesn't work. The summary
  1863. is printed repeatedly.
  1864. * src/ConsoleStatCalc.cc
  1865. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1866. * Release 1.1.0
  1867. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1868. Added ifdef clause for conditional compilation.
  1869. * src/main.cc
  1870. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1871. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  1872. translations. Thanks to all translators.
  1873. * po/ja.po
  1874. * po/ru.po
  1875. * po/uk.po
  1876. * po/zh_CN.po
  1877. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1878. Added the preceding ">>> " before the message "Printing the
  1879. contents of file..." to make the output more readable.
  1880. * src/main.cc
  1881. 2008-12-23 Tatsuhiro Tsujikawa <[email protected]>
  1882. Added try-catch block in the loop in showFiles() to continue the
  1883. operation even if the exception occurred in one file.
  1884. * src/main.cc (showFiles)
  1885. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  1886. Made messages in showFiles() translatable.
  1887. * po/aria2.pot
  1888. * src/main.cc
  1889. * src/message.h
  1890. 2008-12-20 Tatsuhiro Tsujikawa <[email protected]>
  1891. Print the contents of Torrent/Metalink files are printed without
  1892. -T/-M options.
  1893. * src/main.cc
  1894. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1895. Escaped '--' with '\--'
  1896. * README
  1897. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1898. Updated "How to build" section in README. Mentioned about
  1899. --with-ca-bundle compile option.
  1900. * README
  1901. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1902. Bump up version number to 1.1.0.
  1903. * configure.ac
  1904. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1905. Added a note for --dht-listen-port option.
  1906. * doc/aria2c.1.txt
  1907. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1908. Update doc for --realtime-chunk-checksum option.
  1909. * doc/aria2c.1.txt
  1910. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1911. Update doc for --realtime-chunk-checksum option.
  1912. * src/usage_text.h
  1913. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1914. Updated French, Japanese, Russian and Ukrainian translations.
  1915. Thanks to all translators.
  1916. * po/fr.po
  1917. * po/ja.po
  1918. * po/ru.po
  1919. * po/uk.po
  1920. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1921. Renamed aria2c.pot to aria2.pot
  1922. * po/aria2.pot
  1923. * po/aria2c.pot: Removed.
  1924. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1925. Removed MetaEntry.h
  1926. * src/Makefile.am
  1927. 2008-12-17 Tatsuhiro Tsujikawa <[email protected]>
  1928. Rename file by appending digits if a local file exists and its
  1929. file size is larger than that of remote file with --continue
  1930. option. The old implementation just throws exception in such case.
  1931. * src/RequestGroup.cc
  1932. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  1933. Fixed the bug that download progress summary is not printed in the
  1934. interval specified by the option.
  1935. * src/ConsoleStatCalc.cc
  1936. * src/ConsoleStatCalc.h
  1937. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  1938. Fixed compiler warning
  1939. * src/Cookie.cc
  1940. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  1941. Fixed the cookie implementation based on RFC2965.
  1942. Now if a value in domain field is not started with dot, then
  1943. prepend dot. That means a cookie with domain=sf.net is sent to
  1944. wiki.sf.net.
  1945. * src/Cookie.cc
  1946. * test/CookieParserTest.cc
  1947. * test/CookieStorageTest.cc
  1948. * test/CookieTest.cc
  1949. * test/NsCookieParserTest.cc
  1950. * test/Sqlite3MozCookieParserTest.cc
  1951. 2008-12-16 Tatsuhiro Tsujikawa <[email protected]>
  1952. Fixed the bug that causes corrupted downloads if HTTP pipelining
  1953. is enabled and the server doesn't support keep-alive.
  1954. * src/AbstractCommand.cc
  1955. * src/DownloadCommand.cc
  1956. * src/HttpDownloadCommand.cc
  1957. * src/HttpDownloadCommand.h
  1958. * src/HttpResponseCommand.cc
  1959. * src/Request.cc
  1960. * src/Request.h
  1961. * test/RequestTest.cc
  1962. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1963. Removed Dictionary/List/Data and its related classes.
  1964. * src/BencodeVisitor.cc: Removed.
  1965. * src/BencodeVisitor.h: Removed.
  1966. * src/Data.cc: Removed.
  1967. * src/Data.h: Removed.
  1968. * src/Dictionary.cc: Removed.
  1969. * src/Dictionary.h: Removed.
  1970. * src/List.cc: Removed.
  1971. * src/List.h: Removed.
  1972. * src/Makefile.am
  1973. * src/MetaEntry.h: Removed.
  1974. * src/MetaEntryVisitor.h: Removed.
  1975. * src/MetaFileUtil.cc: Removed.
  1976. * src/MetaFileUtil.h: Removed.
  1977. * test/BencodeVisitorTest.cc: Removed.
  1978. * test/DataTest.cc: Removed.
  1979. * test/DictionaryTest.cc: Removed.
  1980. * test/ListTest.cc: Removed.
  1981. * test/Makefile.am
  1982. * test/MetaFileUtilTest.cc: Removed.
  1983. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1984. Removed include of MetaEntry.h
  1985. * test/DHTMessageTrackerEntryTest.cc
  1986. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1987. Use BDE instead of Dictionary/List/Data.
  1988. * src/AnnounceList.cc
  1989. * src/AnnounceList.h
  1990. * test/AnnounceListTest.cc
  1991. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  1992. Use BDE instead of Dictionary/List/Data.
  1993. * src/DHTAbstractMessage.cc
  1994. * src/DHTAbstractMessage.h
  1995. * src/DHTAnnouncePeerMessage.cc
  1996. * src/DHTAnnouncePeerMessage.h
  1997. * src/DHTAnnouncePeerReplyMessage.cc
  1998. * src/DHTAnnouncePeerReplyMessage.h
  1999. * src/DHTFindNodeMessage.cc
  2000. * src/DHTFindNodeMessage.h
  2001. * src/DHTFindNodeReplyMessage.cc
  2002. * src/DHTFindNodeReplyMessage.h
  2003. * src/DHTGetPeersMessage.cc
  2004. * src/DHTGetPeersMessage.h
  2005. * src/DHTGetPeersReplyMessage.cc
  2006. * src/DHTGetPeersReplyMessage.h
  2007. * src/DHTMessageFactory.h
  2008. * src/DHTMessageFactoryImpl.cc
  2009. * src/DHTMessageFactoryImpl.h
  2010. * src/DHTMessageReceiver.cc
  2011. * src/DHTMessageTracker.cc
  2012. * src/DHTMessageTracker.h
  2013. * src/DHTPingMessage.cc
  2014. * src/DHTPingMessage.h
  2015. * src/DHTPingReplyMessage.cc
  2016. * src/DHTPingReplyMessage.h
  2017. * src/DHTQueryMessage.cc
  2018. * src/DHTQueryMessage.h
  2019. * src/DHTResponseMessage.cc
  2020. * src/DHTResponseMessage.h
  2021. * test/DHTAnnouncePeerMessageTest.cc
  2022. * test/DHTAnnouncePeerReplyMessageTest.cc
  2023. * test/DHTFindNodeMessageTest.cc
  2024. * test/DHTFindNodeReplyMessageTest.cc
  2025. * test/DHTGetPeersMessageTest.cc
  2026. * test/DHTGetPeersReplyMessageTest.cc
  2027. * test/DHTMessageFactoryImplTest.cc
  2028. * test/DHTMessageTrackerTest.cc
  2029. * test/DHTPingMessageTest.cc
  2030. * test/DHTPingReplyMessageTest.cc
  2031. * test/MockDHTMessageFactory.h
  2032. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  2033. Added tests the case where length < 0 is specified.
  2034. * test/BencodeTest.cc
  2035. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  2036. Fixed memory leak in decoderawstring()
  2037. * src/bencode.cc
  2038. 2008-12-14 Tatsuhiro Tsujikawa <[email protected]>
  2039. Added missing #ifdef guard. Added uc() function for String and
  2040. removeKey() for Dict.
  2041. * src/bencode.cc
  2042. * src/bencode.h
  2043. * test/BencodeTest.cc
  2044. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2045. Use BDE instead of Dictionary/List/Data.
  2046. * src/HandshakeExtensionMessage.cc
  2047. * src/HandshakeExtensionMessage.h
  2048. * test/HandshakeExtensionMessageTest.cc
  2049. 2008-12-10 Tatsuhiro Tsujikawa <[email protected]>
  2050. Added --max-overall-upload-limit option. This option limits the
  2051. overall upload speed. Stated in help message that the existing
  2052. --max-upload-limit option limits the upload speed per each
  2053. torrent. Man page is also updated.
  2054. * doc/aria2c.1.txt
  2055. * src/DefaultBtMessageDispatcher.cc
  2056. * src/DefaultBtMessageDispatcher.h
  2057. * src/OptionHandlerFactory.cc
  2058. * src/PeerInteractionCommand.cc
  2059. * src/option_processing.cc
  2060. * src/prefs.cc
  2061. * src/prefs.h
  2062. * src/usage_text.h
  2063. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2064. Use BDE instead of Dictionary/List/Data classes.
  2065. * src/CompactPeerListProcessor.cc
  2066. * src/CompactPeerListProcessor.h
  2067. * src/DefaultBtAnnounce.cc
  2068. * src/DefaultBtContext.cc
  2069. * src/DefaultBtContext.h
  2070. * src/DefaultPeerListProcessor.cc
  2071. * src/DefaultPeerListProcessor.h
  2072. * src/DelegatingPeerListProcessor.cc
  2073. * src/DelegatingPeerListProcessor.h
  2074. * src/PeerListProcessor.h
  2075. * src/UTPexExtensionMessage.cc
  2076. * src/Util.h
  2077. * src/message.h
  2078. * test/DefaultBtContextTest.cc
  2079. * test/DefaultPeerListProcessorTest.cc
  2080. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2081. Added bencode helper functions and BDE class.
  2082. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2083. * src/Makefile.am
  2084. * src/bencode.cc
  2085. * src/bencode.h
  2086. * test/BencodeTest.cc
  2087. * test/Makefile.am
  2088. 2008-12-09 Tatsuhiro Tsujikawa <[email protected]>
  2089. Fixed the bug that bad URI is sent to the tracker when the announe
  2090. URI in torrent file includes query.
  2091. * src/DefaultBtAnnounce.cc
  2092. * test/DefaultBtAnnounceTest.cc
  2093. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  2094. Added Option::blank().
  2095. Use !Option::blank(name) instead of Option::defined(name) for
  2096. the options that take filename.
  2097. * src/MultiUrlRequestInfo.cc
  2098. * src/Option.cc
  2099. * src/Option.h
  2100. * src/main.cc
  2101. * src/option_processing.cc
  2102. * test/OptionTest.cc
  2103. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  2104. Documented the default value of --check-certificate option in man
  2105. page.
  2106. * doc/aria2c.1.txt
  2107. 2008-12-04 Tatsuhiro Tsujikawa <[email protected]>
  2108. Enabled --check-certificate by default. Added compile
  2109. time(configure) option --with-ca-bundle to specify CA bundle.
  2110. Warn if --check-certificate=true and --ca-certificate is not
  2111. specified or loading CA certificate is failed.
  2112. * configure.ac
  2113. * src/MultiUrlRequestInfo.cc
  2114. * src/OptionHandlerFactory.cc
  2115. * src/message.h
  2116. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  2117. Mentioned https tag in help option.
  2118. * doc/aria2c.1.txt
  2119. 2008-12-03 Tatsuhiro Tsujikawa <[email protected]>
  2120. Added `https' tag to help option category. Added https tag to
  2121. --ca-certificate, --certificate, --check-certificate and
  2122. --private-key option.
  2123. * src/OptionHandlerFactory.cc
  2124. * src/help_tags.h
  2125. * src/option_processing.cc
  2126. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  2127. Changed the package name from `aria2c' to `aria2' in order to fix
  2128. the packaging issue in Debian and Fedora. The name of the
  2129. executable is not changed.
  2130. * configure.ac
  2131. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  2132. Fixed typos
  2133. * src/usage_text.h
  2134. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  2135. Fixed typos and updated doc.
  2136. * README
  2137. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  2138. Fixed typos
  2139. * doc/aria2c.1.txt
  2140. 2008-12-02 Tatsuhiro Tsujikawa <[email protected]>
  2141. Fixed typos
  2142. * src/usage_text.h
  2143. 2008-11-30 Tatsuhiro Tsujikawa <[email protected]>
  2144. Print a message when no files to download.
  2145. * src/download_helper.cc
  2146. * src/main.cc
  2147. * src/message.h
  2148. 2008-11-28 Tatsuhiro Tsujikawa <[email protected]>
  2149. RFC3986 complied Percent-Encoding(urlencode).
  2150. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2151. ones.
  2152. * src/Request.cc
  2153. * src/Util.cc
  2154. * src/Util.h
  2155. * test/BtHandshakeMessageTest.cc
  2156. * test/DefaultBtAnnounceTest.cc
  2157. * test/DefaultBtContextTest.cc
  2158. * test/RequestTest.cc
  2159. * test/UtilTest.cc
  2160. 2008-11-27 Tatsuhiro Tsujikawa <[email protected]>
  2161. Fixed the bug that prevents aria2 from downloading 0-length files
  2162. via HTTP/FTP.
  2163. * src/DefaultBtContext.cc
  2164. * src/DefaultBtContext.h
  2165. * src/DownloadContext.h
  2166. * src/FtpNegotiationCommand.cc
  2167. * src/HttpResponseCommand.cc
  2168. * src/HttpResponseCommand.h
  2169. * src/RequestGroup.cc
  2170. * src/SingleFileDownloadContext.cc
  2171. * src/SingleFileDownloadContext.h
  2172. * test/BtPostDownloadHandlerTest.cc
  2173. * test/MetalinkPostDownloadHandlerTest.cc
  2174. * test/MockBtContext.h
  2175. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  2176. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2177. * src/option_processing.cc
  2178. 2008-11-26 Tatsuhiro Tsujikawa <[email protected]>
  2179. Applied aria2-1.0.1-mingw.patch.
  2180. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2181. mingw.
  2182. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2183. * src/SocketCore.cc
  2184. * src/a2netcompat.h
  2185. * test/SocketCoreTest.cc
  2186. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  2187. * Release 1.0.1
  2188. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  2189. Updated Ukrainian and Norwegian Nynorsk translations.
  2190. Thanks to all translators.
  2191. * po/nn.po
  2192. * po/uk.po
  2193. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  2194. Don't show download result when -S option is used.
  2195. * src/main.cc
  2196. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  2197. Bump up version number to 1.0.1
  2198. * configure.ac
  2199. 2008-11-24 Tatsuhiro Tsujikawa <[email protected]>
  2200. Closed files after the test cases in MultiDiskWriterTest::
  2201. testResetDiskWriterEntries(). This will fix the unit test error
  2202. in mingw32 build.
  2203. * test/MultiDiskWriterTest.cc
  2204. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  2205. Use HEAD method to get file size from HTTP server for segmented
  2206. downloading.
  2207. The request to the BitTorrent Tracker always uses GET method because
  2208. the response of the tracker is small and it doesn't need segmented
  2209. download.
  2210. * src/FtpNegotiationCommand.cc
  2211. * src/HttpRequest.cc
  2212. * src/HttpResponseCommand.cc
  2213. * src/HttpSkipResponseCommand.cc
  2214. * src/RequestGroup.cc
  2215. * src/RequestGroup.h
  2216. * src/TrackerWatcherCommand.cc
  2217. * test/HttpRequestTest.cc
  2218. 2008-11-23 Tatsuhiro Tsujikawa <[email protected]>
  2219. Fixed the bug that causes floating exception when -T option is used and
  2220. no URIs are given.
  2221. * src/download_helper.cc
  2222. * test/DownloadHelperTest.cc
  2223. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2224. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2225. errors in MinGW:
  2226. Closed file after saving server stats (RequestGroupMan.cc)
  2227. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2228. Ignored case & handled 2-digit years (strptime.c)
  2229. Added missing suseconds_t definition (a2time.h)
  2230. Fixed socket CLOSE() define (SocketCore.cc)
  2231. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2232. Changed utime() test values from x000 to x00000 as MinGW failed on
  2233. values less than timezone offset from Unix epoch
  2234. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2235. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2236. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2237. handle negative dates (CookieParserTest.cc)
  2238. * src/a2time.h
  2239. * src/FtpConnection.cc
  2240. * src/RequestGroupMan.cc
  2241. * src/SocketCore.cc
  2242. * src/strptime.c
  2243. * test/CookieParserTest.cc
  2244. * test/CopyDiskAdaptorTest.cc
  2245. * test/FileTest.cc
  2246. * test/FtpConnectionTest.cc
  2247. * test/MultiDiskAdaptorTest.cc
  2248. 2008-11-20 Tatsuhiro Tsujikawa <[email protected]>
  2249. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2250. * doc/aria2c.1.txt
  2251. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  2252. * Release 1.0.0
  2253. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  2254. Added '~' to reserved characters.
  2255. * src/Util.cc
  2256. 2008-11-19 Tatsuhiro Tsujikawa <[email protected]>
  2257. Do not urlencode Request::url in setUrl() because we want unmodified
  2258. URL using Request::getUrl()
  2259. * src/Request.cc
  2260. * src/Request.h
  2261. * test/RequestTest.cc
  2262. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2263. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2264. Thanks to all translators.
  2265. * po/bg.po
  2266. * po/fr.po
  2267. * po/ja.po
  2268. * po/ru.po
  2269. * po/uk.po
  2270. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2271. Bump up version number to 1.0.0
  2272. * configure.ac
  2273. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2274. Added nosqlite3 build to build_test.sh.
  2275. Renamed noxml as expat.
  2276. * build_test.sh
  2277. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2278. Updated INPUT FILE section.
  2279. * doc/aria2c.1.txt
  2280. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2281. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2282. on big endian systems because test .aria2 files are made for little
  2283. endian systems.
  2284. * test/DefaultBtProgressInfoFileTest.cc
  2285. 2008-11-18 Tatsuhiro Tsujikawa <[email protected]>
  2286. Dropped ares support.
  2287. * README
  2288. * configure.ac
  2289. * m4/libares.m4: Removed.
  2290. * src/AsyncNameResolver.cc
  2291. * src/Makefile.am
  2292. * test/Makefile.am
  2293. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  2294. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2295. Removed const qualifier from DiskWriter::size().
  2296. * src/AbstractDiskWriter.cc
  2297. * src/AbstractDiskWriter.h
  2298. * src/ByteArrayDiskWriter.cc
  2299. * src/ByteArrayDiskWriter.h
  2300. * src/DiskWriter.h
  2301. * test/ByteArrayDiskWriterTest.cc
  2302. 2008-11-17 Tatsuhiro Tsujikawa <[email protected]>
  2303. Fixed the bug that causes segmentation fault/bus error during executing
  2304. choking algorithm while seeding. This is caused by improper
  2305. implementation of compare function which returns inconsistent results
  2306. depending on the timing of last unchoke.
  2307. * src/BtSeederStateChoke.cc
  2308. * src/BtSeederStateChoke.h
  2309. * src/DefaultPeerStorage.cc
  2310. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2311. Removed TODO
  2312. * TODO
  2313. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2314. Added a section that explains how to pass argument to options that
  2315. takes optional arguments with its short form.
  2316. * doc/aria2c.1.txt
  2317. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2318. Added -u for the short form of --max-upload-limit option.
  2319. * doc/aria2c.1.txt
  2320. * src/option_processing.cc
  2321. * src/usage_text.h
  2322. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2323. Added -V for the short form of --check-integrity option.
  2324. Now the argument of --check-integrity option is optional:
  2325. if it is omitted, it is evaluated as true.
  2326. * doc/aria2c.1.txt
  2327. * src/option_processing.cc
  2328. * src/usage_text.h
  2329. 2008-11-16 Tatsuhiro Tsujikawa <[email protected]>
  2330. Made the default value of --ftp-pasv option set to true and it can take
  2331. true/false values.
  2332. * src/OptionHandlerFactory.cc
  2333. * src/option_processing.cc
  2334. * src/usage_text.h
  2335. * doc/aria2c.1.txt
  2336. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  2337. Given custom random number generator to std::random_shuffle.
  2338. * src/AnnounceList.cc
  2339. * src/BtLeecherStateChoke.cc
  2340. * src/BtSeederStateChoke.cc
  2341. * src/DefaultBtRequestFactory.cc
  2342. * src/MetalinkEntry.cc
  2343. * src/RarestPieceSelector.cc
  2344. * src/SimpleRandomizer.cc
  2345. * src/SimpleRandomizer.h
  2346. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  2347. Now the default value of --enable-direct-io is true.
  2348. * src/OptionHandlerFactory.cc
  2349. * doc/aria2c.1.txt
  2350. 2008-11-15 Tatsuhiro Tsujikawa <[email protected]>
  2351. Erase peer before executing onReturningPeer and onErasingPeer
  2352. because choking algorithm called from onReturningPeer doesn't
  2353. like erasing peer in the active peer list.
  2354. * src/DefaultPeerStorage.cc
  2355. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2356. Instead of creating special filename in createDownloadResult() if
  2357. inMemoryDownload() is true, now it is done in getFilePath().
  2358. * src/RequestGroup.cc
  2359. * test/RequestGroupTest.cc
  2360. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2361. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2362. processed in memory. This is the fix for previous comment out.
  2363. * src/MemoryBufferPreDownloadHandler.cc
  2364. * src/RequestGroup.cc
  2365. * src/RequestGroup.h
  2366. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2367. Commented out the code which sets virtual directory path "[MEMORY]"
  2368. propagate directory to store to following RequestGroup.
  2369. * src/MemoryBufferPreDownloadHandler.cc
  2370. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2371. Bump up version number to 1.0.0b
  2372. * configure.ac
  2373. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2374. Added input_uris.txt to EXTRA_DIST
  2375. * test/Makefile.am
  2376. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2377. Removed PeerObject.h from Makefile.am
  2378. * src/Makefile.am
  2379. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2380. Avoid slow seeding
  2381. * src/PeerInteractionCommand.cc
  2382. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2383. Updated usage for -i option.
  2384. * src/usage_text.h (TEXT_INPUT_FILE)
  2385. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2386. Added INPUT FILE section to man page.
  2387. Escaped fake URLs.
  2388. * doc/aria2c.1.txt
  2389. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2390. Fixed wrong note position for -o option.
  2391. * doc/aria2c.1.txt
  2392. 2008-11-14 Tatsuhiro Tsujikawa <[email protected]>
  2393. Fixed compile error without SSL/XML library.
  2394. * src/DefaultBtProgressInfoFile.cc
  2395. * src/DefaultBtProgressInfoFile.h
  2396. * src/FileMetalinkParserState.cc
  2397. * src/RequestGroup.h
  2398. * src/SocketCore.cc
  2399. * src/SocketCore.h
  2400. * src/VerificationMetalinkParserState.cc
  2401. * src/download_helper.h
  2402. * src/main.cc
  2403. * test/DefaultBtProgressInfoFileTest.cc
  2404. * test/DownloadHelperTest.cc
  2405. 2008-11-13 Tatsuhiro Tsujikawa <[email protected]>
  2406. Rewritten URI handling functions. They are now provided as a testable
  2407. functions.
  2408. * src/Makefile.am
  2409. * src/RequestGroup.cc
  2410. * src/RequestGroup.h
  2411. * src/download_helper.cc
  2412. * src/download_helper.h
  2413. * src/main.cc
  2414. * test/DownloadHelperTest.cc
  2415. * test/Makefile.am
  2416. * test/input_uris.txt
  2417. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  2418. Quickly terminate commands when ctrl-c is pressed.
  2419. * src/DownloadEngine.cc
  2420. 2008-11-12 Tatsuhiro Tsujikawa <[email protected]>
  2421. Quickly terminate idle commands when download finished.
  2422. * src/AbstractCommand.cc
  2423. * src/DownloadCommand.cc
  2424. * src/DownloadEngine.cc
  2425. * src/DownloadEngine.h
  2426. * src/SleepCommand.cc
  2427. * src/SleepCommand.h
  2428. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2429. Added the ability to specify output filename and directory in input
  2430. file.
  2431. Additional parameters are added in the following line of URIs
  2432. with proceeding white space(s), 1 parameter in 1 line.
  2433. The parameter names are the same with the command-line option name
  2434. without proceeding "--". Not all the options are available here:
  2435. at the moment, 'dir' and 'out' options are avialable.
  2436. Please note that out option has no effect against Metalink or BitTorrent
  2437. downloads.
  2438. Example input file:
  2439. http://host/foo-1.1.tar.bz2
  2440. out=foo.tar.bz2
  2441. dir=/tmp/downloads
  2442. http://host/thundermonkey-2.0.tar.bz2
  2443. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2444. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2445. thundermonkey-2.0.tar.bz2 is saved as
  2446. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2447. * src/BtPostDownloadHandler.cc
  2448. * src/Metalink2RequestGroup.cc
  2449. * src/Metalink2RequestGroup.h
  2450. * src/MetalinkPostDownloadHandler.cc
  2451. * src/UriListParser.cc
  2452. * src/UriListParser.h
  2453. * src/main.cc
  2454. * test/Metalink2RequestGroupTest.cc
  2455. * test/UriListParserTest.cc
  2456. * test/filelist1.txt
  2457. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2458. Fixed error when SSL library is not found.
  2459. * configure.ac
  2460. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2461. Cross referenced among -s, -C and -j options.
  2462. Updated usage of -C and -s options.
  2463. * src/usage_text.h
  2464. * doc/aria2c.1.txt
  2465. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2466. Fixed bad cast in 32bit platforms.
  2467. * test/DefaultPieceStorageTest.cc
  2468. (DefaultPieceStorageTest::testGetCompletedLength)
  2469. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2470. Fixed unit test fails on 32bit platforms.
  2471. * test/CookieParserTest.cc
  2472. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2473. Show an average download speed in Download results.
  2474. * src/BtFileAllocationEntry.cc
  2475. * src/DefaultPieceStorage.cc
  2476. * src/DownloadContext.cc
  2477. * src/DownloadContext.h
  2478. * src/DownloadResult.h
  2479. * src/RequestGroup.cc
  2480. * src/RequestGroupMan.cc
  2481. * src/StreamFileAllocationEntry.cc
  2482. 2008-11-11 Tatsuhiro Tsujikawa <[email protected]>
  2483. Fixed the bug that metalink file is not processed if Content-Type
  2484. field has a paramter.
  2485. * src/HttpResponse.cc
  2486. * src/HttpResponse.h
  2487. * test/HttpResponseTest.cc
  2488. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  2489. Removed unused code.
  2490. * src/DefaultBtAnnounce.cc
  2491. 2008-11-10 Tatsuhiro Tsujikawa <[email protected]>
  2492. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2493. the value larger than DefaultPieceStorage::getTotalLength() when
  2494. in flight pieces are involved.
  2495. * src/DefaultPieceStorage.cc
  2496. * test/DefaultPieceStorageTest.cc
  2497. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2498. Bump up version number to 1.0.0a.
  2499. * configure.ac
  2500. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2501. Updated configure.ac
  2502. * configure.ac
  2503. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2504. Added usege for proxy.
  2505. * doc/aria2c.1.txt
  2506. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2507. Added usage for --ca-certificate, --certificate, --private-key and
  2508. --check-certificate options.
  2509. * doc/aria2c.1.txt
  2510. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2511. Updated man page
  2512. * doc/aria2c.1.txt
  2513. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2514. Added --no-proxy option. It receives comman separated hostname or
  2515. domains to which proxy should not be used.
  2516. aria2 honors the environment variable no_proxy to override no-proxy
  2517. value in configuration file. The user can override the environment
  2518. variable no_proxy with --no-proxy command-line option.
  2519. * src/AbstractCommand.cc
  2520. * src/OptionHandlerFactory.cc
  2521. * src/option_processing.cc
  2522. * src/prefs.cc
  2523. * src/prefs.h
  2524. * src/usage_text.h
  2525. 2008-11-09 Tatsuhiro Tsujikawa <[email protected]>
  2526. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2527. The CA certificates are specified in --ca-certificate option.
  2528. By default, the verification is disabled. Use --check-certificate
  2529. option to enable it.
  2530. * src/HttpRequestCommand.cc
  2531. * src/LibgnutlsTLSContext.cc
  2532. * src/LibgnutlsTLSContext.h
  2533. * src/LibsslTLSContext.cc
  2534. * src/LibsslTLSContext.h
  2535. * src/MultiUrlRequestInfo.cc
  2536. * src/OptionHandlerFactory.cc
  2537. * src/SocketCore.cc
  2538. * src/SocketCore.h
  2539. * src/a2functional.h
  2540. * src/message.h
  2541. * src/option_processing.cc
  2542. * src/prefs.cc
  2543. * src/prefs.h
  2544. * src/usage_text.h
  2545. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  2546. Added client certificate authentication for SSL/TLS.
  2547. Currently a private key must be decrypted for use with aria2.
  2548. If a user accidentally gives encrypted file to aria2 then following
  2549. thing happens:
  2550. If encrypted private key is given to aria2, it behaves differently
  2551. depending on the ssl library it uses. If aria2 built with openssl then
  2552. openssl prompts the user for password. If aria2 build with gnutls then
  2553. aria2 exists with error at start up.
  2554. * src/DownloadEngineFactory.cc
  2555. * src/MultiUrlRequestInfo.cc
  2556. * src/OptionHandlerFactory.cc
  2557. * src/option_processing.cc
  2558. * src/prefs.cc
  2559. * src/prefs.h
  2560. * src/usage_text.h
  2561. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  2562. Introduced TLSContext that holds TLS related data that can be shared
  2563. with multiple SSL connections.
  2564. * src/DownloadEngineFactory.cc
  2565. * src/LibgnutlsTLSContext.cc
  2566. * src/LibgnutlsTLSContext.h
  2567. * src/LibsslTLSContext.cc
  2568. * src/LibsslTLSContext.h
  2569. * src/Makefile.am
  2570. * src/SocketCore.cc
  2571. * src/SocketCore.h
  2572. * src/TLSContext.h
  2573. * src/message.h
  2574. 2008-11-08 Tatsuhiro Tsujikawa <[email protected]>
  2575. Fixed the bug that the DiskWriter of the first FileEntry whose
  2576. `needsFileAllocation' property is false is not created
  2577. even if it shares a piece with next FileEntry which `requested' property
  2578. is true.
  2579. Fixed the bug that zero-length file is not created if pre file
  2580. allocation is not done.
  2581. * src/MultiDiskAdaptor.cc
  2582. * src/MultiDiskAdaptor.h
  2583. * test/MultiDiskAdaptorTest.cc
  2584. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2585. Added the ability to pool proxy connection.
  2586. The conneciton in FTP with proxy-method=GET is not pooled.
  2587. Proxy-Connection header will not be sent when sending CONNECT method.
  2588. * src/DownloadEngine.cc
  2589. * src/DownloadEngine.h
  2590. * src/FtpFinishDownloadCommand.cc
  2591. * src/FtpInitiateConnectionCommand.cc
  2592. * src/FtpNegotiationCommand.cc
  2593. * src/HttpDownloadCommand.cc
  2594. * src/HttpInitiateConnectionCommand.cc
  2595. * src/HttpRequest.cc
  2596. * src/HttpRequest.h
  2597. * src/HttpResponse.cc
  2598. * src/HttpSkipResponseCommand.cc
  2599. * test/HttpRequestTest.cc
  2600. * test/HttpResponseTest.cc
  2601. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2602. Handle date before epoch.
  2603. To create *bad* Time object, call Time::null().
  2604. * src/CookieParser.cc
  2605. * src/FtpConnection.cc
  2606. * src/FtpConnection.h
  2607. * src/FtpNegotiationCommand.cc
  2608. * src/RequestGroup.cc
  2609. * src/TimeA2.cc
  2610. * src/TimeA2.h
  2611. * test/CookieParserTest.cc
  2612. * test/FtpConnectionTest.cc
  2613. * test/TimeTest.cc
  2614. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2615. Added support for following envrionment variables: http_proxy,
  2616. https_proxy, ftp_proxy and all_proxy.
  2617. Each variable is equivalent to the aria2 option whose name is the
  2618. variable name with '_' replaced with '-'.
  2619. They overrides options specified in aria2.conf file.
  2620. The envrionment variables can be overrode using command-line option.
  2621. * src/option_processing.cc
  2622. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2623. Renamed --http-proxy-method as --proxy-method.
  2624. * src/AbstractCommand.cc
  2625. * src/FtpInitiateConnectionCommand.cc
  2626. * src/HttpInitiateConnectionCommand.cc
  2627. * src/OptionHandlerFactory.cc
  2628. * src/option_processing.cc
  2629. * src/prefs.cc
  2630. * src/prefs.h
  2631. * src/usage_text.h
  2632. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2633. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2634. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2635. Above 3 options and --http-proxy option can handle proxy in URL format
  2636. like: http://user:passwd@host:port.
  2637. If a proxy requires user/password, they must be specified in a URL.
  2638. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2639. instead.
  2640. * src/AbstractCommand.cc
  2641. * src/AbstractCommand.h
  2642. * src/AbstractProxyRequestCommand.cc
  2643. * src/AbstractProxyRequestCommand.h
  2644. * src/AuthConfigFactory.cc
  2645. * src/AuthConfigFactory.h
  2646. * src/FtpFinishDownloadCommand.cc
  2647. * src/FtpInitiateConnectionCommand.cc
  2648. * src/FtpInitiateConnectionCommand.h
  2649. * src/FtpNegotiationCommand.cc
  2650. * src/FtpTunnelRequestCommand.cc
  2651. * src/FtpTunnelRequestCommand.h
  2652. * src/HttpDownloadCommand.cc
  2653. * src/HttpInitiateConnectionCommand.cc
  2654. * src/HttpInitiateConnectionCommand.h
  2655. * src/HttpProxyRequestCommand.cc
  2656. * src/HttpProxyRequestCommand.h
  2657. * src/HttpRequest.cc
  2658. * src/HttpRequest.h
  2659. * src/HttpRequestCommand.cc
  2660. * src/HttpRequestCommand.h
  2661. * src/HttpSkipResponseCommand.cc
  2662. * src/InitiateConnectionCommand.cc
  2663. * src/InitiateConnectionCommand.h
  2664. * src/OptionHandlerFactory.cc
  2665. * src/OptionHandlerImpl.h
  2666. * src/Request.cc
  2667. * src/option_processing.cc
  2668. * src/prefs.cc
  2669. * src/prefs.h
  2670. * src/usage_text.h
  2671. * test/AuthConfigFactoryTest.cc
  2672. * test/HttpRequestTest.cc
  2673. * test/OptionHandlerTest.cc
  2674. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2675. Execute choking algorithm when unchoked and interested peer is
  2676. disconected.
  2677. * src/DefaultPeerStorage.cc
  2678. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2679. Added testcase for BtNotInterestedMessage from unchoked peer.
  2680. * test/BtNotInterestedMessageTest.cc
  2681. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2682. Execute choking algorithm when BtInterestedMessage arrives from
  2683. unchoked peer.
  2684. * src/BtInterestedMessage.cc
  2685. * src/BtInterestedMessage.h
  2686. * src/DefaultBtMessageFactory.cc
  2687. * test/BtInterestedMessageTest.cc
  2688. * test/MockPeerStorage.h
  2689. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2690. AuthConfigFactory is now part of DownloadEngine.
  2691. * src/AbstractProxyRequestCommand.cc
  2692. * src/AuthConfigFactory.h
  2693. * src/DownloadEngine.cc
  2694. * src/DownloadEngine.h
  2695. * src/FtpConnection.cc
  2696. * src/FtpConnection.h
  2697. * src/FtpNegotiationCommand.cc
  2698. * src/HttpConnection.cc
  2699. * src/HttpRequest.cc
  2700. * src/HttpRequest.h
  2701. * src/HttpRequestCommand.cc
  2702. * src/HttpResponse.cc
  2703. * src/HttpResponseCommand.cc
  2704. * src/HttpSkipResponseCommand.cc
  2705. * src/MultiUrlRequestInfo.cc
  2706. * src/main.cc
  2707. * test/FtpConnectionTest.cc
  2708. * test/HttpRequestTest.cc
  2709. * test/HttpResponseTest.cc
  2710. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2711. Corrected catched exception type.
  2712. * src/ServerStatMan.cc
  2713. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2714. DNSCache is now part of DownloadEngine.
  2715. * src/DNSCache.h
  2716. * src/DownloadEngine.cc
  2717. * src/DownloadEngine.h
  2718. * src/InitiateConnectionCommand.cc
  2719. * src/MultiUrlRequestInfo.cc
  2720. * test/Makefile.am
  2721. * test/Makefile.in
  2722. * test/SimpleDNSCacheTest.cc
  2723. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2724. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2725. DownloadEngine.
  2726. * src/ActivePeerConnectionCommand.cc
  2727. * src/BtSetup.cc
  2728. * src/CUIDCounter.h
  2729. * src/DHTSetup.cc
  2730. * src/DownloadCommand.cc
  2731. * src/DownloadEngine.cc
  2732. * src/DownloadEngine.h
  2733. * src/DownloadEngineFactory.cc
  2734. * src/FileAllocationDispatcherCommand.cc
  2735. * src/InitiatorMSEHandshakeCommand.cc
  2736. * src/PeerInitiateConnectionCommand.cc
  2737. * src/PeerInteractionCommand.cc
  2738. * src/PeerListenCommand.cc
  2739. * src/RequestGroup.cc
  2740. * src/StreamFileAllocationEntry.cc
  2741. * src/TrackerWatcherCommand.cc
  2742. * src/main.cc
  2743. * test/RequestGroupManTest.cc
  2744. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2745. Implemented commented code in BtSeederStateChoke
  2746. * src/BtSeederStateChoke.cc
  2747. * src/Peer.cc
  2748. * src/Peer.h
  2749. * src/PeerInteractionCommand.cc
  2750. * src/PeerSessionResource.cc
  2751. * src/PeerSessionResource.h
  2752. * test/MockBtMessageDispatcher.h
  2753. * test/PeerSessionResourceTest.cc
  2754. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2755. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2756. its object.
  2757. * src/AbstractBtMessage.cc
  2758. * src/ActivePeerConnectionCommand.cc
  2759. * src/ActivePeerConnectionCommand.h
  2760. * src/BtContextAwareCommand.cc
  2761. * src/BtContextAwareCommand.h
  2762. * src/BtExtendedMessage.cc
  2763. * src/BtExtendedMessage.h
  2764. * src/BtInterestedMessage.cc
  2765. * src/BtInterestedMessage.h
  2766. * src/BtNotInterestedMessage.cc
  2767. * src/BtNotInterestedMessage.h
  2768. * src/BtRegistry.cc
  2769. * src/BtRegistry.h
  2770. * src/BtSeederStateChoke.cc
  2771. * src/BtSetup.cc
  2772. * src/DHTGetPeersCommand.cc
  2773. * src/DHTGetPeersCommand.h
  2774. * src/DHTPeerAnnounceEntry.cc
  2775. * src/DHTPeerAnnounceEntry.h
  2776. * src/DHTPeerAnnounceStorage.cc
  2777. * src/DHTPeerAnnounceStorage.h
  2778. * src/DHTPeerLookupTask.cc
  2779. * src/DHTPeerLookupTask.h
  2780. * src/DHTSetup.cc
  2781. * src/DHTSetup.h
  2782. * src/DHTTaskFactory.h
  2783. * src/DHTTaskFactoryImpl.cc
  2784. * src/DHTTaskFactoryImpl.h
  2785. * src/DefaultBtAnnounce.cc
  2786. * src/DefaultBtInteractive.cc
  2787. * src/DefaultBtInteractive.h
  2788. * src/DefaultBtMessageDispatcher.cc
  2789. * src/DefaultBtMessageDispatcher.h
  2790. * src/DefaultBtMessageFactory.cc
  2791. * src/DefaultBtMessageFactory.h
  2792. * src/DefaultBtMessageReceiver.cc
  2793. * src/DefaultBtProgressInfoFile.cc
  2794. * src/DefaultBtProgressInfoFile.h
  2795. * src/DefaultBtRequestFactory.cc
  2796. * src/DefaultBtRequestFactory.h
  2797. * src/DefaultExtensionMessageFactory.cc
  2798. * src/DefaultExtensionMessageFactory.h
  2799. * src/DefaultPeerStorage.cc
  2800. * src/DefaultPeerStorage.h
  2801. * src/DownloadEngine.cc
  2802. * src/DownloadEngine.h
  2803. * src/InitiatorMSEHandshakeCommand.cc
  2804. * src/InitiatorMSEHandshakeCommand.h
  2805. * src/MSEHandshake.cc
  2806. * src/MSEHandshake.h
  2807. * src/Makefile.am
  2808. * src/Makefile.in
  2809. * src/PeerChokeCommand.cc
  2810. * src/PeerChokeCommand.h
  2811. * src/PeerInitiateConnectionCommand.cc
  2812. * src/PeerInitiateConnectionCommand.h
  2813. * src/PeerInteractionCommand.cc
  2814. * src/PeerInteractionCommand.h
  2815. * src/PeerObject.h
  2816. * src/PeerReceiveHandshakeCommand.cc
  2817. * src/PeerReceiveHandshakeCommand.h
  2818. * src/ReceiverMSEHandshakeCommand.cc
  2819. * src/RequestGroup.cc
  2820. * src/RequestGroup.h
  2821. * src/RequestGroupMan.cc
  2822. * src/RequestGroupMan.h
  2823. * src/SeedCheckCommand.cc
  2824. * src/SeedCheckCommand.h
  2825. * src/ShareRatioSeedCriteria.h
  2826. * src/SimpleBtMessage.cc
  2827. * src/TrackerWatcherCommand.cc
  2828. * src/TrackerWatcherCommand.h
  2829. * src/UTPexExtensionMessage.cc
  2830. * src/UTPexExtensionMessage.h
  2831. * test/BtCancelMessageTest.cc
  2832. * test/BtChokeMessageTest.cc
  2833. * test/BtExtendedMessageTest.cc
  2834. * test/BtInterestedMessageTest.cc
  2835. * test/BtNotInterestedMessageTest.cc
  2836. * test/BtPieceMessageTest.cc
  2837. * test/BtPortMessageTest.cc
  2838. * test/BtRegistryTest.cc
  2839. * test/BtRejectMessageTest.cc
  2840. * test/BtRequestMessageTest.cc
  2841. * test/DHTPeerAnnounceEntryTest.cc
  2842. * test/DHTPeerAnnounceStorageTest.cc
  2843. * test/DefaultBtMessageDispatcherTest.cc
  2844. * test/DefaultBtMessageFactoryTest.cc
  2845. * test/DefaultBtProgressInfoFileTest.cc
  2846. * test/DefaultBtRequestFactoryTest.cc
  2847. * test/DefaultExtensionMessageFactoryTest.cc
  2848. * test/MSEHandshakeTest.cc
  2849. * test/MockDHTTaskFactory.h
  2850. * test/ShareRatioSeedCriteriaTest.cc
  2851. * test/UTPexExtensionMessageTest.cc
  2852. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2853. Fixed compiler warning.
  2854. * test/UtilTest.cc
  2855. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2856. Treat Cookie object as session cookie if expiry = 0 is given.
  2857. With this change, you can specify session scoped cookies in an external
  2858. file setting expiry value to 0.
  2859. * src/Cookie.cc
  2860. * src/Cookie.h
  2861. * test/CookieParserTest.cc
  2862. * test/CookieStorageTest.cc
  2863. * test/CookieTest.cc
  2864. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2865. Changed signature of DHTMessageFactory::createResponseMessage().
  2866. Removed unused validateIDMatch.
  2867. * src/DHTMessageFactory.h
  2868. * src/DHTMessageFactoryImpl.cc
  2869. * src/DHTMessageFactoryImpl.h
  2870. * src/DHTMessageTracker.cc
  2871. * test/DHTMessageFactoryImplTest.cc
  2872. * test/MockDHTMessageFactory.h
  2873. Dropped DHT message coming from same ID of localhost.
  2874. * src/DHTMessageReceiver.cc
  2875. Rejected adding node whose ID is the same as localhost's.
  2876. * src/DHTRoutingTable.cc
  2877. * test/BtPortMessageTest.cc
  2878. * test/DHTRoutingTableTest.cc
  2879. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2880. Pool connection when redirection occurs with Content-Length = 0.
  2881. * src/HttpSkipResponseCommand.cc
  2882. * src/HttpSkipResponseCommand.h
  2883. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2884. Fixed the bug that causes time out when redirection occurs with
  2885. content-length 0.
  2886. * src/HttpResponseCommand.cc
  2887. * src/HttpSkipResponseCommand.cc
  2888. * src/HttpSkipResponseCommand.h
  2889. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2890. Now each status legends is shown only when it appears in Download
  2891. Result. If Download Result has no item, then status legend will not
  2892. be printed.
  2893. * src/RequestGroupMan.cc
  2894. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2895. Removed duplicate creation of OptionHandlers.
  2896. * src/option_processing.cc
  2897. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2898. Fixed the bug that causes segmentation fault when accessing files which
  2899. don't exist or are not included in --select-file option while
  2900. validating chunk checksum.
  2901. * src/MultiDiskAdaptor.cc
  2902. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2903. Fixed compiler warning.
  2904. * test/UtilTest.cc
  2905. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2906. Included cstdlib. This fixed the compile error with g++-4.3.2.
  2907. * src/IteratableChecksumValidator.cc
  2908. * src/IteratableChunkChecksumValidator.cc
  2909. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2910. * Release 0.16.2
  2911. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2912. Added Serbian translation. Updated Ukrainian translation.
  2913. Thanks to all translators.
  2914. * po/sr.po
  2915. * po/uk.po
  2916. * po/LINGUAS
  2917. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2918. Bump up version number to 0.16.2
  2919. * configure.ac
  2920. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2921. Added length equality test to operator== to drop a piece message
  2922. whose length does not match to the requested one.
  2923. * src/RequestSlot.cc
  2924. * test/DefaultBtMessageDispatcherTest.cc
  2925. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2926. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  2927. recieved.
  2928. In this fix, if a request larger than 16KiB length is received, aria2
  2929. disconnects the peer.
  2930. * src/BtConstants.h
  2931. * src/PeerMessageUtil.cc
  2932. * src/PeerMessageUtil.h
  2933. * test/BtRequestMessageTest.cc
  2934. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2935. * Release 0.16.1
  2936. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2937. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  2938. * doc/aria2c.1.txt
  2939. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2940. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  2941. Updated French, Simplified Chinese and Japanese translations.
  2942. Thanks to all translators.
  2943. en@quot and en@boldquot are also added.
  2944. * po/LINGUAS
  2945. * po/fr.po
  2946. * po/ja.po
  2947. * po/uk.po
  2948. * po/vi.po
  2949. * po/zh_CN.po
  2950. * po/zh_TW.po
  2951. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2952. Bump up version number to 0.16.1.
  2953. * configure.ac
  2954. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2955. Updated README.
  2956. * README
  2957. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2958. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  2959. not to replace '--' with em dash character.
  2960. * doc/aria2c.1.txt
  2961. * doc/makeman
  2962. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2963. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  2964. every SEC seconds.
  2965. * src/DownloadEngineFactory.cc
  2966. * src/OptionHandlerFactory.cc
  2967. * src/option_processing.cc
  2968. * src/usage_text.h
  2969. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2970. Fixed compile warning on linux-amd64
  2971. * src/FtpConnection.cc
  2972. * src/IteratableChunkChecksumValidator.cc
  2973. * src/MultiDiskAdaptor.cc
  2974. Fixed the bug that unit test fails on linux-amd64
  2975. * test/UtilTest.cc
  2976. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2977. Added --dht-file-path option to change the path to dht.dat, which is a
  2978. serialized DHT routing table.
  2979. * src/OptionHandlerFactory.cc
  2980. * src/option_processing.cc
  2981. * src/usage_text.h
  2982. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2983. Fixed possible underflow.
  2984. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  2985. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2986. Fixed the bug that last character in URI is not encoded.
  2987. * src/Request.cc
  2988. * test/RequestTest.cc
  2989. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2990. Fixed the bug that referer header field contains fragment.
  2991. Now Request class removes fragment part of URI and encodes it
  2992. in Request::setUri() and setReferer().
  2993. * src/Request.h
  2994. * src/Request.cc
  2995. * test/RequestTest.cc
  2996. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2997. Added missing m4 macros.
  2998. * m4/cppunit.m4
  2999. * m4/libgcrypt.m4
  3000. * m4/libgnutls-extra.m4
  3001. * m4/libgnutls.m4
  3002. * m4/libxml2.m4
  3003. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3004. Fixed compile error with gcc-4.4(snapshot)
  3005. * src/File.cc
  3006. * src/FtpConnection.cc
  3007. * src/OptionHandlerImpl.h
  3008. * src/Util.cc
  3009. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3010. Removed assert()
  3011. * src/SocketBuffer.cc (SocketBuffer::send)
  3012. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3013. Changed the type of _numNewConnection to unsigned int.
  3014. * src/ActivePeerConnectionCommand.cc
  3015. * src/ActivePeerConnectionCommand.h
  3016. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3017. * Release 0.16.0
  3018. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3019. Updated doc
  3020. * README
  3021. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3022. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3023. translations. Thanks to all translators.
  3024. * po/bg.po
  3025. * po/de.po
  3026. * po/fr.po
  3027. * po/ja.po
  3028. * po/zh_CN.po
  3029. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3030. Bump up version number to 0.16.0.
  3031. * configure.ac
  3032. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3033. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3034. int32_t.
  3035. Changed the type of count to int32_t.
  3036. * src/Metalink2RequestGroup.cc
  3037. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3038. Added test for Time::elapsed(time_t).
  3039. * test/TimeTest.cc
  3040. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3041. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3042. Util::difftv() should be used instead.
  3043. * src/TimeA2.cc
  3044. * src/TimeA2.h
  3045. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3046. Made socket for dht connections non-blocking
  3047. * src/DHTAbstractMessage.cc
  3048. * src/DHTAbstractMessage.h
  3049. * src/DHTConnection.h
  3050. * src/DHTConnectionImpl.cc
  3051. * src/DHTConnectionImpl.h
  3052. * src/DHTMessage.h
  3053. * src/DHTMessageDispatcherImpl.cc
  3054. * src/DHTMessageDispatcherImpl.h
  3055. * src/DHTUnknownMessage.cc
  3056. * src/DHTUnknownMessage.h
  3057. * src/SocketCore.cc
  3058. * src/SocketCore.h
  3059. * test/MockDHTMessage.h
  3060. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3061. Changed the type of offset to int.
  3062. * src/ParameterizedStringParser.cc
  3063. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3064. Made getAsInt() return int32_t
  3065. * src/Option.h
  3066. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3067. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3068. build.
  3069. * configure.ac
  3070. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3071. Use sqlite3_open if sqlite3_open_v2 is not available.
  3072. * src/Sqlite3MozCookieParser.cc
  3073. * src/Sqlite3MozCookieParser.h
  3074. * m4/sqlite3.m4
  3075. * test/Sqlite3MozCookieParserTest.cc
  3076. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3077. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3078. * src/BtPieceMessage.cc
  3079. * src/DHTPeerAnnounceStorage.cc
  3080. * src/DefaultPieceStorage.cc
  3081. * src/DownloadCommand.cc
  3082. * src/DownloadEngine.cc
  3083. * src/FtpConnection.cc
  3084. * src/PeerConnection.cc
  3085. * src/PeerMessageUtil.cc
  3086. * src/RequestGroup.cc
  3087. * src/RequestGroupMan.cc
  3088. * src/SimpleBtMessage.cc
  3089. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3090. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3091. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3092. * src/AbstractDiskWriter.cc
  3093. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3094. Don't set Request::supportsPersistentConnection() in HttpConnection
  3095. since this code is also used in AbstractProxyResponseCommand.
  3096. Moved those code to HttpResponse.
  3097. * src/HttpResponse.cc
  3098. * src/HttpResponse.h
  3099. * src/HttpConnection.cc
  3100. * src/HttpConnection.h
  3101. * src/HttpResponseCommand.cc
  3102. * test/HttpResponseTest.cc
  3103. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3104. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3105. The configuration is minimum: no torrent, no metalink, so there may be
  3106. other compile error on their code.
  3107. * src/a2netcompat.h
  3108. * src/File.cc
  3109. * src/File.h
  3110. * src/SocketCore.cc
  3111. * src/SocketCore.h
  3112. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3113. Made a socket of incoming peer non-blocking.
  3114. * src/PeerListenCommand.cc
  3115. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3116. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3117. whole message data is not sent in one send() call.
  3118. * src/BtPieceMessage.cc
  3119. * src/BtPieceMessage.h
  3120. * src/PeerConnection.cc
  3121. * src/PeerConnection.h
  3122. * src/SimpleBtMessage.cc
  3123. * src/SimpleBtMessage.h
  3124. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3125. Fixed the bug that aria2 downloads faster than max-download-limit when
  3126. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3127. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3128. , instead of sum of them.
  3129. * src/ActivePeerConnectionCommand.cc
  3130. * src/DefaultBtInteractive.cc
  3131. * src/DownloadCommand.cc
  3132. * src/PeerInteractionCommand.cc
  3133. * src/PeerReceiveHandshakeCommand.cc
  3134. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3135. Fixed the bug that HTTPS download fails.
  3136. * src/AbstractCommand.cc
  3137. * src/AbstractCommand.h
  3138. * src/DownloadCommand.cc
  3139. * src/FtpConnection.cc
  3140. * src/HttpConnection.cc
  3141. * src/HttpRequestCommand.cc
  3142. * src/HttpResponseCommand.cc
  3143. * src/HttpSkipResponseCommand.cc
  3144. * src/MSEHandshake.cc
  3145. * src/PeerConnection.cc
  3146. * src/SocketCore.cc
  3147. * src/SocketCore.h
  3148. Fixed the bug that aria2 doesn't download whole content body and cannot
  3149. reuse connection if chunked transfer encoding and gzip content encoding
  3150. are set.
  3151. * src/DownloadCommand.cc
  3152. * src/HttpSkipResponseCommand.cc
  3153. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3154. Updated man page.
  3155. * doc/aria2c.1.txt
  3156. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3157. When error occurred while aria2 was parsing an .aria2.conf file, print
  3158. the usage of the option that caused error.
  3159. * src/option_processing.cc
  3160. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3161. Fixed compile error on OptionHandlerException
  3162. * src/Makefile.am
  3163. * src/OptionHandlerException.cc
  3164. * src/OptionHandlerException.h
  3165. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3166. Moved message of the error to OptionHandlerException.h
  3167. * src/NameMatchOptionHandler.h
  3168. * src/OptionHandlerException.h
  3169. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3170. When error occurs while aria2 is parsing an command-line option, print
  3171. the usage of the option.
  3172. * src/Makefile.am
  3173. * src/NameMatchOptionHandler.h
  3174. * src/OptionHandlerException.h
  3175. * src/option_processing.cc
  3176. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3177. Reverted previous change.
  3178. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3179. username is not in URI.
  3180. * src/HttpRequest.cc
  3181. * src/Request.cc
  3182. * test/HttpRequestTest.cc
  3183. * test/RequestTest.cc
  3184. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3185. Now colon is required for username and password in FTP URL, like:
  3186. ftp://username:password@host.
  3187. If colon is not there, aria2 don't parse it as a username. For example,
  3188. aria2 don't retrieve username from ftp://username@host.
  3189. This fix was made in order to login FTP server via non-transparent ftp
  3190. proxy.
  3191. * src/Request.cc
  3192. * test/RequestTest.cc
  3193. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3194. Use netrc for HTTP.
  3195. Now FTP user/password is sent in Authorization header when
  3196. --ftp-via-http-proxy=get is given.
  3197. * src/AuthConfigFactory.cc
  3198. * src/HttpRequest.cc
  3199. * src/HttpRequest.h
  3200. * src/NetrcAuthResolver.cc
  3201. * src/NetrcAuthResolver.h
  3202. * src/OptionHandlerFactory.cc
  3203. * src/option_processing.cc
  3204. * src/prefs.cc
  3205. * src/prefs.h
  3206. * test/AuthConfigFactoryTest.cc
  3207. * test/HttpRequestTest.cc
  3208. * test/NetrcAuthResolverTest.cc
  3209. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3210. Issue PWD command first and get working directory and use it as a prefix
  3211. for CWD command.
  3212. * src/DownloadEngine.cc
  3213. * src/DownloadEngine.h
  3214. * src/FtpConnection.cc
  3215. * src/FtpConnection.h
  3216. * src/FtpFinishDownloadCommand.cc
  3217. * src/FtpInitiateConnectionCommand.cc
  3218. * src/FtpNegotiationCommand.cc
  3219. * src/FtpNegotiationCommand.h
  3220. * test/FtpConnectionTest.cc
  3221. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3222. Removed default user/pass for FTP user/pass, since it should not have
  3223. precedence over netrc configuration by default.
  3224. * src/OptionHandlerFactory.cc
  3225. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3226. Added debug log for socket event.
  3227. * src/AbstractCommand.cc
  3228. * src/PeerAbstractCommand.cc
  3229. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3230. Log microseconds.
  3231. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3232. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3233. Replaced HelpItem.cc with OptionHandler.cc.
  3234. * po/POTFILES.in
  3235. Updated po files with 'make update-po'
  3236. * po/aria2c.pot
  3237. * po/*.po
  3238. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3239. Removed possible values from the text.
  3240. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3241. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3242. Removed unused preferences:
  3243. PREF_NO_PREALLOCATION
  3244. PREF_STDOUT_LOG
  3245. PREF_TRACKER_MAX_TRIES
  3246. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3247. PREF_MIN_SEGMENT_SIZE
  3248. * src/option_processing.cc
  3249. * src/prefs.cc
  3250. * src/prefs.h
  3251. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3252. Integrated HelpItem into OptionParser to ease the workload for adding
  3253. new options. Removed default value from usage text.
  3254. * src/HelpItem.cc: Removed.
  3255. * src/HelpItem.h: Removed.
  3256. * src/HelpItemFactory.cc: Removed.
  3257. * src/HelpItemFactory.h: Removed.
  3258. * src/Makefile.am
  3259. * src/Makefile.in
  3260. * src/NameMatchOptionHandler.h
  3261. * src/OptionHandler.cc
  3262. * src/OptionHandler.h
  3263. * src/OptionHandlerFactory.cc
  3264. * src/OptionHandlerImpl.h
  3265. * src/OptionParser.cc
  3266. * src/OptionParser.h
  3267. * src/TagContainer.cc: Removed.
  3268. * src/TagContainer.h: Removed.
  3269. * src/TaggedItem.cc: Removed.
  3270. * src/TaggedItem.h: Removed.
  3271. * src/main.cc
  3272. * src/option_processing.cc
  3273. * src/usage_text.h
  3274. * src/version_usage.cc
  3275. * test/HelpItemTest.cc: Removed.
  3276. * test/Makefile.am
  3277. * test/Makefile.in
  3278. * test/OptionHandlerTest.cc
  3279. * test/OptionParserTest.cc
  3280. * test/TagContainerTest.cc: Removed.
  3281. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3282. Moved `TransferStat stat = ...' to inside the `if' clause.
  3283. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3284. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3285. Fixed the bug that a block in a piece is requested when same block is
  3286. already requested to the same peer in end game mode.
  3287. * src/BtRequestFactory.h
  3288. * src/DefaultBtInteractive.cc
  3289. * src/DefaultBtRequestFactory.cc
  3290. * src/DefaultBtRequestFactory.h
  3291. * src/DefaultPieceStorage.cc
  3292. * src/DefaultPieceStorage.h
  3293. * src/PieceStorage.h
  3294. * src/UnknownLengthPieceStorage.cc
  3295. * src/UnknownLengthPieceStorage.h
  3296. * test/DefaultBtRequestFactoryTest.cc
  3297. * test/DefaultPieceStorageTest.cc
  3298. * test/MockBtRequestFactory.h
  3299. * test/MockPieceStorage.h
  3300. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3301. Removed _uploadLength and _downloadLength from PeerSessionResource
  3302. and use PeerStat::_sessionUploadLength and
  3303. PeerStat::_sessionDownloadLength.
  3304. * src/PeerSessionResource.cc
  3305. * src/PeerSessionResource.h
  3306. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3307. Fixed the bug that prefixLength of split bucket which doesn't include
  3308. local node ID is incremented.
  3309. * src/DHTBucket.cc
  3310. * src/DHTBucket.h
  3311. * test/DHTBucketTest.cc
  3312. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3313. Added cookies.sqlite to EXTRA_DIST
  3314. * test/Makefile.am
  3315. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3316. Added Turkish translation. Updated French, German, Russian and
  3317. Simplified Chinese translations. Thanks to all translators.
  3318. * po/LINGUAS
  3319. * po/de.po
  3320. * po/fr.po
  3321. * po/ru.po
  3322. * po/tr.po
  3323. * po/zh_CN.po
  3324. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3325. Added deliminating text to the beginning of the log so that one can find
  3326. where the log starts easily.
  3327. * src/main.cc
  3328. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3329. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3330. to fix compile error when async DNS is not enabled by configuration.
  3331. * src/AbstractCommand.cc
  3332. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3333. If establishing conneciton to a server is failed, then mark error on
  3334. its ServerStat.
  3335. Added the cause of error to log when error event occurred.
  3336. Moved message string to message.h for translation.
  3337. * src/AbstractCommand.cc
  3338. * src/AbstractCommand.h
  3339. * src/FtpNegotiationCommand.cc
  3340. * src/HttpRequestCommand.cc
  3341. * src/PeerAbstractCommand.cc
  3342. * src/message.h
  3343. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3344. Added the function to get error message from socket.
  3345. * src/SocketCore.cc
  3346. * src/SocketCore.h
  3347. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3348. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3349. * src/RequestGroupMan.cc
  3350. * src/RequestGroupMan.h
  3351. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. If error event is received in epoll, then abort download immediately.
  3353. * src/AbstractCommand.cc
  3354. * src/Command.cc
  3355. * src/Command.h
  3356. * src/DownloadEngine.cc
  3357. * src/PeerAbstractCommand.cc
  3358. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3359. Added usage message for --uri-selector, --server-stat-of,
  3360. --server-stat-in, --server-stat-timeout options.
  3361. * src/HelpItemFactory.cc
  3362. * src/usage_text.h
  3363. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3364. Added upper limit of FTP response buffer. The current implementation
  3365. uses 4096bytes as a limit.
  3366. * src/FtpConnection.cc
  3367. * src/FtpConnection.h
  3368. * test/FtpConnectionTest.cc
  3369. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3370. Use non-blocking socket for TCP communication to avoid possible
  3371. blocking due to buffer full.
  3372. * src/AbstractProxyRequestCommand.cc
  3373. * src/FtpConnection.cc
  3374. * src/FtpConnection.h
  3375. * src/FtpNegotiationCommand.cc
  3376. * src/FtpNegotiationCommand.h
  3377. * src/HttpConnection.cc
  3378. * src/HttpConnection.h
  3379. * src/HttpRequestCommand.cc
  3380. * src/InitiatorMSEHandshakeCommand.cc
  3381. * src/InitiatorMSEHandshakeCommand.h
  3382. * src/MSEHandshake.cc
  3383. * src/MSEHandshake.h
  3384. * src/Makefile.am
  3385. * src/PeerConnection.cc
  3386. * src/PeerConnection.h
  3387. * src/PeerInteractionCommand.cc
  3388. * src/PeerListenCommand.cc
  3389. * src/ReceiverMSEHandshakeCommand.cc
  3390. * src/ReceiverMSEHandshakeCommand.h
  3391. * src/SocketBuffer.cc
  3392. * src/SocketBuffer.h
  3393. * src/SocketCore.cc
  3394. * src/SocketCore.h
  3395. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3396. Call setStatusRealtime() in constructor.
  3397. * src/RealtimeCommand.cc
  3398. * src/RealtimeCommand.h
  3399. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3400. Call Download::setNoWait(true) to execute newly created command without
  3401. a pause.
  3402. * src/AbstractCommand.cc
  3403. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3404. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3405. found' error from HTTP/FTP server NUM times without getting single
  3406. bytes of data, then force the download to fail.
  3407. Basically aria2 tris all URIs available. So if long list of URIs are
  3408. specified in Metalink, then aria2 will take a long time to fail
  3409. eventually if all URIs are outdated. This option eases this situation
  3410. to limit the number of servers to try.
  3411. * src/FtpNegotiationCommand.cc
  3412. * src/HelpItemFactory.cc
  3413. * src/HttpResponseCommand.cc
  3414. * src/OptionHandlerFactory.cc
  3415. * src/PeerStat.h
  3416. * src/RequestGroup.cc
  3417. * src/RequestGroup.h
  3418. * src/SegmentMan.cc
  3419. * src/SegmentMan.h
  3420. * src/option_processing.cc
  3421. * src/prefs.cc
  3422. * src/prefs.h
  3423. * src/usage_text.h
  3424. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3425. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3426. response even if more than one response is in it.
  3427. * src/FtpConnection.cc
  3428. * src/FtpConnection.h
  3429. * test/FtpConnectionTest.cc
  3430. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3431. Merged from stable-0.15
  3432. * m4/libcares.m4
  3433. Use pkg-config
  3434. * m4/sqlite3.m4
  3435. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3436. Removed unnecessary if statement.
  3437. * src/DefaultPieceStorage.cc (initPieceStorage)
  3438. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3439. Added --connect-timeout option to specify connect timeout in seconds.
  3440. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3441. connecting to BitTorrent peer is not controlled by this option.
  3442. * src/AbstractProxyRequestCommand.cc
  3443. * src/FtpNegotiationCommand.cc
  3444. * src/HelpItemFactory.cc
  3445. * src/HttpRequestCommand.cc
  3446. * src/OptionHandlerFactory.cc
  3447. * src/option_processing.cc
  3448. * src/prefs.cc
  3449. * src/prefs.h
  3450. * src/usage_text.h
  3451. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3452. Added help message for -R option.
  3453. * src/HelpItemFactory.cc
  3454. * src/usage_text.h
  3455. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3456. Added the message that the time is in local time zone.
  3457. * src/RequestGroup.cc
  3458. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3459. Implemented the ability to get timestamp from remote FTP server using
  3460. MDTM command described in RFC3659.
  3461. * src/FtpConnection.cc
  3462. * src/FtpConnection.h
  3463. * src/FtpNegotiationCommand.cc
  3464. * src/FtpNegotiationCommand.h
  3465. * test/FtpConnectionTest.cc
  3466. * test/Makefile.am
  3467. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3468. Implemented the ability to get timestamp from remote HTTP server and
  3469. apply it to local file. To enable this feature, --remote-time option
  3470. is added. No usage text has been written yet.
  3471. If several servers returns difference timestamp, then aria2 uses latest
  3472. one.
  3473. * src/CopyDiskAdaptor.cc
  3474. * src/CopyDiskAdaptor.h
  3475. * src/DirectDiskAdaptor.cc
  3476. * src/DirectDiskAdaptor.h
  3477. * src/DiskAdaptor.h
  3478. * src/File.cc
  3479. * src/File.h
  3480. * src/HttpHeader.cc
  3481. * src/HttpHeader.h
  3482. * src/HttpResponse.cc
  3483. * src/HttpResponse.h
  3484. * src/HttpResponseCommand.cc
  3485. * src/HttpResponseCommand.h
  3486. * src/MultiDiskAdaptor.cc
  3487. * src/MultiDiskAdaptor.h
  3488. * src/OptionHandlerFactory.cc
  3489. * src/RequestGroup.cc
  3490. * src/RequestGroup.h
  3491. * src/RequestGroupMan.cc
  3492. * src/option_processing.cc
  3493. * src/prefs.cc
  3494. * src/prefs.h
  3495. * test/CopyDiskAdaptorTest.cc
  3496. * test/FileTest.cc
  3497. * test/Makefile.am
  3498. * test/Makefile.in
  3499. * test/MultiDiskAdaptorTest.cc
  3500. * test/TestUtil.cc
  3501. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3502. Fixed the bug that DiskWriterEntry is not created when its
  3503. FileEntry.isRequested() is false and it doesn't share a piece with
  3504. other FileEntries that are requested. This bug causes segmentation fault
  3505. in the end.
  3506. * src/MultiDiskAdaptor.cc
  3507. * src/MultiDiskAdaptor.h
  3508. * src/MultiFileAllocationIterator.cc
  3509. * test/MultiDiskAdaptorTest.cc
  3510. * test/MultiFileAllocationIteratorTest.cc
  3511. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3512. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3513. called if the number of file entries are greater than max open files.
  3514. * src/AbstractSingleDiskAdaptor.cc
  3515. * src/AbstractSingleDiskAdaptor.h
  3516. * src/DiskAdaptor.h
  3517. * src/MultiDiskAdaptor.cc
  3518. * src/MultiDiskAdaptor.h
  3519. * test/MultiDiskAdaptorTest.cc
  3520. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3521. Added a constuctor that receives struct timeval.
  3522. Added operator<.
  3523. * src/TimeA2.cc
  3524. * src/TimeA2.h
  3525. * test/TimeTest.cc
  3526. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3527. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3528. * src/CookieParser.cc
  3529. * test/CookieParserTest.cc
  3530. * test/HttpResponseTest.cc
  3531. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3532. Implmented the functions to parse date.
  3533. * src/TimeA2.cc
  3534. * src/TimeA2.h
  3535. * test/TimeTest.cc
  3536. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3537. Added "Firefox3 Cookie" feature to FeatureConfig
  3538. * src/FeatureConfig.cc
  3539. * src/FeatureConfig.h
  3540. * test/FeatureConfigTest.cc
  3541. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3542. Bump up version number to 0.16.0b
  3543. * configure.ac
  3544. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3545. Use pkg-config if is is available.
  3546. * m4/openssl.m4
  3547. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3548. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3549. * src/BtAnnounce.h
  3550. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3551. If an error occurred with a URI, remove identical URI from remaining
  3552. URI list because it is likely that same error occurred in the end and it
  3553. is waste of time.
  3554. * src/AbstractCommand.cc
  3555. * src/RequestGroup.cc
  3556. * src/RequestGroup.h
  3557. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3558. Removed wrong comment.
  3559. * src/DefaultPeerStorage.cc
  3560. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3561. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3562. Added return value of getpid() to argument of srand() to achieve more
  3563. randomized value.
  3564. * src/SimpleRandomizer.cc
  3565. * src/SimpleRandomizer.h
  3566. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3567. Contact tracker frequently when the number of connections are 0 and
  3568. download is not finished yet.
  3569. * src/ActivePeerConnectionCommand.cc
  3570. * src/BtAnnounce.h
  3571. * src/DefaultBtAnnounce.cc
  3572. * src/DefaultBtAnnounce.h
  3573. * test/MockBtAnnounce.h
  3574. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3575. Moved threshold values to UTPexExtensionMessage.
  3576. * src/DefaultBtInteractive.cc
  3577. * src/Peer.cc
  3578. * src/Peer.h
  3579. * src/UTPexExtensionMessage.cc
  3580. * src/UTPexExtensionMessage.h
  3581. * test/UTPexExtensionMessageTest.cc
  3582. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3583. Added _incoming member to Peer class and made it true if the peer
  3584. initiated connection. Don't add those peer to UTPex message.
  3585. If extended handshake is received, assign _incoming to false.
  3586. * src/DefaultBtInteractive.cc
  3587. * src/HandshakeExtensionMessage.cc
  3588. * src/Peer.cc
  3589. * src/Peer.h
  3590. * src/PeerListenCommand.cc
  3591. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3592. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3593. Encoding Decoder. Removed size threshold for turning off on the fly
  3594. inflation because resulting file may or may not be inflated depending
  3595. on the file size and I think it is not expected by users.
  3596. This change fixes segmentation fault when Metalink file contains gzipped
  3597. file and its filesize is provided.
  3598. * src/HttpResponseCommand.cc
  3599. * src/HttpResponseCommand.h
  3600. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3601. Made Cookie immutable.
  3602. * src/Cookie.cc
  3603. * src/Cookie.h
  3604. * src/CookieParser.cc
  3605. * src/CookieParser.h
  3606. * src/CookieStorage.cc
  3607. * test/CookieParserTest.cc
  3608. * test/CookieStorageTest.cc
  3609. * test/NsCookieParserTest.cc
  3610. * test/Sqlite3MozCookieParserTest.cc
  3611. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3612. Removed CookieBox, CookieBoxFactory.
  3613. * src/CookieBox.cc
  3614. * src/CookieBox.h
  3615. * src/CookieBoxFactory.cc
  3616. * src/CookieBoxFactory.h
  3617. * src/Makefile.am
  3618. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3619. Use CookieStorage class instead of CookieBox class.
  3620. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3621. * src/AbstractProxyRequestCommand.cc
  3622. * src/CookieStorage.cc
  3623. * src/DownloadEngine.cc
  3624. * src/DownloadEngine.h
  3625. * src/HttpConnection.cc
  3626. * src/HttpConnection.h
  3627. * src/HttpRequest.cc
  3628. * src/HttpRequest.h
  3629. * src/HttpRequestCommand.cc
  3630. * src/HttpResponse.cc
  3631. * src/HttpResponseCommand.cc
  3632. * src/HttpSkipResponseCommand.cc
  3633. * src/Makefile.am
  3634. * src/MultiUrlRequestInfo.cc
  3635. * src/Request.cc
  3636. * src/Request.h
  3637. * src/main.cc
  3638. * test/AllTest.cc
  3639. * test/CookieStorageTest.cc
  3640. * test/CookieTest.cc
  3641. * test/HttpRequestTest.cc
  3642. * test/HttpResponseTest.cc
  3643. * test/Makefile.am
  3644. * test/NsCookieParserTest.cc
  3645. * test/Sqlite3MozCookieParserTest.cc
  3646. * test/nscookietest.txt
  3647. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3648. Updated
  3649. * test/Cookies.sqlite
  3650. * test/nscookietest.txt
  3651. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3652. Added tests for CookieStorage::load()
  3653. * test/CookieStorageTest.cc
  3654. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3655. Added CookieStorage class which is based on RFC2109 and manages cookies
  3656. more strictly than CookieBox and CookieBoxFactory class.
  3657. * src/CookieStorage.cc
  3658. * src/CookieStorage.h
  3659. * src/Cookie.cc
  3660. * src/Cookie.h
  3661. * test/CookieStorageTest.cc
  3662. * test/CookieTest.cc
  3663. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3664. Fixed the bug that commands are created more than the number of pieces.
  3665. * src/RequestGroup.cc
  3666. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3667. Fixed infinite loop bug in FTP when SIZE command failed.
  3668. * src/FtpNegotiationCommand.cc
  3669. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3670. Removed DirectDiskAdaptorTest.h
  3671. * test/Makefile.am
  3672. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3673. Fixed chunk checksum validation cannot detect trailing garbage data.
  3674. BUG#2074141
  3675. * src/AbstractSingleDiskAdaptor.cc
  3676. * src/AbstractSingleDiskAdaptor.h
  3677. * src/CheckIntegrityEntry.cc
  3678. * src/CheckIntegrityEntry.h
  3679. * src/DiskAdaptor.h
  3680. * src/MultiDiskAdaptor.cc
  3681. * src/MultiDiskAdaptor.h
  3682. * src/RequestGroup.cc
  3683. * test/DirectDiskAdaptorTest.cc
  3684. * test/MultiDiskAdaptorTest.cc
  3685. * test/TestUtil.cc
  3686. * test/TestUtil.h
  3687. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3688. Bump up version number of dht.dat file to 3. In version 3 format, time
  3689. is stored in 64bit, network byte order.
  3690. New build can load old format(version 2) but it saves the file in new
  3691. format. It means once you used new build, your dht.dat becomes
  3692. incompatible with older build.
  3693. * src/DHTRoutingTableDeserializer.cc
  3694. * src/DHTRoutingTableSerializer.cc
  3695. * test/DHTRoutingTableSerializerTest.cc
  3696. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3697. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3698. * test/Makefile.am
  3699. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3700. Bump up version number of .aria2 control file to 0001.
  3701. New aria2 can still load version 0000 file but it saves the file in
  3702. version 0001 format. It means that new aria2 can resume download
  3703. started by old aria2 but the opposite is not true.
  3704. * src/DefaultBtProgressInfoFile.cc
  3705. * src/DefaultBtProgressInfoFile.h
  3706. * test/DefaultBtProgressInfoFileTest.cc
  3707. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3708. Added ntoh64 and hton64 as inline functions.
  3709. * src/Util.cc
  3710. * test/UtilTest.cc
  3711. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3712. Added sqlite3 depenency and Firefox3 cookie support.
  3713. * README
  3714. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3715. State that firefox3 cookie is supported explicitly in the usage.
  3716. * src/usage_text.h
  3717. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3718. Externalized message.
  3719. * src/RequestGroupMan.cc
  3720. * src/message.h
  3721. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3722. Save temporary file first and rename to the destination on success.
  3723. Added test cases.
  3724. * src/RequestGroupMan.cc
  3725. * test/RequestGroupManTest.cc
  3726. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3727. Fixed the bug that the number of connected peer is exceeding the limit
  3728. (55 by default) in seeding mode.
  3729. Multiplied 0.8 to _maxUploadSpeedLimit.
  3730. * src/ActivePeerConnectionCommand.cc
  3731. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3732. Clear table item.
  3733. * src/Dictionary.cc
  3734. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3735. Fixed error handling of lseek.
  3736. * src/AbstractDiskWriter.cc
  3737. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3738. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3739. style cookie file.
  3740. * src/usage_text.h
  3741. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3742. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3743. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3744. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3745. * src/Util.cc
  3746. * src/Util.h
  3747. * src/CookieParser.cc
  3748. * test/UtilTest.cc
  3749. * test/CookieParserTest.cc
  3750. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3751. Separate the implementation to load old mozilla format of cookie to
  3752. NsCookieParser class.
  3753. * src/CookieBoxFactory.cc
  3754. * src/CookieBoxFactory.h
  3755. * src/NsCookieParser.cc
  3756. * src/NsCookieParser.h
  3757. * test/NsCookieParserTest.cc
  3758. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3759. Made parse() const
  3760. * src/Sqlite3MozCookieParser.cc
  3761. * src/Sqlite3MozCookieParser.h
  3762. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3763. Added firefox3 cookie support based on the patch submitted by
  3764. tizianomueller.
  3765. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3766. this functionality.
  3767. * configure.ac
  3768. * m4/sqlite3.m4
  3769. * src/CookieBoxFactory.cc
  3770. * src/CookieBoxFactory.h
  3771. * src/Makefile.am
  3772. * src/Makefile.in
  3773. * src/Sqlite3MozCookieParser.cc
  3774. * src/Sqlite3MozCookieParser.h
  3775. * src/main.cc
  3776. * test/CookieBoxFactoryTest.cc
  3777. * test/Makefile.am
  3778. * test/Makefile.in
  3779. * test/Sqlite3MozCookieParserTest.cc
  3780. * test/badcookies.sqlite
  3781. * test/cookies.sqlite
  3782. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3783. Added Danish and Greek translations.
  3784. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3785. Great thanks to all translators.
  3786. * po/LINGUAS
  3787. * po/el.po
  3788. * po/da.po
  3789. * po/es.po
  3790. * po/ca.po
  3791. * po/nn.po
  3792. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3793. Fixed man page: --follow-bittorrent should be --follow-torrent
  3794. * doc/aria2c.1.txt
  3795. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3796. Fixed: numCommand is less than the value specified in -C option.
  3797. * src/RequestGroup.cc
  3798. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3799. Fixed occasional assertion failure in PieceSegment.
  3800. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3801. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  3802. creation of duplicate segments and one of the segment was finished then
  3803. assertion failure was caused.
  3804. * src/SegmentMan.cc
  3805. * test/SegmentManTest.cc
  3806. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3807. Added options to load/save the server's performance/status to a file
  3808. and the timeout to drop their data.
  3809. --server-stat-of=FILE specifies the file to which performance data
  3810. is saved.
  3811. --server-stat-if=FILE specifies the file to read previously saved
  3812. by --server-stat-of option. Might be used with --uri-selector=feedback.
  3813. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  3814. TIMEOUT is specified in seconds and the default value is 24hours.
  3815. * src/MultiUrlRequestInfo.cc
  3816. * src/OptionHandlerFactory.cc
  3817. * src/RequestGroupMan.cc
  3818. * src/RequestGroupMan.h
  3819. * src/ServerStatMan.cc
  3820. * src/ServerStatMan.h
  3821. * src/option_processing.cc
  3822. * src/prefs.cc
  3823. * src/prefs.h
  3824. * test/ServerStatManTest.cc
  3825. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3826. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  3827. * src/ServerStatMan.cc
  3828. * src/ServerStatMan.h
  3829. * test/ServerStatManTest.cc
  3830. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3831. Implemented ServerStatMan::load(...) function and its test case.
  3832. * src/ServerStat.cc
  3833. * src/ServerStat.h
  3834. * src/ServerStatMan.cc
  3835. * test/ServerStatManTest.cc
  3836. * test/ServerStatTest.cc
  3837. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3838. Use time_t instead of int32_t. Use int64_t where milli second is
  3839. expected.
  3840. * src/TimeA2.cc
  3841. * src/TimeA2.h
  3842. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3843. Implemented ServerStatMan::save(...) function and its test case.
  3844. * src/ServerStat.cc
  3845. * src/ServerStat.h
  3846. * src/ServerStatMan.cc
  3847. * src/ServerStatMan.h
  3848. * test/ServerStatManTest.cc
  3849. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3850. Now aria2 uses name attribute in Metalink as local filename in
  3851. BitTorrent downloads. BUG#2033999
  3852. * src/BtContext.h
  3853. * src/BtDependency.cc
  3854. * src/DefaultBtContext.cc
  3855. * src/DefaultBtContext.h
  3856. * src/SingleFileDownloadContext.cc
  3857. * src/SingleFileDownloadContext.h
  3858. * test/BtDependencyTest.cc
  3859. * test/DefaultBtContextTest.cc
  3860. * test/MockBtContext.h
  3861. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. Added AC_C_BIGENDIAN
  3863. * src/configure.ac
  3864. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3865. Limited numCommand less than or equal to the number of piece.
  3866. * src/RequestGroup.cc
  3867. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3868. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  3869. directive.
  3870. * test/DefaultPieceStorageTest.cc
  3871. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3872. Fixed memory leak in test code
  3873. * test/AnnounceListTest.cc
  3874. * test/DefaultPeerListProcessorTest.cc
  3875. * test/DefaultPeerStorageTest.cc
  3876. * test/MetaFileUtilTest.cc
  3877. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3878. Fixed wrong argument passing to BitfieldMan::isBitSet()
  3879. * src/DefaultPieceStorage.cc
  3880. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3881. Initialized _directIOAllowed
  3882. * src/MultiDiskAdaptor.cc
  3883. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3884. Fixed memory leak
  3885. * src/GZipDecoder.cc
  3886. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3887. Fixed memory leak
  3888. * src/MetalinkParserStateMachine.cc
  3889. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3890. Fixed memory leak
  3891. * src/Dictionary.cc
  3892. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3893. Fixed memory leak
  3894. * src/IteratableChunkChecksumValidator.h
  3895. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3896. Fixed unmatched malloc/free.
  3897. * src/IteratableChunkChecksumValidator.cc
  3898. * src/IteratableChecksumValidator.cc
  3899. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3900. Removed max chunk size check. This change fixes BUG#2040169
  3901. * src/ChunkedDecoder.cc
  3902. * src/ChunkedDecoder.h
  3903. * test/ChunkedDecoderTest.cc
  3904. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3905. Implemented download speed based URI selection algorithm.
  3906. Introduced new option --uri-selector.
  3907. If --uri-selector=feedback is given, aria2 uses download speed observed
  3908. in the previous downloads and chooses fastest server in the URI list.
  3909. Currently at most 10 URIs are considered to introduce randomeness for
  3910. finding better servers. The speed is average download speed in the
  3911. downloads.
  3912. On the other hand, if --uri-selector=inorder is given, which is default,
  3913. URI is tried in order in URI list.
  3914. The usage text for the new option has not been written yet.
  3915. * src/AbstractCommand.cc
  3916. * src/DownloadCommand.cc
  3917. * src/DownloadEngine.cc
  3918. * src/DownloadEngineFactory.cc
  3919. * src/InOrderURISelector.cc
  3920. * src/InOrderURISelector.h
  3921. * src/OptionHandlerFactory.cc
  3922. * src/PeerStat.h
  3923. * src/RequestGroup.cc
  3924. * src/RequestGroup.h
  3925. * src/RequestGroupMan.cc
  3926. * src/RequestGroupMan.h
  3927. * src/SegmentMan.cc
  3928. * src/SegmentMan.h
  3929. * src/ServerStat.cc
  3930. * src/ServerStat.h
  3931. * src/ServerStatMan.cc
  3932. * src/ServerStatMan.h
  3933. * src/ServerStatURISelector.cc
  3934. * src/ServerStatURISelector.h
  3935. * src/URISelector.h
  3936. * src/option_processing.cc
  3937. * src/prefs.cc
  3938. * src/prefs.h
  3939. * test/InOrderURISelectorTest.cc
  3940. * test/RequestGroupManTest.cc
  3941. * test/ServerStatManTest.cc
  3942. * test/ServerStatURISelectorTest.cc
  3943. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3944. * Release 0.15.1+2
  3945. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3946. Bump up version number to 0.15.1+2
  3947. * configure.ac
  3948. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3949. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  3950. * m4/aria2_arg.m4
  3951. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3952. * Release 0.15.1+1
  3953. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3954. Bump up version number to 0.15.1+1
  3955. * configure.ac
  3956. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3957. Fixed the bug that causes segmentaion fault when resuming download
  3958. using metalink without size tag. Reproducible only using HTTP URI.
  3959. * src/HttpResponseCommand.cc
  3960. * src/FtpNegotiationCommand.cc
  3961. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3962. * Release 0.15.1
  3963. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3964. Updated Bulgarian and French translations, thanks to all translators.
  3965. * po/bg.po
  3966. * po/fr.po
  3967. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3968. Bump up version number to 0.15.1
  3969. * configure.ac
  3970. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3971. Avoid repeated call of gettimeofday() when calculating speed.
  3972. * src/SpeedCalc.cc
  3973. * src/SpeedCalc.h
  3974. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3975. Removed writable check when socket's send buffer is full in BitTorrent
  3976. downloads to lower CPU usage.
  3977. * src/PeerInteractionCommand.cc
  3978. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3979. Fixed broken gzip inflation.
  3980. Turn off segmented downloading if gzip content is smaller than or equal
  3981. to 1MiB and inflate the data on the fly, because HTTP response header
  3982. doesn't contain the length of inflated file we can't determin where
  3983. the chunk of data should be written.
  3984. On the other hand, if gzip content is larger than 1MB, then turn off
  3985. on the fly inflation, because some servers returns "content-type: gzip"
  3986. for *.tgz, *.gz files.
  3987. * src/DownloadCommand.cc
  3988. * src/HttpResponseCommand.cc
  3989. * src/HttpResponseCommand.h
  3990. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Applied tizianomueller's patch to fix compile error.
  3992. * test/BitfieldManTest.cc
  3993. * test/BtRequestMessageTest.cc
  3994. * test/DefaultBtContextTest.cc
  3995. * test/DefaultDiskWriterTest.cc
  3996. * test/DefaultPieceStorageTest.cc
  3997. * test/HttpHeaderProcessorTest.cc
  3998. * test/HttpResponseTest.cc
  3999. * test/Metalink2RequestGroupTest.cc
  4000. * test/MetalinkParserControllerTest.cc
  4001. * test/MetalinkProcessorTest.cc
  4002. * test/PeerSessionResourceTest.cc
  4003. * test/UtilTest.cc
  4004. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4005. * Release 0.15.0
  4006. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4007. Reordered src files in POTFILES.in so that usage text appears first.
  4008. * po/POTFILES.in
  4009. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4010. Bump up version number to 0.15.0
  4011. * configure.ac
  4012. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4013. Added Bulgarian translation.
  4014. Updated Catalan, Spanish, French and Japanese translations.
  4015. Thanks to all translators.
  4016. * po/LINGUAS
  4017. * po/bg.po
  4018. * po/ca.po
  4019. * po/es.po
  4020. * po/fr.po
  4021. * po/ja.po
  4022. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4023. Updated feature list. Added libz for dependency section.
  4024. Added a description about unit testing using CppUnit.
  4025. * README
  4026. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4027. Added a test for libz. Quoted where it is necessary.
  4028. * build_test.sh
  4029. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4030. Added GZip to `Enabled Features' list.
  4031. * src/FeatureConfig.cc
  4032. * src/FeatureConfig.h
  4033. * test/FeatureConfigTest.cc
  4034. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4035. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4036. the transfer has not yet started.
  4037. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4038. * src/SegmentMan.cc
  4039. * src/SegmentMan.h
  4040. * test/SegmentManTest.cc
  4041. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4042. Cache last calculated average download/upload speed.
  4043. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4044. cached value.
  4045. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4046. * src/PeerStat.h
  4047. * src/SpeedCalc.cc
  4048. * src/SpeedCalc.h
  4049. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4050. Call parseUrl directly.
  4051. * src/Request.cc (resetUrl)
  4052. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4053. Supported absolute/relative path in Location header field.
  4054. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4055. * src/HttpHeader.cc
  4056. * src/HttpHeader.h
  4057. * src/HttpResponse.cc
  4058. * src/HttpSkipResponseCommand.cc
  4059. * src/Request.cc
  4060. * test/HttpHeaderTest.cc
  4061. * test/HttpResponseTest.cc
  4062. * test/RequestTest.cc
  4063. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4064. Changed help text for --load-cookie option.
  4065. * doc/aria2c.1.txt
  4066. * src/usage_text.h
  4067. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4068. Regenerated test/Makefile.in to remove stale ChangeLog.
  4069. * test/Makefile.in
  4070. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4071. Updated po files.
  4072. * po/aria2c.pot
  4073. * po/*.po
  4074. * po/*.gmo
  4075. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4076. Bump up version number to 0.15.0b
  4077. * configure.ac
  4078. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4079. Externalize messages.
  4080. * src/RequestGroupMan.cc
  4081. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4082. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4083. Use File::exists() instead of File::isFile() to allow non-regular file
  4084. such as block special files.
  4085. * src/AbstractDiskWriter.cc
  4086. * src/MultiDiskWriter.cc
  4087. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4088. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4089. * src/gai_strerror.h
  4090. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4091. Fixed compile error. Thanks gknauf for the patch.
  4092. * src/asctime_r.c
  4093. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4094. Included asctime_r.h from a2time.h.
  4095. * src/a2time.h
  4096. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4097. Added a message "aria2 doesn't verify signature" to log message when
  4098. signature file is saved.
  4099. * src/RequestGroupMan.cc
  4100. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4101. Added the ability to save signature when download is completed if
  4102. signature is available. The filename of signature file is the path to
  4103. download file followed by ".sig". If it already exists, then signature
  4104. will not be saved.
  4105. * src/RequestGroupMan.cc
  4106. * src/Signature.cc
  4107. * test/SignatureTest.cc
  4108. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4109. Updated the descriptions for --bt-seed-unverified.
  4110. * doc/aria2c.1
  4111. * doc/aria2c.1.html
  4112. * doc/aria2c.1.txt
  4113. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4114. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4115. that this is not going to verify files using piece hashes.
  4116. * src/HelpItemFactory.cc
  4117. * src/OptionHandlerFactory.cc
  4118. * src/RequestGroup.cc
  4119. * src/option_processing.cc
  4120. * src/prefs.cc
  4121. * src/prefs.h
  4122. * src/usage_text.h
  4123. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4124. Added the ability to retrieve signature from Metalink file.
  4125. A retrieved signature is stored in Signature class and it is held by
  4126. DownloadContext class. Note that aria2 doesn't verify signature.
  4127. * src/DownloadContext.cc
  4128. * src/DownloadContext.h
  4129. * src/Makefile.am
  4130. * src/Makefile.in
  4131. * src/Metalink2RequestGroup.cc
  4132. * src/MetalinkEntry.cc
  4133. * src/MetalinkEntry.h
  4134. * src/MetalinkParserController.cc
  4135. * src/MetalinkParserController.h
  4136. * src/MetalinkParserStateMachine.cc
  4137. * src/MetalinkParserStateMachine.h
  4138. * src/Signature.cc
  4139. * src/Signature.h
  4140. * src/SignatureMetalinkParserState.cc
  4141. * src/SignatureMetalinkParserState.h
  4142. * src/VerificationMetalinkParserState.cc
  4143. * src/VerificationMetalinkParserState.h
  4144. * test/Metalink2RequestGroupTest.cc
  4145. * test/MetalinkParserControllerTest.cc
  4146. * test/MetalinkProcessorTest.cc
  4147. * test/test.xml
  4148. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4149. Close DiskAdaptor after renaming file.
  4150. * src/RequestGroup.cc
  4151. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4152. Corrected indentation
  4153. * src/DefaultBtProgressInfoFile.cc
  4154. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4155. Moved the calls of std::ios::exceptions() inside of try-catch block
  4156. because if an error occurred in constructor of std::fstream, then
  4157. exception is thrown immediately when std::ios::exceptions() is called
  4158. which results unhandled exception and aria2c aborts.
  4159. * src/DefaultBtProgressInfoFile.cc
  4160. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4161. Added the test for the previous change in DefaultBtContext.cc
  4162. * test/DefaultBtContextTest.cc
  4163. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4164. Fixed the bug that causes infinite loop when the number of pieces are
  4165. fewer than allowed fast set size which is 10 by default.
  4166. * src/DefaultBtContext.cc
  4167. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4168. Updated the descriptions for -j, -s. Added --bt-seed.
  4169. * doc/aria2c.1
  4170. * doc/aria2c.1.html
  4171. * doc/aria2c.1.txt
  4172. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4173. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4174. aria2 seeds previously downloaded files without validating piece hashs.
  4175. * src/HelpItemFactory.cc
  4176. * src/OptionHandlerFactory.cc
  4177. * src/RequestGroup.cc
  4178. * src/option_processing.cc
  4179. * src/prefs.cc
  4180. * src/prefs.h
  4181. * src/usage_text.h
  4182. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4183. Updated DESCRIPTION of man page.
  4184. * doc/aria2c.1
  4185. * doc/aria2c.1.html
  4186. * doc/aria2c.1.txt
  4187. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4188. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4189. Don't define `struct addrinfo' when __sun is defined.
  4190. * src/getaddrinfo.h
  4191. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4192. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4193. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4194. second argument is of type `struct _stati64'. Otherwise it is defined as
  4195. `struct stat'.
  4196. * src/AbstractDiskWriter.cc
  4197. * src/File.cc
  4198. * src/File.h
  4199. * src/a2io.h
  4200. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4201. Fixed the compile error in hurd-i386
  4202. See the original bug report:
  4203. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4204. * src/a2io.h
  4205. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4206. Code cleanup.
  4207. * src/PeerAbstractCommand.cc
  4208. * src/PeerAbstractCommand.h
  4209. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4210. Removed TransferEncoding.
  4211. * src/DownloadCommand.cc
  4212. * src/DownloadCommand.h
  4213. * src/HttpResponseCommand.cc
  4214. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4215. Updated po files.
  4216. * po/aria2c.pot
  4217. * po/*.po
  4218. * po/*.gmo
  4219. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4220. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4221. * src/A2STR.cc
  4222. * src/A2STR.h
  4223. * src/ChunkedDecoder.cc
  4224. * src/ChunkedDecoder.h
  4225. * src/ChunkedEncoding.cc: Removed
  4226. * src/ChunkedEncoding.h: Removed
  4227. * src/DownloadCommand.cc
  4228. * src/DownloadCommand.h
  4229. * src/HttpDownloadCommand.cc
  4230. * src/HttpResponse.cc
  4231. * src/HttpResponse.h
  4232. * src/HttpResponseCommand.cc
  4233. * src/HttpSkipResponseCommand.cc
  4234. * src/HttpSkipResponseCommand.h
  4235. * src/Makefile.am
  4236. * src/TransferEncoding.h: Removed
  4237. * test/ChunkedDecoderTest.cc
  4238. * test/ChunkedEncodingTest.cc: Removed
  4239. * test/HttpResponseTest.cc
  4240. * test/Makefile.am
  4241. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4242. Use append instead of insert.
  4243. * src/GZipDecoder.cc
  4244. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4245. Updated doc
  4246. * src/Decoder.h
  4247. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4248. Updated usage text for -s option.
  4249. * src/usage_text.h
  4250. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4251. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4252. * src/Request.cc
  4253. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4254. Cleaned up configure.ac.
  4255. * configure.ac
  4256. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4257. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4258. AC_ARG_ENABLE.
  4259. * configure.ac
  4260. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4261. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4262. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4263. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4264. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4265. fly and writes decoded data to a local disk.
  4266. * README
  4267. * README.html
  4268. * configure.ac
  4269. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4270. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4271. * m4/libz.m4
  4272. * src/Decoder.h
  4273. * src/DownloadCommand.cc
  4274. * src/DownloadCommand.h
  4275. * src/Exception.h
  4276. * src/GZipDecoder.cc
  4277. * src/GZipDecoder.h
  4278. * src/HttpHeader.cc
  4279. * src/HttpHeader.h
  4280. * src/HttpRequest.cc
  4281. * src/HttpRequest.h
  4282. * src/HttpResponse.cc
  4283. * src/HttpResponse.h
  4284. * src/HttpResponseCommand.cc
  4285. * src/Makefile.am
  4286. * test/GZipDecoderTest.cc
  4287. * test/HttpRequestTest.cc
  4288. * test/HttpResponseTest.cc
  4289. * test/Makefile.am
  4290. * test/Makefile.in
  4291. * test/gzip_decode_test.gz
  4292. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4293. Clarified usage of -j option.
  4294. * src/usage_text.h
  4295. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4296. Disabled getting size from the response of RETR.
  4297. If SIZE command failed, then disable resuming and segmented downloading.
  4298. * src/FtpConnection.cc
  4299. * src/FtpConnection.h
  4300. * src/FtpNegotiationCommand.cc
  4301. * src/FtpNegotiationCommand.h
  4302. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4303. Use digits to find first byte of file size, which makes the intention
  4304. of the code clearer.
  4305. * src/FtpConnection.cc
  4306. Don't call validateTotalLength() when size is 0.
  4307. * src/FtpNegotiationCommand.cc
  4308. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4309. Updated po files.
  4310. * po/aria2c.pot
  4311. * po/*.gmo
  4312. * po/*.po
  4313. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4314. Clarified usage text for --split option.
  4315. * src/usage_text.h
  4316. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4317. Bump up version number to 0.15.0dev. "dev" means "development"
  4318. version, which means I started the development of the next release!
  4319. * src/configure.ac
  4320. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4321. If FTP server returns negative response with REST raw command and
  4322. requested range is not 0, throw exception. If requested range is 0,
  4323. continue download a file from 0 byte.
  4324. * src/FtpNegotiationCommand.cc
  4325. * src/FtpNegotiationCommand.h
  4326. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4327. Supported FTP server which don't recognize SIZE raw command.
  4328. If SIZE raw command is failed, aria2 will try to get file size
  4329. from the response of RETR raw command. If both attempts are failed,
  4330. then resuming and segmented downloading are disabled.
  4331. * src/FtpConnection.cc
  4332. * src/FtpConnection.h
  4333. * src/FtpNegotiationCommand.cc
  4334. * src/FtpNegotiationCommand.h
  4335. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4336. * Release 0.14.0+1
  4337. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4338. Bump up version number to 0.14.0+1
  4339. * src/configure.ac
  4340. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4341. Fixed the code that refers static member variable from non-static
  4342. context.
  4343. * src/DefaultPeerStorage.cc
  4344. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4345. * Release 0.14.0
  4346. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4347. Added build test script
  4348. * build_test.sh
  4349. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Updated ja.po
  4351. * src/ja.po
  4352. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4353. Bump up version number to 0.14.0
  4354. * src/configure.ac
  4355. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4356. Updated ja.po and fr.po. Great thanks for french translators and
  4357. Sebastien WILLEMIJNS.
  4358. * po/fr.po
  4359. * po/ja.po
  4360. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4361. Added configure option to enable/disable epoll support.
  4362. * configure.ac
  4363. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4364. Updated man page.
  4365. * doc/aria2c.1.txt
  4366. * doc/aria2c.1
  4367. * doc/aria2c.1.html
  4368. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4369. Added missing default value '5' to the usage of --split option.
  4370. * src/HelpItemFactory.cc
  4371. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4372. Filled up pieces based on the number of missing blocks, rather than
  4373. simplay the number of piece * block length.
  4374. * src/BtRequestFactory.h
  4375. * src/DefaultBtInteractive.cc
  4376. * src/DefaultBtInteractive.h
  4377. * src/DefaultBtRequestFactory.cc
  4378. * src/DefaultBtRequestFactory.h
  4379. * src/Piece.cc
  4380. * src/Piece.h
  4381. * test/BitfieldManTest.cc
  4382. * test/DefaultBtRequestFactoryTest.cc
  4383. * test/MockBtRequestFactory.h
  4384. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4385. Made _epEvents a member variable.
  4386. * src/DownloadEngine.cc
  4387. * src/DownloadEngine.h
  4388. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4389. Cancel download if http redirect is bounded more than 20 times.
  4390. * src/AbstractCommand.cc
  4391. * src/HttpSkipResponseCommand.cc
  4392. * src/Request.cc
  4393. * src/Request.h
  4394. * test/RequestTest.cc
  4395. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4396. Fixed unhandled exception(removed keyword `new').
  4397. * src/SocketCore.cc (initEPOLL)
  4398. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4399. Removed visit(const MetaEntry*)
  4400. * src/MetaEntryVisitor.h:
  4401. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4402. and made them virtual.
  4403. * src/BencodeVisitor.h
  4404. * src/BencodeVisitor.cc
  4405. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4406. Updated po files.
  4407. * po/aria2c.pot
  4408. * po/*.po
  4409. * po/*.gmo
  4410. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4411. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4412. the number of socket to watch out.
  4413. * src/PeerInteractionCommand.cc
  4414. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4415. When there is not enough space in disk when writing a chunk of data,
  4416. aria2 now prints the message to the console to warn user and aborts
  4417. its download. Not all downloads are canceled because some downloads
  4418. may use another disk or partition. BUG#1640332
  4419. * src/AbstractDiskWriter.cc
  4420. * src/PeerAbstractCommand.cc
  4421. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4422. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4423. setHaltRequested(true) to cancel download.
  4424. * src/PeerInteractionCommand.h
  4425. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4426. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4427. socket from int to sock_t as sockets are unsigned in Windows.
  4428. For AsyncNameResolver, DownloadEngine, I did additional modification
  4429. for the portion of the code changed according to epoll support.
  4430. I defined sock_t in a2netcompat.h to use sock_t without including
  4431. SocketCore.h.
  4432. * src/AsyncNameResolver.cc
  4433. * src/AsyncNameResolver.h
  4434. * src/DownloadEngine.cc
  4435. * src/DownloadEngine.h
  4436. * src/SocketCore.cc
  4437. * src/SocketCore.h
  4438. * src/a2netcompat.h
  4439. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4441. changes in the patch were applied.
  4442. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4443. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4444. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4445. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4447. a2io.h and common.h were modified.
  4448. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4449. MinGW.
  4450. * src/common.h: Changed off_t to 64 bit in MinGW.
  4451. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4452. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4453. only a2netcompat.h is modified.
  4454. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4455. directives.
  4456. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4457. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4458. only gai_strerror.h is modified.
  4459. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4460. winsock errors in MinGW.
  4461. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4462. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4463. follow sources are applied.
  4464. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4465. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4466. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4467. I included locale.h from Platform.cc.
  4468. * src/main.cc: Moved common setup/teardown code to Platform class.
  4469. * test/AllTest.cc: Use Platform class.
  4470. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4471. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4472. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4473. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4474. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4475. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4476. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4477. aria2-0.13.2+1-mingw-2.patch.
  4478. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4479. systems which don't have termious.h. I moved the directive inside of
  4480. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4481. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4482. anyway.
  4483. * src/asctime_r.h
  4484. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4485. I added 2nd argument to the prototype declaration.
  4486. * src/StringFormat.cc: Get rid of vasprintf.
  4487. * src/getaddrinfo.h: Fixed constants.
  4488. * configure.ac: Added the check for asctime_r function.
  4489. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4490. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4491. Added writable test for Socket when the sending message is in progress.
  4492. Usually the sending message is piece message. Without wriable check,
  4493. upload latency is dropped to more than 1sec.
  4494. * src/PeerInteractionCommand.cc
  4495. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4496. Create only requested files and files which shares a piece with
  4497. requested file in multi-torrent downloads. Directory structures are
  4498. also created in the same rule.
  4499. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4500. DiskWriterEntry as in the previous implementation.
  4501. * src/MultiDiskWriter.cc
  4502. * src/MultiFileAllocationIterator.cc
  4503. * src/MultiFileAllocationIterator.h
  4504. * test/MultiFileAllocationIteratorTest.cc
  4505. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Commented out -lprofiler
  4507. * src/Makefile.am
  4508. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4509. Bump up version number to 0.14.0b.
  4510. * src/configure.ac
  4511. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4512. Actively establish connection to peers in seeding, when peer cache
  4513. is not full and max upload speed limit is not reached.
  4514. * src/ActivePeerConnectionCommand.cc
  4515. * src/ActivePeerConnectionCommand.h
  4516. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4517. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4518. to make room more fleshy, recently found peers.
  4519. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4520. it.
  4521. * src/DefaultPeerStorage.cc
  4522. * test/DefaultPeerStorageTest.cc
  4523. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4524. Returns cached data only when the previous receiveHandshake() is called
  4525. with peek = true.
  4526. * src/PeerConnection.cc (receiveHandshake)
  4527. * src/PeerConnection.h (receiveHandshake)
  4528. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4529. Changed default value of -s option from 1 to 5.
  4530. Also max value of -s option is changed from 5 to 16.
  4531. * src/HelpItemFactory.cc
  4532. * src/OptionHandlerFactory.cc
  4533. * src/option_processing.cc
  4534. * src/usage_text.h
  4535. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4536. Changed -s options behavior. Now it means the number of connections
  4537. made simultaneously in each http/ftp download.
  4538. If 1 URL is specified, the behavior is the same with old implementation.
  4539. If -s N is given and more than N URLs are specified, first N URLs are
  4540. used and remaining URLs are used for backup. If less than N URLs are
  4541. specified, some of URLs are used more than once so that totally N
  4542. connections are made simultaneously.
  4543. * src/main.cc
  4544. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4545. Included missing iosfwd or ostream header.
  4546. * src/RequestGroupMan.cc
  4547. * src/TaggedItem.cc
  4548. * src/TaggedItem.h
  4549. * src/Util.cc
  4550. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4551. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4552. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4553. * src/HttpConnection.cc: Included missing sstream.
  4554. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4555. Added --bt-max-open-files option.
  4556. * src/DefaultPieceStorage.cc
  4557. * src/HelpItemFactory.cc
  4558. * src/MultiDiskAdaptor.cc
  4559. * src/MultiDiskAdaptor.h
  4560. * src/OptionHandlerFactory.cc
  4561. * src/option_processing.cc
  4562. * src/prefs.cc
  4563. * src/prefs.h
  4564. * src/usage_text.h
  4565. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4566. Fixed the bug that aria2 aborts when a path to a directory is given
  4567. in command-line.
  4568. * src/ProtocolDetector.cc
  4569. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4570. Limited the number files opened in each BitTorrent download. The default
  4571. value is 100. The option to change this value will be added.
  4572. * src/MultiDiskAdaptor.cc
  4573. * src/MultiDiskAdaptor.h
  4574. * src/MultiFileAllocationIterator.cc
  4575. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4576. Fixed the bug that HTTP downloads don't start with old libraries.
  4577. * src/HttpHeaderProcessor.cc
  4578. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4579. Use empty() instead of size() > 0.
  4580. * src/HttpConnection.cc
  4581. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4582. Drop connection if the incoming peer ID is the same with localhost's
  4583. one. The previous implementation drops connection when incoming peer's
  4584. IP address is the same with localhost's one.
  4585. * src/PeerListenCommand.cc
  4586. * src/DefaultBtInteractive.cc
  4587. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4588. Returns cached data without checking whether socket is readable
  4589. if the cache is available.
  4590. * src/PeerConnection.cc (receiveHandshake)
  4591. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4592. Included stdint.h
  4593. * src/common.h
  4594. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4595. Removed duplicate HAVE_GETTIMEOFDAY
  4596. * src/Makefile.am
  4597. * src/Makefile.in
  4598. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4599. Use interval as a minInterval when minInterval is not supplied.
  4600. * src/DefaultBtAnnounce.cc
  4601. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4602. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4603. attempt is failed, then 2nd attempt get kicked out more quickly.
  4604. And it is now static const member of DefaultBtAnnounce.
  4605. * src/DefaultBtAnnounce.h
  4606. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4607. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4608. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4609. * src/ActivePeerConnectionCommand.cc
  4610. * src/BtConstants.h
  4611. * src/BtRuntime.h
  4612. * src/DHTGetPeersCommand.cc
  4613. * src/DefaultBtAnnounce.cc
  4614. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4615. BtRuntime::MAX_PEERS.
  4616. * src/DefaultPeerStorage.h
  4617. * src/InitiatorMSEHandshakeCommand.cc
  4618. * src/PeerInitiateConnectionCommand.cc
  4619. * src/PeerInteractionCommand.cc
  4620. * src/PeerReceiveHandshakeCommand.cc
  4621. * src/TrackerWatcherCommand.cc
  4622. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4623. Always Connect to _numNewConnection
  4624. * src/ActivePeerConnectionCommand.cc
  4625. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4626. Made `begin' unsigned int.
  4627. * src/GrowSegment.h
  4628. * src/Piece.cc
  4629. * src/Piece.h
  4630. * src/PiecedSegment.cc
  4631. * src/PiecedSegment.h
  4632. * src/Segment.h
  4633. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4634. Calculate piece hash when data is arrived if the data is arrived in
  4635. order. This removes additional read operation for hash calculation.
  4636. If the data is arrived in out of order, the hash is calucated when the
  4637. piece is completed. This is the same behavior as the old implementation.
  4638. * src/BtPieceMessage.cc
  4639. * src/DefaultBtProgressInfoFile.cc
  4640. * src/DefaultPieceStorage.cc
  4641. * src/DownloadCommand.cc
  4642. * src/DownloadCommand.h
  4643. * src/DownloadEngine.cc
  4644. * src/GrowSegment.cc
  4645. * src/GrowSegment.h
  4646. * src/Piece.cc
  4647. * src/Piece.h
  4648. * src/PiecedSegment.cc
  4649. * src/PiecedSegment.h
  4650. * src/Segment.h
  4651. * test/PieceTest.cc
  4652. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4653. Try to keep the ordering of outgoing piece message.
  4654. * src/DefaultBtMessageDispatcher.cc
  4655. (DefaultBtMessageDispatcher::sendMessages)
  4656. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4657. Fixed busy loop when error/hup epoll events occur.
  4658. * src/AbstractCommand.cc
  4659. * src/PeerAbstractCommand.cc
  4660. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4661. Added --bt-request-peer-speed-limit option, which was a constant
  4662. SLOW_SPEED_THRESHOLD.
  4663. * src/ActivePeerConnectionCommand.cc
  4664. * src/ActivePeerConnectionCommand.h
  4665. * src/BtConstants.h
  4666. * src/HelpItemFactory.cc
  4667. * src/OptionHandlerFactory.cc
  4668. * src/PeerReceiveHandshakeCommand.cc
  4669. * src/option_processing.cc
  4670. * src/prefs.cc
  4671. * src/prefs.h
  4672. * src/usage_text.h
  4673. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4674. Removed repeated call of getTopDirPath(). Instead, call it once and
  4675. cache the result.
  4676. * src/MultiDiskAdaptor.cc
  4677. * src/MultiDiskAdaptor.h
  4678. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4679. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4680. Fixed compile error on debian etch.
  4681. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4682. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4683. it is undefined.
  4684. * src/Util.cc (ULLONG_MAX)
  4685. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4686. Added epoll support. Use epoll if it is available. If not, use select.
  4687. When async dns is enabled in compile time, epoll support is enabled
  4688. only when aria2 is built with c-ares. This condition statement is
  4689. defined in a2io.h.
  4690. Currently aria2 supports both c-ares and ares, but ares is maintained
  4691. for quite a while and debian already has c-ares package, ares support
  4692. will be dropped in the future version.
  4693. * configure.ac
  4694. * src/AbstractCommand.cc
  4695. * src/AsyncNameResolver.cc
  4696. * src/AsyncNameResolver.h
  4697. * src/Command.cc
  4698. * src/Command.h
  4699. * src/DownloadEngine.cc
  4700. * src/DownloadEngine.h
  4701. * src/PeerAbstractCommand.cc
  4702. * src/SocketCore.cc
  4703. * src/SocketCore.h
  4704. * src/a2io.h
  4705. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4706. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4707. directive.
  4708. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. Do not do write operation to /dev/null file.
  4710. * src/LogFactory.cc
  4711. * src/SimpleLogger.cc
  4712. Replaced vasprintf with vsnprintf
  4713. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4714. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4715. * src/BtRequestMessage.cc
  4716. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4717. for segmentation fault caused by previous commit.
  4718. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4719. Reduced the usage of gettimeofday().
  4720. * src/DefaultBtMessageDispatcher.cc
  4721. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4722. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4723. * src/RequestSlot.cc
  4724. * src/RequestSlot.h
  4725. (RequestSlot::isTimeout)
  4726. Made RequestSlot have a reference to Piece object to avoid find
  4727. Piece repeatedly.
  4728. * src/DefaultBtMessageDispatcher.cc
  4729. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4730. * src/RequestSlot.cc
  4731. * src/RequestSlot.h
  4732. (RequestSlot::getPiece)
  4733. * test/DefaultBtMessageDispatcherTest.cc
  4734. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4735. * src/TimeA2.cc
  4736. * src/TimeA2.h
  4737. (Time::difference): New function.
  4738. (Time::elapsed): Done optimization.
  4739. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4740. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4741. directive.
  4742. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. * src/option_processing.cc: Added missing `defined' keyword to #if
  4744. directive.
  4745. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4746. Bump up version number to 0.13.2+1
  4747. * src/configure.ac
  4748. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4749. Refactored broken outstanding piece handling.
  4750. * src/DefaultPieceStorage.cc
  4751. * src/DefaultPieceStorage.h
  4752. * src/Piece.cc
  4753. * src/Piece.h
  4754. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4755. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4756. name collision of static variable and predefined macro.
  4757. * src/BtContext.cc
  4758. * src/BtContext.h
  4759. * src/CookieBoxFactory.cc
  4760. * src/CookieBoxFactory.h
  4761. * src/CookieParser.cc
  4762. * src/CookieParser.h
  4763. * src/DefaultBtContext.cc
  4764. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4765. * src/RequestGroup.cc
  4766. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4767. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4768. * Release 0.13.2
  4769. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4770. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4771. * po/fr.po
  4772. * po/ja.po
  4773. * po/aria2c.pot
  4774. * po/*.po
  4775. * po/*.gmo
  4776. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4777. Bump up version number to 0.13.2
  4778. * src/configure.ac
  4779. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4780. Refactord.
  4781. * src/RequestGroupMan.cc
  4782. (removeStoppedGroup)
  4783. (fillRequestGroupFromReserver)
  4784. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4785. Fixed compile error on Ubuntu.
  4786. * src/BtPieceMessage.cc
  4787. * src/MessageDigestHelper.cc
  4788. * src/Util.cc
  4789. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4790. Fixed compile error when configured with --disable-bittorrent
  4791. * test/DownloadHandlerFactoryTest.cc
  4792. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4793. Done make update-po
  4794. * po/aria2c.pot
  4795. * po/*.po
  4796. * po/*.gmo
  4797. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4798. Bump up version number to 0.13.2rc.
  4799. * src/configure.ac
  4800. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4801. Made option name bold. Updated SYNOPSIS to make it more readable.
  4802. * doc/aria2c.1.txt
  4803. * doc/aria2c.1
  4804. * doc/aria2c.1.html
  4805. * src/version_usage.cc
  4806. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4807. Refactored. Use std::string instead of size and char*.
  4808. * Data.cc
  4809. * Data.h
  4810. * test/Data.cc
  4811. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4812. Added trimSelf(). Rewritten trim() to use trimSelf().
  4813. * Util.cc
  4814. * Util.h
  4815. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4816. * src/ChunkChecksum.h (getChecksum): Return const reference.
  4817. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4818. Fixed compile error when configured with --disable-metalink.
  4819. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  4820. * test/FeatureConfigTest.cc
  4821. * test/DownloadHandlerFactoryTest.cc
  4822. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4823. Fixed compile error when configured with --without-gnutls
  4824. --without-openssl
  4825. * src/main.cc
  4826. * test/DefaultBtProgressInfoFileTest.cc
  4827. * test/SegmentManTest.cc
  4828. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4829. Fixed compile error with OpenSSL.
  4830. * src/IteratableChunkChecksumValidator.cc
  4831. * src/LibsslDHKeyExchange.h
  4832. * src/MessageDigestHelper.cc
  4833. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4834. Revert the default value of --max-concurrent-downloads to 5.
  4835. Revert the default value of --metalink-servers to 5.
  4836. Man pages was also updated.
  4837. * src/option_processing.cc
  4838. * doc/aria2c.1.txt
  4839. * doc/aria2c.1.html
  4840. * doc/aria2c.1
  4841. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4842. Returns const reference:
  4843. DownloadContext::getPieceHash, DownloadContext::getName,
  4844. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  4845. BtContext::getInfoHashAsString,
  4846. * src/BtContext.h
  4847. * src/DefaultBtContext.cc
  4848. * src/DefaultBtContext.h
  4849. * src/DownloadContext.h
  4850. * src/SingleFileDownloadContext.h
  4851. * test/MockBtContext.h
  4852. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4853. * src/RequestGroup.h (getDir): Removed.
  4854. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4855. Returns const reference. The internal urlencode function was optimized
  4856. a little bit.
  4857. * src/Request.cc
  4858. * src/Request.h
  4859. * src/HttpRequest.cc
  4860. * src/HttpRequest.h
  4861. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4862. Defined option name and possible values as std::string to reduce
  4863. temporary string object creation in runtime.
  4864. * src/HelpItemFactory.cc
  4865. * src/LogFactory.cc
  4866. * src/Option.cc
  4867. * src/OptionHandlerFactory.cc
  4868. * src/option_processing.cc
  4869. * src/prefs.cc
  4870. * src/prefs.h
  4871. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Return const reference.
  4873. * src/DownloadHandlerConstants.cc
  4874. * src/DownloadHandlerConstants.h
  4875. (getMetalinkExtensions)
  4876. (getMetalinkContentTypes)
  4877. (getBtExtensions)
  4878. (getBtContentTypes)
  4879. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4880. * src/HttpHeader.cc (get): Rewritten.
  4881. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4882. Make HttpHeader::getFirst(...) return const reference.
  4883. * src/HttpHeader.cc
  4884. * src/HttpHeader.h
  4885. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4886. Use Option::getAsBool(...) instead of Option::get(...) and compare
  4887. it with V_TRUE.
  4888. * src/DefaultPieceStorage.cc
  4889. * src/DownloadCommand.cc
  4890. * src/FtpNegotiationCommand.cc
  4891. * src/HttpRequest.cc
  4892. * src/InitiateConnectionCommand.cc
  4893. * src/RequestGroup.cc
  4894. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4895. Made Option::get(...) return const reference of std::string.
  4896. * src/Option.cc
  4897. * src/Option.h
  4898. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4899. Replaced std:copy with insert.
  4900. * src/DefaultBtMessageDispatcher.cc
  4901. * src/DefaultPieceStorage.cc
  4902. * src/DownloadEngineFactory.cc
  4903. * src/RequestGroup.cc
  4904. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4905. Included SocketCore.h to fix compiler warning.
  4906. * src/InitiateConnectionCommand.cc
  4907. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4908. Put piece selection strategy algorithm to RarestPieceSelector class,
  4909. Added a switch to choose whether randomized selection so that unit
  4910. tests emit same results in, possibly, win32.
  4911. * src/DefaultPieceStorage.cc
  4912. * src/DefaultPieceStorage.h
  4913. * src/RarestPieceSelector.cc
  4914. * src/RarestPieceSelector.h
  4915. * test/DefaultPieceStorageTest.cc
  4916. * test/RarestPieceSelectorTest.cc
  4917. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4918. Don't pool connection if HTTP proxy is enabled.
  4919. * src/FtpFinishDownloadCommand.cc
  4920. * src/FtpNegotiationCommand.cc
  4921. * src/HttpSkipResponseCommand.cc
  4922. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4923. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  4924. * src/AbstractCommand.cc
  4925. * src/AbstractCommand.h
  4926. * src/ActivePeerConnectionCommand.cc
  4927. * src/FtpInitiateConnectionCommand.cc
  4928. * src/HttpInitiateConnectionCommand.cc
  4929. * src/InitiateConnectionCommandFactory.cc
  4930. * src/PeerAbstractCommand.cc
  4931. * src/PeerAbstractCommand.h
  4932. * src/PeerInitiateConnectionCommand.cc
  4933. * src/TrackerWatcherCommand.cc
  4934. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4935. Sort RequestSlot in ascending order and manipulate them using
  4936. lower_bound.
  4937. * src/DefaultBtMessageDispatcher.cc
  4938. * src/DefaultBtMessageDispatcher.h
  4939. (getMessageQueue): Added const qualifier.
  4940. (getRequestSlots): Added const qualifier.
  4941. (sendMessages): Use empty() instead of size().
  4942. (doCancelSendingPieceAction): Use HandleEvent object.
  4943. (doAbortOutstandingRequestAction): Rewritten.
  4944. (doChokedAction): Rewritten.
  4945. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  4946. (isOutstandingRequest): Rewritten.
  4947. (getOutstandingRequest): Rewritten.
  4948. (removeOutstandingRequest): Rewritten.
  4949. (addOutstandingRequest): Rewritten.
  4950. * src/RequestSlot.cc
  4951. * src/RequestSlot.h
  4952. (operator=): Rewritten.
  4953. (operator!=): New function.
  4954. (operator<): New function.
  4955. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4956. * src/DefaultBtRequestFactory.cc
  4957. (doChokedAction): Rewritten.
  4958. (removeCompletedPiece): Rewritten.
  4959. (removeTargetPiece): Rewritten.
  4960. (createRequestMessages): Added the debug log.
  4961. (createRequestMessagesOnEndGame: Added the debug log.
  4962. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Added the debug log message.
  4964. * src/BtPieceMessage.cc (doReceivedAction)
  4965. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4966. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  4967. used lower_bound to process them rather than linear search.
  4968. * src/DHTPeerAnnounceStorage.cc
  4969. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4970. Call subtractPieceStats from ~PeerInteractionCommand only when the
  4971. peer has at least one completed piece.
  4972. * src/Peer.cc
  4973. * src/Peer.h
  4974. * src/PeerInteractionCommand.cc
  4975. * src/PeerSessionResource.cc
  4976. * src/PeerSessionResource.h
  4977. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4978. Removed unnecessary sorting
  4979. * src/DefaultPieceStorage (DefaultPieceStorage)
  4980. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4981. Rewritten the portion of the code that mangaes allowed fast indexes.
  4982. * src/PeerSessionResource.cc
  4983. * src/PeerSessionResource.h
  4984. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4985. Removed the invalid string including '\r' from ru.po and
  4986. did make update-po.
  4987. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4988. Added --log-level and --summary-interval to man page.
  4989. * doc/aria2c.1.txt
  4990. * doc/aria2c.1.html
  4991. * doc/aria2c.1
  4992. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4993. Added --log-level option to specify log level. Log messages under
  4994. the specified level are not output. Default value is `debug'.
  4995. * src/HelpItemFactory.cc
  4996. * src/LogFactory.cc
  4997. * src/LogFactory.h
  4998. * src/Logger.h
  4999. * src/OptionHandlerFactory.cc
  5000. * src/SimpleLogger.cc
  5001. * src/SimpleLogger.h
  5002. * src/main.cc
  5003. * src/option_processing.cc
  5004. * src/prefs.h
  5005. * src/usage_text.h
  5006. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5007. Print download progress summary of all parallel downloads in specified
  5008. interval, default 60 secs. While aria2 could download several files
  5009. in parallel (see -j option), it displayed just first download progress,
  5010. and the other downloads are hidden from the users. This new feature
  5011. prints all downloads currently in-progress to the console so that you
  5012. can check the status of all downloads. The interval can be adjusted
  5013. by --summary-interval option.
  5014. The progress readout is now cut so that all fits in the one line of
  5015. console.
  5016. * src/ConsoleStatCalc.cc
  5017. * src/ConsoleStatCalc.h
  5018. * src/HelpItemFactory.cc
  5019. * src/OptionHandlerFactory.cc
  5020. * src/RequestGroupMan.cc
  5021. * src/RequestGroupMan.h
  5022. * src/main.cc
  5023. * src/option_processing.cc
  5024. * src/prefs.h
  5025. * src/usage_text.h
  5026. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5027. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5028. * src/DownloadEngine.cc (DownloadEngine)
  5029. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5030. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5031. defined.
  5032. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5033. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5034. Use erase+lower_bound+insert instead of sort.
  5035. * src/DefaultPieceStorage.cc (addPieceStats)
  5036. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5037. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5038. * src/A2STR.cc
  5039. * src/A2STR.h
  5040. * src/OptionParser.cc (parse)
  5041. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5042. Defined fake filename `[tracker.announce]' as static const std::string.
  5043. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5044. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5045. Defined default filename `index.html' as static const std::string
  5046. * src/SingleFileDownloadContext.cc
  5047. * src/SingleFileDownloadContext.h
  5048. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5049. Defined "[MEMORY]" as static const std::string.
  5050. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5051. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5052. Defined control file's version number as static const std::string.
  5053. * src/DefaultBtProgressInfoFile.cc
  5054. * src/DefaultBtProgressInfoFile.h
  5055. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5056. Use Request::METHOD_GET
  5057. * src/RequestGroup.cc (createNextCommandWithAdj)
  5058. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5059. Defined "OK", "ERR", "INPR" as static const std::string
  5060. * src/RequestGroupMan.cc (showDownloadResults)
  5061. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5062. Defined default client used in extended handshake as static const
  5063. std::string
  5064. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5065. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5066. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5067. * src/HttpConnection.cc (eraseConfidentialInfo)
  5068. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5069. Defined default ftp user and password as static const std::string
  5070. * src/AuthConfigFactory.cc
  5071. * src/AuthConfigFactory.h
  5072. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5073. Defined strings used in netrc as static const std::string
  5074. * src/Netrc.cc
  5075. * src/Netrc.h
  5076. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5077. Defined HTTP status as static const std::string
  5078. * src/AbstractProxyResponseCommand.cc
  5079. * src/HttpHeader.cc
  5080. * src/HttpHeader.h
  5081. * src/HttpResponse.cc
  5082. * src/HttpResponseCommand.cc
  5083. * src/HttpSkipResponseCommand.cc
  5084. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5085. Defined "\r\n", "A", "I" as static const std::string
  5086. * src/A2STR.cc
  5087. * src/A2STR.h
  5088. * src/FtpConnection.cc
  5089. * src/FtpConnection.h
  5090. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5091. Added COLON_C(".") and used it in Request::parseUrl()
  5092. * src/A2STR.cc
  5093. * src/A2STR.h
  5094. * src/Request.cc (parseUrl)
  5095. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5096. Changed the type of padName from `const std::string&' to `const char*'.
  5097. * src/MSEHandshake.cc (verifyPadLength)
  5098. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5099. Defined "sha1" as static const std::string.
  5100. * src/MetalinkParserController.cc
  5101. * src/MetalinkParserController.h
  5102. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5103. Defined message digest algorithm name as static const std::string
  5104. * src/DHTTokenTracker.cc
  5105. * src/DHTUtil.cc
  5106. * src/DefaultBtContext.cc
  5107. * src/MSEHandshake.cc
  5108. * src/MessageDigestHelper.cc
  5109. * src/Peer.cc
  5110. * src/messageDigest.cc
  5111. * src/messageDigest.h
  5112. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5113. Made string literals used in SAX parser static const std::string.
  5114. * src/FileMetalinkParserState.cc
  5115. * src/FileMetalinkParserState.h
  5116. * src/FilesMetalinkParserState.cc
  5117. * src/FilesMetalinkParserState.h
  5118. * src/InitialMetalinkParserState.cc
  5119. * src/InitialMetalinkParserState.h
  5120. * src/MetalinkMetalinkParserState.cc
  5121. * src/MetalinkMetalinkParserState.h
  5122. * src/PiecesMetalinkParserState.cc
  5123. * src/PiecesMetalinkParserState.h
  5124. * src/ResourcesMetalinkParserState.cc
  5125. * src/ResourcesMetalinkParserState.h
  5126. * src/VerificationMetalinkParserState.cc
  5127. * src/VerificationMetalinkParserState.h
  5128. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5129. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5130. * src/A2STR.cc
  5131. * src/A2STR.h
  5132. * src/File.cc
  5133. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5134. Defined static const std::string IP("ip"), PORT("port") and use them
  5135. instead of string literals.
  5136. * src/DefaultPeerListProcessor.cc
  5137. * src/DefaultPeerListProcessor.h
  5138. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5139. Made string literals for torrent file processing static const
  5140. std::string.
  5141. * src/BtContext.cc
  5142. * src/BtContext.h
  5143. * src/DefaultBtContext.cc
  5144. * src/DefaultBtContext.h
  5145. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5146. Made string literal for tracker response static const std::string
  5147. * src/BtAnnounce.cc
  5148. * src/BtAnnounce.h
  5149. * src/DefaultBtAnnounce.cc
  5150. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5151. Use DHTMessage::T instead of "t".
  5152. * src/DHTMessageTracker.cc (messageArrived)
  5153. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5154. Made keyName static const. Made trimmed charset static const
  5155. std::string.
  5156. * src/Util.cc (getContentDispositionFilename)
  5157. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5158. Made USER_AGENT const. Made "/" static const std::string.
  5159. * src/A2STR.cc
  5160. * src/A2STR.h
  5161. * src/HttpRequest.cc
  5162. * src/HttpRequest.h
  5163. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5164. Made string listeral to static const std::string:
  5165. "Content-Range", "Content-Length"
  5166. * src/HttpHeader.cc
  5167. * src/HttpHeader.h
  5168. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Made string listeral to static const std::string.
  5170. * src/HttpConnection.cc
  5171. * src/HttpHeader.cc
  5172. * src/HttpHeader.h
  5173. * src/HttpResponse.cc
  5174. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5175. Made string listeral to static const std::string.
  5176. * src/A2STR.cc
  5177. * src/A2STR.h
  5178. * src/SimpleLogger.cc
  5179. * src/SimpleLogger.h
  5180. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5181. Made string literal to static const std::string.
  5182. Rewritten CookieParser::setField.
  5183. * src/A2STR.cc
  5184. * src/A2STR.h
  5185. * src/CookieBoxFactory.cc
  5186. * src/CookieBoxFactory.h
  5187. * src/CookieParser.cc
  5188. * src/CookieParser.h
  5189. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5190. Made string literal to static const std::string
  5191. * src/DHTAbstractMessage.cc
  5192. * src/DHTAnnouncePeerMessage.cc
  5193. * src/DHTAnnouncePeerMessage.h
  5194. * src/DHTAnnouncePeerReplyMessage.cc
  5195. * src/DHTAnnouncePeerReplyMessage.h
  5196. * src/DHTFindNodeMessage.cc
  5197. * src/DHTFindNodeMessage.h
  5198. * src/DHTFindNodeReplyMessage.cc
  5199. * src/DHTFindNodeReplyMessage.h
  5200. * src/DHTGetPeersMessage.cc
  5201. * src/DHTGetPeersMessage.h
  5202. * src/DHTGetPeersReplyMessage.cc
  5203. * src/DHTGetPeersReplyMessage.h
  5204. * src/DHTMessage.cc
  5205. * src/DHTMessage.h
  5206. * src/DHTMessageFactoryImpl.cc
  5207. * src/DHTMessageReceiver.cc
  5208. * src/DHTPingMessage.cc
  5209. * src/DHTPingMessage.h
  5210. * src/DHTPingReplyMessage.cc
  5211. * src/DHTPingReplyMessage.h
  5212. * src/DHTQueryMessage.cc
  5213. * src/DHTQueryMessage.h
  5214. * src/DHTResponseMessage.cc
  5215. * src/DHTResponseMessage.h
  5216. * src/DHTUnknownMessage.cc
  5217. * src/DHTUnknownMessage.h
  5218. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5219. Made string literal to static const std::string
  5220. * src/BtChokeMessage.cc (toString)
  5221. * src/BtHaveAllMessage.cc (toString)
  5222. * src/BtHaveNoneMessage.cc (toString)
  5223. * src/BtInterestedMessage.cc (toString)
  5224. * src/BtNotInterestedMessage.cc (toString)
  5225. * src/BtUnchokeMessage.cc (toString)
  5226. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5227. Replaced "" with static const variable A2STR::NIL.
  5228. Replaced string comparison against "" with std::string::empty().
  5229. Added PROTO_* to Request class and use them as a protocol string
  5230. constant.
  5231. Made "started", "stopped", "completed" static const variable in
  5232. AnnounceList class.
  5233. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5234. Updated translations. Great thanks to translators.
  5235. * po/ca.po
  5236. * po/de.po
  5237. * po/fr.po
  5238. * po/it.po
  5239. * po/ja.po
  5240. * po/ru.po
  5241. * po/zh_CN.po
  5242. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5243. Updated man page; categorized options and fixed typo.
  5244. * doc/aria2c.1.txt
  5245. * doc/aria2c.1.html
  5246. * doc/aria2c.1
  5247. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5248. Removed const ref
  5249. * src/MetalinkEntry.cc (AddProtocolPreference)
  5250. * src/RequestGroup.cc (FindServerHostByHostname)
  5251. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5252. Rewritten Accept-Features handling.
  5253. * src/HttpRequestCommand.cc (createHttpRequest)
  5254. * src/a2functional.h
  5255. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5256. Changed method signature:
  5257. DHTAbstractNodeLookupTask::toEntries
  5258. * src/DHTAbstractNodeLookupTask.cc
  5259. * src/DHTAbstractNodeLookupTask.h
  5260. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5261. Changed method signature:
  5262. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5263. * src/BtContext.h
  5264. * src/DefaultBtContext.cc
  5265. * src/DefaultBtContext.h
  5266. * src/DefaultBtInteractive.cc
  5267. * test/DefaultBtContextTest.cc
  5268. * test/MockBtContext.h
  5269. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5270. Changed method signature:
  5271. MultiFileAllocationIterator::makeDiskWriterEntries
  5272. * src/MultiFileAllocationIterator.cc
  5273. * src/MultiFileAllocationIterator.h
  5274. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Changed method sinature:
  5276. MetalinkEntry::toFileEntry,
  5277. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5278. Metalinker::queryEntry
  5279. * src/Metalink2RequestGroup.cc
  5280. * src/MetalinkEntry.cc
  5281. * src/MetalinkEntry.h
  5282. * src/MetalinkHelper.cc
  5283. * src/MetalinkHelper.h
  5284. * src/Metalinker.cc
  5285. * src/Metalinker.h
  5286. * src/main.cc
  5287. * test/MetalinkHelperTest.cc
  5288. * test/MetalinkerTest.cc
  5289. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5290. Changed method sinature:
  5291. RequestGroup::getURIs
  5292. * src/RequestGroup.cc
  5293. * src/RequestGroup.h
  5294. * test/Metalink2RequestGroupTest.cc
  5295. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5296. Changed method signature:
  5297. PeerListProcessor::extractPeer
  5298. * src/CompactPeerListProcessor.cc
  5299. * src/CompactPeerListProcessor.h
  5300. * src/DefaultBtAnnounce.cc
  5301. * src/DefaultPeerListProcessor.cc
  5302. * src/DefaultPeerListProcessor.h
  5303. * src/DelegatingPeerListProcessor.cc
  5304. * src/DelegatingPeerListProcessor.h
  5305. * src/PeerListProcessor.h
  5306. * src/UTPexExtensionMessage.cc
  5307. * test/DefaultPeerListProcessorTest.cc
  5308. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5309. Changed method signature:
  5310. BtRequestFactory::createRequestMessages,
  5311. BtRequestFactory::createRequestMessagesOnEndGame
  5312. * src/BtRequestFactory.h
  5313. * src/DefaultBtInteractive.cc
  5314. * src/DefaultBtRequestFactory.cc
  5315. * src/DefaultBtRequestFactory.h
  5316. * test/DefaultBtRequestFactoryTest.cc
  5317. * test/MockBtRequestFactory.h
  5318. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5319. Changed method signature:
  5320. PieceStorage::getInFlightPieces
  5321. * src/DefaultBtProgressInfoFile.cc
  5322. * src/DefaultPieceStorage.cc
  5323. * src/DefaultPieceStorage.h
  5324. * src/PieceStorage.h
  5325. * src/UnknownLengthPieceStorage.cc
  5326. * src/UnknownLengthPieceStorage.h
  5327. * test/DefaultBtProgressInfoFileTest.cc
  5328. * test/MockPieceStorage.h
  5329. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5330. Changed method signature:
  5331. PostDownloadHandler::getNextRequestGroups
  5332. Metalink2RequestGroup::generate
  5333. RequestGroup::postDownloadProcessing
  5334. * src/BtPostDownloadHandler.cc
  5335. * src/BtPostDownloadHandler.h
  5336. * src/Metalink2RequestGroup.cc
  5337. * src/Metalink2RequestGroup.h
  5338. * src/MetalinkPostDownloadHandler.cc
  5339. * src/MetalinkPostDownloadHandler.h
  5340. * src/PostDownloadHandler.h
  5341. * src/RequestGroup.cc
  5342. * src/RequestGroup.h
  5343. * src/RequestGroupMan.cc
  5344. * src/main.cc
  5345. * test/BtPostDownloadHandlerTest.cc
  5346. * test/Metalink2RequestGroupTest.cc
  5347. * test/MetalinkPostDownloadHandlerTest.cc
  5348. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Rewritten AccRequestGroup
  5350. * src/main.cc
  5351. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5352. Rewritten.
  5353. * src/TaggedItem.cc (toTagString)
  5354. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5355. Rewritten Accept-Features handling.
  5356. * src/HttpRequestCommand.cc (createHttpRequest)
  5357. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5358. Rewritten accept types handling.
  5359. * HttpRequest.cc (createRequest)
  5360. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5361. Rewritten
  5362. * src/FeatureConfig.cc (featureSummary)
  5363. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5364. Changed method signature:
  5365. PeerStorage::getActivePeers
  5366. * src/DHTPeerAnnounceEntry.cc
  5367. * src/DefaultPeerStorage.cc
  5368. * src/DefaultPeerStorage.h
  5369. * src/PeerStorage.h
  5370. * test/DefaultPeerStorageTest.cc
  5371. * test/MockPeerStorage.h
  5372. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5373. Changed method signature:
  5374. DHTPeerAnnounceStorage::getPeers,
  5375. DHTPeerAnnounceEntry::getPeers
  5376. * src/DHTGetPeersMessage.cc
  5377. * src/DHTPeerAnnounceEntry.cc
  5378. * src/DHTPeerAnnounceEntry.h
  5379. * src/DHTPeerAnnounceStorage.cc
  5380. * src/DHTPeerAnnounceStorage.h
  5381. * test/DHTAnnouncePeerMessageTest.cc
  5382. * test/DHTPeerAnnounceEntryTest.cc
  5383. * test/DHTPeerAnnounceStorageTest.cc
  5384. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5385. Changed method signature:
  5386. NameResolver::resolve
  5387. * src/DHTEntryPointNameResolveCommand.cc
  5388. * src/InitiateConnectionCommand.cc
  5389. * src/NameResolver.cc
  5390. * src/NameResolver.h
  5391. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5392. Changed method signature:
  5393. PieceStorage::getAdvertisedPieceIndexes
  5394. * src/DefaultBtInteractive.cc
  5395. * src/DefaultPieceStorage.cc
  5396. * src/DefaultPieceStorage.h
  5397. * src/PieceStorage.h
  5398. * src/UnknownLengthPieceStorage.h
  5399. * test/MockPieceStorage.h
  5400. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5401. Changed method signature:
  5402. SegmentMan::getInFlightSegment
  5403. * src/AbstractCommand.cc
  5404. * src/SegmentMan.cc
  5405. * src/SegmentMan.h
  5406. * test/SegmentManTest.cc
  5407. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Changed method signature:
  5409. DHTAbstractNodeLookupTask::getNodesFromMessage
  5410. * src/DHTAbstractNodeLookupTask.cc
  5411. * src/DHTAbstractNodeLookupTask.h
  5412. * src/DHTNodeLookupTask.cc
  5413. * src/DHTNodeLookupTask.h
  5414. * src/DHTPeerLookupTask.cc
  5415. * src/DHTPeerLookupTask.h
  5416. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5418. * src/AbstractCommand.cc
  5419. * src/BtCheckIntegrityEntry.cc
  5420. * src/BtCheckIntegrityEntry.h
  5421. * src/BtFileAllocationEntry.cc
  5422. * src/BtFileAllocationEntry.h
  5423. * src/BtSetup.cc
  5424. * src/BtSetup.h
  5425. * src/CheckIntegrityCommand.cc
  5426. * src/CheckIntegrityEntry.h
  5427. * src/ChecksumCheckIntegrityEntry.cc
  5428. * src/ChecksumCheckIntegrityEntry.h
  5429. * src/DHTSetup.cc
  5430. * src/DHTSetup.h
  5431. * src/DownloadEngine.cc
  5432. * src/FileAllocationCommand.cc
  5433. * src/FileAllocationEntry.h
  5434. * src/RequestGroup.cc
  5435. * src/RequestGroup.h
  5436. * src/RequestGroupMan.cc
  5437. * src/RequestGroupMan.h
  5438. * src/StreamCheckIntegrityEntry.cc
  5439. * src/StreamCheckIntegrityEntry.h
  5440. * src/StreamFileAllocationEntry.cc
  5441. * src/StreamFileAllocationEntry.h
  5442. * src/TrackerWatcherCommand.cc
  5443. * src/a2functional.h
  5444. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5445. Changed method signature:
  5446. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5447. DHTBucket::getGoodNodes,
  5448. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5449. * src/BNode.cc
  5450. * src/BNode.h
  5451. * src/DHTAbstractNodeLookupTask.cc
  5452. * src/DHTAutoSaveCommand.cc
  5453. * src/DHTBucket.cc
  5454. * src/DHTBucket.h
  5455. * src/DHTBucketRefreshTask.cc
  5456. * src/DHTFindNodeMessage.cc
  5457. * src/DHTGetPeersMessage.cc
  5458. * src/DHTRoutingTable.cc
  5459. * src/DHTRoutingTable.h
  5460. * test/BNodeTest.cc
  5461. * test/DHTBucketTest.cc
  5462. * test/DHTRoutingTableTest.cc
  5463. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5464. In piece selection functions, Pass std::deque<...> by reference rather
  5465. than returning it.
  5466. * src/BitfieldMan.cc
  5467. * src/BitfieldMan.h
  5468. * src/DefaultBtRequestFactory.cc
  5469. * src/DefaultPieceStorage.cc
  5470. * src/Piece.cc
  5471. * src/Piece.h
  5472. * test/BitfieldManTest.cc
  5473. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5474. Implemented rarest piece first piece selection strategy.
  5475. * src/AbstractBtMessage.cc
  5476. * src/AbstractBtMessage.h
  5477. * src/BitfieldMan.cc
  5478. * src/BitfieldMan.h
  5479. * src/BtBitfieldMessage.cc
  5480. * src/BtHaveAllMessage.cc
  5481. * src/BtHaveMessage.cc
  5482. * src/DefaultPieceStorage.cc
  5483. * src/DefaultPieceStorage.h
  5484. * src/PeerInteractionCommand.cc
  5485. * src/PieceStorage.h
  5486. * src/UnknownLengthPieceStorage.h
  5487. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5488. Rewritten readData and writeData.
  5489. * src/MultiDiskAdaptor.cc
  5490. * src/MultiDiskAdaptor.h
  5491. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5492. Move \n out of the message "Usage: ...".
  5493. * src/version_usage.cc
  5494. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5495. Bump up version number to 0.13.2b.
  5496. * configure.ac
  5497. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5498. Added const qualifier to argument Exception& e.
  5499. * src/Logger.h
  5500. * src/SimpleLogger.cc
  5501. * src/SimpleLogger.h
  5502. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5503. Pool connection when CWD, SIZE command fails.
  5504. * src/FtpNegotiationCommand.cc
  5505. * src/FtpNegotiationCommand.h
  5506. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5507. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5508. * src/HttpResponseCommand.cc
  5509. * src/HttpSkipResponseCommand.cc
  5510. * src/HttpSkipResponseCommand.h
  5511. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5512. Pool connection when a server returns 4xx, 5xx responses.
  5513. * src/HttpNullDownloadCommand.cc
  5514. * src/HttpNullDownloadCommand.h
  5515. * src/HttpResponse.cc
  5516. * src/HttpResponse.h
  5517. * src/HttpResponseCommand.cc
  5518. * src/HttpResponseCommand.h
  5519. * test/HttpResponseTest.cc
  5520. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5521. Print usage when no URL is specifed or bad command-line option is
  5522. specified.
  5523. * src/HelpItemFactory.cc
  5524. * src/help_tags.h
  5525. * src/option_processing.cc
  5526. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5527. Removed duplicate log message.
  5528. * src/AbstractCommand.cc (asyncResolveHostname)
  5529. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5530. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5531. Changed -j option's default value from 5 to 1.
  5532. Added new examples using protocol auto detection feature.
  5533. Removed -T, -M usage where it can be omitted.
  5534. * doc/aria2c.1.txt
  5535. * doc/aria2c.1.html
  5536. * doc/aria2c.1.txt
  5537. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5538. Updated command-line usage text, so that it tells users that they
  5539. can specify any number of torrent files and metalink files in
  5540. command-line.
  5541. * src/version_usage.cc
  5542. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5543. Changed the default value of -j option to 1.
  5544. * src/HelpItemFactory.cc
  5545. * src/option_processing.cc
  5546. * src/usage_text.h
  5547. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5548. Added the ability to reuse connection in FTP and it is enabled by
  5549. default. It can be disabled by --ftp-reuse-connection=false option.
  5550. * src/Command.cc
  5551. * src/DownloadCommand.cc
  5552. * src/FtpDownloadCommand.cc
  5553. * src/FtpDownloadCommand.h
  5554. * src/FtpFinishDownloadCommand.cc
  5555. * src/FtpFinishDownloadCommand.h
  5556. * src/FtpInitiateConnectionCommand.cc
  5557. * src/FtpNegotiationCommand.cc
  5558. * src/FtpNegotiationCommand.h
  5559. * src/HelpItemFactory.cc
  5560. * src/Makefile.am
  5561. * src/Makefile.in
  5562. * src/OptionHandlerFactory.cc
  5563. * src/option_processing.cc
  5564. * src/prefs.h
  5565. * src/usage_text.h
  5566. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5567. Call Command::transitStatus() before calling Command::execute(),
  5568. so that the status change made in execute() is not cleared.
  5569. * src/DownloadEngine.cc
  5570. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5571. Removed forward declaration of SocketCore class.
  5572. * src/HttpDownloadCommand.h
  5573. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5574. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5575. in InitiateConnectionCommandFactory. They should be set only when
  5576. the protocol is HTTP or HTTPS.
  5577. * src/InitiateConnectionCommandFactory.cc
  5578. * src/RequestGroup.cc
  5579. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5580. Fixed infinite loop in checksum checking.
  5581. * src/IteratableChecksumValidator.cc
  5582. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5583. Set _supportsPersistentConnection to true by default.
  5584. * src/Request.cc
  5585. * src/RequestGroup.cc
  5586. * test/HttpRequestTest.cc
  5587. * test/RequestTest.cc
  5588. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5589. Added timeout to socket pool. The default timeout is 15 seconds,
  5590. which is the same value Apache uses.
  5591. * src/DownloadEngine.cc
  5592. * src/DownloadEngine.h
  5593. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5594. Fixed misuse of multimap::find()
  5595. * src/HttpHeader.cc
  5596. * test/HttpHeaderTest.cc
  5597. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5598. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5599. option.
  5600. The asynchronous DNS is not capable of IPv6 yet.
  5601. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5602. least for HTTP download.
  5603. * src/AbstractCommand.cc
  5604. * src/AbstractCommand.h
  5605. * src/AsyncNameResolver.cc
  5606. * src/AsyncNameResolver.h
  5607. * src/DHTEntryPointNameResolveCommand.cc
  5608. * src/DHTEntryPointNameResolveCommand.h
  5609. * src/DownloadEngine.cc
  5610. * src/DownloadEngine.h
  5611. * src/FtpInitiateConnectionCommand.cc
  5612. * src/FtpInitiateConnectionCommand.h
  5613. * src/HelpItemFactory.cc
  5614. * src/HttpInitiateConnectionCommand.cc
  5615. * src/HttpInitiateConnectionCommand.h
  5616. * src/InitiateConnectionCommand.cc
  5617. * src/InitiateConnectionCommand.h
  5618. * src/Makefile.am
  5619. * src/Makefile.in
  5620. * src/NameResolver.cc
  5621. * src/NameResolver.h
  5622. * src/OptionHandlerFactory.cc
  5623. * src/SocketCore.cc
  5624. * src/SocketCore.h
  5625. * src/Util.cc
  5626. * src/Util.h
  5627. * src/option_processing.cc
  5628. * src/prefs.h
  5629. * src/usage_text.h
  5630. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5631. Updated man page: --quiet, --header were added.
  5632. --metalink-servers and --enable-http-keep-alive option were updated.
  5633. * doc/aria2c.1
  5634. * doc/aria2c.1.html
  5635. * doc/aria2c.1.txt
  5636. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5637. Enable HTTP keep-alive by default.
  5638. * src/HelpItemFactory.cc
  5639. * src/option_processing.cc
  5640. * src/usage_text.h
  5641. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5642. Disable http keep-alive if the remote server is not HTTP/1.1.
  5643. * src/HttpConnection.cc
  5644. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5645. Receive content body of 302 response so that the connection can be
  5646. reused later when http keep-alive is enabled.
  5647. * src/HttpNullDownloadCommand.cc
  5648. * src/HttpNullDownloadCommand.h
  5649. * src/HttpResponseCommand.cc
  5650. * src/HttpResponseCommand.h
  5651. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5652. const SharedHandle<Request> -> const SharedHandle<Request>&
  5653. * src/FtpDowndloadCommand.cc
  5654. * src/FtpDowndloadCommand.h
  5655. * src/HttpDownloadCommand.cc
  5656. * src/HttpDownloadCommand.h
  5657. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5658. Fixed the bug that the control file(.aria2 file) is not renamed
  5659. according to tryAutoFileRenaming().
  5660. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5661. its control file exist, use them and continue download.
  5662. The old implementation didn't take into account of control file's
  5663. existence, so basically you couldn't continue download of renamed file.
  5664. * src/BtProgressInfoFile.h
  5665. * src/DefaultBtProgressInfoFile.cc
  5666. * src/DefaultBtProgressInfoFile.h
  5667. * src/NullProgressInfoFile.h
  5668. * src/RequestGroup.cc
  5669. * test/DefaultBtProgressInfoFileTest.cc
  5670. * test/MockBtProgressInfoFile.h
  5671. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5672. Change the default value of --metalink-servers option from `5' to `1'.
  5673. * src/HelpItemFactory.cc
  5674. * src/option_processing.cc
  5675. * src/usage_text.h
  5676. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5677. Reimplemented transparent metalink using Accept request header.
  5678. * src/HttpRequest.cc
  5679. * src/HttpRequest.h
  5680. * src/HttpRequestCommand.cc
  5681. * src/Metalink2RequestGroup.cc
  5682. * src/RequestGroup.cc
  5683. * src/RequestGroup.h
  5684. * test/HttpRequestTest.cc
  5685. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5686. Bump up version number to 0.13.2a
  5687. * configure.ac
  5688. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5689. Updated configure.ac using the result of autoscan.
  5690. * configure.ac
  5691. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5692. Fixed compilation error without gcrypt/openssl.
  5693. * src/DownloadCommand.cc
  5694. * src/DownloadCommand.h
  5695. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5696. Reorganized version information so that it can be displayed in a
  5697. standard terminal screen without scrolling.
  5698. Removed http, ftp from Configuration section, because they are always
  5699. enabled.
  5700. * src/FeatureConfig.cc
  5701. * src/FeatureConfig.h
  5702. * src/main.cc
  5703. * src/messageDigest.cc
  5704. * src/messageDigest.h
  5705. * src/version_usage.cc
  5706. * test/FeatureConfigTest.cc
  5707. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5708. Masked user ID in log.
  5709. * src/FtpConnection.cc (sendUser)
  5710. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5711. Removed query part from filename in HTTP download. The query part means
  5712. the substring after "?" in URL. Firefox seems do the same thing.
  5713. A query part is sometimes very long and not suitable to filename,
  5714. so I think it is better to remove it from filename.
  5715. * src/HttpRequest.cc
  5716. * src/HttpRequest.h
  5717. * src/Request.cc
  5718. * src/Request.h
  5719. * test/HttpRequestTest.cc
  5720. * test/RequestTest.cc
  5721. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Rewritten Exception class. Throw exception object, not its pointer and
  5723. catch by reference, so that remove problematic delete operator for
  5724. catched exception.
  5725. * src/Exception.cc
  5726. * src/Exception.h
  5727. * test/ExceptionTest.cc
  5728. * src/*: All files throwing/catching exception.
  5729. * test/*: All files throwing/catching exception.
  5730. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Now auto protocol detection is enabled without -Z option.
  5732. But there is a important difference between with/without -Z optoin.
  5733. For example, if you type:
  5734. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5735. then, aria2 interprets there are 3 request groups:
  5736. (1) http://host/file, http://mirror/file <-- multi-source download
  5737. (2) file1.torrent
  5738. (3) file2.metalink
  5739. On the other hand, if you invoke above command with -Z option, it is
  5740. interpreted as 4 request groups:
  5741. (1) http://host/file
  5742. (2) file1.torrent
  5743. (3) file2.metalink
  5744. (4) http://mirror/file
  5745. I think usually user don't mix multi-source URLs and torrent files, so
  5746. there is no big problem here.
  5747. * src/main.cc
  5748. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5749. Fixed the bug that causes segmentaion fault when reading XML containing
  5750. unescapsed character like '&'.
  5751. Also a modification was made which avoids adding unnecessary
  5752. characters stack and appending unused string.
  5753. * src/ExpatMetalinkProcessor.cc
  5754. * src/FileMetalinkParserState.h
  5755. * src/FilesMetalinkParserState.h
  5756. * src/FinMetalinkParserState.h
  5757. * src/HashMetalinkParserState.h
  5758. * src/InitialMetalinkParserState.h
  5759. * src/LanguageMetalinkParserState.h
  5760. * src/MetalinkMetalinkParserState.h
  5761. * src/MetalinkParserState.h
  5762. * src/MetalinkParserStateMachine.cc
  5763. * src/MetalinkParserStateMachine.h
  5764. * src/OSMetalinkParserState.h
  5765. * src/PieceHashMetalinkParserState.h
  5766. * src/PiecesMetalinkParserState.h
  5767. * src/ResourcesMetalinkParserState.h
  5768. * src/SizeMetalinkParserState.h
  5769. * src/SkipTagMetalinkParserState.h
  5770. * src/URLMetalinkParserState.h
  5771. * src/VerificationMetalinkParserState.h
  5772. * src/VersionMetalinkParserState.h
  5773. * src/XML2SAXMetalinkProcessor.cc
  5774. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5775. Added StringFormat class, which internally calls vasprintf.
  5776. operator<< is defined for this class, so it can be used with iostream
  5777. classes nicely. SimpleLogger and following functions are rewritten
  5778. using StringFormat class.
  5779. Besides, now Logger class's methods are non-const, many classes
  5780. that has a const Logger* as a member variable are modified to remove
  5781. const qualifier from the variable declaration.
  5782. * src/HelpItemFactory.cc
  5783. * src/Request.cc
  5784. * src/SimpleLogger.cc
  5785. * src/StringFormat.cc
  5786. * src/StringFormat.h
  5787. * src/Util.cc
  5788. * src/option_processing.cc
  5789. * src/version_usage.cc
  5790. * test/StringFormatTest.cc
  5791. * src/*.h: The classes that has const Logger* as a member variable.
  5792. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5793. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5794. failed. Also fixed memory link when exception is thrown there.
  5795. * src/main.cc (AccRequestGroup)
  5796. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5797. Added build-in "Accept-Features" support. For now only "metalink" is
  5798. used in this header field.
  5799. This "metalink" value is removed from the list when connecting URLs
  5800. fed by metalink file to avoid loop in "transparent" metlaink.
  5801. * src/HttpRequest.cc
  5802. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  5803. header is also held in this variable. Also renamed setUserHeaders as
  5804. addHeader and it was rewritten to add header not just to clear the old
  5805. value.
  5806. * src/HttpRequestCommand.cc
  5807. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  5808. from "Accept-Features" list.
  5809. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  5810. default.
  5811. * src/RequestGroup.h
  5812. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  5813. * src/a2functional.h: Included <string> because Concat class depends on
  5814. it.
  5815. * test/HttpRequestTest.cc
  5816. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5817. Added comment
  5818. * src/RequestGroup.cc (createNextCommand)
  5819. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5820. Capitalized METHOD_GET and METHOD_HEAD
  5821. * src/Request.cc
  5822. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5823. Added getDownloadResults() method
  5824. * src/RequestGroupMan.cc
  5825. * src/RequestGroupMan.h
  5826. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5827. Fixed the bug that aria2 exits when commands is empty() but
  5828. _routineCommands are not.
  5829. * src/DownloadEngine.cc
  5830. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5831. Use the default value pulled from Option object in HelpItemFactory.
  5832. except options whose defualt value is embedded in a usage text.
  5833. * src/HelpItemFactory.cc
  5834. * src/HelpItemFactory.h
  5835. * src/option_processing.cc
  5836. * src/version_usage.cc
  5837. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5838. Added --quiet option to make aria2 quiet (no console output).
  5839. --quiet option is tagged with ADVANCED.
  5840. * src/HelpItemFactory.cc
  5841. * src/LogFactory.cc
  5842. * src/LogFactory.h
  5843. * src/MultiUrlRequestInfo.cc
  5844. * src/MultiUrlRequestInfo.h
  5845. * src/NullStatCalc.h: New class. This class prints nothing.
  5846. * src/OptionHandlerFactory.cc
  5847. * src/main.cc
  5848. * src/option_processing.cc
  5849. * src/prefs.h
  5850. * src/usage_text.h
  5851. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5852. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  5853. * src/HelpItemFactory.cc (createHelpItems):
  5854. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5855. Fixed compilation error in ExpatMetalinkProcessor.cc
  5856. * src/ExpatMetalinkProcessor.cc
  5857. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5858. Reuse socket if the origin server supports HTTP keep-alive and
  5859. --enable-http-keep-alive or --enable-http-pipelining is given.
  5860. The current implementation doesn't reuse the connections established
  5861. against proxy server.
  5862. * src/AbstractCommand.cc
  5863. * src/DownloadEngine.cc
  5864. * src/DownloadEngine.h
  5865. * src/HttpDownloadCommand.cc
  5866. * src/HttpInitiateConnectionCommand.cc
  5867. * src/HttpResponseCommand.cc
  5868. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5869. Rewritten HTTP keep-alive and pipelining routine.
  5870. * src/AbstractCommand.cc
  5871. * src/HttpConnection.cc
  5872. * src/HttpDownloadCommand.cc
  5873. * src/HttpRequest.cc
  5874. * src/HttpRequestCommand.cc
  5875. * src/HttpResponseCommand.cc
  5876. * src/Request.cc
  5877. * src/Request.h
  5878. * src/RequestGroup.cc
  5879. * test/HttpRequestTest.cc
  5880. * test/HttpResponseTest.cc
  5881. * test/RequestTest.cc
  5882. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5883. Added missing setUserHeaders call
  5884. * src/HttpRequestCommand.cc
  5885. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5886. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  5887. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  5888. waste of time because it is more likey false.
  5889. * src/FileAllocationDispatcherCommand.cc (execute)
  5890. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5891. Now HTTP status and version are a member variable of HttpHeader.
  5892. HTTP status is processed as a string, not integer.
  5893. * src/AbstractProxyResponseCommand.cc
  5894. * src/HttpConnection.cc
  5895. * src/HttpHeader.cc
  5896. * src/HttpHeader.h
  5897. * src/HttpHeaderProcessor.cc
  5898. * src/HttpHeaderProcessor.h
  5899. * src/HttpResponse.cc
  5900. * src/HttpResponse.h
  5901. * test/HttpHeaderProcessorTest.cc
  5902. * test/HttpResponseTest.cc
  5903. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5904. Added --header option. You can specify any number of additional HTTP headers
  5905. like:
  5906. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  5907. Unlike other commad-line option, you can use --header option multiple times.
  5908. * src/HelpItemFactory.cc
  5909. * src/HttpRequest.{cc, h}
  5910. * src/HttpRequestCommand.cc
  5911. * src/OptionHandlerFactory.cc
  5912. * src/OptionHandlerImpl.h
  5913. * src/option_processing.cc
  5914. * src/prefs.h
  5915. * src/usage_text.h
  5916. * test/HttpRequestTest.cc (testUserHeaders)
  5917. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5918. Eliminates the time lag between sequential downloads and commands in
  5919. the same RequestGroup.
  5920. In old implementation, aria2 occasionally waits 1 seconds before
  5921. executing next command or RequestGroup.
  5922. This is really a waste of time, and new implementation eliminates
  5923. this unnecessary time lag.
  5924. * src/AbstractCommand.cc
  5925. * src/AutoSaveCommand.cc
  5926. * src/CheckIntegrityCommand.cc
  5927. * src/Command.{cc, h}
  5928. * src/DownloadEngine.{cc, h}
  5929. * src/DownloadEngineFactory.cc
  5930. * src/FileAllocationCommand.cc
  5931. * src/FileAllocationDispatcherCommand.cc
  5932. * src/FillRequestGroupCommand.cc
  5933. * src/FtpInitiateConnectionCommand.cc
  5934. * src/HaveEraseCommand.cc
  5935. * src/HttpInitiateConnectionCommand.cc
  5936. * src/HttpResponseCommand.cc
  5937. * src/RealtimeCommand.cc
  5938. * src/RequestGroup.cc
  5939. * src/RequestGroupMan.cc
  5940. * src/StreamFileAllocationEntry.cc
  5941. * src/TimeBasedCommand.{cc, h}
  5942. * src/TimedHaltCommand.cc
  5943. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5944. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  5945. keyword explicit and SharedHandle's default constructor initializes
  5946. its internal obj to null, old implementation initializes it using
  5947. obj's default constructor.
  5948. To assign null, write SharedHandle<T> x(...); x.reset();
  5949. TODO: test/SharedHandleTest.cc needs more tests.
  5950. * src/SharedHandle.h
  5951. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5952. Fixed type in man page.
  5953. * doc/aria2c.1.txt
  5954. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5955. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  5956. * src/SimpleLogger.{cc, h}
  5957. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5958. Implemented auto protocol detection.
  5959. Now you can do:
  5960. aria2c -Z http://host/file file1.torrent file2.metalink
  5961. (Note: -Z option is required for auto protcol detection.)
  5962. Then aria2c downloads 3 files simultaneously:
  5963. 1. http://host/file
  5964. 2. file1.torrent <-- read local torrent file
  5965. 3. file2.metalink <-- read local Metalink file.
  5966. Same thing goes with -i option. Assume your uris.txt contans:
  5967. http://host/file
  5968. file1.torrent
  5969. file2.metalink
  5970. Then you can do: aria2c -i uris.txt
  5971. (Note: -Z option is not needed if -i option is given.)
  5972. * src/main.cc
  5973. * src/ProtocolDetector.{cc, h}
  5974. * test/ProtocolDetectorTest.cc
  5975. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5976. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  5977. installed
  5978. * src/ARC4Encryptor.h
  5979. * src/ARC4Decryptor.h
  5980. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5981. Renamed argument from 'errno' to 'err', since errno is confused with
  5982. errno defined in errno.h.
  5983. * src/LibgcryptARC4Decryptor.h
  5984. * src/LibgcryptARC4Context.h
  5985. * src/LibgcryptDHKeyExchange.h
  5986. * src/LibgcryptARC4Encryptor.h
  5987. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5988. Rewritten choking algorithm.
  5989. * src/PeerChokeCommand.{cc, h}
  5990. * src/BtInterestedMessage.cc
  5991. * src/PeerSessionResource.{cc, h}
  5992. * src/DefaultPeerStorage.{cc, h}
  5993. * src/BtNotInterestedMessage.cc
  5994. * src/DefaultBtMessageDispatcher.{cc, h}
  5995. * src/BtMessageDispatcher.h
  5996. * src/Peer.{cc, h}
  5997. * src/BtLeecherStateChoke.{cc, h}
  5998. * src/BtSetup.cc
  5999. * src/BtSeederStateChoke.{cc, h}
  6000. * src/PeerStorage.h
  6001. * test/MockPeerStorage.h
  6002. * test/MockBtMessageDispatcher.h
  6003. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6004. Fixed compilation error on x84-64 platform.
  6005. * src/AuthConfig.cc: Included ostream.
  6006. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6007. Rewritten getBasename() and getDirname(), without standard library
  6008. basename(), dirname().
  6009. * src/File.cc
  6010. * test/FileTest.cc
  6011. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6012. Added Simplified Chinese translation. Also updated the following
  6013. translations: Polish, Dutch, German. Great thanks to all translators.
  6014. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6015. Suppress content-range error when 'Content-Range' response header
  6016. doesn't contains bytes-unit specifier 'bytes'
  6017. * src/HttpHeader.cc (getRange)
  6018. * test/HttpHeaderTest.cc
  6019. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6020. Fixed compilation error with g++-4.3
  6021. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6022. Added missing include files for MinGW
  6023. * test/HttpHeaderProcessorTest.cc
  6024. * test/DHTRoutingTableSerializerTest.cc
  6025. * test/DHTRoutingTableDeserializerTest.cc
  6026. * test/UriListParserTest.cc
  6027. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Now download line is printed nicely with no garbage at the end of
  6029. line. I use ioctl to get the columns of terminal.
  6030. If stdout is redirected to another device, instead of carriage return,
  6031. end of line '\n' character is used. This is feature request#1909659
  6032. * src/ConsoleStatCalc.cc (calculateStat)
  6033. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6034. Included a2time.h
  6035. * src/DHTMessageDispatcher.h
  6036. * src/DHTMessageEntry.h
  6037. * src/DHTReplaceNodeTask.h
  6038. * src/DHTMessageTracker.h
  6039. * src/Util.h
  6040. * src/CookieBox.h
  6041. * src/SocketCore.h
  6042. * src/DefaultBtMessageDispatcher.h
  6043. * src/SocketCore.cc
  6044. * src/Util.cc
  6045. * src/DHTPingTask.h
  6046. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6047. Fixed high memory footprint when DHT is enabled.
  6048. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6049. queued than it is processed and the queue is getting longer. As a
  6050. consequence, momory usage is increased.
  6051. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6052. replacement cache in DHTBucket which is described in Kademlia paper.
  6053. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6054. DHTReplaceNodeTask.
  6055. * src/DHTBucket.{h, cc}
  6056. (cacheNode): New function.
  6057. (getCachedNodes): New function.
  6058. (dropNode): Push back cached node to _nodes.
  6059. * test/DHTBucketTest.cc
  6060. (testCacheNode): New test
  6061. (testDropNode): New test
  6062. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6063. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6064. the unused 4KB memory when ssl is not used.
  6065. * src/SocketCore.cc
  6066. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6067. Added summary log for peer announce storage.
  6068. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6069. Removed cast
  6070. * src/DefaultPeerStorage.cc (addPeer)
  6071. Log exception message
  6072. * src/DHTMessageTracker.cc (handleTimeout)
  6073. Fixed casting
  6074. * test/HttpRequestTest.cc
  6075. * test/MetalinkProcessorTest.cc
  6076. * test/PieceTest.cc
  6077. * test/MetalinkEntryTest.cc
  6078. * test/SequenceTest.cc
  6079. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6080. * src/ParameterizedStringParser.cc (createLoop):
  6081. Removed unused variable sstep.
  6082. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6083. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6084. * src/Util.{h, cc}
  6085. (parseUInt): New function.
  6086. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6087. The actual range is uint32_t.
  6088. * test/UtilTest.cc
  6089. * src/ParameterizedStringParser.cc:
  6090. Use Util::parseUInt() for loop variables.
  6091. * test/ParameterizedStringParserTest.cc
  6092. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6093. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6094. Rewritten the functions for binding port.
  6095. * src/DHTConnectionImpl.{h, cc}
  6096. * src/PeerListenCommand.{h, cc}
  6097. * src/DHTSetup.cc
  6098. * src/BtSetup.cc
  6099. * test/DHTConnectionImplTest.cc
  6100. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6101. type cleanup for allmost all remaining files.
  6102. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6103. Type clarification
  6104. * src/PeerSessionResource.{h, cc}
  6105. * src/DefaultPieceStorage.{h, cc}
  6106. * src/Peer.{h, cc}
  6107. * test/PeerSessionResourceTest.cc
  6108. Use div function
  6109. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6110. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6111. Type clarification
  6112. * src/DefaultPeerStorage.{h, cc}
  6113. * test/DefaultPeerStorageTest.cc
  6114. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6115. Type clarification: size_t for length or size, uint64_t for file
  6116. length, off_t for file offset.
  6117. * src/DefaultBtProgressInfoFile.cc
  6118. * src/DefaultBtContext.{h, cc}
  6119. * src/DefaultBtInteractive.cc
  6120. * src/DownloadCommand.{h, cc}
  6121. * src/IteratableChunkChecksumValidator.{h, cc}
  6122. * src/SegmentMan.{h, cc}
  6123. * src/SingleFileDownloadContext.{h, cc}
  6124. * src/IteratableChecksumValidator.{h, cc}
  6125. * src/BtContext.h
  6126. * src/IteratableValidator.h
  6127. * src/DownloadContext.h
  6128. * test/SingleFileDownloadContextTest.cc
  6129. * test/DefaultBtContextTest.cc
  6130. * test/MockBtContext.h
  6131. * test/Metalink2RequestGroupTest.cc
  6132. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6133. Type clarification: size_t for length or size, uint64_t for file
  6134. length, off_t for file offset.
  6135. * src/PiecedSegment.cc
  6136. * src/GrowSegment.h
  6137. * src/DefaultBtRequestFactory.h
  6138. * src/DefaultBtProgressInfoFile.cc
  6139. * src/UnknownLengthPieceStorage.h
  6140. * src/DefaultPieceStorage.cc
  6141. * src/UnknownLengthPieceStorage.cc
  6142. * src/DefaultBtInteractive.cc
  6143. * src/GrowSegment.cc
  6144. * src/BitfieldMan.h
  6145. * src/DownloadCommand.cc
  6146. * src/BtRequestFactory.h
  6147. * src/PiecedSegment.h
  6148. * src/DefaultPieceStorage.h
  6149. * src/Piece.cc
  6150. * src/DefaultBtRequestFactory.cc
  6151. * src/PieceStorage.h
  6152. * src/Segment.h
  6153. * src/Piece.h
  6154. * src/BitfieldMan.cc
  6155. * src/Util.cc
  6156. * test/DefaultBtProgressInfoFileTest.cc
  6157. * test/DefaultPieceStorageTest.cc
  6158. * test/MockPieceStorage.h
  6159. * test/BtRequestMessageTest.cc
  6160. * test/DefaultBtMessageDispatcherTest.cc
  6161. * test/BitfieldManTest.cc
  6162. * test/GrowSegmentTest.cc
  6163. * test/PieceTest.cc
  6164. * test/SegmentTest.cc
  6165. * test/SegmentManTest.cc
  6166. * test/DefaultBtRequestFactoryTest.cc
  6167. * test/MockBtRequestFactory.h
  6168. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6169. Fixed compilation error with --disable-nls
  6170. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6171. in gettext.h causes the problem.
  6172. * src/common.h
  6173. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Removed subPiece related functions.
  6175. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6176. * src/DefaultPieceStorage.{h, cc}
  6177. * test/PieceTest.cc
  6178. * test/DefaultPieceStorageTest.cc
  6179. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6180. Use unsigned char for data store.
  6181. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6182. Bump up version number to 0.13.0+1
  6183. * configure.ac
  6184. * Release 0.13.0+1
  6185. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. Changed inactive connection timeout to 120.
  6187. To accept more mulually interested peers, disconnect peer when there
  6188. is no interest between us after certain time passed.
  6189. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6190. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6191. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6192. when compiled with async DNS support.
  6193. * src/DownloadEngine.cc
  6194. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6195. value '10' will be a little bit short when some DNS servers are
  6196. offline and several DNS servers are tried. It should be configured
  6197. by command-line option.
  6198. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6199. Merged Ross's mingw patch.
  6200. * src/DHTRoutingTableDeserializer.cc
  6201. * src/DHTRoutingTableSerializer.cc
  6202. * src/Platform.{h, cc}
  6203. * src/timegm.h
  6204. * src/gettimeofday.h
  6205. * src/getaddrinfo.h
  6206. * src/SocketCore.h
  6207. * src/common.h
  6208. * src/inet_aton.h
  6209. * src/DownloadEngine.h
  6210. * src/gai_strerror.h
  6211. * src/a2netcompat.h
  6212. * configure.ac
  6213. * configure
  6214. * aclocal.m4
  6215. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6216. Included missing iostream.
  6217. * test/AllTest.cc
  6218. * test/BtDependencyTest.cc
  6219. * test/BtExtendedMessageTest.cc
  6220. * test/DHTConnectionImplTest.cc
  6221. * test/DHTMessageFactoryImplTest.cc
  6222. * test/DHTMessageTrackerEntryTest.cc
  6223. * test/DHTNodeTest.cc
  6224. * test/DHTRoutingTableSerializerTest.cc
  6225. * test/DefaultBtAnnounceTest.cc
  6226. * test/DefaultBtContextTest.cc
  6227. * test/DefaultBtMessageFactoryTest.cc
  6228. * test/DefaultExtensionMessageFactoryTest.cc
  6229. * test/HandshakeExtensionMessageTest.cc
  6230. * test/HttpResponseTest.cc
  6231. * test/MetalinkProcessorTest.cc
  6232. * test/MultiFileAllocationIteratorTest.cc
  6233. * test/SocketCoreTest.cc
  6234. * test/UTPexExtensionMessageTest.cc
  6235. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6236. Reorganized includes.
  6237. * src/NameResolver.cc
  6238. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6239. Fixed compilation error without ares/c-ares
  6240. * src/NameResolver.h:
  6241. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6242. Added a test for large file.
  6243. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6244. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Fixed the bug that file size is ignored if size > INT32_MAX
  6246. * src/SizeMetalinkParserState.cc (endElement):
  6247. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6248. Bump up version number to 0.13.0
  6249. * configure.ac
  6250. * Release 0.13.0
  6251. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6252. Updated Makfefile.am to make 'make dist' work.
  6253. Now packaged filename is aria2c-VERSION.tar.bz2.
  6254. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6255. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6256. Large file support is now configured by configure script.
  6257. * configure.ac
  6258. Removed unsused source files
  6259. * src/
  6260. * test/
  6261. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6262. Peer.h and BtContext.h respectively.
  6263. * src/Peer.h
  6264. * src/BtContext.h
  6265. Updated translations.
  6266. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6267. translations. Great thanks to all translators!;)
  6268. * po/*.{po, gmo}
  6269. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6270. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6271. statically declared sha1 MessageDigestContext.
  6272. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6273. initialization of short-lived MessageDigestContext.
  6274. * src/MessageDigestHelper.{h, cc}
  6275. * src/main.cc
  6276. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6277. the initialization of MessageDigestContext every time in validating
  6278. chunk checksum.
  6279. * src/DownloadCommand.{h, cc}
  6280. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6281. Add a file descriptor which connected to fast peer(latency<1500) to
  6282. select(). This change reduced CPU load.
  6283. * src/PeerInteractionCommand.cc
  6284. * src/DefaultBtInteractive.{h, cc}
  6285. * src/BtInteractive.h
  6286. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6287. Fixed the previous insufficient fix for possible busy loop.
  6288. * src/MSEHandshake.cc (identifyHandshakeType)
  6289. Removed unused functions.
  6290. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6291. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6292. Fixed possible busy loop if first 20 bytes are not received for a few
  6293. minutes.
  6294. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6295. * src/ReceiverMSEHandshakeCommand.cc
  6296. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Fixed compilation error
  6298. * src/ExpatMetalinkProcessor.cc
  6299. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6300. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6301. * src/DHTBucket.cc
  6302. Removed unnecessary cast.
  6303. * src/HandshakeExtensionMessage.cc
  6304. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6305. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6306. is missing.
  6307. * src/OptionHandlerFactory.cc
  6308. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Fixed the bug that HAVE message is not sent for a piece they are
  6310. downloaded fom http/ftp server before any BitTorrent handshake is done
  6311. with peers.
  6312. * src/DefaultBtInteractive.cc
  6313. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6314. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6315. * src/Makefile.am
  6316. * src/Makefile.in
  6317. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6318. Updated README. Added html version of README and man page.
  6319. * README
  6320. * README.html
  6321. * readme2html: Shell script to generate README.html from README using
  6322. asciidoc.
  6323. * doc/aria2c.1.html
  6324. * doc/makeman: Added the line to generate aria2c.1.html
  6325. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6326. Fixed offset calculation.
  6327. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6328. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6329. Rewritten itos and uitos using template. llitos and ullitos are
  6330. replaced with itos and uitos respectively.
  6331. * src/Util.{h, cc}
  6332. * test/UtilTest.cc
  6333. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6334. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6335. of the number of bytes required for storing public key and shared
  6336. secret.
  6337. * src/LibgcryptDHKeyExchange.h
  6338. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6339. * src/MSEHandshake.cc
  6340. * test/DHKeyExchangeTest.cc
  6341. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6342. Removed since they are not used.
  6343. * src/Xml2MetalinkProcessor.{h, cc}
  6344. * src/Socket.cc
  6345. * src/SegmentSplitter.{h, cc}
  6346. * test/Xml2MetalinkProcessorTest.cc
  6347. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6348. Fixed the bug that prevents aria2 from stopping other than by pressing
  6349. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6350. option. aria2 doesn't stop even after --seed-time is satisfied and
  6351. continues to output blank lines in the console.
  6352. * src/ReceiverMSEHandshakeCommand.cc
  6353. * src/PeerReceiveHandshakeCommand.cc
  6354. * src/PeerListenCommand.cc
  6355. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6356. Bump up version number to 0.13.0rc
  6357. * configure.ac
  6358. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6359. Updated man page and some usage text.
  6360. * doc/aria2c.1.txt
  6361. * src/usage_text.h
  6362. * po/*.{po, gmo}
  6363. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6364. Updated translations. Added Finnish and Hebrew translations.
  6365. Great thanks to all translators!
  6366. * po/*.{po, gmo}
  6367. * po/LINGUAS
  6368. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6369. Log more detailed information about each message.
  6370. * src/DHTQueryMessage.{h, cc}
  6371. * src/DHTGetPeersMessage.{h, cc}
  6372. * src/DHTFindNodeReplyMessage.{h, cc}
  6373. * src/DHTGetPeersReplyMessage.{h, cc}
  6374. * src/DHTAnnouncePeerMessage.{h, cc}
  6375. * src/DHTResponseMessage.{h, cc}
  6376. * src/DHTFindNodeMessage.{h, cc}
  6377. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Use constants defined in prefs.h
  6379. * src/option_processing.cc
  6380. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6381. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6382. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6383. Make room for future enchancements for IPv6 addresses.
  6384. Bump up version number of dht.dat file format to 2.
  6385. Not compatible with previous version.
  6386. * src/DHTRoutingTableSerializer.cc
  6387. * src/DHTRoutingTableDeserializer.cc
  6388. * test/DHTRoutingTableSerializerTest.cc
  6389. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6390. Added handling for the return values from
  6391. PeerMessageUtil::createcompact().
  6392. * src/DefaultBtContext.cc (computeFastSet):
  6393. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6394. Fixed abort when peer's ip address is IPv4-mapped address.
  6395. * src/DefaultBtContext.cc (computeFastSet)
  6396. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6397. cannot handle IPv4-mapped addresses.
  6398. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6399. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6400. Proper return value handling for OpenSSL functions.
  6401. * src/LibsslDHKeyExchange.h
  6402. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6403. Random bytes generation using libgcrypt and OpenSSL.
  6404. * src/DHTUtil.{h, cc}
  6405. * test/DHTUtilTest.cc
  6406. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6407. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6408. received.
  6409. * src/DHTMessageReceiver.cc (receiveMessage)
  6410. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6411. Fixed the bug that a return code is always 0. BUG#1897704
  6412. If error occurred during the download or there exist unfinished
  6413. downloads, aria2 returns with code 1.
  6414. * src/RequestGroupMan.{h, cc}
  6415. * src/MultiUrlRequestInfo.{h, cc}
  6416. * src/main.cc
  6417. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6418. IPv6 support for SocketCore class.
  6419. TODO: In SocketCore::establishConnection(), this is insufficient to
  6420. determin the failure of connect() here because the socket is
  6421. non-blocking state. The next addresses should be tried after select().
  6422. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6423. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6424. instead which address family independent.
  6425. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6426. information in a compact peer format which is for IPv4 only.
  6427. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6428. this is a spec of BitTorrent protocol.
  6429. * src/SocketCore.{h, cc}
  6430. * src/PeerMessageUtil.cc
  6431. * test/SocketCoreTest.cc
  6432. * test/PeerMessageUtilTest.cc
  6433. * test/DHTConnectionImplTest.cc
  6434. Handle IPv4-mapped addresses.
  6435. * src/DHTNode.cc: Now identity is determined by node id.
  6436. * src/DHTMessageTrackerEntry.cc
  6437. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6438. should handle it.
  6439. * src/DHTRoutingTableDeserializer.cc
  6440. * src/DHTMessageFactoryImpl.cc
  6441. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6442. Change the unit of --stop option from a minute to a second.
  6443. * src/usage_text.h
  6444. * src/DownloadEngineFactory.cc
  6445. * src/OptionHandlerFactory.cc
  6446. * src/message.h
  6447. * src/TimedHaltCommand.cc
  6448. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6449. Make listening socket non-block mode.
  6450. * src/FtpConnection.cc
  6451. * src/FtpNegotiationCommand.{h, cc}
  6452. * src/PeerListenCommand.cc
  6453. Fixed the bug that cause slow ftp negotiation.
  6454. * src/FtpNegotiationCommand.{h, cc}
  6455. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6456. Added basic tag to --enable-dht, --dht-listen-port option.
  6457. * src/HelpItemFactory.cc (createHelpItems)
  6458. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6459. Updated text.
  6460. * src/usage_text.h
  6461. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6462. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6463. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6464. Determin _threadtholdSpeed in each constructor for
  6465. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6466. * src/ActivePeerConnectionCommand.{h, cc}
  6467. * src/PeerReceiveHandshakeCommand.{h, cc}
  6468. * src/BtSetup.cc
  6469. * src/BtConstants.h
  6470. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6471. Added --bt-min-crypto-level and --bt-require-crypto options.
  6472. * src/OptionHandlerFactory.cc
  6473. * src/MSEHandshake.cc
  6474. * src/HelpItemFactory.cc
  6475. * src/option_processing.cc
  6476. * src/ReceiverMSEHandshakeCommand.cc
  6477. * src/prefs.h
  6478. * src/DefaultBtAnnounce.cc
  6479. * src/InitiatorMSEHandshakeCommand.cc
  6480. * src/usage_text.h
  6481. * test/MSEHandshakeTest.cc
  6482. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6483. Bump version number to 0.13.0b
  6484. * configure.ac
  6485. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6486. Updated doc.
  6487. * src/MessageDigestHelper.h:
  6488. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6489. Use raw message digest as a token instead of its hexadecimal
  6490. representation.
  6491. * src/DHTTokenTracker.cc (generateToken)
  6492. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6493. Added Message Stream Encryption(MSE) support.
  6494. Currently, aria2 accepts incoming connections with Obfuscation Header
  6495. and legacy BitTorrent Header and establishes connections with
  6496. Obfuscation Header first and if failed then retry with legacy
  6497. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6498. choose ARC4. The new option to change the default behavior is planned.
  6499. For tracker extension, "supportcrypto=1" is added statically.
  6500. * src/PeerInitiateConnectionCommand.{h, cc}
  6501. * src/PeerConnection.{h, cc}
  6502. * src/HandleRegistry.h
  6503. * src/SocketCore.h
  6504. * src/PeerReceiveHandshakeCommand.{h, cc}
  6505. * src/BtRegistry.{h, cc}
  6506. * src/PeerListenCommand.cc
  6507. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6508. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6509. * src/MSEHandshake.{h, cc}
  6510. * src/ARC4Encryptor.h
  6511. * src/ARC4Decryptor.h
  6512. * src/LibgcryptARC4Encryptor.h
  6513. * src/LibgcryptARC4Decryptor.h
  6514. * src/LibgcryptARC4Context.h
  6515. * src/LibsslARC4Encryptor.h
  6516. * src/LibsslARC4Decryptor.h
  6517. * src/LibsslARC4Context.h
  6518. * src/DHKeyExchange.h
  6519. * src/LibgcryptDHKeyExchange.h
  6520. * src/LibsslDHKeyExchange.h
  6521. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6522. * test/DefaultBtAnnounceTest.cc
  6523. * test/ARC4Test.cc
  6524. * test/DHKeyExchangeTest.cc
  6525. Removed prepareForRetry() because it is not used.
  6526. * src/PeerAbstractCommand.{h, cc}
  6527. * src/PeerInteractionCommand.{h, cc}
  6528. * src/PeerInitiateConnectionCommand.{h, cc}
  6529. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6530. Added the ability to load nodes from torrent file. These nodes are
  6531. added to the routing table when downloading that torrent.
  6532. * src/BtContext.h
  6533. * src/DefaultBtContext.{h, cc}
  6534. * src/DHTSetup.cc
  6535. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6536. hostname and port pair, and resolves all of them.
  6537. * src/NameResolver.{h, cc}: Added reset().
  6538. * src/RequestGroup.cc
  6539. * test/DefaultBtContextTest.cc
  6540. * test/MockBtContext.h
  6541. Removed assert() from DefaultBtContext and throw exception instead.
  6542. * src/DefaultBtContext.cc
  6543. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6544. Fixed segmentation fault bug when exiting if dht is disabled.
  6545. * src/RequestGroup.cc
  6546. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6547. Fixed typo in log message and define the message in message.h
  6548. * src/TimedHaltCommand.cc
  6549. * src/message.h
  6550. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6551. Included RecoverableException.h to fix compilation error.
  6552. * test/DHTMessageFactoryImplTest.cc
  6553. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6555. * test/DHTPingMessageTest.cc
  6556. * test/DHTGetPeersMessageTest.cc
  6557. * test/DHTFindNodeMessageTest.cc
  6558. * test/DHTAnnouncePeerMessageTest.cc
  6559. * test/MockDHTMessage.h
  6560. * test/MockDHTMessageFactory.h
  6561. * test/MockDHTMessageDispatcher.h: New class.
  6562. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6563. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6564. virtual.
  6565. * src/DHTMessageDispatcher.h
  6566. * src/DHTMessageDispatcherImpl.{h, cc}
  6567. * src/DHTSetup.cc
  6568. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6569. Adding handling of DHT error message. Just log error message and
  6570. throw exception.
  6571. * src/DHTMessageFactoryImpl.cc
  6572. * test/DHTMessageFactoryImplTest.cc
  6573. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6574. Added handling of dynamic cast failure.
  6575. * src/DHTNodeLookupTask.cc
  6576. * src/DHTPeerLookupTask.cc
  6577. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6578. Added the ability to stop aria2 itself when given time has passed
  6579. from start. Use --stop option to specify time in minutes.
  6580. When 0 is given, this feature is disabled.
  6581. * src/OptionHandlerFactory.cc
  6582. * src/TimeBasedCommand.h: Make _interval protected scope.
  6583. * src/HelpItemFactory.cc
  6584. * src/option_processing.cc
  6585. * src/prefs.h
  6586. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6587. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6588. Without this modification, the result list shows "ERR" when aria2 is
  6589. stopped by --stop option. It should be "INPR".
  6590. * src/DownloadEngine.{h, cc}
  6591. * src/DownloadEngineFactory.cc
  6592. * src/usage_text.h
  6593. * src/TimedHaltCommand.{h, cc}: New class.
  6594. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6595. Bootstrap through node added by port message.
  6596. Currently bootstrap is executed if the number of buckets in routing
  6597. table is 1.
  6598. * src/BtPortMessage.{h, cc}
  6599. * src/DefaultBtMessageFactory.{h, cc}
  6600. * src/PeerInteractionCommand.cc
  6601. * test/BtPortMessageTest.cc
  6602. * test/MockDHTTask.h
  6603. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6604. Extract the Peer class's member variables, which are only needed after
  6605. PeerInteractionCommand, into PeerSessionResource class.
  6606. This class is instantiated in PeerInteractionCommand class's ctor and
  6607. released in its dtor.
  6608. This will make Peer class lightweight and uses less memory for peers
  6609. which are not connected and wait in the queue.
  6610. * src/PeerChokeCommand.cc
  6611. * src/PeerSessionResource.{h, cc}
  6612. * src/PeerInteractionCommand.cc
  6613. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6614. * src/DefaultBtInteractive.cc
  6615. * src/BtPieceMessage.cc
  6616. * src/BtInterestedMessage.cc
  6617. * src/BtUnchokeMessage.cc
  6618. * src/DefaultPeerStorage.{h, cc}
  6619. * src/PeerInitiateConnectionCommand.cc
  6620. * src/ActivePeerConnectionCommand.cc
  6621. * src/BtNotInterestedMessage.cc
  6622. * src/DefaultBtMessageDispatcher.cc
  6623. * src/BtChokeMessage.cc
  6624. * src/BtRequestMessage.cc
  6625. * src/Peer.{h, cc}
  6626. * src/BtRegistry.h
  6627. * src/TrackerWatcherCommand.cc
  6628. * src/PeerReceiveHandshakeCommand.cc
  6629. * test/BtExtendedMessageTest.cc
  6630. * test/BtAllowedFastMessageTest.cc
  6631. * test/BtCancelMessageTest.cc
  6632. * test/DefaultPieceStorageTest.cc
  6633. * test/BtBitfieldMessageTest.cc
  6634. * test/BtHaveMessageTest.cc
  6635. * test/BtNotInterestedMessageTest.cc
  6636. * test/BtRequestMessageTest.cc
  6637. * test/PeerSessionResourceTest.cc
  6638. * test/DefaultBtMessageDispatcherTest.cc
  6639. * test/PeerTest.cc
  6640. * test/BtInterestedMessageTest.cc
  6641. * test/BtRejectMessageTest.cc
  6642. * test/BtChokeMessageTest.cc
  6643. * test/DefaultPeerStorageTest.cc
  6644. * test/BtHaveNoneMessageTest.cc
  6645. * test/BtHaveAllMessageTest.cc
  6646. * test/DefaultExtensionMessageFactoryTest.cc
  6647. * test/BtUnchokeMessageTest.cc
  6648. * test/DefaultBtMessageFactoryTest.cc
  6649. * test/HandshakeExtensionMessageTest.cc
  6650. * test/UTPexExtensionMessageTest.cc
  6651. * test/DefaultBtRequestFactoryTest.cc
  6652. * test/BtPieceMessageTest.cc
  6653. Removed typedef PeerStats.
  6654. * src/PeerStat.h
  6655. * src/SegmentMan.cc
  6656. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Added std namespace to copy, remove_copy, back_inserter,
  6658. front_inserter.
  6659. * src/RequestGroupMan.cc
  6660. * src/DefaultPieceStorage.cc
  6661. * src/StreamFileAllocationEntry.cc
  6662. * src/BtFileAllocationEntry.cc
  6663. * src/RequestGroup.cc
  6664. * src/MetalinkEntry.cc
  6665. * src/DelegatingPeerListProcessor.cc
  6666. * src/DefaultBtRequestFactory.cc
  6667. * src/DefaultBtMessageDispatcher.cc
  6668. * src/version_usage.cc: Included <algorithm>
  6669. * src/main.cc
  6670. * src/MetalinkParserController.cc
  6671. * src/DefaultBtContext.cc
  6672. * src/DownloadEngineFactory.cc
  6673. * src/a2algo.h
  6674. Removed.
  6675. * test/StreamUriListParserTest.cc
  6676. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6677. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6678. ActivePeerConnectionCommand when it is given and
  6679. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6680. * src/ActivePeerConnectionCommand.{h, cc}
  6681. * src/BtSetup.cc
  6682. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6683. Only add socket to DownloadEngine's select routine when peer or
  6684. localhost is unchoked and interested. This lowers CPU usage a
  6685. little bit.
  6686. * src/PeerInteractionCommand.cc
  6687. * src/PeerAbstractCommand.{h, cc}
  6688. * src/BtInteractive.h
  6689. * src/DefaultBtInteractive.{h, cc}
  6690. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6691. Revert previous change because get_peers message is needed for
  6692. announce_peer anyway.
  6693. * src/DHTGetPeersCommand.cc
  6694. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6695. Request peers thought DHT only when download hasn't finished.
  6696. * src/DHTGetPeersCommand.cc
  6697. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6698. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6699. * src/DHTBucketRefreshTask.{h, cc}
  6700. * src/DHTSetup.cc
  6701. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6702. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6703. standard classes.
  6704. Included string.h where mem* function are used.
  6705. Added namespace aria2.
  6706. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6707. Create directory before saving DHT routing table.
  6708. Now ios::failure is now handled properly.
  6709. * src/DHTAutoSaveCommand.cc
  6710. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6711. Removed unnecessary cerr.
  6712. * src/DownloadEngine.cc
  6713. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6714. Catch exception inside DHTMessageReceiver::receiveMessage().
  6715. Log unknown message.
  6716. * src/DHTMessageReceiver.{h, cc}
  6717. * src/DHTMessageFactory.h
  6718. * src/DHTMessageFactoryImpl.{h, cc}
  6719. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6720. * src/DHTInteractionCommand.cc
  6721. * src/DHTUnknownMessage.{h, cc}
  6722. * test/DHTUnknownMessageTest.cc
  6723. * test/MockDHTMessageFactory.h
  6724. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6725. Commented out ip address comparison because a host can have multiple
  6726. ip addresses and it is hard to predict the hostname is resolved into
  6727. which one.
  6728. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6729. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6730. * po/Makefile.in: Removed since this is generated by configure.
  6731. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6732. Fixed compiler warning about redefinition of SIZE_MAX.
  6733. Use common.h instead of config.h directly here.
  6734. * src/Platform.{h, cc}
  6735. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6736. here.
  6737. * common.h
  6738. 2008-02-02 gettextize <[email protected]>
  6739. Updated gettext related files.
  6740. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6741. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6742. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6743. Added DHT functionality, compatible with mainline.
  6744. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6745. You may need to specify entry point to DHT network using
  6746. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6747. Use --dht-listen-port to specify port number. Make sure that your
  6748. firewall configuration can pass through UDP traffic to the port.
  6749. The routing table is saved in $HOME/.aria2/dht.dat.
  6750. * src/DHT*
  6751. * src/BNode.{h, cc}
  6752. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6753. particular torrent.
  6754. * src/Data.cc: Rewritten ctor.
  6755. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6756. --dht-entry-point.
  6757. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6758. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6759. ends, remove BtContext from DHTPeerAnnounceStorage.
  6760. * src/BtPortMessage.{h, cc}: Rewritten.
  6761. * src/message.h
  6762. * src/OptionHandlerImpl.cc
  6763. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6764. --dht-entry-point.
  6765. * src/Dictionary.{h, cc} (remove): New function.
  6766. * src/prefs.h
  6767. * src/DefaultBtMessageFactory.h
  6768. * src/BtHandshakeMessage.cc
  6769. * src/ActivePeerConnectionCommand.cc
  6770. * src/SocketCore.{h, cc}: Added datagram socket support.
  6771. * src/DefaultBtMessageFactory.cc
  6772. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6773. Create DHT commands.
  6774. * src/BtMessageFactory.h
  6775. * src/PeerMessageUtil.{h, cc}
  6776. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6777. Fixed the bug that log file is not written when configuration file doesn't exist.
  6778. This is caused by using Logger class before LogFactory is not configured.
  6779. BUG #1875079
  6780. * src/option_processing.cc
  6781. Warning message "configuration doesn't exist" is only printed when --conf is
  6782. given.
  6783. * src/option_processing.cc
  6784. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6785. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6786. ShaVisitor is now deprecated and slated to be removed.
  6787. * src/DefaultBtContext.cc
  6788. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6789. Externalize message to message.h
  6790. * src/Platform.cc
  6791. * src/message.h
  6792. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Set default domain and default path to cookie.
  6794. * src/HttpResponse.cc
  6795. * src/CookieBox.{h, cc}
  6796. * src/CookieParser.{h, cc}
  6797. * test/CookieParserTest.cc
  6798. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6799. Added --no-conf and --conf-path command-line option.
  6800. --no-conf option disables loading aria2.conf file.
  6801. --conf-path option changes the configuration file path. The default
  6802. file path is $HOME/.aria2/aria2.conf
  6803. Added a warning message when the configuration file is not found.
  6804. * src/HelpItemFactory.cc
  6805. * src/option_processing.cc
  6806. * src/prefs.h
  6807. * src/usage_text.h
  6808. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6809. Added the message to inform users that other help categories are
  6810. available in -h option.
  6811. * src/version_usage.cc
  6812. * src/TagContainer.{h, cc}
  6813. * test/TagContainerTest.cc
  6814. * src/TaggedItem.{h, cc}
  6815. * test/TaggedItemTest.cc
  6816. * src/HelpItem.h
  6817. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6818. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  6819. from PiecedSegment's ctor.
  6820. Previously Piece::getAllMissingBlockIndexes() is called from
  6821. PiecedSegment() but it is rather expensive since only first element is
  6822. used.
  6823. * src/PiecedSegment.cc
  6824. * src/Piece.{h, cc}
  6825. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6826. Rewritten get*Missing*Index functions. Now no need to allocate memory
  6827. each time these functions are called.
  6828. * src/BitfieldMan.{h, cc}
  6829. * test/BitfieldManTest.cc
  6830. * src/array_fun.h
  6831. * test/array_funTest.cc
  6832. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  6833. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  6834. filtered. Removed unnecessary cast to int32_t.
  6835. * src/BitfieldMan.{h, cc}
  6836. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6837. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  6838. payload length(4bytes) are received. This happens because lenbufLength
  6839. is not updated in this particular case and successive call of
  6840. receiveMessage() overwrites payload length with bytes recieved which
  6841. are payload body.
  6842. * src/PeerConnection.{h, cc}
  6843. * src/message.h
  6844. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6845. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  6846. peer if there are peers that have same ipaddr and port.
  6847. I've experiened segmentation fault and "pure virtual function was
  6848. called" error.
  6849. * src/Peer.h
  6850. * test/PeerTest.cc
  6851. * src/DefaultPeerStorage.cc
  6852. * test/DefaultPeerStorageTest.cc
  6853. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6854. Removed a call to isPowerOf() because it is no longer necessary here
  6855. and a request block is not always power of 2.
  6856. BUG#1866924
  6857. * src/PeerMessageUtil.cc (checkLength)
  6858. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6859. Fixed the bug that always first found Segment is removed from
  6860. usedSegmentEntries. Removed unused functions.
  6861. * src/SegmentMan.{h, cc}
  6862. * test/SegmentManTest.cc
  6863. Fixed the bug that ServerHost is not removed.
  6864. * src/RequestGroup.cc
  6865. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6866. Fixed the bug that SegmentMan::completeSegment() is not called
  6867. even if Segment is complete when --lowest-speed-limit is enabled.
  6868. BUG#1864525
  6869. * src/DownloadCommand.{h, cc}
  6870. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6871. Fixed: hash algorithm 'sha1' is always used.
  6872. * src/DownloadCommand.cc (validatePieceHash)
  6873. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6874. Added --enable-peer-exchange command-line option.
  6875. * src/OptionHandlerFactory.cc
  6876. * src/HelpItemFactory.cc
  6877. * src/option_processing.cc
  6878. * src/usage_text.h
  6879. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6880. Move extension from BtRuntime to ExtensionMessageFactory, because
  6881. extension can be specified per peer, not per torrent.
  6882. * src/DefaultBtInteractive.cc
  6883. * src/BtRuntime.h
  6884. * src/ExtendedMessagingAware.h
  6885. * src/ExtensionMessageFactory.h
  6886. * src/DefaultExtensionMessageFactory.cc
  6887. * test/DefaultExtensionMessageFactoryTest.cc
  6888. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. Added categorized option help. Specify category using --help option.
  6890. Also added the ability to search options in forward match.
  6891. * src/HelpItem.{h, cc}
  6892. * test/HelpItemTest.cc
  6893. * src/HelpItemFactory.{h, cc}
  6894. * src/TagContainer.{h, cc}
  6895. * test/TagContainerTest.cc
  6896. * src/option_processing.cc
  6897. * src/prefs.h
  6898. * src/TaggedItem.{h, cc}
  6899. * test/TaggedItemTest.cc
  6900. * src/version_usage.cc
  6901. * src/help_tags.h
  6902. * src/usage_text.h
  6903. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6904. Fixed segmentation fault when bad torrent metainfo is parsed.
  6905. Added dynamic_cast properly to detect the misconfiguration of metainfo
  6906. and then throw exception or skip it.
  6907. * src/DefaultBtContext.{h, cc}
  6908. * test/DefaultBtContextTest.cc
  6909. * src/AnnounceList.cc
  6910. * src/CompactPeerListProcessor.cc
  6911. * src/message.h
  6912. * src/DefaultBtAnnounce.{h, cc}
  6913. * test/DefaultBtAnnounceTest.cc
  6914. * src/BencodeVisitor.cc
  6915. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6916. Added missing "B"(=Byte). So now the message looks like this:
  6917. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  6918. * src/message.h (MSG_SHARE_RATIO_REPORT)
  6919. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6920. Show the seed ratio after torrent downloads.
  6921. For example, after torrent download completed and --seed-time and
  6922. --seed-ratio conditions are fulfilled, following message is printed
  6923. right after "Download complete: .....":
  6924. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  6925. * src/RequestGroupMan.cc
  6926. * src/RequestGroup.{h, cc}
  6927. * src/message.h
  6928. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6929. Remove a defunct control file. A defunct control file means that while
  6930. it exists, but the corresponding download file is missing.
  6931. After its removal, a download restarts from the beginning.
  6932. * src/RequestGroup.cc
  6933. * src/message.h
  6934. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6935. Allocate bitfield in Peer when it is really used. More specifically,
  6936. bitfield in Peer is allocated after the connection is established and
  6937. deallocated when the connection is dropped.
  6938. Since 2 parameters(piece length and total length) was removed from the
  6939. constructor of Peer class, many test classes were modified accordingly.
  6940. See svn log for more detailed information.
  6941. * src/PeerInteractionCommand.cc
  6942. * src/CompactPeerListProcessor.cc
  6943. * src/Peer.cc
  6944. * src/DefaultPeerListProcessor.cc
  6945. * src/PeerListenCommand.cc
  6946. * src/PeerReceiveHandshakeCommand.cc
  6947. Fixed memory leak
  6948. * src/Piece.cc
  6949. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6950. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  6951. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  6952. command-line options.
  6953. * src/option_processing.cc
  6954. * src/ActivePeerConnectionCommand.cc
  6955. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6956. Send have message to peer if it already has the piece.
  6957. * src/BtHaveMessage.{h, cc}
  6958. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6959. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  6960. port.
  6961. * src/DefaultPeerStorage.{h, cc}
  6962. * test/DefaultPeerStorageTest.cc
  6963. * src/HandshakeExtensionMessage.cc
  6964. * test/HandshakeExtensionMessageTest.cc
  6965. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  6966. * src/PeerStorage.h
  6967. * test/MockPeerStorage.h
  6968. * src/PeerListenCommand.cc
  6969. * src/PeerReceiveHandshakeCommand.cc
  6970. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6971. Added --metalink-enable-unique-protocol option.
  6972. * src/Metalink2RequestGroup.cc
  6973. * src/option_processing.cc
  6974. * src/prefs.h
  6975. * src/version_usage.cc
  6976. * doc/aria2c.1.txt
  6977. * doc/aria2c.1
  6978. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6979. Allow a peer in incomingPeer to be added peers.
  6980. * src/DefaultPeerStorage.cc
  6981. * test/DefaultPeerStorageTest.cc
  6982. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  6984. I could reproduce this bug in following procedure:
  6985. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  6986. 2. Restart aria2.
  6987. 3. You see the download stopped around 99%.
  6988. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6989. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  6990. If timeout is reached, then _nextCommand is unused and it may contains
  6991. segments and they won't be canceled. Actually, timeout is not needed
  6992. here because if the server dropped connection, then retry is made.
  6993. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6994. Added uTorrent compatible Peer Exchange.
  6995. * src/BencodeVisitor.{h, cc}
  6996. * test/BencodeVisitorTest.cc
  6997. * src/BtConstants.h
  6998. * src/BtContext.h: Added 'private' flag.
  6999. * src/BtExtendedMessage.{h, cc}
  7000. * test/BtExtendedMessageTest.cc
  7001. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7002. reserved field.
  7003. * test/BtHandshakeMessageTest.cc
  7004. * src/BtMessageFactory.h
  7005. * src/BtRegistry.h
  7006. * src/BtRuntime.h: This class holds default extension message IDs for
  7007. aria2. By default, aria2 uses ID 8 for ut_pex.
  7008. * src/DefaultBtContext.cc
  7009. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7010. When it is true, aria2 enables ut_pex. This value is set by
  7011. PeerInteractionCommand.
  7012. * src/DefaultBtMessageFactory.{h, cc}
  7013. * test/DefaultBtMessageFactoryTest.cc
  7014. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7015. handling to DefaultBtInteractive class.
  7016. * src/DefaultExtensionMessageFactory.{h, cc}
  7017. * test/DefaultExtensionMessageFactoryTest.cc
  7018. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7019. the container(peers and incomingPeers. The equality is determined by
  7020. Peer::id).
  7021. * test/DefaultPeerStorageTest.cc
  7022. * src/ExtensionMessage.h
  7023. * test/MockExtensionMessage.h
  7024. * src/ExtensionMessageFactory.h
  7025. * test/MockExtensionMessageFactory.h
  7026. * src/HandshakeExtensionMessage.{h, cc}
  7027. * test/HandshakeExtensionMessageTest.cc
  7028. * src/MetaEntry.h
  7029. * src/Peer.{h, cc}
  7030. * src/PeerInteractionCommand.cc
  7031. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7032. addIncomingPeer.
  7033. * src/PeerMessageUtil.{h, cc}
  7034. * src/PeerObject.h
  7035. * src/UTPexExtensionMessage.{h, cc}
  7036. * test/UTPexExtensionMessageTest.cc
  7037. * src/message.h
  7038. * src/prefs.h
  7039. Fixed the bug that returns incomplete data when it contains null
  7040. character. A convenient constructor was also added.
  7041. * src/Data.{h, cc}
  7042. Rewritten.
  7043. * src/CompactPeerListProcessor.cc
  7044. Fixed typos.
  7045. * src/message.h
  7046. * src/MetaFileUtil.cc
  7047. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7048. Added "Status Legend" label to the explanation text of 'stat' in
  7049. download result and moved it to the last. BUG#1848214
  7050. * src/RequestGroupMan.cc
  7051. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7052. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7053. * src/Makefie.am
  7054. * test/Makefile.am
  7055. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7056. Fixed the bug that prevents aria2 from loading cookie file when expire
  7057. value is greater than 2^31-1. BUG#1851066
  7058. * src/CookieBoxFactory.cc
  7059. * test/CookieBoxFactoryTest.cc
  7060. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7061. Fixed possible memory leak when an exception is thrown.
  7062. * src/XML2SAXMetalinkProcessor.cc
  7063. Added Expat support. If both libxml2 and Expat are installed, then
  7064. libxml2 is used by default.
  7065. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7066. ExpatMetalinkProcessor according to the configuration.
  7067. * src/ExpatMetalinkProcessor.{h, cc}
  7068. * src/main.cc: Removed libxml2 specific header and init/free function.
  7069. * src/MetalinkProcessorFactory.{h, cc}
  7070. * src/MetalinkHelper.cc
  7071. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7072. * src/MetalinkProcessor.h
  7073. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7074. MetalinkProcessorTest is used instead.
  7075. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7076. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7077. MetalinkProcessorFactory::newInstance().
  7078. * m4/libexpat.m4
  7079. * configure.ac: Added configuration options for libexpat.
  7080. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7081. Disabled -s option in metalink download.
  7082. * src/Metalink2RequestGroup.cc
  7083. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7084. If several protocols are available for a mirror in metalink file,
  7085. aria2 now use one of them. --metalink-preferred-protocol option was
  7086. added to specify the preference of protocol.
  7087. * src/AbstractCommand.cc
  7088. * src/OptionHandlerFactory.cc
  7089. * src/ServerHost.{h, cc}
  7090. * src/Metalink2RequestGroup.cc
  7091. * src/RequestGroup.{h, cc}
  7092. * test/RequestGroupTest.cc
  7093. * src/option_processing.cc
  7094. * src/prefs.h
  7095. * src/HttpResponseCommand.cc
  7096. * src/MetalinkResource.{h, cc}
  7097. * src/FtpNegotiationCommand.cc
  7098. * src/MetalinkEntry.{h, cc}
  7099. * src/MetalinkEntryTest.cc
  7100. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7101. Code cleanup and added debug log.
  7102. * src/PeerConnection.cc
  7103. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7104. Compiler error fix: applied the patch by Tiziano Mueller
  7105. * src/RequestGroup.cc
  7106. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7107. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7108. in stopped and completed event.
  7109. * src/AnnounceList.{h, cc}
  7110. * test/AnnounceListTest.cc
  7111. * src/DefaultBtAnnounce.cc
  7112. * test/DefaultBtAnnounceTest.cc
  7113. Sorted URLs.
  7114. * test/Metalink2RequestGroupTest.cc
  7115. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7116. Removed unnecessary string copy. Updated doc and corrected indentation.
  7117. * src/Base64.cc
  7118. Fixed compilation warnings
  7119. * test/DataTest.cc
  7120. * test/HttpRequestTest.cc
  7121. * test/MetaFileUtilTest.cc
  7122. * test/RequestTest.cc
  7123. * Release 0.12.0
  7124. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7125. Updated translations
  7126. * po/{de,fr,ja,nl,ru}.po
  7127. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7128. translations. Many thanks to translators.
  7129. * po/{ca,es,it,pt_BR,sv}.po
  7130. * po/LINGUAS
  7131. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7132. Added a notice about URL
  7133. * src/version_usage.cc
  7134. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7135. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7136. aria2 repeatedly sends stopped request when tracker returns error code.
  7137. * src/AnnounceList.cc
  7138. * test/AnnounceListTest.cc
  7139. * src/AnnounceTier.h
  7140. Added a message when ctrl-c is hit.
  7141. Now second ctrl-c is also handled in signal handler.
  7142. * src/RequestGroupMan.{h, cc}
  7143. * src/RequestGroup.{h, cc}
  7144. * src/MultiUrlRequestInfo.cc
  7145. * src/DownloadEngine.cc
  7146. * src/TrackerWatcherCommand.cc
  7147. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Code cleanup
  7149. * src/Base64.cc (encode)
  7150. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7151. Changed Direct/IO enable/disable procesure in file allocation routine.
  7152. * src/SingleFileAllocationIterator.cc
  7153. (SingleFileAllocationIterator):
  7154. Disable directIO if offset is not multiple of 512.
  7155. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7156. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7157. Enable created SingleFileAllocationIterator's directIO.
  7158. * src/FileAllocationEntry.cc
  7159. (FileAllocationEntry): Enable directIO here.
  7160. (~FileAllocationEntry): Disable directIO here.
  7161. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7162. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7163. * src/Peer.{h, cc}
  7164. * src/DefaultPieceStorage.cc
  7165. * test/DefaultPieceStorageTest.cc
  7166. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7167. Rewritten direct I/O support routine
  7168. * src/SingleFileAllocationIterator.cc
  7169. * src/MultiDiskAdaptor.{h, cc}
  7170. * src/ByteArrayDiskWriter.h
  7171. * src/AbstractSingleDiskAdaptor.h
  7172. * src/AbstractDiskWriter.cc
  7173. * src/DefaultPieceStorage.cc
  7174. * src/DiskWriter.h
  7175. * src/BinaryStream.h
  7176. * src/IteratableChunkChecksumValidator.cc
  7177. * src/IteratableChecksumValidator.cc
  7178. * src/CheckIntegrityEntry.cc
  7179. * src/FileAllocationEntry.cc
  7180. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7181. Fixed typo
  7182. * src/version_usage.cc
  7183. Updated doc
  7184. * doc/aria2c.1.txt
  7185. * doc/aria2c.1
  7186. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7187. Fixed compile error without message digest support.
  7188. * src/FileMetalinkParserState.cc
  7189. * src/MetalinkParserController.{h, cc}
  7190. * test/XML2SAXMetalinkProcessorTest.cc
  7191. * test/MetalinkParserControllerTest.cc
  7192. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7193. Enable direct I/O support in checksum checking.
  7194. * src/IteratableChunkChecksumValidator.{h, cc}
  7195. * test/IteratableChunkChecksumValidatorTest.cc
  7196. * src/CheckIntegrityEntry.cc
  7197. * src/PieceHashCheckIntegrityEntry.cc
  7198. * src/IteratableChecksumValidator.{h, cc}
  7199. * src/BtCheckIntegrityEntry.cc: Added doc.
  7200. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7201. Added --allow-piece-length-change option.
  7202. * src/DefaultBtProgressInfoFile.cc
  7203. * test/DefaultBtProgressInfoFileTest.cc
  7204. * src/OptionHandlerFactory.cc
  7205. * src/option_processing.cc
  7206. * src/prefs.h
  7207. * src/version_usage.cc
  7208. * doc/aria2c.1.txt
  7209. * doc/aria2c.1
  7210. Fixed: duplicated result entry appears when exception is thrown in
  7211. RequestGroup::createInitiateConnectionCommand().
  7212. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7213. Add RequestGroup to _requestGroup after RequetGroup::
  7214. createInitiateConnectionCommand() succeeds.
  7215. Externalized message
  7216. * src/XML2SAXMetalinkProcessor.cc
  7217. * src/message.h
  7218. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7219. Forced download abort when received negative response from http/ftp
  7220. server.
  7221. * src/HttpResponseCommand.cc
  7222. * src/FtpNegotiationCommand.cc
  7223. * src/HttpResponse.cc
  7224. * src/FtpConnection.cc
  7225. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7226. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7227. the predecessor, Xml2MetalinkParser class.
  7228. I tested them against 94KB metalink file with 1234 chunk checksums.
  7229. The new one parsed it in 22msec, while it took 6000msec with old one.
  7230. * src/XML2SAXMetalinkProcessor.{h, cc}
  7231. * test/XML2SAXMetalinkProcessorTest.cc
  7232. * src/MetalinkParserController.{h, cc}
  7233. * test/MetalinkParserControllerTest.cc
  7234. * src/MetalinkParserState.h: Also added 16 subclasses.
  7235. * src/main.cc
  7236. * src/Metalink2RequestGroup.cc
  7237. * src/MetalinkHelper.cc
  7238. * src/MetalinkEntry.cc
  7239. * src/ChunkChecksum.h
  7240. Rewritten Base64 class for better performance.
  7241. * src/Base64.{h, cc}
  7242. * test/Base64Test.cc
  7243. * src/HttpRequest.cc
  7244. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7245. Fixed the bug#1841757: aria2 will connect to server to only get
  7246. file size.
  7247. * src/StreamFileAllocationEntry.cc
  7248. * src/option_processing.cc
  7249. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7250. downloads.
  7251. * src/FtpNegotiationCommand.cc
  7252. Suppressed wrong message when finding PreDownloadHandler
  7253. * src/RequestGroup.cc
  7254. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7255. Updated usage
  7256. * src/version_usage.cc
  7257. Updated man page
  7258. * doc/aria2c.1.txt
  7259. * doc/aria2c.1
  7260. Updated po files
  7261. * po/aria2c.pot
  7262. * po/*.po
  7263. * po/*.gmo
  7264. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7265. Eliminated g++-4.2 warning
  7266. * src/DownloadHandlerConstants.{h, cc}
  7267. * src/Util.cc
  7268. * test/MetaFileUtilTest.cc
  7269. * test/PStringBuildVisitorTest.cc
  7270. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7271. * src/RequestGroup.cc
  7272. * src/BtCheckIntegrityEntry.cc
  7273. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7274. Fixed a2io.h
  7275. * src/a2io.h
  7276. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7277. Added direct I/O support. The current implementation uses O_DIRECT,
  7278. which is not posix standard and is tested on linux 2.6.21.
  7279. Currently only file allocation uses direct I/O.
  7280. * src/SingleFileAllocationIterator.{h, cc}
  7281. * test/SingleFileAllocationIteratorTest.cc
  7282. * src/MultiFileAllocationIterator.{h, cc}
  7283. * test/MultiFileAllocationIteratorTest.cc
  7284. * src/BinaryStream.h
  7285. * src/DiskWriter.h
  7286. * src/AbstractDiskWriter.{h, cc}
  7287. * src/ByteArrayDiskWriter.h
  7288. * src/DiskAdaptor.h
  7289. * src/AbstractSingleDiskAdaptor.{h, cc}
  7290. * src/MultiDiskAdaptor.{h, cc}
  7291. * src/FileAllocationEntry.cc
  7292. * src/Util.{h, cc}
  7293. * src/OptionHandlerFactory.cc
  7294. * src/prefs.h
  7295. * src/version_usage.cc
  7296. * src/option_processing.cc
  7297. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7298. handleException.
  7299. * src/MultiFileAllocationIterator.cc
  7300. Added EINTR handling
  7301. * src/SocketCore.cc
  7302. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7303. Updated usage
  7304. * src/version_usage.cc
  7305. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7306. Applied Ross's patch for MinGW port.
  7307. * src/DownloadEngine.h
  7308. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7309. Set Content-Type to SingleFileDownloadContext when http response is
  7310. received.
  7311. * src/HttpResponseCommand.cc
  7312. * src/HttpResponse.{h, cc}
  7313. * test/HttpResponseTest.cc
  7314. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. Rewritten to add content-type support.
  7316. * src/DownloadHandler.{h, cc}
  7317. * src/BtPostDownloadHandler.{h, cc}
  7318. * test/BtPostDownloadHandlerTest.cc
  7319. * src/MetalinkPostDownloadHandler.{h, cc}
  7320. * test/MetalinkPostDownloadHandlerTest.cc
  7321. * src/PostDownloadHandler.{h, cc}
  7322. * src/DownloadHandlerConstants.{h, cc}
  7323. * src/RequestGroup.cc
  7324. * src/HttpResponseCommand.cc
  7325. * src/FtpNegotiationCommand.cc
  7326. * src/SingleFileDownloadContext.{h, cc}
  7327. * src/RequestGroup.h
  7328. * src/RequestGroupCriteria.h
  7329. * src/ContentTypeRequestGroupCriteria.h
  7330. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7331. If it is give, metalink/torrent file is not written to the disk, but
  7332. just is kept in memory. Parsing is occurred on memory.
  7333. * src/MetalinkHelper.{h, cc}
  7334. * src/MetalinkProcessor.h
  7335. * src/Xml2MetalinkProcessor.{h, cc}
  7336. * test/Xml2MetalinkProcessorTest.cc
  7337. * src/DownloadHandlerFactory.{h, cc}
  7338. * test/DownloadHandlerFactoryTest.cc
  7339. * src/PreDownloadHandler.{h, cc}
  7340. * src/OptionHandlerFactory.cc
  7341. * src/DefaultBtContext.{h, cc}
  7342. * test/DefaultBtContextTest.cc
  7343. * src/version_usage.cc
  7344. * src/Metalink2RequestGroup.{h, cc}
  7345. * src/RequestGroup.{h, cc}
  7346. * src/a2functional.h
  7347. * test/a2functionalTest.cc
  7348. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7349. * src/OptionHandlerImpl.h
  7350. * src/prefs.h
  7351. * src/Util.{h, cc}
  7352. * test/UtilTest.cc
  7353. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7354. memory usage.
  7355. * src/RequestGroupMan.{h, cc}
  7356. * src/DownloadEngine.cc
  7357. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7358. WeakHandle to SharedHandle because WeakHandle could be null.
  7359. * src/RequestGroup.{h, cc}
  7360. * src/DownloadEngineFactory.cc
  7361. * src/DownloadResult.h
  7362. Set totalLength after download finished
  7363. * src/UnknownLengthPieceStorage.{h, cc}
  7364. Keep torrent file specified in metalink in memory.
  7365. * src/Metalink2RequestGroup.cc
  7366. * src/BtDependency.cc
  7367. * src/TrueRequestGroupCriteria.h
  7368. Fixed the bug: seekg is used where seekp should be used.
  7369. * src/ByteArrayDiskWriter.cc
  7370. * test/ByteArraydiskWriterTest.cc
  7371. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7372. Fixed syntax error
  7373. * test/SequenceTest.cc
  7374. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7375. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7376. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7377. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7378. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7379. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7380. Added the check to see whether ares_host_callback accepts timeouts
  7381. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7382. * src/NameResolver.{h, cc}
  7383. * m4/libcares.m4
  7384. * configure.ac: Set C++ for language choice.
  7385. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7386. Fixed: compilation fails without c-ares/ares
  7387. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7388. Generate http/ftp commands only when download is incomplete.
  7389. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7390. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Corrected typo. Examples are removed since they are available in man
  7392. page.
  7393. * src/version_usage.cc
  7394. Updated man page.
  7395. * doc/aria2c.1
  7396. * doc/aria2c.1.txt
  7397. * doc/makeman: Commented out sed command.
  7398. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Throw DlAbortEx when a remote file is not found.
  7400. * src/HttpResponse.cc
  7401. * src/FtpNegotiationCommand.cc
  7402. * src/message.h
  7403. Overwrite an existing file if --allow-overwrite=true is given.
  7404. * src/RequestGroup.cc
  7405. Removed unused functions
  7406. * src/AbstractCommand.h
  7407. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7408. Removed 'extern' from 'extern typedef ...' in src/*.h
  7409. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7410. Updated usage
  7411. * src/version_usage.cc
  7412. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7413. Trim announce URL
  7414. * src/DefaultBtContext.cc
  7415. * test/ShaVisitorTest.cc
  7416. Trim argument s. Give trimed s to exception constructor.
  7417. * src/Util.cc (parseInt)(parseLLInt)
  7418. * test/UtilTest.cc
  7419. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7420. Set precision back to 1.
  7421. * src/ConsoleStatCalc.cc (calculateStat)
  7422. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7423. Replaced strtol with Util::parseInt
  7424. * src/ChunkedEncoding.cc
  7425. * src/HttpConnection.cc
  7426. * src/CookieBoxFactory.cc
  7427. * src/ParameterizedStringParser.cc
  7428. * src/Util.cc
  7429. * test/UtilTest.cc
  7430. * test/OptionHandlerTest.cc
  7431. * src/Request.cc
  7432. Throw exception when empty string is given. The message for exception
  7433. changed.
  7434. * src/Util.cc (parseInt)(parseLLInt)
  7435. * src/message.h
  7436. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7437. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7438. set to 1.
  7439. * src/ConsoleStatCalc.cc (calculateStat)
  7440. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7441. Preallocate non-requested file which is adjacent forward to requested
  7442. file('requested' files means the files given in --select-file option)
  7443. if they share a same piece.
  7444. This fixes long pause in the file system which doesn't support sparse
  7445. files like FAT32 while downloading.
  7446. * src/MultiFileAllocationIterator.{h, cc}
  7447. * test/MultiFileAllocationIteratorTest.cc
  7448. * src/FileEntry.{h, cc}
  7449. Removed unused _option.
  7450. * src/MultiDiskAdaptor.h
  7451. * test/MultiDiskAdaptorTest.cc
  7452. * src/DefaultPieceStorage.cc
  7453. Set the default value of --seed-ratio to 1.0.
  7454. If 0.0 is given, then seeding continues regardless of share ratio.
  7455. * src/version_usage.cc
  7456. * src/option_processing.cc
  7457. * src/BtSetup.cc
  7458. * doc/aria2c.1.txt
  7459. * doc/aria2c.1
  7460. Fixed: Selective download is not working in BitTorrent
  7461. * src/RequestGroup.cc
  7462. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7463. * src/PieceStorage.h
  7464. * test/MockPieceStorage.h
  7465. * src/UnknownLengthPieceStorage.h
  7466. * src/DefaultPieceStorage.{h, cc}
  7467. * src/Metalink2RequestGroup.cc
  7468. * src/RequestGroup.cc
  7469. * src/Sequence.h
  7470. * test/SequenceTest.cc
  7471. * src/IntSequence.h
  7472. * src/message.h
  7473. * src/Util.{h, cc}
  7474. * test/UtilTest.cc
  7475. Added new function 'parse' to catch exception thrown by subclass's
  7476. parseArg
  7477. * src/OptionHandler.h
  7478. * src/OptionParser.cc
  7479. * src/NameMatchOptionHandler.h
  7480. * src/OptionHandlerImpl.h
  7481. * test/OptionHandlerTest.cc
  7482. Added IntegerRangeOptionHandler. Used for --listen-port and
  7483. --select-file. Now --listen-port accepts range of port.
  7484. * src/OptionHandlerFactory.cc
  7485. * src/version_usage.cc
  7486. * src/OptionHandlerImpl.h
  7487. * src/option_processing.cc
  7488. * src/BtSetup.cc
  7489. * src/PeerListenCommand.{h, cc}
  7490. * doc/aria2c.1.txt
  7491. * doc/aria2c.1
  7492. Implemented operator< for Exception class to provide easy way to print
  7493. exception stack trace.
  7494. * src/Exception.{h, cc}
  7495. * src/main.cc
  7496. * src/option_processing.cc
  7497. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7498. * src/version_usage.cc
  7499. (showVersion): Reworked.
  7500. (showUsage): Added examples.
  7501. Removed Hint for total length and file name.
  7502. * src/Metalink2RequestGroup.cc
  7503. * src/RequestGroup.{h, cc}
  7504. * src/HttpResponseCommand.cc
  7505. * src/FtpNegotiationCommand.cc
  7506. Now --follow-torrent and --follow-metalink option work properly.
  7507. * src/RequestGroup.cc
  7508. Updated man page
  7509. * doc/aria2c.1.txt
  7510. * doc/aria2c.1
  7511. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7512. Removed.
  7513. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7514. Use Segment::operator==()
  7515. * src/HttpConnection.cc
  7516. * src/Segment.h
  7517. Updated usage
  7518. * src/version_usage.cc
  7519. Added EINTR treatment.
  7520. * src/SocketCore.cc
  7521. * src/AbstractDiskWriter.cc
  7522. Rewritten.
  7523. * src/Util.cc (rangedFileCopy)
  7524. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7525. Fixed typo.
  7526. * src/version_usage.cc
  7527. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7528. Implemented. Now -c option works fine.
  7529. * src/DefaultPieceStorage.cc (markPiecesDone)
  7530. * test/DefaultPieceStorageTest.cc
  7531. Removed.
  7532. * src/SegmentMan.{h, cc}
  7533. (markAllPiecesDone)
  7534. (markPieceDone)
  7535. Synchronized po files with
  7536. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7537. * src/fr.po
  7538. * src/ru.po
  7539. * src/de.po
  7540. * src/ja.po
  7541. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7542. Added ifdef and some modifications to compile without BitTorrent,
  7543. Metalink, MessageDigest
  7544. support.
  7545. * src/PieceHashCheckIntegrityEntry.cc
  7546. * src/MetalinkEntry.h
  7547. * src/version_usage.cc
  7548. * src/main.cc
  7549. * src/DownloadEngine.{h, cc}
  7550. * src/Metalink2RequestGroup.cc
  7551. * src/Peer.cc
  7552. * src/RequestGroup.cc
  7553. * src/MetalinkHelper.cc
  7554. * test/DefaultPieceStorageTest.cc
  7555. * test/MetalinkPostDownloadHandlerTest.cc
  7556. * test/Metalink2RequestGroupTest.cc
  7557. Hide TOTAL SPD when all downloads complete.
  7558. * src/ConsoleStatCalc.cc
  7559. Log target system information.
  7560. * src/main.cc
  7561. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7562. Now --metalink-location accepts a comma-deliminated list of locations.
  7563. * src/MetalinkEntry.{h, cc}
  7564. * test/MetalinkEntryTest.cc
  7565. * src/version_usage.cc
  7566. * src/Metalink2RequestGroup.cc
  7567. * src/Xml2MetalinkProcessor.cc
  7568. * test/Xml2MetalinkProcessorTest.cc
  7569. * doc/aria2c.1.txt
  7570. * doc/aria2c.1
  7571. * src/Util.cc (toUpper)(toLower): Rewritten.
  7572. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7573. Added the ability to detect duplicate download entry which is about to
  7574. download the same file other RequestGroup is downloading.
  7575. * src/RequestGroup.cc
  7576. * src/HttpResponseCommand.cc
  7577. * src/FtpNegotiationCommand.cc
  7578. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7579. Recalculates download progress when loading a control file,
  7580. if the piece length of DownloadContext is different from the one saved
  7581. in the control file. Currently in-flight pieces are ignored.
  7582. * src/DefaultBtProgressInfoFile.cc
  7583. * test/DefaultBtProgressInfoFileTest.cc
  7584. * src/Util.{h, cc}
  7585. * test/UtilTest.cc
  7586. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7587. Do not rotate tiers in announce-list.
  7588. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7589. AnnounceList::allTiersFailed() used instead to detect whether all
  7590. tiers are tried and failed.
  7591. * test/DefaultBtAnnounceTest.cc
  7592. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7593. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7594. * test/AnnounceListTest.cc
  7595. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7596. clause. Catch RecoverableException instead of DlRetryEx instead.
  7597. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7598. Implemented checksum validation feature(1 checksum for each file)
  7599. The validation takes place after the download.
  7600. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7601. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7602. * src/CheckIntegrityCommand.cc: Changed log message.
  7603. * src/Metalink2RequestGroup.cc: Set checksum to
  7604. SingleFileDownloadContext.
  7605. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7606. PieceHashCheckIntegrity class.
  7607. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7608. PieceHashCheckIntegrity class.
  7609. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7610. * src/IteratableValidator.h: New class.
  7611. * src/message.h
  7612. * src/CheckIntegrityEntry.{h, cc}
  7613. * src/IteratableChunkChecksumValidator.{h, cc}
  7614. * src/SingleFileDownloadContext.h
  7615. * src/DownloadCommand.cc
  7616. --allow-overwrite=true is no longer needed to check file integrity
  7617. before download in BitTorrent download.
  7618. * src/RequestGroup.cc (getInitialCommand)
  7619. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7620. throws exception.
  7621. * src/RequestGroupMan.cc (getInitialCommands)
  7622. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7623. urlencode the given url inside Request::parseUrl(...)
  7624. * src/Request.{h, cc}
  7625. * src/Util.{h, cc}
  7626. * test/RequestTest.cc
  7627. Removed #!metalink3! notation support because it is deleted from
  7628. the metalink specification.
  7629. * src/Request.{h, cc}
  7630. * test/RequestTest.cc
  7631. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7632. Don't connect server before checking file integrity at startup, if
  7633. filesize and output file path are known.
  7634. * src/AbstractCommand.cc
  7635. * src/StreamFileAllocationEntry.cc
  7636. * src/Metalink2RequestGroup.cc
  7637. * src/RequestGroup.{h, cc}
  7638. * src/HttpResponseCommand.cc
  7639. * src/FtpNegotiationCommand.cc
  7640. Added DownloadFailureException. If it is thrown, RequestGroup should
  7641. halt.
  7642. * src/AbstractCommand.cc
  7643. * src/DownloadFailureException.h
  7644. * src/RequestGroup.cc
  7645. Catch RecoverableException, instead of DlAbortEx.
  7646. * src/RequestGroupMan.cc
  7647. * src/FillRequestGroupCommand.cc
  7648. * src/MetaFileUtil.cc
  7649. * src/IteratableChunkChecksumValidator.cc
  7650. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7651. getGID())
  7652. * src/CheckIntegrityCommand.cc
  7653. * src/message.h
  7654. Print gid instead of idx.
  7655. * src/RequestGroupMan.cc
  7656. Removed exception throwers declaration.
  7657. * src/DirectDiskAdaptor.{h, cc}
  7658. * src/SocketCore.{h, cc}
  7659. * src/MultiDiskAdaptor.{h, cc}
  7660. * src/HttpConnection.{h, cc}
  7661. * src/HttpResponse.{h, cc}
  7662. * src/DiskAdaptor.{h, cc}
  7663. * src/CopyDiskAdaptor.{h, cc}
  7664. * src/MultiDiskAdaptor.{h, cc}
  7665. * src/HttpHeaderProcessor.{h, cc}
  7666. * src/AbstractSingleDiskAdaptor.{h, cc}
  7667. * src/Util.{h, cc}
  7668. * test/UtilTest.cc
  7669. * src/DefaultDiskWriter.{h, cc}
  7670. * src/FtpConnection.{h, cc}
  7671. * src/AbstractDiskWriter.{h, cc}
  7672. Removed duplicate code.
  7673. * src/StreamCheckIntegrityEntry.cc
  7674. Removed unnecessary include.
  7675. * src/DiskWriter.h
  7676. Included Exception.h
  7677. * src/option_processing.cc
  7678. Included 2 files and added doc
  7679. * src/TrackerWatcherCommand.cc
  7680. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7681. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7682. Changed CheckIntegrityEntry interface so that it can define
  7683. the action when all the chunk checksums are valid.
  7684. * src/CheckIntegrityEntry.h
  7685. * src/StreamCheckIntegrityEntry.{h, cc}
  7686. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7687. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7688. to exit rather than doing seeding. So, it would be good to toggle this
  7689. behavior.
  7690. * src/CheckIntegrityCommand.cc
  7691. * src/AbstractCommand.cc
  7692. * src/RequestGroup.cc
  7693. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7694. Reflect the download length of in-flight pieces.
  7695. It makes the download length readout more precise.
  7696. * src/DefaultPieceStorage.{h, cc}
  7697. * test/DefaultPieceStorageTest.cc
  7698. * src/a2functional.h
  7699. * test/a2functionalTest.cc
  7700. Lower CPU load when --max-download-limit is used.
  7701. There is up and down in speed indicator when enabling
  7702. http-pipelining but a download goes well. I think the problem is that
  7703. because http-pipelining is enabled, DownloadCommand is created for
  7704. each segment and in its constructor, PeerStat::downloadStart() is
  7705. called. In PeerStat::downloadStart(), speed calculation object is
  7706. reseted, which makes download speed zero.
  7707. * src/DownloadCommand.cc
  7708. Rewritten using accumulate.
  7709. * src/RequestGroupMan.cc (calculateStat)
  7710. Code clearnup.
  7711. * src/FtpNegotiationCommand.cc
  7712. * src/HttpResponseCommand.cc
  7713. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7714. Fixed: Can not resume: aria2 reports download already finished.
  7715. * src/AbstractCommand.{h, cc}
  7716. * src/HttpResponseCommand.cc
  7717. * src/FtpNegotiateCommand.cc
  7718. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7719. Now a file is stored in the directory specified in .metalnk file
  7720. (file[@name]).
  7721. * src/Metalink2RequestGroup.cc
  7722. Create the directory structure when opening the file if it doesn't
  7723. exist.
  7724. * src/AbstractDiskWriter.cc
  7725. * src/Util.{h, cc}
  7726. * src/File.h
  7727. * test/UtilTest.cc
  7728. Removed file name comparison
  7729. * src/Metalink2RequestGroup.cc
  7730. * src/HttpResponseCommand.cc
  7731. Rewritten using Util::mkdirs()
  7732. * src/FileEntry.cc (setupDir)
  7733. * test/FileEntryTest.cc
  7734. Updated doc
  7735. * src/SingleFileDownloadContext.h
  7736. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7737. Now SleepCommand dispatches nextCommand when halt is requested.
  7738. It avoids a possible long wait after hitting CTRL-C.
  7739. * src/SleepCommand.{h, cc}
  7740. * src/RequestGroupAware.{h, cc}
  7741. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7742. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7743. to open listen port, then remove the port number from the tracker
  7744. request.
  7745. * src/DefaultBtAnnounce.cc
  7746. * test/DefaultBtAnnounceTest.cc
  7747. * test/MockPieceStorage.h
  7748. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7749. them more testable.
  7750. * src/DefaultBtAnnounce.{h, cc}
  7751. * src/DefaultBtContext.{h, cc}
  7752. * src/Util.{h, cc}
  7753. * test/DefaultBtAnnounceTest.cc
  7754. * test/DefaultBtContextTest.cc
  7755. * test/UtilTest.cc
  7756. Added 'B' to upload bytes readout.
  7757. * src/ConsoleStatCalc.cc
  7758. Now the listen port for BitTorrent download is opened when it is
  7759. needed.
  7760. * src/DownloadEngineFactory.cc
  7761. * src/BtSetup.{h, cc}
  7762. * src/PeerListenCommand.{h, cc}
  7763. Now an exception thrown while parsing tracker response is now logged.
  7764. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7765. called, which means no retry is made in this case, assuming a tracker
  7766. has a problem.
  7767. * src/TrackerWatcherCommand.cc
  7768. Fixed: downloading a file whose length is unkown fails.
  7769. * src/DownloadCommand.cc
  7770. Simplified prepareForNextSegment()
  7771. * src/DownloadCommand.cc
  7772. Updated
  7773. * po/POTFILES.in
  7774. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7775. Re-implemented a file listing for Metalink, which was dropped while
  7776. http/ftp/torrent integration was being implemented.
  7777. * src/MetalinkHelper.{h, cc}: New class.
  7778. * test/MetalinkHelperTest.cc
  7779. * src/main.cc
  7780. * src/Metalink2RequestGroup.cc
  7781. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7782. Added the ability to display the detailed torrent file information.
  7783. Now -S option gives not only a file listing, but also total download
  7784. length, info hash, announce URI, piece length, the number of pieces,
  7785. and mode(single or multi-torrent).
  7786. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7787. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7788. KiB)
  7789. * test/UtilTest.cc
  7790. * src/main.cc
  7791. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7792. Added ftp://USER:PASSWD@Servername automatic parsing.
  7793. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7794. _password. Recognize username and password in URI.
  7795. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7796. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7797. * src/RequestFactory.{h, cc}: Removed.
  7798. * src/AuthConfigFactory.{h, cc}: New class.
  7799. * src/FtpConnection.cc: Use AuthConfigFactory.
  7800. * src/HttpRequest.cc: Use AuthConfigFactory.
  7801. * test/HttpRequestTest.cc: Updated.
  7802. * test/RequestTest.cc: Updated.
  7803. * test/AuthConfigFactoryTest.cc: New class.
  7804. * test/RequestFactoryTest.cc: Removed.
  7805. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7806. Use RequestGroup::allDownloadFinished() to decide whether the control
  7807. file should be removed or saved.
  7808. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  7809. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  7810. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7811. Use File::renameTo()
  7812. * src/DefaultBtProgressInfoFile.cc
  7813. Added --no-file-allocation-limit command-line option.
  7814. * src/version_usage.cc
  7815. * src/option_processing.cc
  7816. * src/OptionHandlerFactory.cc
  7817. * src/RequestGroup.{h, cc}
  7818. * src/BtCheckIntegrityEntry.cc
  7819. * src/StreamCheckIntegrityEntry.cc
  7820. * src/prefs.h
  7821. * doc/aria2c.1.txt
  7822. * doc/aria2c.1
  7823. Now prealloc is the default value for --file-allocation option.
  7824. * src/version_usage.cc
  7825. * src/option_processing.cc
  7826. * doc/aria2c.1.txt
  7827. * doc/aria2c.1
  7828. Don't URL-encode user-agent.
  7829. * src/HttpRequest.cc
  7830. Updated translations
  7831. * po/LINGUAS: Added nl for Dutch translation.
  7832. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  7833. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  7834. * po/POTFILES.in: Updated.
  7835. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7836. Added the ability to recognize url-list in a torrent file.
  7837. The retrieved URLs are attached to the corresponding FileEntry.
  7838. * src/DefaultBtContext.{h, cc}
  7839. * src/FileEntry.{h, cc}
  7840. * test/DefaultBtContextTest.cc
  7841. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7842. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  7843. after the download finishes.
  7844. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7845. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  7846. the data smaller than block length.
  7847. A block length can be specified by constructor's argument.
  7848. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  7849. Get a missing piece in the range of given FileEntry. This function is
  7850. not used in the program yet.
  7851. * src/Util.h: Added some macros.
  7852. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7853. Added HTTP/1.1 keep alive and pipelining support.
  7854. See --enable-http-keep-alive and --enable-http-pipelining option.
  7855. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  7856. Segment.
  7857. * src/HttpDownloadCommand.{h, cc}
  7858. * src/OptionHandlerFactory.cc
  7859. * src/HttpConnection.{h, cc}
  7860. * src/version_usage.cc
  7861. * src/HttpInitiateConnectionCommand.cc
  7862. * src/FtpInitiateConnectionCommand.cc
  7863. * src/Segment.h
  7864. * src/HttpRequestCommand.{h, cc}
  7865. * src/option_processing.cc
  7866. * src/prefs.h
  7867. * src/HttpResponseCommand.cc
  7868. * src/SegmentMan.{h, cc}
  7869. * src/FtpNegotiateCommand.cc
  7870. * src/HttpProxyResponseCommand.cc
  7871. * src/Request.cc
  7872. * src/HttpRequest.cc
  7873. * src/DownloadCommand.cc
  7874. * test/HttpRequestTest.cc
  7875. * test/RequestTest.cc
  7876. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7877. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  7878. finished.
  7879. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  7881. catching it inside the method.
  7882. When no file entry is found in a metalink without querying user
  7883. preferences, throw the exception with the error message that suggests
  7884. metalink file is probably broken.
  7885. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  7886. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7887. Fixed the bug that prevents remote Metalink/Torrent file from begin
  7888. processed.
  7889. * src/RequestGroupMan.cc (removeStoppedGroup)
  7890. Added debug message.
  7891. * src/BtPostDownloadHandler.cc
  7892. * src/MetalinkPostDownloadHandler.cc
  7893. * src/PostDownloadHandler.{h, cc}
  7894. * src/RequestGroup.cc
  7895. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7896. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  7897. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7898. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  7899. stops and there are any unfinished or in-progress downloads.
  7900. Added the legend of "stat".
  7901. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7902. Throw exception when chunck checksum verification fails.
  7903. * src/DownloadCommand.cc (validatePieceHash): New function.
  7904. * src/PiecedSegment.{h, cc} (clear): New function.
  7905. * src/GrowSegment.{h, cc} (clear): New function.
  7906. * src/Segment.h (clear): New function.
  7907. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  7908. * test/SegmentTest.cc
  7909. * test/GrowSegmentTest.cc
  7910. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7911. Do not send referer when redirected.
  7912. * src/Request.cc (redirectUrl)
  7913. * test/RequestTest.cc
  7914. * test/HttpRequestTest.cc
  7915. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7916. Implemented BitTorrent/http/ftp integrated download.
  7917. I've rewritten lots of files and now some headers have forward
  7918. class declarations to reduce compile time.
  7919. The implementation is extremely alpha stage, I recommend to use this
  7920. for testing purpose only.
  7921. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7922. Fixed the compilation error on 64bit platform.
  7923. * test/HttpHeaderProcessorTest.cc
  7924. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7925. Merged Ross's patch that fixes compilation problem in MinGW
  7926. * test/DefaultBtProgressInfoFileTest.cc
  7927. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7928. Updated fr.po by sebone
  7929. * po/fr.po
  7930. Updated man page.
  7931. * doc/aria2c.1.txt
  7932. * Release 0.11.3
  7933. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7934. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  7935. failure in Metalink.
  7936. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7937. Automatically save *.aria2 control file of http/ftp download in every
  7938. 60 seconds.
  7939. * src/AutoSaveCommand.{h, cc}: New class.
  7940. * src/TimeBasedCommand.{h, cc}: New class.
  7941. * src/DownloadEngineFactory.cc (newConsoleEngine)
  7942. Disable parameterized URI support by default. Added -P option to
  7943. enable the feature.
  7944. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  7945. * src/OptionHandlerFactory.cc
  7946. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  7947. Updated Japanese translation.
  7948. * po/ja.po
  7949. Updated man page.
  7950. * doc/aria2c.1.txt
  7951. * Release 0.11.3-rc
  7952. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7953. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  7954. it is successful, then renamed to *.aria2.
  7955. This prevents *.aria2 file from being truncated or corrupted when
  7956. file system becomes out of space.
  7957. * src/DefaultBtProgressInfoFile.cc (save)
  7958. * src/SegmentMan.cc (save)
  7959. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  7960. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7961. Reduced the fragmentation of bitfield in http/ftp download.
  7962. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  7963. * test/BitfieldManTest.cc
  7964. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7965. Added the ability to disable segmented download in .metalink.
  7966. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  7967. 'url' tag.
  7968. * src/MetalinkEntry.{h, cc}
  7969. * src/RequestResource.{h, cc}
  7970. * src/MetalinkRequestInfo.cc
  7971. * src/Xml2MetalinkProcessor.cc
  7972. * test/Xml2MetalinkProcessorTest.cc
  7973. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7974. Added parameterized URI support.
  7975. * src/main.cc: -Z option added.
  7976. * src/OptionHandlerFactory.cc
  7977. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  7978. * src/PStringDatum.h: New class.
  7979. * src/PStringSegment.{h,cc}: New class.
  7980. * src/PStringNumLoop.h: New class.
  7981. * src/PStringSelect.h: New class.
  7982. * src/NumberDecorator.h: New class.
  7983. * src/FixedWidthNumberDecorator.h: New class.
  7984. * src/AlphaNumberDecorator.h: New class.
  7985. * src/PStringVisitor.h: New class.
  7986. * src/PStringBuildVisitor.{h,cc}: New class.
  7987. * src/ParameterizedStringParser.{h,cc}: New class.
  7988. * src/Util.{h,cc}
  7989. (isNumber): New function.
  7990. (isLowercase): New function.
  7991. (isUppercase): New function.
  7992. (alphaToNum): New function.
  7993. * test/ParameterizedStringParserTest.cc: New class.
  7994. * test/AlphaNumberDecoratorTest.cc: New class.
  7995. * test/PStringBuildVisitorTest.cc: New class.
  7996. * test/UtilTest.cc
  7997. (testIsNumber): New function.
  7998. (testIsLowercase): New function.
  7999. (testIsUppercase): New function.
  8000. (testAlphaToNum): New function.
  8001. Added '\n' after the error message
  8002. * src/RequestInfo.h (printDownloadAbortMessage)
  8003. Added auto file renaming feature in http(s)/ftp download.
  8004. * src/main.cc: Added --auto-file-renaming command-line option.
  8005. * src/OptionHandlerFactory.cc
  8006. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8007. * src/RequestGroup.{h, cc}
  8008. (shouldCancelDownloadForSafety): Rewritten
  8009. (tryAutoFileRenaming): New function.
  8010. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8011. * src/HttpResponseCommand.cc
  8012. (executeInternal): Removed the call to RequestGroupMan::
  8013. isSameFileBeingDownloaded()
  8014. * src/FtpNegotiateCommand.cc
  8015. (recvSize): Removed the call to RequestGroupMan::
  8016. isSameFileBeingDownloaded()
  8017. * test/RequestGroupTest.cc: New class.
  8018. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8019. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8020. IO.
  8021. * src/DefaultBtProgressInfoFile.cc
  8022. * src/MetaFileUtil.cc
  8023. * src/SimpleLogger.cc
  8024. * src/SegmentMan.cc
  8025. * src/Util.cc
  8026. * src/Platform.cc
  8027. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8028. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8029. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8030. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8031. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8032. Fixed the bug that prevents file allocation is not done when
  8033. dowloading multi-torrent file.
  8034. * src/AbstractDiskWriter.cc (openFile)
  8035. Increase the maximum number of -j option from 15 to 45.
  8036. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8037. Added fr.po, thanks to Charles Landemaine.
  8038. * po/fr.po
  8039. * po/LINGUAS
  8040. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8041. gcc 3.4.4 support:
  8042. * src/DefaultBtContext.cc: int32_t -> int
  8043. * src/main.cc: int -> int32_t, int32_t -> int
  8044. * src/messageDigest.h: uint32_t -> unsigned int
  8045. * src/NameResolver.h: int32_t -> int
  8046. * src/PeerConnection.cc: int -> int32_t
  8047. * src/SpeedCalc.cc: int32_t -> int
  8048. * src/TrackerUpdateCommand.h: int -> int32_t
  8049. * src/Util.cc: int32_t -> int
  8050. * src/Util.h: int32_t -> int
  8051. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8052. * test/AnnounceListTest.cc: int -> int32_t
  8053. * test/ChunkedEncodingTest.cc: int -> int32_t
  8054. * test/DataTest.cc: int -> int32_t
  8055. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8056. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8057. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8058. * test/FeatureConfigTest.cc: int -> int32_t
  8059. * test/MetalinkEntryTest.cc: int -> int32_t
  8060. * test/MockBtRequestFactory.h: int -> int32_t
  8061. * test/MockPieceStorage.h: int -> int32_t
  8062. * test/OptionTest.cc: int -> int32_t
  8063. * test/RequestTest.cc: int -> int32_t
  8064. * test/SegmentManTest.cc: int -> int32_t
  8065. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8066. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8067. Move sleep functions to Util class:
  8068. * src/Util.cc
  8069. (sleep): New function.
  8070. (usleep): New function.
  8071. * src/DownloadCommand.cc: sleep -> Util::sleep
  8072. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8073. MinGW build enhancements. The following files are added:
  8074. * src/timegm.{c,h}
  8075. Changes to support the above new files:
  8076. * configure.ac
  8077. * src/Makefile.am
  8078. * src/a2time.h
  8079. * src/Util.cc:
  8080. * src/strptime.c: Added support for %Z option.
  8081. Fixed MinGW non-blocking bug.
  8082. * src/SocketCore.cc
  8083. * src/HttpRequestCommand.cc
  8084. Miscellenous build fixes/enhancements.
  8085. * configure.ac: Added summary report.
  8086. * src/Platform.h: Tweaked #include's.
  8087. * src/a2netcompat.h: Tweaked #include's.
  8088. * src/strptime.h: Tweaked #include's.
  8089. * src/gai_strerror.c: Tweaked #include's.
  8090. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8091. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8092. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8093. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. Increased the initial connection size in BitTorrent download to 40.
  8095. * src/BtRuntime.h
  8096. Added the usage message of --peer-id-prefix option.
  8097. * src/main.cc
  8098. * Release 0.11.2
  8099. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. MessageDigestHelper is introduced in order to simplify the use
  8101. of message digest. Removed repeated code.
  8102. The message digest algorithm is now specified by string, like "sha1",
  8103. "md5".
  8104. * src/messageDigest.{h, cc}
  8105. * src/MessageDigestHelper.{h, cc}: New class.
  8106. * src/DefaultPieceStorage.cc
  8107. * src/DefaultBtContext.{h, cc}
  8108. (computeFastSet): New function.
  8109. (setInfoHash): Added for unit testing.
  8110. (setNumPieces): Added for unit testing.
  8111. * src/DefaultBtInteractive.cc
  8112. * src/BtPieceMessage.cc
  8113. * src/Peer.cc
  8114. * src/Checksum.h
  8115. * src/message.h
  8116. * src/IteratableChecksumValidator.h
  8117. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8118. inside it.
  8119. * src/SegmentMan.{h, cc}
  8120. (checkIntegrity): Removed.
  8121. * src/IteratableChunkChecksumValidator.{h, cc}
  8122. * src/Util.h
  8123. (sha1Sum): Removed.
  8124. (simpleMessageDigest): Removed.
  8125. (fileChecksum): Removed.
  8126. (computeFastSet): Removed.
  8127. * src/ShaVisitor.cc
  8128. * src/ChunkChecksum.h
  8129. * src/DownloadCommand.cc
  8130. Removed messageDigest virtual functions.
  8131. * src/MultiDiskAdaptor.{h, cc}
  8132. * src/DiskAdaptor.h
  8133. * src/ByteArrayDiskWriter.h
  8134. * src/DiskWriter.h
  8135. * src/DiskAdaptorWriter.h
  8136. * src/AbstractSingleDiskAdaptor.{h, cc}
  8137. * src/AbstractDiskWriter.{h, cc}
  8138. Fixed comilation error when message digest is disabled.
  8139. * src/MetalinkEntry.{h, cc}
  8140. * src/MetalinkRequestInfo.cc
  8141. Removed srandom and random.
  8142. * src/SimpleRandomizer.h
  8143. Added size() virtual function to DiskAdaptor
  8144. * src/MultiDiskAdaptor.h
  8145. Fixed the bug that causes that files are not opened correctly in
  8146. multi-file torrent.
  8147. * src/TorrentRequestInfo.cc
  8148. * src/MultiDiskAdaptor.cc
  8149. Added SHA256 support
  8150. * src/messageDigest.cc
  8151. * src/Xml2MetalinkProcessor.cc
  8152. Show supported message digest algorithms
  8153. * src/main.cc
  8154. Updated contact info.
  8155. * src/main.cc
  8156. Applied Ross's patch
  8157. * src/a2netcompat.h
  8158. * src/main.cc
  8159. Fixed the bug that prevents a remote metalink from not being processed
  8160. even if '-o foo.metalink' is specified.
  8161. * src/MetalinkRequestInfo.cc
  8162. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8163. Merged Dan's patch:
  8164. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8165. Use va_copy to avoid core dump on amd64:
  8166. * src/SimpleLogger.cc
  8167. Updated contact info.
  8168. * src/main.cc
  8169. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8170. digest is not available.
  8171. * src/MetalinkEntry.h
  8172. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8173. Make a2netcompat.h include a2io.h to fix compilation error:
  8174. * src/a2netcompat.h
  8175. * src/SocketCore.cc: Removed include of a2io.h
  8176. * src/Util.cc: Removed include of a2io.h
  8177. Gather time related functions to a2time.h:
  8178. * src/a2time.h: New file.
  8179. * src/DefaultPeerStorage.cc
  8180. * src/SimpleLogger.cc
  8181. * src/Util.{h, cc}
  8182. * src/SimpleRandomizer.h
  8183. * src/TimeA2.{h,cc}
  8184. * src/DownloadCommand.cc
  8185. * src/main.cc
  8186. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8187. a2netcompat.h:
  8188. * src/NameResolver.cc
  8189. Fixed compilation error without openssl:
  8190. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8191. Added default block to suppress compiler warnings:
  8192. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8193. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8194. MinGW build enhancements. The following files are added:
  8195. * src/gai_strerror.{c,h}
  8196. * src/gettimeofday.{c,h}
  8197. Changes to support the above new files:
  8198. * configure.ac
  8199. * src/Makefile.am
  8200. * src/a2netcompat.h
  8201. * src/TimeA2.cc
  8202. * src/DefaultPeerStorage.cc
  8203. * src/NameResolver.cc: removed mingw_strerror() function.
  8204. * src/SocketCore.cc: removed mingw_strerror() function.
  8205. Miscellaneous MinGW build fixes.
  8206. * src/a2io.h: Use _lseeki64() instead of lseek()
  8207. * src/common.h
  8208. * src/DefaultFileAllocator.cc
  8209. * src/GlowFileAllocator.cc
  8210. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8211. * src/NameResolver.cc
  8212. (callback): Changed int32_t to int.
  8213. (resolve): Changed int32_t to int.
  8214. * src/Platform.cc
  8215. * src/Platform.h
  8216. * test/MultiDiskWriterTest.cc
  8217. * test/PeerMessageUtilTest.cc
  8218. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8219. Other enhancements and fixes.
  8220. * src/HttpRequestCommand.cc
  8221. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8222. * src/SocketCore.cc:
  8223. (error): New function to abstract errno/WSAGetLastError().
  8224. (errorMsg): New function to abstract errno/WSAGetLastError().
  8225. (initiateSecureConnection): Added more detailed error reporting.
  8226. * src/SocketCore.h: Added private variable blocking, to allow
  8227. proper handling of OpenSSL psuedo-errors.
  8228. * src/message.h
  8229. (EX_SSL_INIT_FAILURE)
  8230. (EX_SSL_IO_ERROR)
  8231. (EX_SSL_PROTOCOL_ERROR)
  8232. (EX_SSL_UNKNOWN_ERROR)
  8233. (EX_SSL_CONNECT_ERROR)
  8234. (EX_SOCKET_BLOCKING)
  8235. (EX_SOCKET_NONBLOCKING)
  8236. (EX_SOCKET_UNKNOWN_ERROR)
  8237. * src/Util.cc
  8238. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8239. reserved name.
  8240. (httpGMT): Fixed typo.
  8241. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8242. Merged Ross's win32 patch(manually)
  8243. In the course of merging, following files are added.
  8244. * src/strptime.{h,c}
  8245. * src/libgen.{h,c}
  8246. * src/inet_aton.{h,c}
  8247. * src/Platform.{h,cc}
  8248. * src/localtime_r.{h,c}
  8249. * src/getaddrinfo.{h,c}
  8250. I've gethered network related things, and put them to following file:
  8251. * src/a2netcompat.h
  8252. Also io related things are put to following file:
  8253. * src/a2io.h
  8254. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8255. * src/message.h
  8256. (MSG_ALLOCATION_COMPLETED)
  8257. (EX_TOO_LARGE_FILE)
  8258. (EX_SIZE_MISMATCH)
  8259. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8260. (EX_INVALID_CHUNK_CHECKSUM)
  8261. (EX_INVALID_RANGE_HEADER)
  8262. * src/FileAllocationCommand.cc
  8263. * src/HttpResponse.cc
  8264. * src/RequestGroup.cc
  8265. * src/MultiDiskAdaptor.cc
  8266. * src/OptionHandlerImpl.h
  8267. * src/HttpResponseCommand.cc
  8268. * src/FtpNegotiateCommand.cc
  8269. * src/IteratableChecksumValidator.cc
  8270. * src/SegmentMan.cc
  8271. * src/ChunkChecksumValidator.cc
  8272. Added Randomizer::getRandomNumber(long int)
  8273. * src/Randomizer.h (getRandomNumber)
  8274. * src/SimpleRandomizer.h (getRandomNumber)
  8275. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8276. * src/Util.cc (randomAlpha): Use this new function.
  8277. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8278. Converted int's to in32_t. long long int's are also converted to
  8279. int64_t
  8280. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8281. Fixed the bug that prevents cookies from being sent to the server
  8282. if the domain of cookie is FQDN and starts with ".".
  8283. * src/Cookie.cc (match)
  8284. To add the ability to change peer id.
  8285. * src/DefaultBtContext.h
  8286. (_peerIdPrefix): New variable
  8287. (setPeerIdPrefix): New function.
  8288. * src/torrentRequestInfo.cc
  8289. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8290. DefaultBtContext.
  8291. * src/main.cc (main): Added peer-id-prefix command-line option.
  8292. The usage message is not added yet.
  8293. * src/DefaultBtContext.cc
  8294. (generatePeerId): Use _peerIdPrefix.
  8295. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8296. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8297. Fixed the bug that prevents filename in content-disposition from
  8298. being retrieved when filename is not quoted.
  8299. * src/Util.cc (getContentDispositionFilename)
  8300. Fixed the bug that causes infinate loop and memory leak when file open
  8301. operation failed.
  8302. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8303. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8304. Fixed the bug that causes segfault when all URIs specified are
  8305. unsupported.
  8306. * src/RequestGroupMan.cc (getInitialCommands)
  8307. Check if RequestGroup::createNextCommand() returns empty list of
  8308. commands.
  8309. * src/RequestGroup.cc (createNextCommand)
  8310. Change log level from info to error so that users can notice that
  8311. an error occurred.
  8312. Fixed the bug that causes segfault when a zero-sized file is
  8313. downloaded.
  8314. * src/BitfieldMan.cc (isAllBitSet)
  8315. Return true if bitfieldLength is 0.
  8316. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8317. * src/main.cc
  8318. (showUsage): Added 3 usage examples for metalink download.
  8319. Replace MetalinkChunkChecksum with ChunkChecksum.
  8320. * src/MetalinkChunkChecksum.h: Removed.
  8321. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8322. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8323. * src/Xml2MetalinkProcessor.cc
  8324. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8325. * src/MetalinkRequestInfo.cc (execute)
  8326. * Release 0.11.1
  8327. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8328. Reads URIs from stdin when "-i -" is specified.
  8329. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8330. * src/UriListParser.h, src/UriListParser.cc: New class.
  8331. * src/StreamUriListParser.h: New class.
  8332. * src/FileUriListParser.h: New class.
  8333. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8334. instead of UriFileListParser.
  8335. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8336. Made console readout more readable.
  8337. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8338. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8339. Fix the bug that causes -s option not to work.
  8340. * src/main.cc (main)
  8341. * src/a2algo.h: New file.
  8342. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8343. Create directory structure specified in metalink file.
  8344. * src/RequestGroup.h, src/RequestGroup.cc
  8345. (initAndOpenFile): Create a directory to store files if it does not
  8346. exist.
  8347. (getDir): New function.
  8348. Added ETA and download speed for an individual file to readout.
  8349. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8350. * src/RequestGroup.h
  8351. (calculateDownloadSpeed): New function.
  8352. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8353. Made -S option work with metalink file and provided selective download
  8354. to metalink.
  8355. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8356. (filename): Removed.
  8357. (file): New variable.
  8358. (size): Removed.
  8359. (operator=): Updated.
  8360. (getPath): New function.
  8361. (getLength): New function.
  8362. (toFileEntry): New function.
  8363. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8364. (execute): Use toStream.
  8365. (showFileEntry): Removed.
  8366. * src/MetalinkRequestInfo.h
  8367. (targetFiles): New variable.
  8368. (setTargetFiles): New variable.
  8369. * src/MetalinkRequestInfo.cc
  8370. (execute): Added the ability to print file information included in
  8371. a metalink file.
  8372. Added selective download mode to metalink.
  8373. * src/main.cc
  8374. (showUsage): Updated to denote that -S and --select-file options are
  8375. applicable to metalink.
  8376. * src/FileEntry.h
  8377. (operator=): New function.
  8378. (getBasename): New function.
  8379. (getDirname): New function.
  8380. * src/Util.h, src/Util.cc
  8381. (toStream): New function.
  8382. * src/Xml2MetalinkProcessor.cc: Updated.
  8383. Made aria2 work with metalink with directory structure.
  8384. * src/File.h, src/File.cc
  8385. (getBasename): New function.
  8386. (getDirname): New function.
  8387. * src/RequestGroup.h, src/RequestGroup.cc
  8388. (_topDir): New variable.
  8389. (setTopDir): New function.
  8390. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8391. Rewrote HTTP header parsing with stringstream.
  8392. * src/HttpConnection.h, src/HttpConnection.cc
  8393. (HttpRequestEntry): New class.
  8394. (headerBuf): Removed.
  8395. (headerBufLength): Removed.
  8396. (outstandingHttpRequests): Now its element type is
  8397. HttpRequestEntryHandle.
  8398. (findEndOfHeader): Removed.
  8399. (receiveResponse): Rewritten.
  8400. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8401. Updated doc for -j option to notice that it should be used with -i
  8402. option.
  8403. * src/main.cc (showUsage)
  8404. Removed unused classes.
  8405. * src/RequestInfo.h
  8406. (FileInfo): Removed.
  8407. (checksum): Removed.
  8408. (fileInfo): Removed.
  8409. (setChecksum): Removed.
  8410. (getChecksum): Removed.
  8411. (getFileInfo): Removed.
  8412. Use ISO units.
  8413. * src/ConsoleDownloadEngine.cc
  8414. * src/TorrentConsoleDownloadEngine.cc
  8415. * src/Util.cc (abbrevSize)
  8416. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8417. Added the default listening ports to the help message.
  8418. * src/main.cc (showUsage)
  8419. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8420. Reduce the number of calls to gettimeofday to lower CPU load.
  8421. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8422. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8423. * src/Peer.h (calculateUploadSpeed): New function.
  8424. (calculateDownloadSpeed): New function.
  8425. * src/DefaultPeerStorage.cc
  8426. (CalculateStat): Added _now variable.
  8427. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8428. and Peer::calculateUploadSpeed(const struct timeval&)
  8429. Drop connection if no request or piece message is exchanged in
  8430. a certain interval.
  8431. * src/DefaultBtInteractive.h
  8432. (btRuntime): New variable.
  8433. (inactiveCheckPoint): New variable.
  8434. (checkActiveInteraction): New function.
  8435. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8436. request or piece message is received.
  8437. (checkActiveInteraction): New function.
  8438. (doInteractionProcessing): Call checkActiveInteraction.
  8439. Fixed the bug that causes remote Metalink and Torrent files are not
  8440. processed.
  8441. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8442. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8443. Changed format of log file.
  8444. * src/SimpleLogger.cc
  8445. * Release 0.11.0
  8446. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8447. * src/AbstractCommand.cc
  8448. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8449. MSG_MAX_TRY from error to info.
  8450. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8451. * src/message.h
  8452. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8453. (MSG_DOWNLOAD_ABORTED): Added %s.
  8454. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8455. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8456. * src/PeerAbstractCommand.cc
  8457. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8458. * src/Request.h
  8459. (cookieBox): Made ShardHandle.
  8460. * src/RequestGroup.h, src/RequestGroup.cc
  8461. (createNextCommandWithAdj): New function.
  8462. * src/FileAllocationCommand.cc
  8463. (executeInternal): Use createNextCommandWithAdj().
  8464. * src/CheckIntegrityCommand.cc
  8465. (executeInternal): Use createNextCommandWithAdj().
  8466. Added --load-cookies command-option.
  8467. * src/OptionHandlerFactory.cc
  8468. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8469. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8470. Now aria2 can handle cookie's expiration date.
  8471. * src/Cookie.h (expires): Changed its type to time_t.
  8472. * src/main.cc: Added --load-cookies command-line option.
  8473. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8474. * src/Util.h, src/Util.cc (httpGMT): New function.
  8475. * src/Request.cc (Request): Initialize cookieBox using
  8476. CookieBoxFactory.
  8477. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8478. * src/CookieParser.h, src/CookieParser.cc: New class.
  8479. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8480. * src/HttpResponseCommand.cc
  8481. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8482. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8483. download.
  8484. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8485. Added -j command-line option.
  8486. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8487. * src/main.cc
  8488. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8489. Rewritten using stringstream.
  8490. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8491. Rewritten using stringstream.
  8492. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8493. Make download size shown in MB, KB.
  8494. * src/ConsoleDownloadEngine.h (sendStatistics)
  8495. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8496. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8497. Accept incoming connections if download rate is low.
  8498. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8499. (_lowestSpeedLimit): New variable.
  8500. (setLowestSpeedLimit): New function.
  8501. (execute): Accept incoming connections if download rate is low.
  8502. MAX_PEERS is ignored in this case.
  8503. Disable PREF_OUT in multiple concurrent download:
  8504. * src/RequestGroup.h, src/RequestGroup.cc
  8505. (setUserDefinedFilename): New function.
  8506. * src/DownloadEngineFactory.cc
  8507. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8508. concurrent download.
  8509. * src/DefaultSegmentManFactory.cc
  8510. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8511. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8512. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8513. Added its overloaded method.
  8514. * src/RequestGroup.h
  8515. (_numConcurrentCommand): New variable.
  8516. (setNumConcurrentCommand): New function.
  8517. * src/RequestGroup.cc
  8518. Abort download if same file is being downloaded concurrently.
  8519. * src/RequestGroup.h, src/RequestGroupMan.cc
  8520. (isSameFileBeingDownloaded): New function.
  8521. * src/HttpResponseCommand.cc (executeInternal)
  8522. * src/FtpNegotiateCommand.cc (recvSize)
  8523. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8524. * main.cc: Added help message for -i option.
  8525. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8527. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8528. * src/MetalinkEntry.h
  8529. (checksum): Changed to ChecksumHandle
  8530. * src/MetalinkRequestInfo.cc
  8531. (checksum): Changed to ChecksumHandle
  8532. * src/File.cc
  8533. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8534. * src/common.h
  8535. (DIR_OPEN_MODE): New definition
  8536. * src/RequestGroup.cc
  8537. (prepareForNextAction): Added an argument.
  8538. * src/message.h
  8539. (MSG_GOOD_CHECKSUM): New definition
  8540. (MSG_BAD_CHECKSUM): New definition
  8541. * src/HttpResponseCommand.cc
  8542. (handleDefaultEncoding): Continue download sequence in new
  8543. non-segmented download.
  8544. * src/FileAllocationEntry.h
  8545. (_nextDownloadCommand): New variable.
  8546. * src/DownloadCommand.cc
  8547. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8548. available.
  8549. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8550. * src/IteratableChecksumValidator.h,
  8551. src/IteratableChecksumValidator.cc: New class.
  8552. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8553. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8554. Change file mode to 666:
  8555. * src/common.h (OPEN_MODE): New definition.
  8556. * src/File.cc
  8557. * src/Util.cc
  8558. * src/Directry.cc
  8559. * src/AbstractDiskWriter.cc
  8560. Change the level of log message "download aborted" to debug:
  8561. * src/PeerAbstractCommand.cc (execute)
  8562. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8563. * src/TrackerWatcherCommand.cc
  8564. (createCommand): Sleep some seconds after request failed.
  8565. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8566. then abort tracker request.
  8567. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8568. * Added the simultaneous download feature.
  8569. * src/main.cc: Print "Exception caught: " when exception is caught.
  8570. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8571. * src/ActivePeerConnectionCommand.cc
  8572. * src/PeerInteractionCommand.cc
  8573. * src/BtRuntime.h
  8574. (cuidCounter): Removed.
  8575. (getNewCuid): Removed.
  8576. * src/DownloadEngineFactory.cc
  8577. * src/PeerListenCommand.cc
  8578. * src/TrackerUpdateCommand.cc
  8579. * src/PeerInitiateConnectionCommand.cc
  8580. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8581. * src/PeerAbstractCommand.cc
  8582. (onAbort): Call PeerStorage::returnPeer()
  8583. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8584. (incomingPeers): New variable.
  8585. (addIncomingPeer): New function.
  8586. (returnPeer): New function.
  8587. (onErasingPeer): New function.
  8588. (addPeer): push_back -> push_front
  8589. (getActivePeers): Rewritten.
  8590. (calculateStat): Rewritten.
  8591. * src/PeerStorage.h
  8592. (TransferStat::copy): New function.
  8593. (TransferStat::TransferStat): New function.
  8594. (TransferStat::operator=): New function.
  8595. (addIncomingPeer): New function.
  8596. (returnPeer): New function.
  8597. * src/PeerListenCommand.cc
  8598. (execute): Use PeerStorage::addIncomingPeer() instead of
  8599. Peer::addPeer().
  8600. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8601. Connect to a peer actively when download speed is lower than specified
  8602. speed in torrent download:
  8603. * src/ActivePeerConnectionCommand.h: New class.
  8604. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8605. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8606. * src/main.cc: Fixed the bug that prevents download if .netrc
  8607. doesn't exist.
  8608. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8609. To cache resolved hostname:
  8610. * src/AbstractCommand.h, src/AbstractCommand.cc
  8611. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8612. Added dns cache.
  8613. * src/FtpInitiateConnectionCommand.cc
  8614. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8615. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8616. NameResolver working without ares.
  8617. * src/TorrentRequestInfo.cc
  8618. (execute): Don't cache dns in torrent download.
  8619. * src/HttpInitiateConnectionCommand.cc
  8620. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8621. * src/DNSCache.h: New class.
  8622. * src/UrlRequestInfo.cc
  8623. (execute): Use dns cache.
  8624. In http request, suppress port number in http request header if port
  8625. is 80 or 443:
  8626. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8627. request header if port is 80 or 443.
  8628. (createProxyRequest): Allways send port number.
  8629. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8630. To add the command-line option which disables netrc support:
  8631. * src/OptionHandlerFactory.cc
  8632. (createOptionHandlers): Added PREF_NO_NETRC.
  8633. * src/main.cc: Added -n option.
  8634. * src/prefs.h (PREF_NO_NETRC): New definition.
  8635. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8636. V_TRUE.
  8637. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8638. is V_FALSE. This may get configurable in the future release.
  8639. To clear peer's error status by time basis:
  8640. * src/PeerAbstractCommand.cc
  8641. (onAbort): Call Peer::startBadCondition().
  8642. * src/Peer.h, src/Peer.cc
  8643. (error): Removed.
  8644. (_badConditionStartTime): New variable.
  8645. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8646. (startBadCondition): New function.
  8647. (isGood): New function.
  8648. * src/DefaultPeerStorage.cc
  8649. (addPeer): Use Peer::isGood().
  8650. (FindFinePeer): Use Peer::isGood().
  8651. Always include port number in http request header:
  8652. * src/HttpRequest.cc (getHostText): Always include port number in
  8653. http request header.
  8654. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8655. To the ability to read options from a config file:
  8656. * src/main.cc: Command-line parameter validation is delegated to
  8657. OptionHandler class.
  8658. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8659. * src/Option.h, src/Option.cc (clear): New function.
  8660. * src/OptionParser.h, src/OptionParser.cc: New class.
  8661. * src/OptionHandler.h: New class.
  8662. * src/NameMatchOptionHandler.h: New class.
  8663. * src/OptionHandlerImpl.h: New classes.
  8664. * src/prefs.h: '_' -> '-'
  8665. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8666. (FTP_PASV): New definition.
  8667. * src/Util.h, src/Util.cc (getRealSize): New function.
  8668. To disable netrc support if .netrc file does not have correct
  8669. permissions:
  8670. * src/File.h, src/File.cc (mode): New function.
  8671. To prevent confidential information to be logged:
  8672. * src/HttpConnection.h, src/HttpConnection.cc
  8673. (eraseConfidentialInfo): New function.
  8674. (sendRequest): Call eraseConfidentialInfo().
  8675. (sendProxyRequest): Call eraseConfidentialInfo().
  8676. * src/main.cc: Validate permissions of .netrc file.
  8677. To add --user-agent command-line option:
  8678. * src/main.cc: Added new command line option: --user-agent
  8679. * src/prefs.h (PREF_USER_AGENT): New definition.
  8680. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8681. parameter to HttpRequest object.
  8682. * src/AbstractProxyRequestCommand.cc
  8683. (executeInternal): Set user-agent option parameter to HttpRequest
  8684. object.
  8685. Marged the patches from Dan Fandrich.
  8686. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8687. Use filename and size from Metalink file instead of sending HEAD
  8688. request:
  8689. * src/UrlRequestInfo.h
  8690. (_filename): New variable.
  8691. (_totalLength): New variable.
  8692. (setTotalLength): New variable.
  8693. (setFilename): New variable.
  8694. * src/MetalinkRequestInfo.cc
  8695. (execute): Set filename and size to UrlRequestInfo
  8696. * src/UrlRequestInfo.cc
  8697. (execute): Use filename and size from Metalink instead of seding
  8698. HEAD request to servers.
  8699. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8700. To add the ability to resume downloading a partially downloaded file
  8701. which is downloaded from the beginning:
  8702. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8703. takes this role.
  8704. * src/main.cc: Added -c option.
  8705. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8706. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8707. * src/prefs.h (PREF_CONTINUE): New definition.
  8708. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8709. * src/DefaultDiskWriter.cc
  8710. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8711. * src/AbstractDiskWriter.h
  8712. (glowFileAllocator): New variable.
  8713. * src/AbstractDiskWriter.cc
  8714. (openExistingFile): Now preallocate file space from the end of the
  8715. existing file if totalLength argument is specified and grater than 0.
  8716. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8717. to download exists in local, continue the download of the file.
  8718. --allow-overwrite=true is assumed in this context.
  8719. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8720. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8721. Throw exception if --check-integrity=true is specified but chunk
  8722. checksums are not provided:
  8723. * src/UrlRequestInfo.cc
  8724. Do not print URLs to stdout:
  8725. * src/UrlRequestInfo.cc
  8726. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8727. * src/Request.h: Use AuthResolver to get authentication information.
  8728. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8729. set to RequestFactory object.
  8730. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8731. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8732. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8733. create Request object.
  8734. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8735. To integrate Netrc into exsiting classes:
  8736. * src/Request.h
  8737. (_userDefinedAuthConfig): New variable.
  8738. (findNetrcAuthenticator): New function.
  8739. (segment): Removed.
  8740. (setUserDefinedAuthConfig): New function.
  8741. (resolveHttpAuthConfigItem): New function.
  8742. (resolveFtpAuthConfigItem): New function.
  8743. (resolveHttpProxyAuthConfigItem): New function.
  8744. * src/HttpRequest.h
  8745. (authConfig): Removed.
  8746. (proxyAuthConfig): Removed.
  8747. (setAuthConfig): Removed.
  8748. (setProxyAuthConfig): Removed.
  8749. * src/UrlRequest.h
  8750. (getHeadResult): Added a parameter: authConfigHandle
  8751. * src/common.h
  8752. (SingletonHolder.h): New include.
  8753. * src/main.cc
  8754. (Netrc.h): New include.
  8755. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8756. Added initial value of PREF_NETRC_PATH.
  8757. Added the initialization of netrc.
  8758. * src/AuthConfig.h: New class.
  8759. * src/prefs.h
  8760. (PREF_NETRC_PATH): New definition.
  8761. * src/HttpAuthConfig.h: Removed.
  8762. * src/Netrc.cc
  8763. (getRequiredNextToken): New function.
  8764. (skipMacdef): New function.
  8765. (parse): Rewritten.
  8766. * src/Netrc.h
  8767. (getRequiredNextToken): New function.
  8768. (skipMacdef): New function.
  8769. * src/Util.h, src/Util.cc
  8770. (getHomeDir): New function.
  8771. * src/TrackerWatcherComand.cc
  8772. (createRequestCommand): Use AuthConfig.
  8773. * src/FtpConnection.cc
  8774. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8775. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8776. * src/Request.cc
  8777. (findNetrcAuthenticator): New function.
  8778. (resolveHttpAuthConfigItem): New function.
  8779. (resolveFtpAuthConfigItem): New function.
  8780. (resolveHttpProxyAuthConfigItem): New function.
  8781. * src/UrlRequestInfo.cc: Use AuthConfig.
  8782. * src/HttpRequest.cc
  8783. (createRequest): Use authConfig.
  8784. (getProxyAuthString): Use authConfig.
  8785. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8786. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8787. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8788. To reduce overhead to find commands whose socket is either
  8789. readable or writable in the download engine loop:
  8790. * src/Command.h, src/Command.cc
  8791. (STATUS): New enum.
  8792. (status): New variable.
  8793. (statusMatch): New function.
  8794. (setStatusActive): New function.
  8795. (setStatusInactive): New function.
  8796. * src/DownloadEngine.h, src/DownloadEngine.cc
  8797. (executeCommand): New function.
  8798. (run): Simplified.
  8799. (waitData): Call Command::setStatusActive() when command's socket is
  8800. readable or writable.
  8801. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8802. To handle Segment as SegmentHandle:
  8803. * src/AbstractCommand.cc (execute): Rewritten.
  8804. * src/SegmentMan.h: Segment -> SegmentHandle
  8805. Introducded HttpResponse class, HttpRequest class to improve code
  8806. extensiveness and make it clear:
  8807. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  8808. HttpResponse class.
  8809. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  8810. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  8811. * src/HttpConnection.cc: Contruction of http request were moved to
  8812. HttpRequest class.
  8813. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  8814. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  8815. * src/HttpAuthConfig.h: New class.
  8816. * src/Range.h: New class.
  8817. To make FtpTunnel{Request, Response}Command and
  8818. HttpProxy{Request, Response}Command derived from
  8819. AbstractProxy{Request, Response}Command:
  8820. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  8821. Derived from AbstractProxyRequestCommand class.
  8822. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  8823. Derived from AbstractProxyResponseCommand class.
  8824. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  8825. Derived from AbstractProxyRequestCommand class.
  8826. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  8827. Derived from AbstractProxyResponseCommand class.
  8828. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  8829. : New class.
  8830. * src/AbstractProxyResponseCommand.h,
  8831. src/AbstractProxyResponseCommand.cc: New class.
  8832. To add netrc support:
  8833. * src/Netrc.h, src/Netrc.cc: New class.
  8834. * src/Util.h, src/Util.cc (split): New function.
  8835. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  8836. "Content-Range" header instead of "Range" header.
  8837. * src/HttpHeader.h
  8838. (getStatus): Removed.
  8839. (setStatus): Removed.
  8840. * src/Segment.h
  8841. (getPositionToWrite): New function.
  8842. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8843. * src/HttpHeader.h
  8844. (Range.h): New include.
  8845. (status): New variable.
  8846. (HttpHeader): Initialized status with 0.
  8847. (getStatus): New function.
  8848. (setStatus): New function.
  8849. (getRange): New function.
  8850. (HttpHeaderHandle): New function.
  8851. * src/HttpHeader.cc
  8852. (getRange): New function.
  8853. * src/Request.h
  8854. (RequestWeakHandle): New definition.
  8855. * src/HttpConnection.h
  8856. (HttpConnectionHandle): New type definition.
  8857. * src/HttpConnection.cc
  8858. (receiveResponse): Set HTTP status to headers.
  8859. * src/main.cc
  8860. (showUsage): Fixed typo.
  8861. * src/Segment.h
  8862. (SegmentHandle): New type definition.
  8863. * src/BitfieldMan.h
  8864. (getMissingUnusedLength): New function.
  8865. * src/BitfieldMan.cc
  8866. (getMissingUnusedLength): New function.
  8867. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8868. To fix static initialization order problem:
  8869. * src/BitfieldManFactory.h
  8870. (defaultRandomizer): Removed.
  8871. (factory): New variable.
  8872. (getNewFactory): Removed.
  8873. (getFactoryInstance): New function.
  8874. (setDefaultRandomizer): Rewritten.
  8875. (getDefaultRandomizer): Rewritten.
  8876. * src/BitfieldManFactory.cc
  8877. (defaultRandomizer): Removed.
  8878. (factory): Initialized to 0.
  8879. (BitfieldManFactory): Initialized randomizer to 0.
  8880. * src/DefaultPieceStorage.cc
  8881. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  8882. * src/Peer.cc
  8883. (Peer): getNewFactory() -> getFactoryInstance()
  8884. * src/SegmentMan.cc
  8885. (initBitfield): getNewFactory() -> getFactoryInstance()
  8886. * src/Piece.cc
  8887. (Piece): getNewFactory() -> getFactoryInstance()
  8888. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8889. To fix the bug that causes crash on Max OS X:
  8890. * src/SimpleRandomizer.h
  8891. (getInstance): Create new instance if the static variable is null.
  8892. * src/SimpleRandomizer.cc
  8893. (randomizer): Initialized to 0.
  8894. * src/BitfieldManFactory.h
  8895. (getNewFactory): Removed the call to setRandomizer().
  8896. To fix the miscalculation of the range of checksum:
  8897. * src/BitfieldMan.h
  8898. (isBitSetOffsetRange): New function.
  8899. * src/BitfieldMan.cc
  8900. (isBitSetOffsetRange): New function.
  8901. * src/SegmentMan.cc
  8902. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  8903. Use bitfield->getBlockLength() instead of segment.segmentLength.
  8904. * Release 0.10.1
  8905. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8906. To lower CPU usage in BitTorrent download when --max-upload-limit
  8907. command-line option specified:
  8908. * src/DefaultBtMessageDispatcher.cc
  8909. (sendMessages): Calculate uploading speed only when current message
  8910. is uploading data and is not sent yet.
  8911. * src/DefaultPeerStorage.h
  8912. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  8913. * src/HttpResponseCommand.cc
  8914. (handleDefaultEncoding): Added the cast to int32_t to itos.
  8915. This fixes compile error in Soralis 10.
  8916. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8917. To fix segfault in Metalink download:
  8918. * src/UrlRequestInfo.h
  8919. (filename): Removed.
  8920. (totalLength): Removed.
  8921. (setTotalLength): Removed.
  8922. (setFilename): Removed.
  8923. * src/MetalinkRequestInfo.cc
  8924. (execute): Do not set filename and totalLength to reqInfo.
  8925. Set chunk checksum to reqInfo if it is not null.
  8926. * src/HttpResponseCommand.cc
  8927. (executeInternal): Fixed filename in log.
  8928. (handleDefaultEncoding): Removed the call to initBitfield() and
  8929. markAllPiecesDone().
  8930. (handleOtherEncoding): Added HEAD method handling.
  8931. * src/FtpNegotiateCommand.cc
  8932. (executeInternal): Added SEQ_HEAD_OK handling.
  8933. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  8934. return false.
  8935. * src/FtpNegotiateCommand.h
  8936. (SEQ_HEAD_OK): New definition.
  8937. * src/SegmentMan.cc
  8938. (initBitfield): Delete bitfield.
  8939. (isChunkChecksumValidationReady): Fixed the condition.
  8940. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  8941. works fine.
  8942. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8943. * src/Xml2MetalinkProcessor.h
  8944. (xpathExists): New function.
  8945. * src/Xml2MetalinkProcessor.cc
  8946. (xpathExists): New function.
  8947. Not to send HEAD request if filename and size are available in Metalink
  8948. file:
  8949. * src/UrlRequestInfo.h
  8950. (filename): New variable.
  8951. (totalLength): New variable.
  8952. (setTotalLength): New function.
  8953. (setFilename): New function.
  8954. * src/MetalinkRequestInfo.cc
  8955. (execute): Set filename and size to UrlRequestInfo.
  8956. * src/MetalinkEntry.cc
  8957. (MetalinkEntry): Initialize size with 0.
  8958. * src/UrlRequestInfo.cc
  8959. (execute): Set filename and size to SegmentMan.
  8960. Not to download rest of the files after selected files are downloaded
  8961. in BitTorrent:
  8962. * src/PieceStorage.h
  8963. (allDownloadFinished): New function.
  8964. * src/DefaultBtAnnounce.cc
  8965. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  8966. downloadFinished.
  8967. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  8968. * src/DefaultPieceStorage.cc
  8969. (completePiece): Use allDownloadFinished instead of downloadFinished.
  8970. Commented out the call to finishSelectiveDownloadingMode().
  8971. (downloadFinished): Call isFilteredAllBitSet() instead of
  8972. isAllBitSet().
  8973. (allDownloadFinished): New function.
  8974. * src/DefaultBtInteractive.cc
  8975. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  8976. downloadFinished().
  8977. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  8978. * src/TorrentDownloadEngine.cc
  8979. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  8980. * src/BitfieldMan.h
  8981. (isFilteredAllBitSet): New function.
  8982. * src/ShareRatioSeedCriteria.h
  8983. (PieceStorage.h): New include.
  8984. (pieceStorage): New variable.
  8985. (evaluate):
  8986. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  8987. * src/BitfieldMan.cc
  8988. (isFilteredAllBitSet): New function.
  8989. (isAllBitSet): Filter is not took into account.
  8990. Rename --force-truncate as --allow-overwrite:
  8991. * src/TorrentRequestInfo.cc
  8992. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  8993. * src/main.cc
  8994. (showUsage): --force-truncate -> --allow-overwrite
  8995. * src/message.h
  8996. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  8997. * src/prefs.h
  8998. (PREF_FORCE_TRUNCATE): Removed.
  8999. (PREF_ALLOW_OVERWRITE): New definition.
  9000. * src/SegmentMan.cc
  9001. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9002. * src/MetalinkRequestInfo.cc
  9003. (execute): Queueing message are now logged in info level.
  9004. * src/common.h
  9005. (LONG_LONG_MAX): Removed.
  9006. (LONG_LONG_MIN): Removed.
  9007. * src/HttpResponseCommand.cc
  9008. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9009. * src/FtpNegotiateCommand.cc
  9010. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9011. * src/main.cc
  9012. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9013. command-line option.
  9014. (main): Added --check-integriy and --realtime-chunk-checksum
  9015. command-line option.
  9016. --force-truncate -> --allow-overwrite
  9017. Set initial value of --check-integrity option to false.
  9018. Don't show usage when error occurs while persing command-line options.
  9019. Removed deprecated --upload-limit option.
  9020. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9021. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9022. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9023. * src/BtAllowedFastMessage.cc:
  9024. * src/BtBitfieldMessage.cc
  9025. * src/BtCancelMessage.cc
  9026. * src/BtChokeMessage.cc
  9027. * src/BtHaveAllMessage.cc
  9028. * src/BtHaveMessage.cc
  9029. * src/BtHaveNoneMessage.cc
  9030. * src/BtInterestedMessage.cc
  9031. * src/BtNotInterestedMessage.cc
  9032. * src/BtPieceMessage.cc
  9033. * src/BtPortMessage.cc
  9034. * src/BtRejectMessage.cc
  9035. * src/BtRequestMessage.cc
  9036. * src/BtSuggestPieceMessage.cc
  9037. * src/BtUnchokeMessage.cc
  9038. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9039. files are affected.
  9040. * src/ChunkChecksumValidator.cc
  9041. * src/SegmentMan.cc
  9042. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9043. To add chunk checksum validation:
  9044. * src/MetalinkEntry.h
  9045. (MetalinkChunkChecksum.h): New include.
  9046. (chunkChecksum): New variable.
  9047. * src/Request.h
  9048. (method): New variable.
  9049. (setMethod): New function.
  9050. (getMethod): New function.
  9051. (METHOD_GET): New static constant.
  9052. (METHOD_HEAD): New static constant.
  9053. * src/Xml2MetalinkProcessor.h
  9054. (getPieceHash): New function.
  9055. * src/PieceStorage.h
  9056. (markAllPiecesDone): New function.
  9057. (checkIntegrity): New function.
  9058. * src/FileAllocator.h
  9059. (NullFileAllocationMonitor.h): New include.
  9060. (FileAllocator): Initialize fileAllocationMonitor with new
  9061. NullFileAllocationMonitor().
  9062. * src/MultiDiskAdaptor.h
  9063. (messageDigest.h): Remove include.
  9064. (ctx): Removed.
  9065. (hashUpdate): Added ctx.
  9066. (MultiDiskAdaptor): Removed ctx.
  9067. (sha1Sum): Renamed as messageDigest.
  9068. (messageDigest): New function.
  9069. * src/UrlRequestInfo.h
  9070. (HeadResult): New class.
  9071. (digestAlgo): New variable.
  9072. (chunkChecksumLength): New variable.
  9073. (chunkChecksums): New variable.
  9074. (getHeadResult): New function.
  9075. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9076. (setDigestAlgo): New function.
  9077. (setChunkChecksumLength): New function.
  9078. (setChunkChecksums): New function.
  9079. * src/DefaultPieceStorage.cc
  9080. (DiskAdaptorWriter.h): New include.
  9081. (ChunkChecksumValidator.h): New include.
  9082. (markAllPiecesDone): New function.
  9083. (checkIntegrity): New function.
  9084. * src/DefaultBtContext.h
  9085. (getPieceHashes): New function.
  9086. * src/TorrentRequestInfo.cc
  9087. (execute): Try to validate chunk checksum if file already exists and
  9088. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9089. * src/messageDigest.h
  9090. (~MessageDigestContext): Added digestFree().
  9091. * src/MetalinkRequestInfo.cc
  9092. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9093. * src/DiskAdaptor.h
  9094. (messageDigest.h): New include.
  9095. (sha1Sum): Renamed as messageDigest.
  9096. (messageDigest): New function.
  9097. * src/DownloadCommand.h
  9098. (PeerStat.h): New include.
  9099. (maxDownloadSpeedLimit): New variable.
  9100. (startupIdleTime): New variable.
  9101. (lowestDownloadSpeedLimit): New variable.
  9102. (peerStat): New variable.
  9103. (setMaxDownloadSpeedLimit): New function.
  9104. (setStartupIdleTime): New function.
  9105. (setLowestDownloadSPeedLimit): New function.
  9106. * src/BtContext.h
  9107. (getPieceHashes): New function.
  9108. * src/main.cc
  9109. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9110. option to true for testing purpose.
  9111. * src/BtPieceMessage.cc
  9112. (checkPieceHash): Use messageDigest
  9113. * src/DownloadEngine.cc
  9114. (SetDescriptor): Removed.
  9115. (AccumulateActiveCommand): Removed.
  9116. (waitData): Rewritten.
  9117. (updateFdSet): Rewritten.
  9118. * src/MultiDiskAdaptor.cc
  9119. (hashUpdate): Added ctx.
  9120. (sha1Sum): Renamed as messageDigest.
  9121. (messageDigest): New function.
  9122. * src/BitfieldMan.h
  9123. (isBitRangeSet): New function.
  9124. (unsetBitRange): New function.
  9125. * src/ByteArrayDiskWriter.h
  9126. (sha1Sum): Renamed as messageDigest.
  9127. (messageDigest): New function.
  9128. * src/ConsoleDownloadEngine.cc
  9129. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9130. * src/DiskWriter.h
  9131. (messageDigest.h): New include.
  9132. (sha1Sum): Renamed as messageDigest.
  9133. (messageDigest): New function.
  9134. * src/ChunkChecksumValidator.h: New class.
  9135. * src/DiskAdaptorWriter.h: New class.
  9136. * src/prefs.h
  9137. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9138. (PREF_CHECK_INTEGRITY): New definition.
  9139. * src/HttpResponseCommand.cc
  9140. (handleDefaultEncoding): Added method "HEAD" handling.
  9141. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9142. (handleOtherEncoding):
  9143. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9144. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9145. startupIdleTime, lowestDownloadSpeedLimit to command.
  9146. * src/SegmentMan.h
  9147. (getSegmentEntryByIndex): New function.
  9148. (getSegmentEntryByCuid): New function.
  9149. (getSegmentEntryIteratorByCuid): New function.
  9150. (diskWriter): DiskWriter -> DiskWriterHandle
  9151. (pieceHashes): New variable.
  9152. (chunkHashLength): New variable.
  9153. (digestAlgo): New variable.
  9154. (FindPeerStat): Removed.
  9155. (getPeerStat): Rewritten.
  9156. (markAllPiecesDone): New function.
  9157. (checkIntegrity): New function.
  9158. (tryChunkChecksumValidation): New function.
  9159. (isChunkChecksumValidationReady): New function.
  9160. * src/BitfieldMan.cc
  9161. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9162. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9163. blocks to 0.
  9164. (isBitRangeSet): New function.
  9165. (unsetBitRange): New function.
  9166. * src/FtpNegotiateCommand.cc
  9167. (executeInternal): Set maxDownloadSpeedLimit,
  9168. startupIdleTime, lowestDownloadSpeedLimit to command.
  9169. (recvSize): Added method "HEAD" handling.
  9170. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9171. * src/AbstractSingleDiskAdaptor.cc
  9172. (sha1Sum): Renamed as messageDigest.
  9173. (messageDigest): New function.
  9174. * src/AbstractSingleDiskAdaptor.h
  9175. (sha1Sum): Renamed as messageDigest.
  9176. (messageDigest): New function.
  9177. * src/Util.h
  9178. (indexRange): New function.
  9179. * src/MetalinkEntry.cc
  9180. (MetalinkEntry): Initialized chunkChecksum to 0.
  9181. * src/ShaVisitor.cc
  9182. (~ShaVisitor): Removed the call to ctx.digestFree().
  9183. * src/SegmentMan.cc
  9184. (ChunkChecksumValidator.h): New include.
  9185. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9186. to DIGEST_ALGO_SHA1.
  9187. (~SegmentMan): Removed diskWriter.
  9188. (FindSegmentEntryByIndex): Removed.
  9189. (FindSegmentEntryByCuid): Removed.
  9190. (checkoutSegment): Rewritten.
  9191. (findSlowerSegmentEntry): Rewritten.
  9192. (getSegment): Rewritten.
  9193. (updateSegment): Rewritten.
  9194. (completeSegment): Rewritten.
  9195. (markAllPiecesDone): New function.
  9196. (checkIntegrity): New function.
  9197. (isChunkChecksumValidationReady): New function.
  9198. (tryChunkChecksumValidation): New function.
  9199. * src/Xml2MetalinkProcessor.cc
  9200. (getEntry): Get size and set it to entry.
  9201. Get chunk checksum and set it to entry.
  9202. (getPieceHash): New function.
  9203. * src/Util.cc
  9204. (sha1Sum): Removed ctx.digestFree()
  9205. (fileChecksum): Removed ctx.digestFree()
  9206. (indexRange): New function.
  9207. * src/Request.cc
  9208. (METHOD_GET): New variable.
  9209. (METHOD_HEAD): New variable.
  9210. (Request): Added method.
  9211. * src/UrlRequestInfo.cc
  9212. (FatalException.h): New include.
  9213. (message.h): New include.
  9214. (operator<<): Added operator<< for class HeadResult.
  9215. (getHeadResult): New function.
  9216. (execute): Get filename and size in separate download engine.
  9217. * src/ChunkChecksumValidator.cc: New class.
  9218. * src/DownloadCommand.cc:
  9219. (DownloadCommand): Added peerStat.
  9220. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9221. the value from Option.
  9222. The buffer size is now 16KB.
  9223. Use peerStat member instead of getting it from SegmentMan.
  9224. Use startupIdleTime member instead of gettingit from Option.
  9225. Added chunk checksum validation.
  9226. * src/AbstractDiskWriter.cc
  9227. (AbstractDiskWriter): Removed ctx.
  9228. (~AbstractDiskWriter): Removed ctx.digestFree()
  9229. (writeDataInternal): Returns the return value of write.
  9230. (readDataInternal): Returns the return value of read.
  9231. (sha1Sum): Renamed as messageDigest
  9232. (messageDigest): New function.
  9233. * src/AbstractDiwkWriter.h
  9234. (messageDigest.h): Removed include.
  9235. (ctx): Removed.
  9236. (sha1Sum): Renamed as messageDigest
  9237. (messageDigest): New function.
  9238. * src/DefaultPieceStorage.h
  9239. (markAllPiecesDone): New function.
  9240. (checkIntegrity): New function.
  9241. * src/NullFileAllocationMonitor.h: New class.
  9242. * src/MetalinkChunkChecksum.h: New class.
  9243. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9244. To decrease CPU usage in bittorrent download, calculation results in
  9245. BitfieldMan were cached and realtime fetching PeerObject was removed
  9246. with WeakHandle introduced. Option values are set to the objects
  9247. by setter before download begins.
  9248. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9249. * src/DefaultBtRequestFactory.h
  9250. (dispatcher): BtMessageDispatcherHandle ->
  9251. BtMessageDispatcherWeakHandle.
  9252. (messageFactory): New variable.
  9253. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9254. BtMessageDispatcherWeakHandle.
  9255. (setBtMessageFactory): New function.
  9256. * src/DefaultBtMessageDispatcher.cc:
  9257. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9258. from Option.
  9259. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9260. feating the value from Option.
  9261. Use messageFactory member.
  9262. * src/PeerInteractionCommand.cc
  9263. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9264. Add reverse dependencies to factory object.
  9265. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9266. dispatcher.
  9267. Set messageFactory to receiver.
  9268. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9269. btInteractive.
  9270. Set receiver to peerObject.
  9271. Set maxDownloadSpeedLimit to this.
  9272. (executeInternal): Use maxDownloadSpeedLimit member.
  9273. * src/BtChokeMessage.cc
  9274. (doReceivedAction): Use dispatcher, requestFactory member.
  9275. (onSendComplete): Use dispatcher member.
  9276. * src/PeerInteractionCommand.h
  9277. (maxDownloadSpeedLimit): New variable.
  9278. * src/DefaultBtMessageReceiver.h
  9279. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9280. (dispatcher):
  9281. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9282. (messageFactory): New variable.
  9283. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9284. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9285. (setDispatcher):
  9286. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9287. (setBtMessageFactory): New function.
  9288. * src/DefaultBtInteractive.cc
  9289. (initiateHandshake): Use messageFactory member.
  9290. (addBitfieldMessageToQueue): Use messageFactory member.
  9291. (addAllowedFastMessageToQueue): Use messageFactory member.
  9292. (decideChoking): Use messageFactory member.
  9293. (checkHave): Use messageFactory member.
  9294. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9295. (receiveMessages): Use maxDownloadSpeedLimit member.
  9296. (decideInterest): Use messageFactory member.
  9297. * src/BtRequestMessage.cc
  9298. (doReceivedAction): Use messageFactory, dispatcher member.
  9299. (onQueued): Use dispatcher member.
  9300. * src/BtPieceMessage.cc
  9301. (doReceivedAction): Use dispatcher member.
  9302. (send): Use peerConnection member.
  9303. (onWrongPiece): Use requestFactory member.
  9304. (handleChokingEvent): Use messageFactory, dispatcher member.
  9305. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9306. * src/BtMessageDispatcher.h
  9307. (BtMessageDispatcherWeakHandle): New type definition.
  9308. * src/SimpleBtMessage.cc
  9309. (send): Use peerConnection member.
  9310. * src/BtRejectMessage.cc
  9311. (doReceivedAction): Use dispatcher member.
  9312. * src/DefaultBtMessageDispatcher.h
  9313. (Option.h): Removed include.
  9314. (messageFactory): New variable.
  9315. (option): Removed.
  9316. (maxUploadSpeedLimit): New variable.
  9317. (requestTimeout): New variable.
  9318. (DefaultBtMessageDispatcher): Removed option.
  9319. Added maxUploadSpeedLimit, requestTimeout.
  9320. (setOption): Removed.
  9321. (getOption): Removed.
  9322. (setMaxUploadSpeedLimit): New function.
  9323. (setRequestTimeout): New function.
  9324. (setBtMessageFactory): New function.
  9325. * src/DefaultBtInteractive.h
  9326. (btMessageReceiver):
  9327. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9328. (dispatcher):
  9329. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9330. (btRequestFactory):
  9331. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9332. (peerConnection):
  9333. PeerConnectionHandle -> PeerConnectionWeakHandle
  9334. (messageFactory): New variable.
  9335. (option): Removed.
  9336. (keepAliveInterval): New variable.
  9337. (maxDownloadSpeedLimit): New variable.
  9338. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9339. (setBtMessageReceiver):
  9340. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9341. (setDispatcher):
  9342. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9343. (setBtRequestFactory):
  9344. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9345. (setPeerConnection):
  9346. PeerConnectionHandle -> PeerConnectionWeakHandle
  9347. (setOption): Removed.
  9348. (setKeepAliveInterval): New function.
  9349. (setMaxDownloadSpeedLimit): New function.
  9350. (setBtMessageFactory): New function.
  9351. * src/BitfieldMan.h
  9352. (cachedNumMissingBlock): New variable.
  9353. (cachedNumFilteredBlock): New variable.
  9354. (cachedCompletedLength): New variable.
  9355. (cachedFilteredComletedLength): New variable.
  9356. (cachedFilteredTotalLength): New variable.
  9357. (countMissingBlockNow): New function.
  9358. (countFilteredBlockNow): New function.
  9359. (getFilteredTotalLengthNow): New function.
  9360. (getCompletedLengthNow): New function.
  9361. (getFilteredCompletedLengthNow): New function.
  9362. (updateCache): New function.
  9363. * src/AbstractBtMessage.h
  9364. (BtMessageDispatcher.h): New include.
  9365. (PeerConnection.h): New include.
  9366. (BtRequestFactory.h): New include
  9367. (BtMessageFactory.h): New include.
  9368. (dispatcher): New variable.
  9369. (messageFactory): New variable.
  9370. (peerConnection: New variable.
  9371. (setBtMessageDispatcher): New function.
  9372. (setPeerConnection): New function.
  9373. (setBtMessageFactory): New function.
  9374. (setBtRequestFactory): New function.
  9375. * src/DefaultBtMessageFactory.cc
  9376. (setCommonProperty): Set dispatcher, requestFactory, this,
  9377. peerConnection to msg.
  9378. * src/BtRegistry.h
  9379. (BT_MESSAGE_RECEIVER): New macro.
  9380. * src/PeerConnection.h
  9381. (PeerConnectionWeakHandle): New type definition.
  9382. * src/BtMessageFactory.h
  9383. (BtMessageFactoryWeakHandle): New type definition.
  9384. * src/BitfieldMan.cc
  9385. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9386. cachedCompletedLength, cachedFilteredComletedLength,
  9387. cachedFilteredTotalLength.
  9388. Call updateCache().
  9389. (countMissingBlock): Return cachedNumMissingBlock.
  9390. (countMissingBlockNow): New function.
  9391. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9392. (countFilteredBlockNow): New function.
  9393. (setBit): Call updateCache().
  9394. (unsetBit): Call updateCache().
  9395. (setBitfield): Call updateCache().
  9396. (clearAllBit): Call updateCache().
  9397. (setAllBit): Use setBitInternal instead of setBit.
  9398. Call updateCache().
  9399. (addFilter): Call updateCache().
  9400. (enableFilter): Call updateCache().
  9401. (disableFilter): Call updateCache().
  9402. (clearFilter): Call updateCache().
  9403. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9404. (getFilteredTotalLengthNow): New function.
  9405. (getCompletedLength): Return cachedCompletedLength.
  9406. (getCompletedLengthNow): New function.
  9407. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9408. (getFilteredCompletedLengthNow): New function.
  9409. (updateCache): New function.
  9410. * src/BtMessageReceiver.h
  9411. (BtMessageReceiverWeakHandle): New type definition.
  9412. * src/DefaultBtMessageReceiver.cc
  9413. (receiveHandshake): Use messageFactory member.
  9414. (sendHandshake): Use messageFactory member.
  9415. (receiveMessage): Use messageFactory member.
  9416. * src/DefaultBtMessageFactory.h
  9417. (dispatcher): New variable.
  9418. (requestFactory): New variable.
  9419. (peerConnection): New variablle.
  9420. (setBtMessageDispatcher): New function.
  9421. (setBtRequestFactory): New function.
  9422. (setPeerConnection): New function.
  9423. * src/SharedHandle.h
  9424. (RefCount): New class.
  9425. (WeakHandle): New class.
  9426. * src/PeerObject.h
  9427. (BtMessageReceiver.h): New include.
  9428. (PeerObject): Added btMessageReceiver.
  9429. (btMessageReceiver): New variable.
  9430. * src/Util.cc
  9431. (countBit): Simplified.
  9432. * src/BtCancelMessage.cc
  9433. (doReceivedAction): Use dispatcher member.
  9434. * src/BtRequestFactory.h
  9435. (BtRequestFactoryWeakHandle): New type definition.
  9436. * src/PeerStorage.h
  9437. (downloadSpeed): int -> uint32_t
  9438. (uploadSpeed): int -> uint32_t
  9439. (sessionDownloadLength): long long int -> uint64_t
  9440. (sessionUploadLength): long long int -> uint64_t
  9441. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9442. To add RecoverableException, FatalException:
  9443. * src/AbstractCommand.cc
  9444. (onAbort): Exception -> RecoverableException
  9445. * src/PeerAbstractCommand.h
  9446. (RecoverableException.h): New include.
  9447. (onAbort): Exception -> RecoverableException.
  9448. * src/PeerInteractionCommand.cc
  9449. (onAbort): Exception -> RecoverableException.
  9450. * src/PeerAbstractCommand.cc
  9451. (execute): Exception -> RecoverableException.
  9452. (onAbort): Exception -> RecoverableException.
  9453. * src/TorrentRequestInfo.cc
  9454. (execute): Exception -> RecoverableException.
  9455. * src/MetalinkRequestInfo.cc
  9456. (execute): Exception -> RecoverableException.
  9457. * src/MetaFileUtil.cc: RecoverableException.
  9458. * src/AbstractCommand.h
  9459. (onAbort): Exception -> RecoverableException.
  9460. * src/DlRetryEx.h: Exception -> RecoverableException.
  9461. * src/DlAbortEx.h: Exception -> RecoverableException.
  9462. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9463. * src/Util.cc: Exception -> RecoverableException.
  9464. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9465. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9466. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9467. To make ID static const int
  9468. * src/BtInterestedMessage.h
  9469. (ID_t): Removed.
  9470. (ID): New variable.
  9471. (getId): Made non-const.
  9472. * src/BtPieceMessage.h
  9473. (ID_t): Removed.
  9474. (ID): New variable.
  9475. (getId): Made non-const.
  9476. * src/BtChokeMessage.h
  9477. (ID_t): Removed.
  9478. (ID): New variable.
  9479. (getId): Made non-const.
  9480. * src/BtHaveAllMessage.h
  9481. (ID_t): Removed.
  9482. (ID): New variable.
  9483. (getId): Made non-const.
  9484. * src/BtKeepAliveMessage.h
  9485. (ID_t): Removed.
  9486. (ID): New variable.
  9487. (getId): Made non-const.
  9488. * src/BtHandshakeMessage.h
  9489. (ID): New variable.
  9490. (getId): Made non-const.
  9491. * src/BtSuggestPieceMessage.h
  9492. (ID_t): Removed.
  9493. (ID): New variable.
  9494. (getId): Made non-const.
  9495. * src/BtPortMessage.h
  9496. (ID_t): Removed.
  9497. (ID): New variable.
  9498. (getId): Made non-const.
  9499. * src/AbstractBtMessage.h
  9500. (id): Removed.
  9501. (AbstractBtMessage): Removed id.
  9502. (getId): Removed.
  9503. * src/BtHaveMessage.h
  9504. (ID_t): Removed.
  9505. (ID): New variable.
  9506. (getId): Made non-const.
  9507. * src/BtAllowedFastMessage.h
  9508. (ID_t): Removed.
  9509. (ID): New variable.
  9510. (getId): Made non-const.
  9511. * src/BtCancelMessage.h
  9512. (ID_t): Removed.
  9513. (ID): New variable.
  9514. (getId): Made non-const.
  9515. * src/BtNotInterestedMessage.h
  9516. (ID_t): Removed.
  9517. (ID): New variable.
  9518. (getId): Made non-const.
  9519. * src/BtChokeMessage.h
  9520. (ID_t): Removed.
  9521. (ID): New variable.
  9522. (getId): Made non-const.
  9523. * src/BtRejectMessage.h
  9524. (ID_t): Removed.
  9525. (ID): New variable.
  9526. (getId): Made non-const.
  9527. * src/BtBitfieldMessage.h
  9528. (ID_t): Removed.
  9529. (ID): New variable.
  9530. (getId): Made non-const.
  9531. * src/BtUnchokeMessage.h
  9532. (ID_t): Removed.
  9533. (ID): New variable.
  9534. (getId): Made non-const.
  9535. * src/BtRequestMessage.h
  9536. (ID_t): Removed.
  9537. (ID): New variable.
  9538. (getId): Made non-const.
  9539. * src/BtHaveMessage.h
  9540. (ID_t): Removed.
  9541. (ID): New variable.
  9542. (getId): Made non-const.
  9543. To add --force-truncate command-line option and a check whether
  9544. the file already exists:
  9545. * src/DirectDiskAdaptor.h
  9546. (getFilePath): Made virtual public.
  9547. * src/MultiDiskAdaptor.h
  9548. (File.h): New include.
  9549. (DiskWriterEntry::fileEntry): Made private.
  9550. (DiskWriterEntry::fileExists): New function.
  9551. (DiskWriterEntry::getFileEntry): New function.
  9552. (fileExists): New function.
  9553. (getFilePath): New function.
  9554. * src/TorrentRequestInfo.cc
  9555. (FatalException.h): New include.
  9556. (message.h): New include.
  9557. (RecoverableException.h): New include.
  9558. (execute): Added a check whether file is already exists or not.
  9559. * src/DiskAdaptor.h
  9560. (fileExists): New function.
  9561. (getFilePath): New function.
  9562. * src/main.cc
  9563. (showUsage): Added an explanation of --force-truncate command-line
  9564. option.
  9565. (main): Added --force-truncate command-line option.
  9566. * src/Exception.h
  9567. (setMsg): buf[256] -> buf[1024]
  9568. * src/CopyDiskWriter.h
  9569. (getFilePath): Made public virtual.
  9570. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9571. (fileExists): New function.
  9572. * src/DownloadEngineFactory.cc
  9573. (newTorrentConsoleEngine): Don't open file here.
  9574. * src/message.h
  9575. (EX_FILE_ALREADY_EXISTS): New definition.
  9576. * src/prefs.h
  9577. (PREF_FOECE_TRUNCATE): New definition.
  9578. * src/HttpResponseCommand.cc
  9579. (handleDefaultEncoding): Added a check whether the file already exists.
  9580. * src/SegmentMan.h
  9581. (fileExists): New function.
  9582. (shouldCancelDownloadForSafety): New function.
  9583. * src/FtpNegotiateCommand.cc
  9584. (recvSize): Added a check whether the file already exists.
  9585. * src/AbstractSingleDiskAdaptor.cc
  9586. (File.h): New include.
  9587. (fileExists): New function.
  9588. * src/AbstractSingleDiskAdaptor.h
  9589. (getFilePath): Removed.
  9590. (fileExists): New function.
  9591. * src/SegmentMan.cc
  9592. (fileExists): New function.
  9593. (shouldCancelDownloadForSafety): New function.
  9594. To fix regression bug in torrent downloading:
  9595. * src/DefaultBtRequestFactory.cc
  9596. (doChokedAction): New function.
  9597. * src/DefaultBtRequestFactory.h
  9598. (doChokedAction): New function.
  9599. * src/DefaultBtMessageDispatcher.cc
  9600. (doChokedAction): Do not delete request if its target is in allowed
  9601. fast set.
  9602. * src/DefaultBtInteractive.cc
  9603. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9604. (sendKeepAlive): Send keep alive message even if the outgoing message
  9605. queue is not empty.
  9606. (decideInterest): Simplified the code.
  9607. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9608. it is already called when BtChokeMessage is received from a peer.
  9609. * src/BtRequestFactory.h
  9610. (doChokedAction): New function.
  9611. To clean up code:
  9612. * src/PeerInteractionCommand.h
  9613. (executeInternal): Added virtual keyword explicitly.
  9614. (prepareForRetry): Added virtual keyword explicitly.
  9615. (prepareForNextPeer): Added virtual keyword explicitly.
  9616. (onAbort): Added virtual keyword explicitly.
  9617. * src/RequestSlot.cc
  9618. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9619. * src/BtPieceMessage.cc
  9620. (doReceivedAction): Added a debug log of piece's bitfield.
  9621. * src/Piece.h
  9622. (getBitfieldLength): New function.
  9623. * src/ByteArrayDiskWriter.cc
  9624. (clear): Added buf = 0 to avoid double free corruption.
  9625. * src/FileAllocator.cc
  9626. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9627. Added cp.reset().
  9628. * src/BitfieldMan.h
  9629. (operator=): Rewritten.
  9630. * src/BitfieldMan.cc
  9631. (BitfieldMan): Initialized bitfield, useBitfield.
  9632. * src/PeerConnection.cc
  9633. (receiveMessage): Added a call to socket->readable() after getting
  9634. message length to avoid possible EOF.
  9635. * src/Util.cc
  9636. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9637. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9638. To add an ability to pre-allocate file space:
  9639. * src/DirectDiskAdaptor.h: Rewritten.
  9640. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9641. * src/MultiDiskAdaptor.h: Rewritten.
  9642. * src/DefaultPieceStorage.cc
  9643. (MultiDiskWriter.h): Removed include.
  9644. (PreAllocationDiskWriter.h): Removed include.
  9645. (FileAllocationMonitor.h): New include.
  9646. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9647. (initStorage): Rewritten.
  9648. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9649. * src/FileAllocator.h: New class.
  9650. * src/FileAllocator.cc: New class.
  9651. * src/FileAllocationMonitor.h: New class.
  9652. * src/FileAllocationMonitor.cc: New class.
  9653. * src/ConsoleFileAllocationMonitor.h: New class.
  9654. * src/ConsoleFileAllocationMonitor.cc: New class.
  9655. * src/AbstractSingleDiskAdaptor.h: New class.
  9656. * src/AbstractSingleDiskAdaptor.cc: New class.
  9657. * src/DiskAdaptor.h
  9658. (Directory.h): Removed include.
  9659. (DiskWriter.h): Removed include.
  9660. (FileEntry.h): Removed include.
  9661. (diskWriter): Removed.
  9662. (DiskAdaptor): Removed diskWriter.
  9663. (openFile): Made pure virtual.
  9664. (closeFile): Made pure virtual.
  9665. (openExistingFile): Made pure virtual.
  9666. (initAndOpenFile): Made pure virtual.
  9667. (writeData): Made pure virtual.
  9668. (readData): Made pure virtual.
  9669. (sha1Sum): Made pure virtual.
  9670. (getStoreDir): Returns const reference of storeDir.
  9671. (DiskAdaptorHandle): New type definition.
  9672. * src/main.cc
  9673. (ConsoleFileAllocationMonitor.h): New include.
  9674. (showUsage): Added default value description of -s option.
  9675. Added the description of --file-allocation option.
  9676. (main): Set default value of --file-allocation option to 'none'.
  9677. Added --file-allocation command-line option.
  9678. Setup FileAllocationMonitorFactory.
  9679. * src/FtpInitiateConnectionCommand.cc
  9680. (executeInternal): Removed diskWriter related processing, which was
  9681. moved to FtpNegotiationCommand.cc.
  9682. * src/DirectDiskAdaptor.cc
  9683. (getFilePath): Made non-const.
  9684. * src/CopyDiskAdaptor.h
  9685. (DiskAdaptor.h): Removed include.
  9686. (DiskWriter.h): Removed include.
  9687. (AbstractSingleDiskAdaptor.h): New include.
  9688. (getFilePath): Made non-const. Added virtual keyword.
  9689. (CopyDiskAdaptor): Removed diskWriter.
  9690. (getTempFile): Returns const reference.
  9691. (CopyDiskAdaptorHandle): New type definition.
  9692. * src/ByteArrayDiskWriter.cc
  9693. (clear): Simplified.
  9694. (initAndOpenFile): Rewritten.
  9695. (openFile): Call initAndOpenFile()
  9696. * src/MultiDiskAdaptor.cc: Rewritten.
  9697. * src/DownloadEngineFactory.cc
  9698. (FileAllocator.h): New include.
  9699. (FileAllocationMonitor.h): New include.
  9700. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9701. create DefaultDiskWriter with file allocator.
  9702. * src/DiskWriter.h
  9703. (initAndOpenFile): Added totalLength argument.
  9704. (openFile): Added totalLength argument.
  9705. * src/prefs.h
  9706. (PREF_FILE_ALLOCATION): New definition.
  9707. (V_PREALLOC): New definition.
  9708. (V_NONE): New definition.
  9709. * src/HttpResponseCommand.cc
  9710. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9711. size.
  9712. * src/FtpNegotiateCommand.cc
  9713. (Util.h): New include.
  9714. (recvSize): Open file here.
  9715. * src/Util.h
  9716. (ullitos): New function.
  9717. * src/CopyDiskWriter.h
  9718. (getFilePath): Made non-const.
  9719. * src/DefaultDiskWriter.h
  9720. (Option.h): New include.
  9721. (totalLength): Removed.
  9722. (DefaultDiskWriter): Removed totalLength.
  9723. (initAndOpenFile): Added totalLength argument.
  9724. (DefaultDiskWriterHandle): New type definition.
  9725. (createNewDiskWriter): New function.
  9726. * src/Util.cc
  9727. (ullitos): New function.
  9728. * src/DefaultDiskWriter.cc
  9729. (message.h): New include.
  9730. (FileAllocator.h): New include.
  9731. (prefs.h): New include.
  9732. (Util.h): New include.
  9733. (DefaultDiskWriter): Removed totalLength.
  9734. (initAndOpenFile): Added file allocation.
  9735. (createNewDiskWriter): New function. Just for temporary solution.
  9736. It will be rewritten later.
  9737. * src/DiskAdaptor.cc
  9738. (DiskAdaptor): Removed diskWriter.
  9739. * src/AbstractDiskWriter.cc
  9740. (LogFactory.h): New include.
  9741. (AbstractDiskWriter): Added fileAllocator, logger.
  9742. (openFile): Added totalLength argument.
  9743. * src/AbstractDiskWriter.h
  9744. (FileAllocator.h): New include.
  9745. (Logger.h): New include.
  9746. (fileAllocator): New variable.
  9747. (logger): New variable.
  9748. (openFile): Added totalLength argument. Added virtual keyword
  9749. explicitly.
  9750. (openExistingFile): Added totalLength argument. Added virtual keyword
  9751. explicitly.
  9752. (closeFile): Added virtual keyword explicitly.
  9753. (sha1Sum): Added virtual keyword explicitly.
  9754. (writeData): Added virtual keyword explicitly.
  9755. (readData): Added virtual keyword explicitly.
  9756. (setFileAllocator): New function.
  9757. * src/DefaultPieceStorage.h
  9758. (FileAllocator.h): New include.
  9759. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9760. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9761. * src/FileProgressMonitor.h: New class.
  9762. To compile aria2 on PC-BSD:
  9763. * src/DefaultBtContext.cc
  9764. (libgen.h): New include.
  9765. To fix memory leak:
  9766. * src/Exception.h
  9767. (~Exception): Delete cause. Fixed memory leak.
  9768. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9769. Rewritten a portion of bittorrent implementation:
  9770. * src/BtMessageValidator.h: New class.
  9771. * src/BtBitfieldMessageValidator.h: New class.
  9772. * src/BtHandshakeMessageValidator.h: New class.
  9773. * src/BtRequestMessageValidator.h: New class.
  9774. * src/BtSuggestPieceMessageValidator.h: New class.
  9775. * src/BtAllowedFastMessageValidator.h: New class.
  9776. * src/BtRejectMessageValidator.h: New class.
  9777. * src/BtCancelMessageValidator.h: New class.
  9778. * src/BtPieceMessageValidator.h: New class.
  9779. * src/BtHaveMessageValidator.h: New class.
  9780. * src/BtEventListener.h: New class.
  9781. * src/AbstractBtEventListener.h: New class.
  9782. * src/BtEvent.h: New class.
  9783. * src/BtChokingEvent.h: New class.
  9784. * src/BtChokedEvent.h: New class.
  9785. * src/BtCancelSendingPieceEvent.h: New class.
  9786. * src/BtAbortOutstandingRequestEvent.h: New class.
  9787. * src/Randomizer.h: New class.
  9788. * src/SimpleRandomizer.h: New class.
  9789. * src/BtMessage.h: New class.
  9790. * src/AbstractBtMessage.h: New class.
  9791. * src/SimpleBtMessage.h: New class.
  9792. * src/BtHaveMessage.h: New class.
  9793. * src/BtInterestedMessage.h: New class.
  9794. * src/BtAllowedFastMessage.h: New class.
  9795. * src/BtUnchokeMessage.h: New class.
  9796. * src/BtCancelMessage.h: New class.
  9797. * src/BtNotInterestedMessage.h: New class.
  9798. * src/BtChokeMessage.h: New class.
  9799. * src/BtHaveNoneMessage.h: New class.
  9800. * src/BtHandshakeMessage.h: New class.
  9801. * src/BtSuggestPieceMessage.h: New class.
  9802. * src/BtHaveMessage.h: New class.
  9803. * src/BtPieceMessage.h: New class.
  9804. * src/BtHaveAllMessage.h: New class.
  9805. * src/BtKeepAliveMessage.h: New class.
  9806. * src/BtPortMessage.h: New class.
  9807. * src/BtRejectMessage.h: New class.
  9808. * src/BtBitfieldMessage.h: New class.
  9809. * src/BtRequestMessage.h: New class.
  9810. * src/DefaultBtRequestFactory.h: New class.
  9811. * src/DefaultBtMessageReceiver.h: New class.
  9812. * src/BtInteractive.h: New class.
  9813. * src/BtMessageDispatcher.h: New class.
  9814. * src/DefaultBtMessageDispatcher.h: New class.
  9815. * src/DefaultBtInteractive.h: New class.
  9816. * src/BitfieldManFactory.h: New class.
  9817. * src/HandleRegistry.h: New class.
  9818. * src/BtMessageFactory.h: New class.
  9819. * src/BtMessageReceiver.h: New class.
  9820. * src/DefaultBtMessageFactory.h: New class.
  9821. * src/PeerObject.h: New class.
  9822. * src/BtRequestFactory.h: New class.
  9823. * src/SuggestPieceMessage.h: Removed.
  9824. * src/PortMessage.h: Removed.
  9825. * src/SuggestPieceMessage.h: Removed.
  9826. * src/KeepAliveMessage.h: Removed.
  9827. * src/HandshakeMessage.h: Removed.
  9828. * src/PeerInteraction.h: Removed.
  9829. * src/UnchokeMessage.h: Removed.
  9830. * src/PieceMessage.h: Removed.
  9831. * src/RequestMessage.h: Removed.
  9832. * src/InterestedMessage.h: Removed.
  9833. * src/HaveMessage.h: Removed.
  9834. * src/CancelMessage.h: Removed.
  9835. * src/RejectMessage.h: Removed.
  9836. * src/AllowedFastMessage.h: Removed.
  9837. * src/HaveNoneMessage.h: Removed.
  9838. * src/SimplePeerMessage.h: Removed.
  9839. * src/HaveAllMessage.h: Removed.
  9840. * src/BitfieldMessage.h: Removed.
  9841. * src/PeerMessageFactory.h: Removed.
  9842. * src/NotInterestedMessage.h: Removed.
  9843. * src/ChokeMessage.h: Removed.
  9844. * src/PeerMessage.h: Removed.
  9845. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9846. To know root cause of exception:
  9847. * src/Exception.h
  9848. (cause): New variable.
  9849. (Exception): Added a parameter.
  9850. (getMsg): Return const reference to msg.
  9851. (getCause): New function.
  9852. * src/DlRetryEx.h
  9853. (DlRetryEx): Added a parameter 'cause'.
  9854. Added an overloaded constructor.
  9855. (DlAbortEx): Added a parameter 'cause'.
  9856. Added an overloaded constructor.
  9857. * src/SimpleLogger.cc
  9858. (writeLog): Log nested exception messages recursively.
  9859. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9860. * src/DefaultBtProgressInfoFile.cc
  9861. (load): Fixed memory leak when the infohash doesn't match.
  9862. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9863. * src/DefaultPeerStorage.cc
  9864. (calculateStat): Simplified the code by combining 2 loops into 1.
  9865. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9866. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  9867. for BitTorrent download:
  9868. * src/PeerAbstractCommand.cc
  9869. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  9870. * src/main.cc:
  9871. (timeoutSpecified): Removed.
  9872. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  9873. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  9874. * src/TorrentRequestInfo.cc
  9875. (timeoutSpecified): Removed.
  9876. (torrentHandler): Removed timeoutSpecified and the adjustment of
  9877. timeout value.
  9878. * src/prefs.h
  9879. (PREF_BT_TIMEOUT): New definition.
  9880. Delete unused variables:
  9881. * src/TorrentRequestInfo.cc
  9882. (requestInfo): Removed.
  9883. Move setSignalHander to Util::setGlobalSignalHandler:
  9884. * src/TorrentRequestInfo.cc:
  9885. setSignalHander -> Util::setGlobalSignalHandler
  9886. * src/main.cc
  9887. (setSignalHander): Removed.
  9888. (main): setSignalHander -> Util::setGlobalSignalHandler
  9889. * src/Util.h
  9890. (setGlobalSignalHandler): New function.
  9891. * src/Util.cc
  9892. (setGlobalSignalHandler): New function.
  9893. * src/UrlRequestInfo.cc:
  9894. setSignalHander -> Util::setGlobalSignalHandler
  9895. Reset peer status in order to exit gracefully:
  9896. * src/PeerAbstractCommand.cc
  9897. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  9898. To fix the bug that causes the number of bytes uploaded is not saved
  9899. to .aria2 file:
  9900. * src/DefaultPeerStorage.h
  9901. (removedPeerSessionDownloadLength): New variable.
  9902. (removedPeerSessionUploadLength): New variable.
  9903. * src/DefaultPeerStorage.cc
  9904. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  9905. removedPeerSessionUploadLength(0).
  9906. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  9907. through all peers, and then add removedPeerSessionDownloadLength(
  9908. removedPeerSessionUploadLength) to it.
  9909. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  9910. (to) the peer to removedPeerSessionDownloadLength
  9911. (removedPeerSessionUploadLength).
  9912. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9913. To add Metalink location option:
  9914. * src/MetalinkRequestInfo.cc
  9915. (execute): Call MetalinkEntry::setLocationPreference()
  9916. * src/main.cc
  9917. (showUsage): Added the help message for --metalink-location option.
  9918. (main): Added --metalink-location option.
  9919. * src/prefs.h
  9920. (PREF_METALINK_LOCATION): New definition.
  9921. * src/MetalinkEntry.cc
  9922. (AddLocationPreference): New function object.
  9923. (setLocationPreference): New function.
  9924. * src/Xml2MetalinkProcessor.cc
  9925. (getResource): Set location attribute to MetalinkResource
  9926. To show URLs to download
  9927. * src/UrlRequestInfo.h
  9928. (printUrls): New function.
  9929. To add multiple <file> Metalink support:
  9930. * src/MetalinkEntry.h
  9931. (MetalinkResources): Removed.
  9932. (setLocationPreference): New function.
  9933. (MetalinkEntryHandle): New type definition.
  9934. (MetalinkEntries): New type definition.
  9935. * src/Xml2MetalinkProcessor.h
  9936. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9937. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9938. (parseFile): Metalinker* -> MetalinkerHandle
  9939. * src/UrlRequestInfo.h
  9940. (execute): RequestInfo* -> RequestInfos
  9941. * src/MetalinkRequestInfo.cc
  9942. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  9943. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  9944. (execute): RequestInfo* -> RequestInfos
  9945. Added multiple <file> support. Print filename when it is queued.
  9946. * src/MetalinkRequestInfo.h
  9947. (execute): RequestInfo* -> RequestInfos
  9948. (getDownloadEngine): Removed.
  9949. * src/RequestInfo.h
  9950. (RequestInfoHandle): New type definition.
  9951. (RequestInfos): New type definition.
  9952. (execute): RequestInfo* -> RequestInfos
  9953. (getDownloadEngine): Removed.
  9954. * src/MetalinkResource.h
  9955. (MetalinkResourceHandle): New type definition.
  9956. (MetalinkResources): New type definition.
  9957. * src/MetalinkEntry.cc
  9958. (~MetalinkEntry): Removed the deletion of the elements of resources,
  9959. because the element is now of type MetalinkResourceHandle.
  9960. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  9961. (Supported): MetalinkResource* -> MetalinkResourceHandle
  9962. (dropUnsupportedResource): Removed the deletion of the elements of
  9963. resources because the element is now of type MetalinkResourceHandle.
  9964. * src/Xml2MetalinkProcessor.cc
  9965. (parseFile): Metalinker* -> MetalinkerHandle
  9966. MetalinkEntry* -> MetalinkEntryHandle
  9967. Removed try-catch block.
  9968. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  9969. MetalinkResource* -> MetalinkResourceHandle
  9970. Removed try-catch block.
  9971. (getResource): MetalinkResource* -> MetalinkResourceHandle
  9972. Free result by using xmlXPathFreeObject()
  9973. * src/Metalinker.cc
  9974. (~Metalinker): Removed the deletion of entries.
  9975. MetalinkEntry* -> MetalinkEntryHandle
  9976. (queryEntry): Add multiple <file> Metalink support.
  9977. * src/Metalinker.h
  9978. (MetalinkEntries): Removed.
  9979. (queryEntry): MetalinkEntry* -> MetalinkEntries
  9980. * src/MetalinkProcessor.h
  9981. (parseFile): Metalinker* -> MetalinkerHandle
  9982. Bug fixes:
  9983. * src/PeerChokeCommand.cc
  9984. (execute): cat01->cat02
  9985. * src/DefaultPieceStorage.cc
  9986. (DefaultPieceStorage): Added diskAdaptor(0)
  9987. * src/TrackerWatcherComand.cc:
  9988. (execute): Use btAnnounce->noMoreAnnounce()
  9989. to determin whether the function returns true or not.
  9990. * src/TrackerUpdateCommand.cc:
  9991. (execute): Use btAnnounce->noMoreAnnounce()
  9992. to determin whether the function returns true or not.
  9993. * src/FtpConnection.cc
  9994. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  9995. This is the fix of the busy loop bug.
  9996. * src/DownloadCommand.cc
  9997. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  9998. cached PeerStat.
  9999. The value of "name" entry in torrent file is now set by
  10000. *DiskAdaptor::setTopDir(...) methods.
  10001. * src/MultiDiskAdaptor.h
  10002. (topDir): New variable.
  10003. (setTopDir): New function.
  10004. (getTopDir): New function.
  10005. * src/MultiDiskAdaptor.cc
  10006. (getFilePath): Concat storDir, "/" and topDir.
  10007. (mkdir): Use getFilePath() to get the directory path for output.
  10008. * src/DefaultPieceStorage.cc
  10009. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10010. CopyDiskAdaptor.
  10011. * src/CopyDiskAdaptor.h
  10012. (topDir): New variable.
  10013. (setTopDir): New function.
  10014. (getTopDir): New function.
  10015. * src/CopyDiskAdaptor.cc
  10016. (fixFilename): Updated.
  10017. Misc
  10018. * src/UrlRequestInfo.h
  10019. (e): Removed.
  10020. (UrlRequestInfo): Removed e.
  10021. (getDownloadEngine): Removed.
  10022. * src/UrlRequestInfo.cc
  10023. (handler): Rewritten.
  10024. (printUrls): New function.
  10025. (execute): Call printUrls().
  10026. * src/HandshakeMessage.cc
  10027. (check): peerinteraction->getBtContext() -> btContext
  10028. * src/PeerInteraction.h
  10029. (getBtContext): Removed.
  10030. * src/TorrentRequestInfo.h
  10031. (execute): RequestInfo* -> RequestInfos
  10032. (getDownloadEngine): Removed.
  10033. * src/TorrentRequestInfo.cc
  10034. (haltRequested): Removed.
  10035. (btHaltRequested): New variable.
  10036. (torrentHandler): haltRequested -> btHaltRequested
  10037. (execute): RequestInfo* -> RequestInfos
  10038. * src/TorrentConsoleDownloadEngine.cc
  10039. (afterEachIteration): haltRequested -> btHaltRequested.
  10040. * src/ConsoleDownloadEngine.h
  10041. (initStatistics): Added virtual.
  10042. (calculateStatistics): Added virtual.
  10043. (onEndOfRun): Added virtual.
  10044. (afterEachIteration): Added virtual.
  10045. * src/ConsoleDownloadEngine.cc
  10046. (haltRequested): New variable.
  10047. (afterEachIteration): New function.
  10048. * src/main.cc
  10049. (requestInfo): Removed.
  10050. * src/SegmentMan.cc
  10051. (findSlowerSegmentEntry): Refactored.
  10052. * Release 0.9.0
  10053. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10054. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10055. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10056. * src/TorrentMan.h: Removed.
  10057. * src/TorrentMan.cc: Removed.
  10058. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10059. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10060. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10061. * src/PeerAbstractCommand.cc: Use btRuntime.
  10062. * src/BtContextAwareCommand.h: New class.
  10063. * src/FileEntry.h: Added accessor methods for following variables.
  10064. (path): Made private.
  10065. (length): Made private.
  10066. (offset): Made private.
  10067. (extracted): Made private.
  10068. (requested): Made private.
  10069. (FileEntries): New definition.
  10070. (FileEntryHandle): New definition.
  10071. * src/FileEntry.cc: New file.
  10072. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10073. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10074. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10075. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10076. * src/PieceStorage.h: New file.
  10077. * src/PeerInteractionCommand.h: Use btContext.
  10078. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10079. btRuntime.
  10080. * src/DefaultBtProgressInfoFile.h: New file.
  10081. * src/DefaultBtProgressInfoFile.cc: New file.
  10082. * src/File.cc
  10083. (Util.h): New include.
  10084. (mkdirs): New function.
  10085. * src/MultiDiskAdaptor.h
  10086. (mkdir): New function.
  10087. * src/PeerListProcessor.h
  10088. (Peers): Removed.
  10089. * src/PeerInteraction.h
  10090. (torrentMan): Removed.
  10091. (btContext): New variable.
  10092. (peerStorage): New variable.
  10093. (pieceStorage): New variable.
  10094. (btAnnounce): New variable.
  10095. (getTorrentMan): Removed.
  10096. (getBtContext): New function.
  10097. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10098. btAnnounce.
  10099. * src/HandshakeMessage.h
  10100. (TorrentMan.h): Removed.
  10101. * src/HandshakeMessage.cc: Use btContext.
  10102. * src/DefaultBtAnnounce.cc: New file.
  10103. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10104. * src/DefaultPieceStorage.cc: New file.
  10105. * src/DefaultBtContext.h: New file.
  10106. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10107. Use the accessor methods of FileEntry.
  10108. * src/CookieBox.cc: Updated to use Util::slice().
  10109. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10110. * src/common.h (SharedHandle.h): New include.
  10111. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10112. pieceStorage.
  10113. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10114. * src/DiskAdaptor.h
  10115. (topDir): Removed.
  10116. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10117. (setTopDir): Removed.
  10118. (getTopDir): Removed.
  10119. * src/BtContext.h: New file.
  10120. * src/DefaultPeerStorage.h: New file.
  10121. * src/PieceMessage.h (TorrentMan.h): Removed.
  10122. * src/RequestMessage.h (TorrentMan.h): Removed.
  10123. * src/TorrentDownloadEngine.h
  10124. (uploadLength): New variable.
  10125. (btContext): New variable.
  10126. (btRuntime): New variable.
  10127. (pieceStorage): New variable.
  10128. (peerStorage): New variable.
  10129. (btAnnounce): New variable.
  10130. (btProgressInfoFile): New variable.
  10131. (torrentMan): Removed.
  10132. (setBtContext): New function.
  10133. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10134. peerStorage, btAnnounce, btProgressInfoFile.
  10135. * src/Piece.h
  10136. (toString): New function.
  10137. (Pieces): New type definition.
  10138. * src/Peer.h
  10139. (active): New variable.
  10140. (Peer): Added active.
  10141. (activate): Set active to true.
  10142. (deactivate): Set active to false.
  10143. (isActive): New function.
  10144. (Peers): New type definition.
  10145. * src/DirectDiskAdaptor.cc
  10146. (getFilePath): Use the accessor methods of FileEntry.
  10147. * src/TorrentConsoleDownloadEngine.h
  10148. (afterEachIteration): New function.
  10149. * src/TorrentConsoleDownloadEngine.cc
  10150. (haltRequested): New variable.
  10151. (sendStatistics): Use pieceStorage, btRuntime.
  10152. (afterEachIteration): New function.
  10153. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10154. * src/Directry.h
  10155. (Directory): New function.
  10156. (DirectoryHandle): New type definition.
  10157. * src/BtProgressInfoFile.h: New file.
  10158. * src/RequestMessage.cc: Use pieceStorage.
  10159. * src/BtRuntime.h: New file.
  10160. * src/DefaultBtContext.cc: New file.
  10161. * src/BitfieldMan.h
  10162. (getCompletedLength): New function(private).
  10163. (getCompletedLength): New function.
  10164. (getFilteredCompletedLength): New function.
  10165. * src/BitfieldMan.h
  10166. (getCompletedLength): New function(private).
  10167. (getCompletedLength): New function.
  10168. (getFilteredCompletedLength): New function.
  10169. * src/MultiDiskAdaptor.cc
  10170. (mkdir): New function.
  10171. (openFile): Call mkdir().
  10172. (initAndOpenFile): Call mkdir().
  10173. * src/CancelMessage.h
  10174. (TorrentMan.h): Removed.
  10175. * src/RejectMessage.h
  10176. (TorrentMan.h): Removed.
  10177. * src/DownloadEngineFactory.cc
  10178. (DefaultPieceStorage.h): New include.
  10179. (DefaultPeerStorage.h): New include.
  10180. (DefaultBtAnnounce.h): New include.
  10181. (DefaultBtProgressInfoFile.h): New include.
  10182. (newTorrentConsoleEngine): Rewritten.
  10183. * src/ShareRatioSeedCriteria.h
  10184. (torrentMan): Removed.
  10185. (btContext): New variable.
  10186. (peerStorage): New variable.
  10187. (btRuntime): New variable.
  10188. (evaluate): Use btContext, btRuntime, peerStorage.
  10189. * src/AnnounceTier.h: New file.
  10190. * src/BtAnnounce.h: New file.
  10191. * src/BtRegistry.h: New file.
  10192. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10193. * src/PeerConnection.h (TorrentMan.h): Removed.
  10194. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10195. * src/Util.h
  10196. (slice): Added an argument.
  10197. * src/Util.cc
  10198. (slice): Added an argument to control whether trim is made or not.
  10199. * src/PeerStorage.h: New file.
  10200. * src/BtRegistry.cc: New file.
  10201. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10202. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10203. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10204. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10205. * src/TorrentRequestInfo.h
  10206. (e): Removed.
  10207. (showFileEntry): Added an argument.
  10208. (getDownloadEngine): Return 0.
  10209. * src/DefaultBtAnnounce.h: New file.
  10210. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10211. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10212. * src/PeerMessageFactory.h
  10213. (btContext): New variable.
  10214. (pieceStorage): New variable.
  10215. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10216. btAnnounce.
  10217. * src/DiskAdaptor.cc
  10218. (DiskAdaptor): Removed topDir.
  10219. (~DiskAdaptor): Removed topDir.
  10220. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10221. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10222. * src/File.h (mkdirs): New function.
  10223. * src/DefaultPeerStorage): New file.
  10224. * src/DownloadEngineFactory.h
  10225. (newTorrentConsoleEngine): Use btContext.
  10226. * src/BtContextAwareCommand.cc: New file.
  10227. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10228. * src/PeerMessage.h
  10229. (btContext): New variable.
  10230. (peerStorage): New variable.
  10231. (pieceStorage): New variable.
  10232. (setBtContext): New function.
  10233. * src/Directry.cc
  10234. (Directory): New function.
  10235. (createDir): Do nothing if name.size() == 0.
  10236. * src/AnnounceList.h
  10237. (AnnounceTier): Removed.
  10238. (AnnounceTiers): Removed.
  10239. * src/DefaultPieceStorage.h: New file.
  10240. * src/Piece.cc (toString): New function.
  10241. To fix typo:
  10242. * src/main.cc (showVersion): Fixed typo.
  10243. To fix compile warning:
  10244. * src/DelegatingPeerListProcessor.cc
  10245. (canHandle): Added "return false".
  10246. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10247. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10248. make the process of announce request testable.
  10249. * src/TrackerWatcherCommand.h
  10250. (TimeA2.h): Removed.
  10251. (interval): Removed.
  10252. (checkPoint): Removed.
  10253. (createRequestCommand): Added an argument 'url'.
  10254. (TrackerWatherCommand): Removed interval.
  10255. (createCommand): New function.
  10256. * src/DownloadEngineFactory.cc
  10257. (newTorrentConsoleEngine): Updated according to the changes in
  10258. TrackerWatherCommand.
  10259. * src/TorrentMan.cc
  10260. (DelegatingPeerListProcessor.h): New includes.
  10261. (TorrentMan): Added the initialization of announceInterval.
  10262. (isStoppedAnnounceReady): New function.
  10263. (isCompletedAnnounceReady): New function.
  10264. (isDefaultAnnounceReady): New function.
  10265. (isAnnounceReady): New function.
  10266. (getAnnounceUrl): New function.
  10267. (announceStart): New function.
  10268. (announceFailure): New function.
  10269. (announceSuccess): New function.
  10270. (isAllAnnounceFailed): New function.
  10271. (resetAnnounce): New function.
  10272. (processAnnounceResponse): New function.
  10273. (needMorePeerConnection): New function.
  10274. (noMoreAnnounce): New function.
  10275. * src/TrackerUpdateCommand.h
  10276. (getTrackerResponse): int->size_t
  10277. * src/TorrentMan.h
  10278. (isStoppedAnnounceReady): New function.
  10279. (isCompletedAnnounceReady): New function.
  10280. (isDefaultAnnounceReady): New function.
  10281. (announceInterval): New variable.
  10282. (isAnnounceReady): New function.
  10283. (getAnnounceUrl): New function.
  10284. (announceStart): New function.
  10285. (announceFailure): New function.
  10286. (announceSuccess): New function.
  10287. (isAllAnnounceFailed): New function.
  10288. (resetAnnounce): New function.
  10289. (processAnnounceResponse): New function.
  10290. (needMorePeerConnection): New function.
  10291. (noMoreAnnounce): New function.
  10292. * src/TrackerWatcherCommand.cc
  10293. (TrackerWatherCommand): Removed interval and checkPoint.
  10294. (execute): Rewritten.
  10295. (createCommand): New function.
  10296. (createRequestCommand): Rewritten.
  10297. * src/TrackerUpdateCommand.cc
  10298. (MetaFileUtil.h): Removed.
  10299. (DelegatingPeerListProcessor.h): Removed.
  10300. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10301. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10302. Request -> RequestHandle:
  10303. * src/HttpResponseCommand.h: Request->RequestHandle
  10304. * src/AbstractCommand.cc: Request->RequestHandle
  10305. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10306. * src/HttpRequestCommand.cc: Request->RequestHandle
  10307. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10308. * src/AbstractCommand.h: Request->RequestHandle
  10309. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10310. * src/HttpResponseCommand.cc: Request->RequestHandle
  10311. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10312. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10313. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10314. * src/HttpConnection.h: Request->RequestHandle
  10315. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10316. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10317. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10318. * src/DownloadCommand.h: Request->RequestHandle
  10319. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10320. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10321. * src/HttpRequestCommand.h: Request->RequestHandle
  10322. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10323. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10324. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10325. * src/HttpDownloadCommand.h: Request->RequestHandle
  10326. * src/FtpConnection.cc: Request->RequestHandle
  10327. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10328. * src/UrlRequestInfo.cc: Request->RequestHandle
  10329. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10330. * src/HttpConnection.h: Request->RequestHandle
  10331. * src/DownloadCommand.cc: Request->RequestHandle
  10332. * src/FtpConnection.h: Request->RequestHandle
  10333. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10334. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10335. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10336. * src/Request.h
  10337. (SharedHandle.h): New include.
  10338. (RequestHandle): New type definition.
  10339. (Requests): Redefined.
  10340. To add MULTITRACKER support:
  10341. * src/TrackerWatcherCommand.h
  10342. (createRequestCommand): New function.
  10343. * src/DownloadEngineFactory.cc
  10344. (newTorrentConsoleEngine): Removed req.
  10345. * src/prefs.h
  10346. (PREF_TRACKER_MAX_TRIES): New definition.
  10347. * src/TorrentMan.cc
  10348. (TorrentMan): Removed req. Added trackerNumTry.
  10349. (~TorrentMan): Removed req.
  10350. (setupInternal1): Added announceList.
  10351. * src/TorrentRequestInfo.cc
  10352. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10353. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10354. * src/main.cc
  10355. (main): Added PREF_TRACKER_MAX_TRIES.
  10356. * src/TorrentMan.h
  10357. (Request.h): Removed.
  10358. (AnnounceList.h): New include.
  10359. (trackerNumTry): New variable.
  10360. (req): Removed.
  10361. (announceList): New variable.
  10362. * src/TrackerWatcherCommand.cc
  10363. (execute): Rewritten.
  10364. (createRequestCommand): New function.
  10365. * src/TrackerUpdateCommand.cc
  10366. (execute): Updated with the use of AnnounceList.
  10367. * src/AnnounceList.cc: New class.
  10368. * src/AnnounceList.h: New class.
  10369. To fix typo:
  10370. * src/prefs.h
  10371. (PREF_MAX_TRIES): max_try->max_tries
  10372. To not to decode "+" as space in URL decode:
  10373. * src/Util.cc
  10374. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10375. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10376. To add timeout to async name resolution:
  10377. * src/AbstractCommand.h
  10378. (nameResolveFinished): New function. This is not elegant way. It needs
  10379. to be more refined.
  10380. (nameResolverCheck): New variable.
  10381. * src/AbstractCommand.cc
  10382. (AbstractCommand): Added nameResolverCheck.
  10383. (execute): Added the check whether the name resolution has finished.
  10384. (setNameResolverCheck): Set nameResolverCheck to true.
  10385. (disableNameResolverCheck): Set nameResolverCheck to false.
  10386. (nameResolverFinished): New function.
  10387. * src/FtpInitiateConnectionCommand.h
  10388. (nameResolverFinished): New function.
  10389. * src/FtpInitiateConnectionCommand.cc
  10390. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10391. * src/HttpInitiateConnectionCommand.h
  10392. (nameResolverFinished): New function.
  10393. * src/HttpInitiateConnectionCommand.cc
  10394. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10395. * src/prefs.h
  10396. (PREF_DNS_TIMEOUT): New definition.
  10397. * src/main.cc
  10398. (main): Added PREF_DNS_TIMEOUT.
  10399. To add the support for a non-compact response from a tracker:
  10400. * src/PeerListProcessor.h: New class.
  10401. * src/DefaultPeerListProcessor.h: New class.
  10402. * src/DefaultPeerListProcessor.cc: New class.
  10403. * src/CompactPeerListProcessor.h: New class.
  10404. * src/CompactPeerListProcessor.cc: New class.
  10405. * src/DelegatingPeerListProcessor.h: New class.
  10406. * src/DelegatingPeerListProcessor.cc: New class.
  10407. * src/TorrentMan.cc
  10408. (addPeer): New function(overload).
  10409. (addPeer): Delete unused peers only when new peer is added.
  10410. * src/TorrentMan.h
  10411. (PeerListProcessor.h): Included.
  10412. (Peers): Removed.
  10413. (addPeer): New function(overload).
  10414. * src/TrackerUpdateCommand.cc
  10415. (netinet/in.h): Removed.
  10416. (DelegatingPeerListProcessor.h): Included.
  10417. (execute): Updated to use DelegatingPeerListProcessor.
  10418. To fix the memory leak in TorrentMan::peers:
  10419. * src/PeerAbstractCommand.cc
  10420. (onAbort): Added peer->resetStatus().
  10421. * src/Peer.h
  10422. (resetStatus): Made public.
  10423. To improve the precision of the speed calculation:
  10424. * src/SpeedCalc.h
  10425. (nextInterval): New variable.
  10426. * src/SpeedCalc.cc
  10427. (reset): Added nextInterval.
  10428. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10429. (changeSw): Set nextInterval to 15 seconds relative to the current
  10430. instant time.
  10431. * src/main.cc
  10432. (showVersion): Updated.
  10433. (showUsage): Updated.
  10434. * Release 0.8.1
  10435. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10436. * src/main.cc
  10437. (showUsage): Commented out --min-segment-size option.
  10438. (main): Commented out --min-segment-size option.
  10439. * Release 0.8.0
  10440. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10441. * src/*.{h,cc}:
  10442. Added an exception to the license which allows linking with OpenSSL.
  10443. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10444. * src/AbstractCommand.cc
  10445. (execute): Check whether the download has finished before checking
  10446. socket status.
  10447. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10448. Do not exit even if no segment is available.
  10449. * src/prefs.h
  10450. (PREF_STARTUP_IDLE_TIME): New definition.
  10451. * src/PeerInteractionCommand.cc
  10452. (executeInternal): Removed max speed limit. Because it performs bad.
  10453. (receiveMessages): Added max speed limit. This was better than above,
  10454. but still a little bit to be desired. Sometimes the download speed
  10455. became much faster than I specified.
  10456. * src/SpeedCalc.h
  10457. (start): New variable.
  10458. (accumulatedLength): New variable.
  10459. (getAvgSpeed): New function.
  10460. * src/SpeedCalc.cc
  10461. (reset): Added start, accumulatedLength.
  10462. (update): Added calculation of an average speed.
  10463. (getAvgSpeed): New function.
  10464. * src/DownloadCommand.h
  10465. (sw): Removed.
  10466. * src/main.cc
  10467. (main): Added PREF_STARTUP_IDLE_TIME.
  10468. * src/PeerStat.h
  10469. (STATUS): Added REQUEST_IDLE.
  10470. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10471. (getAvgDownloadSpeed): New function
  10472. (requestIdle): New function.
  10473. * src/SegmentMan.h
  10474. (SegmentEntryHandle): New type definition.
  10475. (SegmentEntries): Now holds SegmentEntryHandle.
  10476. (findSlowerSegmentEntry): New funtion.
  10477. * src/SegmentMan.cc
  10478. (save): Updated according to the changes in SegmentEntries.
  10479. (read): Updated according to the changes in SegmentEntries.
  10480. (FindSegmentEntryByIndex): Updated according to the changes in
  10481. SegmentEntries.
  10482. (FindSegmentEntryByCuid): Updated according to the changes in
  10483. SegmentEntries.
  10484. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10485. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10486. Renamed uitr as itr.
  10487. (findSlowerSegmentEntry): New function.
  10488. (getSegment): Updated according to the changes in SegmentEntries.
  10489. Added the feature that cancels the segment with slow server and fast
  10490. one takes it over.
  10491. (cancelSegment): Updated according to the changes in SegmentEntries.
  10492. (getDownloadLength): Updated according to the changes in
  10493. SegmentEntries.
  10494. (init): Assigned 0 to bitfield after deleting it.
  10495. * src/DownloadCommand.cc
  10496. (STARTUP_IDLE_TIME): Removed.
  10497. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10498. * src/PeerChokeCommand.cc
  10499. (optUnchokingPeer): Updated according to the changes in Peer.
  10500. (ResetDelta): Removed.
  10501. (UploadFaster): Updated according to the changes in Peer.
  10502. (DownloadFaster): Updated according to the changes in Peer.
  10503. (execute): I clarify the meaning of "upload" and "download" here.
  10504. "upload" means the transfer from localhost to remote host.
  10505. "download" means the transfer from remote host to localhost.
  10506. Based on this rule, I swapped orderByUploadRate and
  10507. orderByDownloadRate.
  10508. * src/PeerInteractionCommand.cc
  10509. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10510. (executeInternal): Removed the argument of
  10511. peerInteraction->sendMessages().
  10512. (receiveMessages): Rewritten download speed limit.
  10513. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10514. * src/HttpResponseCommand.cc
  10515. (handleDefaultEncoding): If file size is unknown in torrent request,
  10516. do not call segmentMan->initBitfield() here.
  10517. Disabled persistent connection feature in torrent request.
  10518. * src/UrlRequestInfo.h
  10519. (UrlRequestInfo): Removed const qualifier from option.
  10520. * src/TorrentMan.h
  10521. (TransferStat): New class.
  10522. (deltaDownloadLength): Removed.
  10523. (deltaUploadLength): Removed.
  10524. (addDeltaDownloadLength): Removed.
  10525. (getDeltaDownloadLength): Removed.
  10526. (resetDeltaDownloadLength): Removed.
  10527. (addDeltaUploadLength): Removed.
  10528. (getDeltaUploadLength): Removed.
  10529. (resetDeltaUploadLength): Removed.
  10530. (addActivePeer): Added peer->activate().
  10531. (deleteActivePeer): Added peer->deactivate().
  10532. (calculateStat): New function.
  10533. * src/TorrentMan.cc
  10534. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10535. (calculateStat): New function.
  10536. * src/PeerInteraction.h
  10537. (uploadLimit): Removed.
  10538. (option): New variable.
  10539. (setUploadLimit): Removed.
  10540. (getUploadSpeed): Removed.
  10541. (sendMessages): Removed the argument "currentUploadSpeed".
  10542. * src/PeerInteraction.cc
  10543. (prefs.h): Included.
  10544. (PeerInteraction): Removed uploadLimit. Added option.
  10545. (sendMessages): Rewritten upload speed limit.
  10546. (sendHandshake): Removed the argument from sendMessages().
  10547. (sendBitfield): Removed the argument from sendMessages().
  10548. * src/PeerAbstractCommand.cc
  10549. (execute): Commented out the portion of upload limit.
  10550. (onAbort): Removed peer->resetStatus().
  10551. * src/TorrentRequestInfo.cc
  10552. (timeoutSpecified): Declared extern.
  10553. (execute): Set timeout to 180 if timeout is not specified by.
  10554. command-line.
  10555. * src/PieceMessage.cc
  10556. (receivedAction): Added peer->updateDownloadLength().
  10557. Removed peer->addPeerUpload().
  10558. Removed torrentMan->addDeltaDownloadLength().
  10559. (send): Added peer->updateUploadLength().
  10560. Removed peer->addPeerDownload().
  10561. Removed torrentMan->addDeltaUploadLength().
  10562. * src/main.cc
  10563. (timeoutSpecified): New variable.
  10564. (main): Set timeoutSpecified to false.
  10565. If the command-line option "--upload-limit" is specified, then
  10566. timeoutSpecified is set to true. This option will remain in the next
  10567. release, but be deprecated in the future release.
  10568. * src/TorrentRequestInfo.h
  10569. (TorrentRequestInfo): Removed const qualifier from op.
  10570. * src/PeerStat.h
  10571. (uploadSpeed): New variable.
  10572. (PeerStat): Added default value to cuid.
  10573. (calculateUploadSpeed): New function.
  10574. (updateUploadLength): New function.
  10575. (getMaxUploadSpeed): New function.
  10576. (getAvgUploadSpeed): New function.
  10577. (reset): Added uploadSpeed. Set status to IDLE.
  10578. * src/TorrentDownloadEngine.h
  10579. (cp): Declared as Time.
  10580. (sessionDownloadLengthArray): Removed.
  10581. (sessionUploadLengthArray): Removed.
  10582. (currentCp): Removed.
  10583. (lastCalcStat): New variable
  10584. (lastElapsed): Removed.
  10585. (sessionDownloadLength): Removed.
  10586. (calculateStat): New function.
  10587. * src/TorrentDownloadEngine.cc
  10588. (initStatistics): Removed lastElapsed, cp[],
  10589. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10590. currentCp, sessionDownloadLength.
  10591. Added cp.reset() and lastCalcStat.reset().
  10592. (calculateSpeed): Changed the name of the argument.
  10593. (calculateStatistics): Rewritten.
  10594. (calculateStat): New function.
  10595. * src/Peer.h
  10596. (PeerStat.h): Included.
  10597. (peerUpload): Removed.
  10598. (peerDownload): Removed.
  10599. (peerStat): New variable.
  10600. (sessionUploadLength): New variable.
  10601. (sessionDownloadLength): New variable.
  10602. (deltaUpload): Removed.
  10603. (deltaDownload): Removed.
  10604. (resetStatus): Made private.
  10605. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10606. Removed peerUpload, peerDownload.
  10607. (updateUploadLength): New function.
  10608. (addDeltaUpload): Removed.
  10609. (updateDownloadLength): New function.
  10610. (resetDeltaUpload): Removed.
  10611. (getDeltaUpload): Removed.
  10612. (addDeltaDownload): Removed.
  10613. (calculateUploadSpeed): New function.
  10614. (resetDeltaDownload): Removed.
  10615. (getDeltaDownload): Removed.
  10616. (calculateDownloadSpeed): New function.
  10617. (getSessionUploadLength): New function.
  10618. (getSessionDownloadLength): New function.
  10619. (activate): New function.
  10620. (deactivate): New function.
  10621. (addPeerUpload): Removed.
  10622. (setPeerUpload): Removed.
  10623. (getPeerUpload): Removed.
  10624. (addPeerDownload): Removed.
  10625. (setPeerDownload): Removed.
  10626. (getPeerDownload): Removed.
  10627. * src/Peer.cc
  10628. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10629. * src/MetalinkRequestInfo.h
  10630. (MetalinkRequestInfo): Removed const qualifier from op.
  10631. * src/RequestInfo.h
  10632. (op): Removed const qualifier.
  10633. (RequestInfo): Removed const qualifier from op.
  10634. * src/prefs.h
  10635. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10636. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10637. * src/PeerInteractionCommand.cc
  10638. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10639. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10640. * src/PeerInteraction.cc
  10641. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10642. * src/main.cc
  10643. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10644. Added the description of "--max-download-limit" option.
  10645. Removed the description of "--upload-limit" option.
  10646. Added the description of "--max-upload-limit" option.
  10647. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10648. Added "--max-download-limit" option and "--max-upload-limit" option.
  10649. Added the warning message if "--upload-limit" option is used.
  10650. * src/DownloadCommand.cc
  10651. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10652. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10653. To rewrite segment download mechanism for HTTP/FTP download.
  10654. Use BitfieldMan to manage segment download.
  10655. * src/HttpResponseCommand.h
  10656. (executeInternal): Pass the reference of segment.
  10657. * src/AbstractCommand.cc
  10658. (prepareForRetry): Call segmentMan->cancelSegment here.
  10659. (onAbort): Call segmentMan->cancelSegment here.
  10660. * src/HttpDownloadCommand.cc
  10661. (prepareForNextSegment): New function.
  10662. * src/DownloadEngineFactory.cc
  10663. (newConsoleEngine): Removed splitter.
  10664. (newTorrentConsoleEngine): Removed splitter.
  10665. * src/Request.h
  10666. (segment): Renamed from seg.
  10667. * src/FtpInitiateConnectionCommand.h
  10668. (executeInternal): Pass the reference of segment.
  10669. * src/AbstractCommand.h
  10670. (executeInternal): Pass the reference of segment.
  10671. * src/pref.h
  10672. (PREF_SEGMENT_SIZE): New definition.
  10673. * src/HttpProxyRequestCommand.h
  10674. (executeInternal): Pass the reference of segment.
  10675. * src/HttpResponseCommand.cc
  10676. (checkResponse): Allowed status 206 when a request range starts 0.
  10677. (handleDefaultEncoding): Rewritten the code related to Segment.
  10678. (handleOtherEncoding): Rewritten the code related to Segment.
  10679. * src/SegmentMan.h
  10680. (SegmentEntry): New class.
  10681. (SegmentEntries): New type definition.
  10682. (bitfield): New variable.
  10683. (usedSegmentEntries): New variable.
  10684. (onNullBitfield): New function.
  10685. (checkoutSegment): New function.
  10686. (segments): Removed.
  10687. (splitter): Removed.
  10688. (unregisterId): Removed.
  10689. (getSegment): New function(overload)
  10690. (getDownloadedSize): Removed.
  10691. (cancelSegment): New function.
  10692. (completeSegment): New function.
  10693. (initBitfield): New function.
  10694. (hasSegment): New function.
  10695. (getDownloadLength): New function.
  10696. * src/BitfieldMan.h
  10697. (getStartIndex): New function.
  10698. (getEndIndex): New function.
  10699. (getMissingUnusedIndex): New function(overload).
  10700. (getSparseMissingUnusedIndex): New function.
  10701. * src/BitfieldMan.cc
  10702. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10703. (getMissingUnusedIndex): New function(overload).
  10704. (Range): New class.
  10705. (getStartIndex): New function.
  10706. (getEndIndex): New function.
  10707. (getSparseMissingUnusedIndex): New function.
  10708. (isBitSetInternal): Return false if the given index is less than 0.
  10709. * src/HttpInitiateConnectionCommand.h
  10710. (executeInternal): Pass the reference of segment.
  10711. * src/FtpNegotiateCommand.h
  10712. (executeInternal): Pass the reference of segment.
  10713. * src/FtpNegotiateCommand.cc
  10714. (recvSize): Initialize bitfield here.
  10715. * src/FtpTunnelResponseCommand.h
  10716. (executeInternal): Pass the reference of segment.
  10717. * src/HttpConnection.cc
  10718. (createRequest): Rewritten range header processing.
  10719. * src/DownloadCommand.h
  10720. (executeInternal): Pass the reference of segment.
  10721. (prepareForRetry): Removed.
  10722. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10723. function.
  10724. * src/main.cc
  10725. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10726. * src/SegmentMan.cc
  10727. (SegmentMan): Added bitfield. Removed splitter.
  10728. (~SegmentMan): Added bitfield. Removed splitter.
  10729. (unregisterId): Removed.
  10730. (getSegment): Rewritten.
  10731. (updateSegment): Rewritten.
  10732. (save): Rewritten.
  10733. (read): Rewritten.
  10734. (finished): Rewritten.
  10735. (getDownloadedSize): Removed.
  10736. (initBitfield): New function.
  10737. (FindSegmentEntryByIndex): New function object.
  10738. (FindSegmentEntryByCuid): New function object.
  10739. (checkoutSegment): New function.
  10740. (onNullBitfield): New function.
  10741. (getSegment): New function(overload).
  10742. (CancelSegment): New function object.
  10743. (cancelSegment): New function.
  10744. (completeSegment): New function.
  10745. (hasSegment): New function.
  10746. (getDownloadLength): New function.
  10747. * src/FtpInitiateConnectionCommand.cc
  10748. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10749. * src/Segment.h: Rewritten.
  10750. * src/Segment.cc (operator<<): New function.
  10751. * src/HttpDownloadCommand.h
  10752. (prepareForNextSegment): New function.
  10753. * src/Request.cc
  10754. (resetUrl): Made segment null.
  10755. * src/DownloadEngine.cc
  10756. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10757. * src/HttpProxyRequestCommand.h
  10758. (executeInternal): Pass the reference of segment.
  10759. * src/DownloadCommand.cc
  10760. (executeInternal): Rewritten the code related to Segment.
  10761. (prepareForRetry): Removed.
  10762. (prepareForNextSegment): Rewritten.
  10763. * src/FtpTunnelResponseCommand.h
  10764. (executeInternal): Pass the reference of segment.
  10765. To add HTTP 1.1 persistent connection support(experimental)
  10766. * src/HttpRequestCommand.cc
  10767. (executeInternal): Disable keep alive if it is disabled by
  10768. configuration.
  10769. * src/Request.h
  10770. (keepAlive): New variable.
  10771. (isKeepAlive): New function.
  10772. (setKeepAlive): New function.
  10773. * src/pref.h
  10774. (PREF_HTTP_KEEP_ALIVE): New definition.
  10775. * src/HttpResponseCommand.cc
  10776. (executeInternal): Check the remote server supports keep alive.
  10777. * src/HttpConnection.cc
  10778. (createRequest): Send "Connection: close" only if keep alive is
  10779. disabled.
  10780. * src/main.cc
  10781. (main):
  10782. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10783. To add max download speed limit:
  10784. * src/pref.h
  10785. (PREF_MAX_SPEED_LIMIT): New definition.
  10786. * src/PeerInteractionCommand.cc
  10787. (executeInternal): Added max download speed limit. Not tested yet.
  10788. * src/SegmentMan.h
  10789. (PeerStats): New type definition.
  10790. (peerStats): New variable.
  10791. (registerPeerStat): New function.
  10792. (FindPeerStat): New function object.
  10793. (getPeerStat): New function.
  10794. (calculateDownloadSpeed): New function.
  10795. * src/SpeedCalc.h: New class.
  10796. * src/SpeedCalc.cc: New class.
  10797. * src/main.cc
  10798. (main):
  10799. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10800. download speed is not restricted).
  10801. * src/PeerStat.h: New class.
  10802. * src/SegmentMan.cc
  10803. (registerPeerStat): New function.
  10804. (calculateDownloadSpeed): New function.
  10805. * src/DownloadCommand.cc
  10806. (STARTUP_IDLE_TIME): New definition.
  10807. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  10808. downloadStart.
  10809. (~DownloadCommand): Call peerStat->downloadStop.
  10810. (executeInternal): Added download speed limitter. Rewritten lowest
  10811. speed limitter.
  10812. * src/HttpConnection.cc
  10813. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  10814. * src/AbstractCommand.cc
  10815. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  10816. Added hostname to the error message.
  10817. * src/ConsoleDownloadEngine.cc
  10818. (calculateStatistics): Initialize psize with dlSize.
  10819. * src/PieceMessage.cc
  10820. (receivedAction): Do not call peerInteraction->abortPiece here.
  10821. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  10822. * src/BitfieldMan.h
  10823. (clearAllUseBit): New function.
  10824. (setAllUseBit): New function.
  10825. * src/BitfieldMan.cc
  10826. (clearAllBit): Do not clear useBitfield here.
  10827. (clearAllUseBit): New function.
  10828. (setAllUseBit): New function.
  10829. * src/Piece.cc
  10830. (clearAllBlock): Call bitfield->clearAllUseBit().
  10831. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10832. To make filename URL-decoded:
  10833. * src/HttpResponseCommand.h: Updated doc.
  10834. * src/HttpResponseCommand.cc
  10835. (determinFilename): Made filename URL-decoded.
  10836. * src/FtpInitiateConnectionCommand.cc
  10837. (executeInternal): Made filename URL-decoded.
  10838. * src/Util.h (urldecode): New function.
  10839. * src/Util.cc (urldecode): New function.
  10840. To fix a bug that caused assertion failure in ares_strerror:
  10841. * src/NameResolver.cc (callback): Fixed the bug.
  10842. * Release 0.7.3
  10843. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10844. To add --seed-time and --seed-ratio command-line option:
  10845. * src/Option.h (getAsDouble): New function.
  10846. * src/Option.cc (getAsDouble): New function.
  10847. * src/SeedCheckCommand.h: New class.
  10848. * src/SeedCheckCommand.cc: New class.
  10849. * src/DownloadEngineFactory.cc
  10850. (SeedCheckCommand.h): Included.
  10851. (UnionSeedCriteria.h): Included.
  10852. (TimeSeedCriteria.h): Included.
  10853. (ShareRatioSeedCriteria.h): Included.
  10854. (newTorrentConsoleEngine): Added the processing of seed option.
  10855. * src/SeedCriteria.h: New class.
  10856. * src/ShareRatioSeedCriteria.h: New class.
  10857. * src/TimeSeedCriteria.h: New class.
  10858. * src/UnionSeedCriteria.h: New class.
  10859. * src/prefs.h
  10860. (PREF_SEED_TIME): New definition.
  10861. (PREF_SEED_RATIO): New definition.
  10862. * src/main.cc
  10863. (showUsage): Added --seed-time and --seed-ratio option.
  10864. (main): Added --seed-time and --seed-ratio option.
  10865. Made default log file name "/dev/null".
  10866. * src/SharedHandle.h
  10867. (SharedHandle): Copy constructor. Made it assignable from the
  10868. SharedHandle of the subclasses.
  10869. (operator=): Made it assignable from the SharedHandle of the
  10870. subclasses.
  10871. (getRefCount): New function.
  10872. To add notice log level and the switch to write log to stdout. This
  10873. switch is configurable per log level.
  10874. * src/Logger.h
  10875. (notice): New function.
  10876. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  10877. constant.
  10878. * src/LogFactory.cc
  10879. (getInstance): The use of NullLogger was removed. A log message with
  10880. notice log level was made written to stdout along with log file.
  10881. * src/NullLogger.h
  10882. (notice): New function.
  10883. * src/SimpleLogger.h
  10884. (writeHeader): Added the 'file' argument.
  10885. (writeLog): Added the 'file' argument.
  10886. (writeFile): New function.
  10887. (stdoutField): New variable.
  10888. (SimpleLogger): Removed the default constructor.
  10889. (SimpleLogger): Made the default value of logfile 0.
  10890. (debug): Added 'virtual' keyword.
  10891. (info): Added 'virtual' keyword.
  10892. (warn): Added 'virtual' keyword.
  10893. (error): Added 'virtual' keyword.
  10894. (notice): New function.
  10895. (setStdout): New function.
  10896. * src/SimpleLogger.cc
  10897. (WRITE_LOG): Replaced writeLog with writeFile.
  10898. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  10899. (SimpleLogger): Removed the default constructor.
  10900. (setStdout): New function.
  10901. (writeLog): Added the handling of NOTICE log level.
  10902. (writeFile): New function.
  10903. (notice): New function.
  10904. * src/TorrentMan.h: Updated doc.
  10905. * src/BitfieldMan.h: Updated doc.
  10906. * src/TrackerWatcherCommand.cc
  10907. (execute): Return true if error occurred in the request to the tracker
  10908. and halt is requested.
  10909. * src/TrackerUpdateCommand.cc
  10910. (execute): Return true if error occurred in the request to the tracker
  10911. and halt is requested.
  10912. To call onDownloadComplete from TorrentMan::completePiece(), not from
  10913. DownloadEngine:
  10914. * src/TorrentConsoleDownloadEngine.h
  10915. (onSelectiveDownloadingCompletes): Removed.
  10916. * src/TorrentConsoleDownloadEngine.cc
  10917. (onSelectiveDownloadingCompletes): Removed.
  10918. * src/TorrentDownloadEngine.h
  10919. (onEndOfRun): Added 'virtual' keyword.
  10920. (afterEachIteration): Removed.
  10921. (onSelectiveDownloadingCompletes): Removed.
  10922. * src/TorrentDownloadEngine.cc
  10923. (onEndOfRun): Removed filenameFixed.
  10924. (afterEachIteration): Removed.
  10925. * src/TorrentMan.cc
  10926. (completePiece): Call onDownloadComplete here.
  10927. (onDownloadComplete): Added 2 log messages.
  10928. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10929. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  10930. * src/NameResolver.h: Added the prototype declaration of callback().
  10931. To support c-ares library:
  10932. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10933. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10934. * src/FtpInitiateConnectionCommand.h:
  10935. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10936. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10937. * src/HttpInitiateConnectionCommand.h:
  10938. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10939. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  10940. Added thes upport of c-ares's ares_strerror(the idea came from patch
  10941. #1542285 by tizianomueller)
  10942. * src/HttpInitiateConnectionCommand.cc:
  10943. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10944. * src/FtpInitiateConnectionCommand.cc:
  10945. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10946. * src/DownloadEngine.h:
  10947. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10948. * src/DownloadEngine.cc:
  10949. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  10950. To fix the bug that causes compilation failure with metalink-support
  10951. disabled(bug#1543587):
  10952. * src/main.cc: Fixed with the patch by tizianomueller.
  10953. * Release 0.7.2
  10954. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10955. * src/main.cc
  10956. (main): Added a message to inform users that aria2 is starting to
  10957. verify checksum.
  10958. * src/RequestInfo.cc
  10959. (printDownloadAbortMessage): Added a message to inform users that
  10960. transfer can be resumed.
  10961. * src/FeatureConfig.cc
  10962. (FEATURE_ASYNC_DNS): New definition.
  10963. (FeatureConfig): Added aysnc DNS entry.
  10964. To replace CommandUuid with Command* in SocketEntry and
  10965. NameResolverEntry:
  10966. * src/DownloadEngine.h
  10967. (CommandUuids): Removed.
  10968. (SocketEntry::commandUuid): Removed.
  10969. (SocketEntry::command): New variable.
  10970. (SocketEntry::SocketEntry): Updated.
  10971. (SocketEntry::operator==): Updated.
  10972. (NameResolverEntry::commandUuid): Removed.
  10973. (NameResolverEntry::command): New variable.
  10974. (NameResolverEntry::NameResolverEntry): Updated.
  10975. (NameResolverEntry::operator==): Updated.
  10976. (waitData): Changed the argument type.
  10977. (addSocketForReadCheck): Changed the argument type.
  10978. (deleteSocketForReadCheck): Changed the argument type.
  10979. (addSocketForWriteCheck): Changed the argument type.
  10980. (deleteSocketForWriteCheck): Changed the argument type.
  10981. (addNameResolverCheck): Changed the argument type.
  10982. (deleteNameResolverCheck): Changed the argument type.
  10983. * src/DownloadEngine.cc
  10984. (FindCommand): Removed.
  10985. (run): Removed activeUuid. Added activeCommands instead.
  10986. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  10987. (AccumulateActiveCommand): New function object.
  10988. (waitData): Use AccumulateActiveCommand.
  10989. (addSocketForReadCheck): Use Command instead of CommandUuid.
  10990. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  10991. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  10992. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  10993. (addNameResolverCheck): Use Command instead of CommandUuid.
  10994. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  10995. * src/AbstractCommand.cc
  10996. (disableReadCheckSocket): Updated according to the changes in
  10997. DownloadEngine.
  10998. (setReadCheckSocket): Updated according to the changes in
  10999. DownloadEngine.
  11000. (disableWriteCheckSocket): Updated according to the changes in
  11001. DownloadEngine.
  11002. (setWriteCheckSocket): Updated according to the changes in
  11003. DownloadEngine.
  11004. (setNameResolverCheck): Updated according to the changes in
  11005. DownloadEngine.
  11006. (disableNameResolverCheck): Updated according to the changes in
  11007. DownloadEngine.
  11008. * src/AbstractCommand.cc
  11009. (disableReadCheckSocket): Updated according to the changes in
  11010. DownloadEngine.
  11011. (setReadCheckSocket): Updated according to the changes in
  11012. DownloadEngine.
  11013. (disableWriteCheckSocket): Updated according to the changes in
  11014. DownloadEngine.
  11015. (setWriteCheckSocket): Updated according to the changes in
  11016. DownloadEngine.
  11017. * release 0.7.1
  11018. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11019. To handle the case where some BitTorrent tracker requires all letters
  11020. except for [A-Za-z0-9] is URL encoded.
  11021. * src/Util.h
  11022. (torrentUrlencode): New function.
  11023. * src/Util.cc
  11024. (ctype.h): Included.
  11025. (torrentUrlencode): New function.
  11026. * src/TrackerWatcherCommand.cc
  11027. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11028. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11029. To add asynchronous DNS support(libares):
  11030. * src/AbstractCommand.h
  11031. (setNameResolverCheck): New function.
  11032. (disableNameResolverCheck): New function
  11033. (resolveHostname): New function.
  11034. * src/AbstractCommand.cc
  11035. (setNameResolverCheck): New function.
  11036. (disableNameResolverCheck): New function
  11037. (resolveHostname): New function.
  11038. * src/FtpInitiateConnectionCommand.h
  11039. (nameResolver): New function.
  11040. * src/FtpInitiateConnectionCommand.cc
  11041. (Util.h): Included.
  11042. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11043. disableWriteCheckSocket.
  11044. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11045. (executeInternal): Added async DNS support.
  11046. * src/HttpInitiateConnectionCommand.h
  11047. (nameResolver): New function.
  11048. * src/HttpInitiateConnectionCommand.cc
  11049. (DlRetryEx.h): Included.
  11050. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11051. disableWriteCheckSocket.
  11052. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11053. (executeInternal): Added async DNS support.
  11054. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11055. by extern "C" declaration.
  11056. * src/NameResolver.cc: New class.
  11057. * src/Util.h:
  11058. (isNumberAndDotsNotation): New function
  11059. * src/Util.cc
  11060. (isNumberAndDotsNotation): New function.
  11061. * src/DownloadEngine.h
  11062. (NameResolver.h): Included.
  11063. (NameResolverEntry): New class.
  11064. (NameResolverEntries): New type definition.
  11065. (addNameResolverCheck): New function.
  11066. (deleteNameResolverCheck): New function.
  11067. * src/DownloadEngine.cc
  11068. (run): Initialize cp with 0.
  11069. (SetDescriptor::operator()): Added for NameResolverEntry.
  11070. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11071. (waitData): Check nameResolver entries.
  11072. (updateFdSet): Update fds in nameResolver entries.
  11073. (addNameResolverCheck): New function.
  11074. (deleteNameResolverCheck): new function.
  11075. * src/PeerInteractionCommand.cc
  11076. (executeInternal): Fixed wrong socket handling.
  11077. * src/main.cc
  11078. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11079. * src/Util.cc
  11080. (fileChecksum): Removed the call to ctx.digestReset().
  11081. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11082. * po/ru.po: Azamat sent me Russian translation.
  11083. * src/FtpNegotiateCommand.cc
  11084. (recvGreeting): Call disableWriteCheckSocket just after
  11085. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11086. (recvRetr): Recognized status code 125 as a acceptable response code.
  11087. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11088. case-insesitive filesystem(BUG#1531057).
  11089. * src/Time.h: Renamed as TimeA2.h.
  11090. * src/Time.cc: Renamed as TimeA2.cc.
  11091. * src/TimeA2.h: New class.
  11092. * src/TimeA2.cc: New class.
  11093. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11094. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11095. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11096. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11097. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11098. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11099. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11100. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11101. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11102. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11103. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11104. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11105. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11106. * release 0.7.0
  11107. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11108. * src/PeerChokeCommand.h
  11109. (PeerChokeCommand): Rearranged the arguments.
  11110. * src/PeerChokeCommand.cc
  11111. (PeerChokeCommand): Rearranged the arguments.
  11112. * src/MetalinkEntry.h
  11113. (Checksum.h): Included.
  11114. (md5): Removed.
  11115. (sha1): Removed.
  11116. (checksum): New variable.
  11117. (operator=): Updated.
  11118. (check): Removed.
  11119. * src/prefs.h
  11120. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11121. (PREF_FOLLOW_TORRENT): New definition.
  11122. (PREF_SELECT_FILE): New definition.
  11123. (PREF_FOLLOW_METALINK): New definition.
  11124. * src/MetalinkResource.h
  11125. (TYPE_HTTPS): Added to enum TYPE.
  11126. * src/TorrentMan.cc
  11127. (~TorrentMan): Rewritten.
  11128. * src/MultiDiskWriter.cc
  11129. (MultiDiskAdaptor): Updated according to the changes in
  11130. MessageDigestContext.
  11131. (~MultiDiskAdaptor): Updated according to the changes in
  11132. MessageDigestContext.
  11133. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11134. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11135. * src/Util.h
  11136. (fileChecksum): Updated according to the changes in
  11137. MessageDigestContext.
  11138. * src/Util.cc
  11139. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11140. (fileChecksum): Updated according to the changes in
  11141. MessageDigestContext.
  11142. * src/messageDigest.h: Rewritten.
  11143. * src/MetalinkEntry.cc
  11144. (check): Removed.
  11145. (Supported): Updated.
  11146. (dropUnsupportedResource): Fixed a memory leak.
  11147. * src/ShaVisitor.cc
  11148. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11149. (~ShaVisitor): Updated according to the changes in
  11150. MessageDigestContext.
  11151. (visit): Updated according to the changes in MessageDigestContext.
  11152. * src/main.cc
  11153. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11154. command-line option added.
  11155. * src/DownloadEngine.h
  11156. (SocketEntry): New class.
  11157. (SocketEntries): New definition.
  11158. (PairFind): Removed.
  11159. (SockCmdMap): Removed.
  11160. * src/DownloadEngine.cc
  11161. (DownloadEngine): Rewritten.
  11162. (~DownloadEngine): Rewritten.
  11163. (run): Renamed activeCommandUuids as activeUuids.
  11164. (SetDescriptor): Rewritten.
  11165. (AccumulateActiveCommandUuid): Removed.
  11166. (AccumulateActiveUuid): New function object.
  11167. (waitData): Rewritten.
  11168. (updateFdSet): Rewritten.
  11169. (addSocket): Rewritten.
  11170. (deleteSocket): Rewritten.
  11171. (addSocketForReadCheck): Rewritten.
  11172. (deleteSocketForReadCheck): Rewritten.
  11173. (addSocketForWriteCheck): Rewritten.
  11174. (deleteSocketForWriteCheck): Rewritten.
  11175. * src/Xml2MetalinkProcessor.cc
  11176. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11177. * src/DownloadCommand.cc
  11178. (executeInternal): Added the check routine for lowest speed limit.
  11179. * src/AbstractDiskWriter.cc
  11180. (AbstractDiskWriter): Updated according to the changes in
  11181. MessageDigestContext.
  11182. (~AbstractDiskWriter): Updated according to the changes in
  11183. MessageDigestContext.
  11184. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11185. * src/RequestInfo.h: New class.
  11186. * src/UrlRequestInfo.h: New class.
  11187. * src/UrlRequestInfo.cc: New class.
  11188. * src/TorrentRequestInfo.h: New class.
  11189. * src/TorrentRequestInfo.cc: New class.
  11190. * src/MetalinkRequestInfo.h: New class.
  11191. * src/MetalinkRequestInfo.cc: New class.
  11192. * src/Checksum.h: New class.
  11193. * src/DownloadEngineFactory.h: New class.
  11194. * src/DownloadEngineFactory.cc: New class.
  11195. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11196. * src/Option.h
  11197. (getAsBool): New function.
  11198. * src/Option.cc
  11199. (prefs.h): Included.
  11200. (defined): 0-length value is now recognized as undefined.
  11201. (getAsInt): Rewritten.
  11202. (getAsLLInt): Rewritten.
  11203. (getAsBool): New function.
  11204. * src/FeatureConfig.h: Rewritten.
  11205. * src/FeatureConfig.cc: Rewritten.
  11206. * src/prefs.h
  11207. (PREF_STDOUT_LOG): New definition.
  11208. (PREF_LOG): New definition.
  11209. (PREF_DIR): New definition.
  11210. (PREF_OUT): New definition.
  11211. (PREF_SPLIT): New definition.
  11212. (PREF_DAEMON): New definition.
  11213. (PREF_REFERER): New definition.
  11214. (PREF_TORRENT_FILE): New definition.
  11215. (PREF_LISTEN_PORT): New definition.
  11216. (PREF_METALINK_FILE): New definition.
  11217. (PREF_METALINK_VERSION): New definition.
  11218. (PREF_METALINK_LANGUAGE): New definition.
  11219. (PREF_METALINK_OS): New definition.
  11220. (PREF_METALINK_SERVERS): New definition.
  11221. * src/main.cc
  11222. (main): Following command-line parameters are now put into Option
  11223. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11224. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11225. metalinkLanguage, metalinkOs, metalinkServers
  11226. To fix the bug that aria2 can not handle http response header properly.
  11227. * src/HttpHeader.cc
  11228. (put): Made name lowercased.
  11229. (defined): Made name lowercased.
  11230. (getFirst): Made name lowercased.
  11231. (get): Made name lowercased.
  11232. (getFirstAsInt): Rewritten.
  11233. (getFirstAsLLInt): Rewritten.
  11234. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11235. * src/TorrentMan.h:
  11236. (advertisePiece): Updated doc.
  11237. (getAdvertisedPieceIndexes): Updated doc.
  11238. (removeAdvertisedPiece); New function.
  11239. * src/TorrentMan.cc
  11240. (FindElapsedHave): New function object.
  11241. (removeAdvertisedPiece): New function.
  11242. * src/HaveEraseCommand.h: New class.
  11243. * src/HaveEraseCommand.cc: New class.
  11244. * src/FeatureConfig.h: New class.
  11245. * src/FeatureConfig.cc: New class.
  11246. * src/Request.h
  11247. (defaultPorts): Removed.
  11248. * src/Request.cc
  11249. (FeatureConfig.h): Included.
  11250. (Request): Removed the statements related to defaultPorts.
  11251. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11252. A default port number is now retrieved from FeatureConfig.
  11253. * src/main.cc
  11254. (HaveEraseCommand.h): Included.
  11255. (showVersion): Added the output of feature list.
  11256. (main): Added HaveEraseCommand to command queue in BitTorrent
  11257. downloading.
  11258. * src/PeerInteractionCommand.h
  11259. (chokeCheckPoint): Commented out.
  11260. (periodicExecPoint): New variable.
  11261. * src/PeerInteractionCommand.cc
  11262. (executeInternal): Following methods are now called in at least every
  11263. 0.5 seconds to reduce CPU usage:
  11264. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11265. checkHave(), sendKeepAlive().
  11266. (checkLongTimePeerChoking): Commented out.
  11267. * src/BitfieldMan.h
  11268. (getNthBitIndex): Changed the method signature.
  11269. (getMissingIndexRandomly): Changed the method signature.
  11270. * src/BitfieldMan.cc
  11271. (getNthBitIndex): Rewritten
  11272. (getMissingIndexRandomly): Rewritten.
  11273. (hasMissingPiece): Rewritten.
  11274. (getMissingIndex): Refactored.
  11275. (getMissingUnusedIndex); Refactored.
  11276. (getMissingIndex): Refactored.
  11277. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11278. * src/PeerMessage.h
  11279. (Piece.h): Included.
  11280. (SharedHandle.h): Included.
  11281. (invalidate): New variable.
  11282. (uploading): New variable.
  11283. (isInvalidate): New function.
  11284. (isUploading): New function.
  11285. (onPush): New function.
  11286. (onChoked): New function.
  11287. (onCanceled): New function.
  11288. (onAbortPiece): New function.
  11289. (PeerMessageHandle): New type definition.
  11290. * src/PeerMessage.cc
  11291. (PeerMessage): Added the initialization for invalidate and uploading.
  11292. * src/CancelMessage.h
  11293. (CancelMessage): Rewritten.
  11294. * src/RejectMessage.h
  11295. (RejectMessage): Rewritten.
  11296. * src/Metalinker.h
  11297. (operator=): Defined.
  11298. * src/MetaEntry.h
  11299. (operator=): Defined.
  11300. * src/MetalinkResource.h
  11301. (operator=): Defined.
  11302. * src/AllowedFastMessage.h
  11303. (AllowedFastMessage): Rewritten.
  11304. * src/HandshakeMessage.h
  11305. (HandshakeMessage): New function(overload).
  11306. * src/HandshakeMessage.cc
  11307. (HandshakeMessage): Rewritten.
  11308. (init): New function.
  11309. * src/HaveMessage.h
  11310. (HaveMessage): Rewritten.
  11311. * src/Time.h
  11312. (operator=): Defined the function body here.
  11313. * src/Time.cc
  11314. (operator=): Removed.
  11315. * src/SocketCore.h
  11316. (operator==): Defined here.
  11317. (operator!=): Defined here.
  11318. (operator<): Defined here.
  11319. * src/SocketCore.cc
  11320. (operator==): Removed.
  11321. (operator<): Removed.
  11322. * src/BitfieldMan.h
  11323. (operator=): Defined the function body here.
  11324. * src/BitfieldMan.cc
  11325. (operator=): Removed.
  11326. * src/TorrentMan.h
  11327. (deleteErrorPeer): Removed.
  11328. (deleteUnusedPeer); New function.
  11329. * src/TorrentMan.cc
  11330. (addPeer): Call deleteUnusedPeer.
  11331. (deleteErrorPeer): Removed.
  11332. (deleteUnusedPeer): New function.
  11333. * src/PeerAbstractCommand.h
  11334. (setNoCheck): New function.
  11335. (noCheck): New variable.
  11336. * src/PeerAbstractCommand.cc
  11337. (PeerAbstractCommand): Added the initialization of noCheck.
  11338. (execute): Added a check for noCheck.
  11339. (setNoCheck): New function.
  11340. * src/Util.h
  11341. (stdio.h): Included.
  11342. * src/Util.cc
  11343. (unistd.h): Included.
  11344. * src/DefaultDiskWriter.cc
  11345. (unistd.h): Included.
  11346. * src/Peer.h
  11347. (operator==): Defined the function body here.
  11348. (operator!=): Defined the function body here.
  11349. * src/Peer.cc
  11350. (operator==): Removed.
  11351. (operator!=): Removed.
  11352. * src/Piece.h
  11353. (Piece): Defined the function body here(copy constructor).
  11354. (operator=): Defined the function body here.
  11355. (operator==): Defined the function body here.
  11356. * src/Piece.cc
  11357. (Piece): Removed(copy constructor).
  11358. (operator=): Removed.
  11359. (operator==): Removed.
  11360. * src/PeerMessageUtil.h
  11361. (ChokeMessage.h): Removed.
  11362. (UnchokeMessage.h): Removed.
  11363. (InterestedMessage.h): Removed.
  11364. (NotInterestedMessage.h): Removed.
  11365. (HaveMessage.h): Removed.
  11366. (BitfieldMessage.h): Removed.
  11367. (RequestMessage.h): Removed.
  11368. (CancelMessage.h): Removed.
  11369. (PieceMessage.h): Removed.
  11370. (HandshakeMessage.h): Removed.
  11371. (KeepAliveMessage.h): Removed.
  11372. (PortMessage.h): Removed.
  11373. (HaveAllMessage.h): Removed.
  11374. (HaveNoneMessage.h): Removed.
  11375. (PeerConnection.h): Removed.
  11376. (HandshakeMessage.h): Included.
  11377. * src/BitfieldMessage.h
  11378. (init): New function.
  11379. (BitfieldMessage): Rewritten.
  11380. (BitfieldMessage): New function(overload).
  11381. * src/RequestSlot.h
  11382. (operator=): Defined the function body here.
  11383. (operator==): Defined the function body here.
  11384. * src/RequestSlot.cc
  11385. (operator=): Removed.
  11386. (operator==): Removed.
  11387. To remove the dependency on the PeerMessage subclass from
  11388. PeerInteraction:
  11389. * src/PeerMessageFactory.h: New class.
  11390. * src/PeerMessageFactory.cc: New class.
  11391. * src/SimplePeerMessage.cc
  11392. (send): If invalidate is true then do nothing.
  11393. * src/PeerInteractionCommand.cc
  11394. (HandshakeMessage.h): Included.
  11395. (KeepAliveMessage.h): Included.
  11396. (ChokeMessage.h): Included.
  11397. (UnchokeMessage.h): Included.
  11398. (HaveMessage.h): Included.
  11399. (executeInternal): Call setNoCheck().
  11400. Removed setWriteCheckSocket(socket).
  11401. * src/PeerInteraction.h
  11402. (ChokeMessage.h): Removed.
  11403. (UnchokeMessage.h): Removed.
  11404. (InterestedMessage.h): Removed.
  11405. (NotInterestedMessage.h): Removed.
  11406. (HaveMessage.h): Removed.
  11407. (BitfieldMessage.h): Removed.
  11408. (RequestMessage.h): Removed.
  11409. (CancelMessage.h): Removed.
  11410. (PieceMessage.h): Removed.
  11411. (HandshakeMessage.h): Removed.
  11412. (KeepAliveMessage.h): Removed.
  11413. (PortMessage.h): Removed.
  11414. (HaveAllMessage.h): Removed.
  11415. (HaveNoneMessage.h): Removed.
  11416. (RejectMessage.h): Removed.
  11417. (AllowedFastMessage.h): Removed.
  11418. (SuggestPieceMessage.h): Removed.
  11419. (PeerMessageFactory.h): Included.
  11420. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11421. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11422. (PeerMessageFactory): New variable.
  11423. (createPeerMessage): Removed.
  11424. (createHandshakeMessage): Removed.
  11425. (setPeerMessageCommonProperty): Removed.
  11426. (addRequestSlot): New function.
  11427. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11428. (getPeerMessageFactory): New function.
  11429. (createRequestMessage): Removed.
  11430. (createCancelMessage): Removed.
  11431. (createPieceMessage): Removed.
  11432. (createHaveMessage): Removed.
  11433. (createChokeMessage): Removed.
  11434. (createUnchokeMessage): Removed.
  11435. (createInterestedMessage): Removed.
  11436. (createNotInterestedMessage): Removed.
  11437. (createBitfieldMessage): Removed.
  11438. (createKeepAliveMessage): Removed.
  11439. (createHaveAllMessage): Removed.
  11440. (createHaveNoneMessage): Removed.
  11441. (createRejectMessage): Removed.
  11442. (createAllowedFastMessage): Removed.
  11443. * src/PeerInteraction.cc
  11444. (PeerInteraction): Allocate PeerMessageFactory here.
  11445. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11446. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11447. PieceMessage::ID.
  11448. (addMessage): Simplified by using PeerMessage::onPush().
  11449. (addRequestSlot): New function.
  11450. (rejectAllPieceMessageInQueue): Simplified by using
  11451. PeerMessage::onChoked().
  11452. (rejectPieceMessageInQueue): Simplified by using
  11453. PeerMessage::onCanceled().
  11454. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11455. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11456. (createHandshakeMessage): Removed.
  11457. (createPeerMessage): Removed.
  11458. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11459. (setPeerMessageCommonProperty): Removed.
  11460. (createRequestMessage): Removed.
  11461. (createCancelMessage): Removed.
  11462. (createPieceMessage): Removed.
  11463. (createHaveMessage): Removed.
  11464. (createChokeMessage): Removed.
  11465. (createUnchokeMessage): Removed.
  11466. (createInterestedMessage): Removed.
  11467. (createNotInterestedMessage): Removed.
  11468. (createBitfieldMessage): Removed.
  11469. (createKeepAliveMessage): Removed.
  11470. (createHaveAllMessage): Removed.
  11471. (createHaveNoneMessage): Removed.
  11472. (createRejectMessage): Removed.
  11473. (createAllowedFastMessage): Removed.
  11474. * src/PieceMessage.h
  11475. (createRejectMessage): New function.
  11476. (PieceMessage): Rewritten.
  11477. (onChoked): New function.
  11478. (onCanceled): New function.
  11479. * src/PieceMessage.cc
  11480. (send): If invalidate is true then do nothing, just return.
  11481. (createRejectMessage): New function.
  11482. (onChoked): New function.
  11483. (onCanceled): New function.
  11484. * src/RequestMessage.h
  11485. (RequestMessage): Rewritten.
  11486. (onPush): New function.
  11487. (onAbortPiece): New function.
  11488. * src/RequestMessage.cc
  11489. (onPush): New function.
  11490. (onAbortPiece): New function.
  11491. Update fd_set when a socket is added or deleted in order to improve
  11492. performance:
  11493. * src/DownloadEngine.h
  11494. (rfdset): New variable.
  11495. (wfdset): New variable.
  11496. (updateFdSet): New function.
  11497. * src/DownloadEngine.cc
  11498. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11499. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11500. (waitData): Copy rfdset and wfdset.
  11501. (updateFdSet): New function.
  11502. (addSocket): Call updateFdSet.
  11503. (deleteSocket): Call updateFdSet.
  11504. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11505. To add the support for Metalink3.0 backward compatible links:
  11506. * src/Request.h
  11507. (SAFE_CHARS): Added '#'.
  11508. (METALINK_MARK): New definition.
  11509. * src/Request.cc
  11510. (parseUrl): Added the support for Metalink3.0 backward compatible
  11511. links.
  11512. etc
  11513. * src/PeerInteraction.cc
  11514. (MsgPushBack): Removed.
  11515. (sendMessages): Use STL copy and back_inserter.
  11516. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11517. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11518. * src/TorrentMan.h
  11519. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11520. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11521. * src/SharedHandle.h: New class.
  11522. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11523. * src/HttpResponseCommand.h
  11524. (HttpResponseCommand): Wrapped Socket.
  11525. * src/SocketCore.h
  11526. (operator==): New function.
  11527. (operator!=): New function.
  11528. (operator<): New function.
  11529. (getSockfd): New function.
  11530. (isOpen): New function.
  11531. (writeData): New function.
  11532. * src/SocketCore.cc
  11533. (operator==): New function.
  11534. (operator!=): New function.
  11535. (operator<): New function.
  11536. * src/AbstractCommand.h
  11537. (socket): Changed its type to SocketHandle.
  11538. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11539. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11540. (disableReadCheckSocket): New function.
  11541. (disableWriteCheckSocket): New function.
  11542. (readCheckTarget): Changed its type to SocketHandle.
  11543. (writeCheckTarget): Changed its type to SocketHandle.
  11544. (AbstractCommand): Replaced Socket with SocketHandle.
  11545. * src/AbstractCommand.cc
  11546. (AbstractCommand): Replaced Socket with SocketHandle.
  11547. (~AbstractCommand): Removed the deallocation for Socket object.
  11548. (disableReadCheckSocket): New function.
  11549. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11550. (disableWriteCheckSocket): New function.
  11551. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11552. * src/HttpDownloadCommand.cc
  11553. (DownloadCommand): Replaced Socket with SocketHandle.
  11554. * src/PeerAbstractCommand.h
  11555. (socket): Changed its type to SocketHandle.
  11556. (peer): Changed its type to PeerHandle.
  11557. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11558. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11559. (disableReadCheckSocket): New function.
  11560. (disableWriteCheckSocket): New function.
  11561. (readCheckTarget): Changed its type to SocketHandle.
  11562. (writeCheckTarget): Changed its type to SocketHandle.
  11563. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11564. Replaced Peer with PeerHandle.
  11565. * src/HttpRequestCommand.cc
  11566. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11567. Use disableReadCheckSocket.
  11568. * src/PeerInitiateConnectionCommand.h
  11569. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11570. * src/PeerChokeCommand.cc
  11571. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11572. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11573. (execute): Use PeerHandle.
  11574. * src/PeerConnection.h
  11575. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11576. (socket): Changed its type to SocketHandle.
  11577. (PeerConnection): Replaced Socket with SocketHandle.
  11578. * src/PeerConnection.cc
  11579. (PeerConnection): Replaced Socket with SocketHandle.
  11580. * src/PeerInteractionCommand.h
  11581. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11582. Replaced Peer with PeerHandle.
  11583. * src/PeerInteractionCommand.cc
  11584. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11585. Replaced Peer with PeerHandle.
  11586. (executeInternal): Use disableWriteCheckSocket.
  11587. Use HandshakeMessageHandle.
  11588. (receiveMessages): Use PeerMessageHandle.
  11589. (prepareForNextPeer): Use PeerHandle.
  11590. * src/HttpProxyRequestCommand.h
  11591. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11592. * src/HttpResponseCommand.cc
  11593. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11594. * src/TorrentMan.cc
  11595. (nullPeer): Added external reference.
  11596. (~TorrentMan): Removed the deallocation of the elements of peers.
  11597. (addPeer): Rewritten.
  11598. (isPeerAvailable): Use nullPeer.
  11599. (deleteOldpeers): Replaced with deleteErrorPeer.
  11600. (deleteErrorPeer): New function.
  11601. (getPeer): Use PeerHandle and nullPeer.
  11602. (hasMissingPiece): Replaced Peer with PeerHandle.
  11603. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11604. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11605. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11606. (getMissingPiece): Replaced Peer with PeerHandle.
  11607. * src/FtpNegotiateCommand.cc
  11608. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11609. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11610. (recvGreeting): Use disableWriteCheckSocket.
  11611. (recvPasv): Removed the allocation of Socket.
  11612. Use disableReadCheckSocket.
  11613. (sendRestPasv): Use disableWriteCheckSocket.
  11614. (recvRetr): Changed assertion.
  11615. * src/PeerInteraction.h
  11616. (SharedHandle.h): Included SharedHandle.h.
  11617. (PeerMessageHandle): New type definition.
  11618. (HandshakeMessageHandle): New type definition.
  11619. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11620. (peer): Changed its type to PeerHandle.
  11621. (createHandshakeMessage): Replaced HandshakeMessage with
  11622. HandshakeMessageHandle.
  11623. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11624. (PeerInteraction): Replaced Peer with PeerHandle.
  11625. Replaced Socket with SocketHandle.
  11626. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11627. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11628. (receiveHandshake): Replaced HandshakeMessage with
  11629. HandshakeMessageHandle.
  11630. * src/PeerInteraction.cc
  11631. (PeerInteraction): Replaced Peer with PeerHandle.
  11632. Replaced Socket with SocketHandle.
  11633. (~PeerInteraction): Removed the deallocation of the elements of
  11634. messageQueue.
  11635. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11636. (isSendingMessageInProgress): Replaced PeerMessage with
  11637. PeerMessageHandle.
  11638. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11639. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11640. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11641. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11642. (abortPiece): Use PeerMessageHandle.
  11643. (receiveHandshake): Replaced HandshakeMessage with
  11644. HandshakeMessageHandle. Removed try-catch block.
  11645. (createHandshakeMessage): Replaced HandshakeMessage with
  11646. HandshakeMessageHandle.
  11647. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11648. Removed try-catch block.
  11649. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11650. * src/HttpProxyResponseCommand.cc
  11651. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11652. * src/FtpTunnelResponseCommand.h
  11653. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11654. * src/HttpConnection.cc
  11655. (HttpConnection): Replaced Socket with SocketHandle.
  11656. * src/PeerAbstractCommand.cc
  11657. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11658. (~PeerAbstractCommand): Removed the deallocation of socket.
  11659. Use disableReadCheckSocket, disableWriteCheckSocket.
  11660. (disableReadCheckSocket): New function.
  11661. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11662. (disableWriteCheckSocket): New function.
  11663. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11664. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11665. * src/FtpTunnelRequestCommand.cc
  11666. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11667. (~FtpTunnelRequestCommand): Corrected indentation.
  11668. * src/DownloadCommand.h
  11669. (DownloadCommand): Replaced Socket with SocketHandle.
  11670. * src/PeerListenCommand.cc
  11671. (PeerListenCommand): Removed the initialization of socket.
  11672. (~PeerListenCommand): Removed the deallocation of socket.
  11673. (bindPort): Use SocketHandle.
  11674. (execute): Use SocketHandle and PeerHandle.
  11675. * src/FtpDowndloadCommand.cc
  11676. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11677. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11678. * src/main.cc
  11679. (main): Corrected indentation.
  11680. * src/HttpInitiateConnectionCommand.cc
  11681. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11682. (executeInternal): Removed the allocation of socket.
  11683. * src/HttpRequestCommand.h
  11684. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11685. * src/FtpNegotiationCommand.h
  11686. (dataSocket): Changed its type to SocketHandle.
  11687. (serverSocket): Changed its type to SocketHandle.
  11688. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11689. * src/TorrentMan.h
  11690. (MAX_PEER_UPDATE): Removed.
  11691. (MAX_PEERS): New definition.
  11692. (Peers): The element is now of type PeerHandle.
  11693. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11694. (getPeer): Replaced Peer with PeerHandle.
  11695. (deleteOldErrorPeers): Removed.
  11696. (deleteErrorPeer): New function.
  11697. (hasMissingPiece): Replaced Peer with PeerHandle.
  11698. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11699. (getMissingPiece): Replaced Peer with PeerHandle.
  11700. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11701. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11702. (addActivePeer): Replaced Peer with PeerHandle.
  11703. (deleteActivePeer): Replaced Peer with PeerHandle.
  11704. Added a check for the return value of find.
  11705. * src/FtpTunnelResponseCommand.cc
  11706. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11707. * src/FtpInitiateConnectionCommand.cc
  11708. (executeInternal): Removed the allocation of socket.
  11709. * src/DownloadEngine.h
  11710. (Sockets): An element is now of type SocketHandle.
  11711. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11712. (CommandUuids): New type definition.
  11713. (rsockets): Changed its type to SockCmdMap.
  11714. (wsockets): Changed its type to SockCmdMap.
  11715. (addSocket): Rewritten.
  11716. (deleteSocket): Rewritten.
  11717. (addSocketForReadCheck): Rewritten.
  11718. (deleteSocketForReadCheck): Rewritten.
  11719. (addSocketForWriteCheck): Rewritten.
  11720. (deleteSocketForWriteCheck): Rewritten.
  11721. (PairFind): New template class.
  11722. * src/HttpDownloadCommand.h
  11723. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11724. * src/FtpConnection.cc
  11725. (FtpConnection): Replaced Socket with SocketHandle.
  11726. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11727. block.
  11728. * src/InitiateConnectionCommandFactory.cc
  11729. (DlAbortEx.h): Included DlAbortEx.h.
  11730. (createInitiateConnectionCommand): Throw exception if the protocol of
  11731. requested URI is not supported.
  11732. * src/Peer.cc
  11733. (nullPeer): Changed its type to PeerHandle.
  11734. (operator==): New function.
  11735. (operator!=): New function.
  11736. * src/Peer.h
  11737. (SharedHandle.h): Included SharedHandle.h.
  11738. (operator==): New function.
  11739. (operator!=): New function.
  11740. (Peer): Added the default constructor.
  11741. Use resetStatus() to initialize member variables.
  11742. (nullPeer): Removed.
  11743. * src/TrackerUpdateCommand.cc
  11744. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11745. with MIN_PEERS.
  11746. * src/PeerListenCommand.h
  11747. (socket): Changed its type to SocketHandle.
  11748. * src/Command.h
  11749. (CommandUuid): New type definition.
  11750. (uuid): New variable.
  11751. (uuidGen): New variable.
  11752. (Command): Added the initialization of uuid.
  11753. (getUuid): New function.
  11754. * src/Socket.h
  11755. (Socket): Removed.
  11756. (SocketHandle): New type definition.
  11757. * src/DownloadEngine.h
  11758. (FindCommand): New function object.
  11759. (run): The portion of socket check was rewritten.
  11760. (SetDescriptor): New function object.
  11761. (AccumulateActiveCommandUuid): New function object.
  11762. (waitData): Rewritten.
  11763. (addSocket): Rewritten.
  11764. (deleteSocket): Rewritten.
  11765. (addSocketForReadCheck): Rewritten.
  11766. (addSocketForWriteCheck): Rewritten.
  11767. (deleteSocketForReadCheck): Rewritten.
  11768. (deleteSocketForWriteCheck): Rewritten.
  11769. * src/HttpProxyResponseCommand.h
  11770. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11771. * src/HttpConnection.h
  11772. (socket): Changed its type to SocketHandle.
  11773. (HttpConnection): Replaced Socket with SocketHandle.
  11774. * src/PeerInitiateConnectionCommand.cc
  11775. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11776. (executeInternal): Removed the allocation of socket.
  11777. (prepareForNextPeer): Use PeerHandle.
  11778. * src/PeerMessage.h
  11779. (peer): Changed its type to PeerHandle.
  11780. (getPeer): Replaced Peer with PeerHandle.
  11781. (setPeer): Replaced Peer with PeerHandle.
  11782. * src/DownloadCommand.cc
  11783. (DownloadCommand): Replaced Socket with SocketHandle.
  11784. * src/FtpConnection.h
  11785. (socket): Changed its type to SocketHandle.
  11786. (FtpConnection): Replaced Socket with SocketHandle.
  11787. (sendPort); Replaced Socket with SocketHandle.
  11788. * src/FtpDowndloadCommand.h
  11789. (ctrlSocket): Changed its type to SocketHandle.
  11790. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11791. * src/HttpProxyRequestCommand.cc
  11792. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11793. * src/FtpTunnelRequestCommand.h
  11794. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11795. etc
  11796. * src/PeerChokeCommand.h
  11797. (setAllPeerChoked): Removed.
  11798. (setAllPeerResetDelta): Removed.
  11799. * src/PeerChokeCommand.cc
  11800. (setAllPeerChoked): Removed.
  11801. (ChokePeer): New function object.
  11802. (setAllPeerResetDelta): Removed.
  11803. (ResetDelta): New function object.
  11804. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  11805. (execute): Show download speed when the local node is a seeder.
  11806. setAllPeerChoked and setAllPeerResetDelta were rewritten
  11807. using STL.
  11808. * src/TrackerWatcherCommand.h
  11809. (MIN_PEERS): Removed.
  11810. * src/TorrentMan.cc
  11811. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  11812. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11813. To fix the bug that .aria2 file is not saved if downloading is stopped
  11814. by the errors:it results that aria2 can not resume downloading:
  11815. * src/main.cc
  11816. (normalDownload): Added the call to save().
  11817. (main): Added the deletion of the elements in 'reserved'.
  11818. To fix log:
  11819. * src/PeerInteraction.cc
  11820. (receiveHandshake): Fixed log.
  11821. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11822. To improve download performance in BitTorrent:
  11823. * src/TorrentMan.cc
  11824. (getPeer): Check the number of connections. Return nullPeer if
  11825. it is greater than MAX_PEER_UPDATE.
  11826. This code was originally here, but was removed in 0.5.1.
  11827. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11828. To improve the conditional compilation:
  11829. * src/MultiDiskWriter.h:
  11830. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11831. * src/MultiDiskWriter.cc:
  11832. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11833. * src/Util.h:
  11834. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11835. Added ENABLE_BITTORRENT around computeFastSet().
  11836. * src/Util.cc:
  11837. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11838. Added ENABLE_BITTORRENT around computeFastSet().
  11839. * src/messageDigest.h:
  11840. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  11841. * src/ShaVisitor.h:
  11842. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11843. * src/ShaVisitor.cc:
  11844. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11845. * src/main.cc:
  11846. Added ENABLE_BITTORRENT around includes and blocks related to
  11847. BitTorrent.
  11848. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  11849. digest support is not available.
  11850. * src/AbstractDiskWriter.h:
  11851. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11852. * src/AbstractDiskWriter.cc:
  11853. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  11854. * src/MetalinkEntry.cc
  11855. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  11856. support is not available.
  11857. To add command-line options for Metalink:
  11858. * src/main.cc:
  11859. Added metalink-version, metalink-language, metalink-os,
  11860. follow-metalink.
  11861. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  11862. * src/main.cc: Use these definition.
  11863. * Release 0.6.0
  11864. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11865. To add Metalink support(http/ftp only):
  11866. * src/AbstractCommand.h
  11867. (tryReserved): New function.
  11868. * src/AbstractCommand.cc
  11869. (execute): Call tryReserved().
  11870. (tryReserved): New function.
  11871. * src/Request.h
  11872. (Requests): New type definition.
  11873. * src/SegmentMan.h
  11874. (reserved): New variable.
  11875. * src/Util.h
  11876. (fileChecksum): New function.
  11877. (toUpper): New function.
  11878. (toLower): New function.
  11879. * src/Util.cc
  11880. (messageDigest.h): Included.
  11881. (trim): Trim \r\n\t.
  11882. (fileChecksum): New function.
  11883. (toUpper): New function.
  11884. (toLower): New function.
  11885. * src/main.cc
  11886. (normalDownload): New function.
  11887. (main): Added 2 command-line options: metalink-file,
  11888. metalink-connection. Their usage has not been written yet.
  11889. * src/MetalinkProcessor.h: New class.
  11890. * src/Xml2MetalinkProcessor.h: New class.
  11891. * src/Xml2MetalinkProcessor.cc: New class.
  11892. * src/MetalinkEntry.h: New class.
  11893. * src/MetalinkEntry.cc: New class.
  11894. * src/MetalinkResource.h: New class.
  11895. * src/MetalinkResource.cc: New class.
  11896. To add md5 message digest checking:
  11897. * src/messageDigest.h: Rewritten.
  11898. * src/MultiDiskWriter.cc: Updated according to the changes in
  11899. messageDigest.h.
  11900. * src/ShaVisitor.cc: Updated according to the changes in
  11901. messageDigest.h.
  11902. * src/Util.cc: Updated according to the changes in messageDigest.h.
  11903. * src/AbstractDiskWriter.cc: Updated according to the changes in
  11904. messageDigest.h.
  11905. To fix a bug that causes segfault when the payload length in peer
  11906. message is less than 0:
  11907. * src/PeerConnection.cc:
  11908. (receiveMessage): Fixed the bug.
  11909. * src/PeerMessageUtil.cc
  11910. (checkLength): Throw an exception if length is less than or equals to
  11911. 0.
  11912. To add new interfaces to Base64 encoding/decoding:
  11913. * src/Base64.h
  11914. (part_encode): Changed the method signature.
  11915. (encode): New function(overload).
  11916. (decode): New function(overload).
  11917. * src/Base64.cc
  11918. (part_encode): Rewritten.
  11919. (encode): Rewritten.
  11920. (encode): New function(overload).
  11921. To prevent a peer to download same piece if there is an error in
  11922. checksum:
  11923. * src/PieceMessage.cc
  11924. (receivedAction): Call peerInteraction->abortPiece().
  11925. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11926. To fix the bug that causes same have message is sent many times to
  11927. a single peer.
  11928. * src/Time.cc
  11929. (isNewer): Use Util::difftv().
  11930. * src/Util.cc
  11931. (difftv): Added a cast to (long long int).
  11932. * src/TorrentMan.cc
  11933. (advertisePiece): Use push_front.
  11934. (getAdvertisedPieceIndexes): A performance improvement was made.
  11935. To fix the bug that sends tracker requests without a sleep interval
  11936. when the number of connections is less than 15.
  11937. * src/TrackerWatcherCommand.cc
  11938. (execute): Now the number of connections is not a factor to decide
  11939. whether or not a tracker request should be sent or not.
  11940. * src/Time.h
  11941. (setTimeInSec): New function.
  11942. * src/Time.cc
  11943. (setTimeInSec): New function.
  11944. etc.
  11945. * src/ChokeMessage.cc
  11946. (receivedAction): Removed peer->snubbing = false
  11947. * src/PeerConnection.h
  11948. (receiveHandshake): Updated doc.
  11949. * src/TorrentMan.h
  11950. (getAdvertisedPieceIndexes): Updated the method signature.
  11951. * src/TorrentMan.cc
  11952. (getAdvertisedPieceIndexes): Updated the method signature.
  11953. * src/Time.h
  11954. (getTimeInMicros): Added a cast to (long long int).
  11955. (getTimeInMillis): Added a cast to (long long int).
  11956. * Release 0.5.2
  11957. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11958. To make a listening socket non-block:
  11959. * src/SocketCore.h
  11960. (setNonBlockingMode): New function.
  11961. * src/SocketCore.cc
  11962. (setNonBlockingMode): New function.
  11963. (beginListen): Added a call to setNonBlockingMode().
  11964. (acceptConnection): Call setNonBlockingMode().
  11965. (setBlockingMode): Updated.
  11966. To handle tracker's NAT-checking:
  11967. * src/PeerConnection.cc
  11968. (receiveHandshake): 'msg' param is filled with received data and
  11969. its length is assigned to 'length' param, even if all handshake
  11970. message is not yet received.
  11971. * src/PeerInteractionCommand.cc
  11972. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  11973. a new peer connects to localhost.
  11974. A call to peerInteraction->sendHandshake() was removed because
  11975. it is called from peerInteraction->receiveHandshake(true).
  11976. * src/PeerInteraction.h
  11977. (quickReplied): New variable.
  11978. (receiveHandshake): Added an argument.
  11979. * src/PeerInteraction.cc
  11980. (PeerInteraction): Added the initialization of quickReplied.
  11981. (receiveHandshake): Send handshake message as soon as the info hash
  11982. in a handshake message from a peer is correct.
  11983. To change the random part of peer id and key parameter:
  11984. * src/TorrentMan.h
  11985. (key): New variable.
  11986. * src/TorrentMan.cc
  11987. (setupInternal1): Use Util::randomAlpha() to generate random part
  11988. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  11989. key is also generated by Util::randomAlpha() and it is now 8 character
  11990. long.
  11991. * src/Util.h
  11992. (randomAlpha): New function.
  11993. * src/Util.cc
  11994. (randomAlpha): New function.
  11995. * src/TrackerWatcherCommand.cc
  11996. (execute): In a tracker request: Use torrentMan->key as key parameter.
  11997. Added no_peer_id=1.
  11998. Set snubbing flag to false when a choke message is received from a
  11999. snubbed peer.
  12000. * src/ChokeMessage.cc
  12001. (receivedAction): Set snubbing flag to false.
  12002. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12003. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12004. * src/SimpleLogger.h (writeHeader): New function.
  12005. * src/SimpleLogger.cc (writeHeader): New function.
  12006. (writeLog): Fixed the bug that causes segfaults if exception message
  12007. contains an unescaped "%" character.
  12008. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12009. when a tracker request fails.
  12010. * src/Request.cc (parseUrl): Query string is now handled properly.
  12011. * Release 0.5.1
  12012. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12013. To add Time class which represents a specific instant in time and
  12014. its precision is microseconds. Time checking procedures were rewritten
  12015. using this object.
  12016. * src/Time.h: New class.
  12017. * src/Time.cc: New class.
  12018. * src/AbstractCommand.h
  12019. (updateCheckPoint): Removed.
  12020. (isTimeoutDetected): Removed.
  12021. (checkPoint): Changed the type to Time.
  12022. (timeout): New variable.
  12023. (setTimeout): New function.
  12024. * src/AbstractCommand.cc
  12025. (AbstractCommand): Removed the initialization of checkPoint.
  12026. Added the initialization of timeout.
  12027. (updateCheckPoint): Removed.
  12028. (isTimeoutDetected): Removed.
  12029. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12030. * src/PeerChokeCommand.h
  12031. (checkPoint): Changed the type to Time.
  12032. * src/PeerChokeCommand.cc
  12033. (PeerChokeCommand): Removed the initialization of checkPoint.
  12034. (execute): Rewritten using Time object.
  12035. * src/TrackerWatcherCommand.h
  12036. (checkPoint): Changed the type to Time.
  12037. * src/TrackerWatcherCommand.cc
  12038. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12039. (execute): Rewritten.
  12040. * src/ConsoleDownloadEngine.h
  12041. (cp): Changed the type to Time.
  12042. (startup): Changed the type to Time.
  12043. * src/ConsoleDownloadEngine.cc
  12044. (initStatistics): Use cp.reset(), startup.reset().
  12045. (calculateStatistics): Rewritten using Time object.
  12046. * src/PeerAbstractCommand.h
  12047. (updateCheckPoint): Removed.
  12048. (isTimeoutDetected): Removed.
  12049. (checkPoint): Changed the type to Time.
  12050. * src/PeerAbstractCommand.cc
  12051. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12052. (updateCheckPoint): Removed.
  12053. (isTimeoutDetected): Removed.
  12054. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12055. * src/PeerInteractionCommand.cc
  12056. (PeerInteractionCommand): Removed the initializations of struct
  12057. timeval variables.
  12058. * src/PeerInteractionCommand.h
  12059. (keepAliveCheckPoint): Changed the type to Time.
  12060. (chokeCheckPoint): Changed the type to Time.
  12061. (freqCheckPoint): Changed the type to Time.
  12062. (haveCheckTime): Changed the type to Time.
  12063. * src/PeerInteractionCommand.cc
  12064. (executeInternal): Rewritten using Time object.
  12065. (detectMessageFlooding): Rewritten using Time object.
  12066. (checkLongTimePeerChoking): Rewritten using Time object.
  12067. (sendKeepAlive): Rewritten using Time object.
  12068. (checkHave): Rewritten using Time object.
  12069. * src/SleepCommand.h
  12070. (checkPoint): Changed the type to Time.
  12071. * src/SleepCommand.cc
  12072. (SleepCommand): Removed the initialization of checkPoint.
  12073. (execute): Rewritten using Time object.
  12074. * src/TorrentAutoSaveCommand.h
  12075. (checkPoint): Changed the type to Time.
  12076. * src/TorrentAutoSaveCommand.cc
  12077. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12078. (execute): Rewritten.
  12079. * src/DownloadCommand.h
  12080. (sw): Changed the type to Time.
  12081. * src/DownloadCommand.cc
  12082. (DownloadCommand): Removed the initialization of sw.
  12083. (executeInternal): Rewritten.
  12084. * src/RequestSlot.h
  12085. (dispatchedTime): Changed the type to Time.
  12086. * src/RequestSlot.cc
  12087. (RequestSlot): Removed the call to setDispatchedTime().
  12088. (setDispatchedTime): Rewirtten.
  12089. (isTimeout): Rewritten.
  12090. (getLatencyInMillis): Rewritten.
  12091. * src/TorrentDownloadEngine.h
  12092. (cp): Changed the type to Time[2].
  12093. (startup): Changed the type to Time.
  12094. * src/TorrentDownloadEngine.cc
  12095. (initStatistics): Rewritten.
  12096. (calculateStatistics): Rewritten.
  12097. * src/DownloadEngine.cc
  12098. (run): Rewritten.
  12099. To detect all attempts to connect to the tracker are failed:
  12100. * src/AbstractCommand.cc
  12101. (execute): Increment e->segmentMan->errors if a command aborted.
  12102. * src/SegmentMan.h
  12103. (errors): New variable.
  12104. * src/SegmentMan.cc
  12105. (SegmentMan): Added the initialization of errors.
  12106. (init): Added the initialization of errors.
  12107. * src/TrackerWatcherCommand.cc
  12108. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12109. request was failed.
  12110. To handle snubbed peers:
  12111. * src/PeerChokeCommand.cc
  12112. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12113. (execute): Snubbed peers don't get unchoked.
  12114. * src/PeerInteraction.h
  12115. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12116. * src/PeerInteraction.cc
  12117. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12118. back the requested 16k block in 60 seconds.
  12119. * src/PieceMessage.cc
  12120. (receivedAction): A peer's snubbed state is cleard if it sends
  12121. the requested 16k block in 60 seconds.
  12122. * src/Peer.h
  12123. (snubbing): New variable.
  12124. * src/Peer.cc
  12125. (resetStatus): Added snubbed = false.
  12126. To fix the bug that causes have message is not sent:
  12127. * src/PeerInteractionCommand.cc
  12128. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12129. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12130. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12131. * src/TorrentMan.h
  12132. (HaveEntry): New class.
  12133. (advertisePiece): Rewritten.
  12134. (getAdvertisedPieceIndexes): Rewritten.
  12135. (Haves): Changed the type.
  12136. (getAdvertisedPieceIndexes): Added an argument.
  12137. Others:
  12138. * src/TorrentMan.h
  12139. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12140. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12141. * src/TorrentMan.cc
  12142. (getPeer): Don't check the number of connections here.
  12143. (setupInternal1): Changed peerId.
  12144. * src/PeerInteractionCommand.h
  12145. (KEEP_ALIVE_INTERVAL): New definition.
  12146. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12147. * src/main.cc
  12148. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12149. * src/DownloadEngine.h: Removed unnecessary header includes.
  12150. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12151. To fix the bug that causes segfaults if a tracker returns a zero-length
  12152. list as "peers":
  12153. * src/TrackerUpdateCommand.cc
  12154. (execute): Added a check to see wether the type of peers is Data*.
  12155. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12156. * Release 0.5.0
  12157. To fix compile issue with gcc3:
  12158. * src/CancelMessage.h
  12159. (ID): Renamed as ID_t
  12160. (ID_t): New enum.
  12161. * src/RejectMessage.h
  12162. (ID): Renamed as ID_t
  12163. (ID_t): New enum.
  12164. * src/SuggestPieceMessage.h
  12165. (ID): Renamed as ID_t
  12166. (ID_t): New enum.
  12167. * src/AllowedFastMessage.h
  12168. (ID): Renamed as ID_t
  12169. (ID_t): New enum.
  12170. * src/PortMessage.h
  12171. (ID): Renamed as ID_t
  12172. (ID_t): New enum.
  12173. * src/HaveNoneMessage.h
  12174. (ID): Renamed as ID_t
  12175. (ID_t): New enum.
  12176. * src/KeepAliveMessage.h
  12177. (ID): Renamed as ID_t
  12178. (ID_t): New enum.
  12179. * src/HaveAllMessage.h
  12180. (ID): Renamed as ID_t
  12181. (ID_t): New enum.
  12182. * src/UnchokeMessage.h
  12183. (ID): Renamed as ID_t
  12184. (ID_t): New enum.
  12185. * src/BitfieldMessage.h
  12186. (ID): Renamed as ID_t
  12187. (ID_t): New enum.
  12188. * src/PieceMessage.h
  12189. (ID): Renamed as ID_t
  12190. (ID_t): New enum.
  12191. * src/RequestMessage.h
  12192. (ID): Renamed as ID_t
  12193. (ID_t): New enum.
  12194. * src/NotInterestedMessage.h
  12195. (ID): Renamed as ID_t
  12196. (ID_t): New enum.
  12197. * src/ChokeMessage.h
  12198. (ID): Renamed as ID_t
  12199. (ID_t): New enum.
  12200. * src/InterestedMessage.h
  12201. (ID): Renamed as ID_t
  12202. (ID_t): New enum.
  12203. * src/HaveMessage.h
  12204. (ID): Renamed as ID_t
  12205. (ID_t): New enum.
  12206. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12207. * src/PeerAbstractCommand.h
  12208. (beforeSocketCheck): Removed.
  12209. * src/PeerAbstractCommand.cc
  12210. Modified in order to call executeInternal() even if socket check
  12211. and upload limit check fail.
  12212. * src/PeerInteractionCommand.h
  12213. (keepAlive): Removed.
  12214. (sendKeepAlive): New function.
  12215. (checkHave): New function.
  12216. (beforeSocketCheck): Removed.
  12217. * src/PeerInteractionCommand.cc
  12218. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12219. calls to checkHave() and sendKeepAlive().
  12220. (keepAlive): Renamed to sendKeepAlive().
  12221. (sendKeepAlive): New function.
  12222. (beforeSocketCheck): Removed.
  12223. (checkHave): New function.
  12224. * src/BitfieldMan.cc
  12225. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12226. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12227. 0.
  12228. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12229. * src/TorrentMan.h
  12230. (UsedPieces): Removed.
  12231. (Pieces): New type definition.
  12232. * src/Piece.h: Updated doc.
  12233. * src/Peer.h
  12234. (totalLength): Removed.
  12235. * src/Peer.cc
  12236. (updateLatency): Fixed the latency calculation.
  12237. * src/TorrentMan.cc
  12238. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12239. than or equal to MAX_PEER_LIST_SIZE.
  12240. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12241. then return false.
  12242. (deleteOldErrorPeers): Rewritten.
  12243. (deleteUsedPiece): Fixed the miss use of STL remove.
  12244. * src/PeerInteraction.h
  12245. (Pieces): Removed.
  12246. (deleteTimeoutRequestSlot): Removed.
  12247. (deleteCompletedRequestSlot): Removed.
  12248. (checkRequestSlot): New function.
  12249. * src/PeerInteraction.cc
  12250. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12251. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12252. (checkRequestSlot): New function.
  12253. * src/DownloadEngine.cc
  12254. (run): Clear activeSockets before calling waitData().
  12255. (waitData): Removed a call to activeSockets.clear().
  12256. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12257. To attempt to handle EINTR:
  12258. * src/SocketCore.cc
  12259. (isReadable): Added EINTR handling.
  12260. (isWritable): Added EINTR handling.
  12261. To improve the performance:
  12262. * src/AbstractCommand.cc
  12263. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12264. * src/PeerInteractionCommand.h
  12265. (receiveMessage): Renamed as receiveMessages().
  12266. (receiveMessages): New function.
  12267. * src/PeerInteractionCommand.cc
  12268. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12269. () function. detectMessageFlooding() is moved here.
  12270. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12271. (). The flooding detection for have message is comment out.
  12272. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12273. Util::difftv().
  12274. (receiveMessage): Renamed as receiveMessages().
  12275. (receiveMessages): New function.
  12276. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12277. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12278. * src/SleepCommand.cc
  12279. (execute): Use Util::difftvsec() instead of Util::difftv().
  12280. * src/BitfieldMan.h
  12281. (getNthBitIndex): New function.
  12282. (hasMissingPiece): New function.
  12283. (getAllMissingIndexes): New function.
  12284. * src/BitfieldMan.cc
  12285. (countSetBit): Rewritten.
  12286. (getNthBitIndex): New function.
  12287. (getMissingIndexRandomly): Rewritten.
  12288. (hasMissingPiece): New function.
  12289. (getAllMissingIndexes): New function.
  12290. * src/TorrentMan.cc
  12291. (hasMissingPiece): New function.
  12292. (deleteUsedPiece): Rewritten using STL.
  12293. * src/PeerInteraction.cc
  12294. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12295. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12296. (addRequests): Updated the number of pending requests.
  12297. * src/PeerAbstractCommand.cc
  12298. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12299. (execute): Returns true if TorrentMan::isHalt() is true.
  12300. Corrected the condition of upload limit checking.
  12301. * src/Util.h
  12302. (countBit): New function.
  12303. * src/Util.cc
  12304. (nbits): New variable.
  12305. (countBit): New function.
  12306. * src/DownloadEngine.h
  12307. (SockCmdMap): New type definition.
  12308. (waitData): Added an argument.
  12309. (addSocket): Added an argument.
  12310. (addSocketForReadCheck): Added an argument.
  12311. (addSocketForWriteCheck): Added an argument.
  12312. * src/DownloadEngine.cc
  12313. (run): Executes only commands whose sockets are ready to read or write.
  12314. All commands are executed in every 1 second.
  12315. (waitData): Calls select() again if it returned
  12316. EINTR.
  12317. (addSocket): Saves socket and command object pair to the map.
  12318. (deleteSocket): Deletes socket and command object pair from the map.
  12319. (addSocketForReadCheck): Added an argument.
  12320. (addSocketForWriteCheck): Added an argument.
  12321. * src/DownloadCommand.cc
  12322. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12323. To send "event=stopped" to the tracker when the application finishes:
  12324. * src/PeerChokeCommand.h
  12325. (checkPoint): New variable.
  12326. * src/PeerChokeCommand.cc
  12327. (PeerChokeCommand): Added the initialization of checkPoint.
  12328. (execute): The interval check is now done by checkPoint, not
  12329. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12330. * src/TorrentMan.h
  12331. (halt): New function.
  12332. (hasMissingPiece): New function.
  12333. (isHalt): New function.
  12334. (setHalt): New function.
  12335. * src/TorrentMan.cc
  12336. (TorrentMan): Added the initialization of halt.
  12337. * src/TorrentAutoSaveCommand.h
  12338. (checkPoint): New variable.
  12339. * src/PeerListenCommand.cc
  12340. (execute): Returns true if TorrentMan::isHalt() is true.
  12341. * src/main.cc
  12342. (setSignalHander): Added flags argument.
  12343. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12344. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12345. Removed printDownloadAbortMessage() after torrent downloading loop.
  12346. * src/TorrentAutoSaveCommand.cc
  12347. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12348. (execute): Returns true if TorrentMan::isHalt() is true.
  12349. The interval check is now done by checkPoint, not SleepCommand.
  12350. * src/TrackerWatcherCommand.cc
  12351. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12352. event=stopped.
  12353. * src/TrackerUpdateCommand.cc
  12354. (prepareForRetry): Do not use SleepCommand here.
  12355. (execute): Returns true if TorrentMan::isHalt() is true.
  12356. Others:
  12357. * src/TorrentMan.cc
  12358. (getMissingPieceIndex): Updated log message.
  12359. * src/PeerInteraction.cc
  12360. (createPeerMessag): Updated log message.
  12361. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12362. To add the ability to download several pieces in mix in a command and
  12363. increase the number of request slots according to request-cancel
  12364. latency:
  12365. * src/PeerInteractionCommand.cc
  12366. (executeInternal): The number of messages to be received at a time
  12367. is increased from 10 to 50.
  12368. * src/LogFactory
  12369. (getInstance): Added NullLogger.
  12370. * src/NullLogger.h: New class.
  12371. * src/BitfieldMan.h
  12372. (getMissingIndex): New function.
  12373. * src/BitfieldMan.cc
  12374. (getMissingIndex): New function.
  12375. * src/TorrentMan.h
  12376. (checkOutPiece): New function.
  12377. (getMissingPieceIndex): New function.
  12378. (getMissingFastPieceIndex): New function.
  12379. (getMissingFastPiece): New function.
  12380. * src/TorrentMan.cc
  12381. (updatePiece): Rewritten using STL.
  12382. (syncPiece): Rewritten using STL.
  12383. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12384. checkOutPiece().
  12385. (getMissingPieceIndex): New function.
  12386. (getMissingFastPieceIndex): New function.
  12387. (getMissingFastPiece): New function.
  12388. (checkOutPiece): New function.
  12389. * src/PeerInteraction.h
  12390. (Pieces): New type definition.
  12391. (piece): Removed.
  12392. (pieces): New variable.
  12393. (getNewPieceAndSendInterest): Added the "piece" argument.
  12394. (abortPiece): Added the "piece" argument.
  12395. (abortAllPieces): New function.
  12396. (isInRequestSlot): New function.
  12397. (hasDownloadPiece): Added the "index" argument.
  12398. (setDownloadPiece): Removed.
  12399. (getDownloadPiece): Added the "index" argument.
  12400. (updatePiece): New function.
  12401. (createRequestMessage): Added the "index" argument.
  12402. * src/PeerInteraction.cc
  12403. (onChoked): Rewritten.
  12404. (abortPiece): Rewirtten.
  12405. (abortAllPieces): New function.
  12406. (deleteTimeoutRequestSlot): Rewritten.
  12407. Clarified code a little bit.
  12408. (deleteCompletedRequestSlot): Rewritten.
  12409. (isInRequestSlot): New function.
  12410. (syncPiece): Rewritten.
  12411. (updatePiece): New function.
  12412. (getNewPieceAndSendInterest): Rewritten.
  12413. (addRequests): Rewritten.
  12414. (getDownloadPiece): Rewritten.
  12415. (hasDownloadPiece): Rewritten.
  12416. (createRequestMessage): Added the "index" argument.
  12417. * src/common.h
  12418. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12419. (DIV_FLOOR): New definition.
  12420. * src/PieceMessage.cc
  12421. (receivedAction): Update request-piece latency here.
  12422. * src/RequestSlot.h
  12423. (getLatencyInMillis): New function.
  12424. * src/RequestSlot.cc
  12425. (isTimeout): Rewritten using getLatencyInMillis.
  12426. (getLatencyInMillis): New function.
  12427. * src/Piece.h
  12428. (operator==): New function.
  12429. (getMissingBlockIndex): New function.
  12430. * src/Piece.cc
  12431. (operator==): New function.
  12432. (getMissingBlockIndex): New function.
  12433. * src/Peer.h
  12434. (DEFAULT_LATENCY): New definition.
  12435. (latency): New variable.
  12436. (updateLatency): New function.
  12437. (getLatency): New function.
  12438. * src/Peer.cc
  12439. (resetStatus): Reset latecy.
  12440. (updateLatency): New function.
  12441. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12442. * src/SocketCore.cc
  12443. (isReadable): Added secure to the condition.
  12444. * src/HttpConnection.cc
  12445. (receiveResponse): Fixed a bug that causes no response header
  12446. exception.
  12447. * src/Peer.h
  12448. (getFastSet): Fixed the return value type.
  12449. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12450. To remove a wait from download loop:
  12451. * src/DownloadEngine.cc
  12452. (run): Comment out shortSleep.
  12453. To rewrite the message handling:
  12454. * src/SimplePeerMessage.h: New class.
  12455. * src/SimplePeerMessage.cc: New class.
  12456. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12457. (msg): New variable.
  12458. (create): New function.
  12459. (send): Removed.
  12460. (getMessage): New function.
  12461. (getMessageLength): New function.
  12462. * src/CancelMessage.cc
  12463. (create): New function.
  12464. (receivedAction): Replaced deleteRequestMessageInQueue with
  12465. rejectPieceMessageInQueue.
  12466. (send): Removed.
  12467. (getMessage): New function.
  12468. (getMessageLength): New function.
  12469. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12470. (msg): New variable.
  12471. (msgLength): New variable.
  12472. (~BitfieldMessage): Deleted msg.
  12473. (send): Removed.
  12474. (getMessage): New function.
  12475. (getMessageLength): New function.
  12476. * src/BitfieldMessage.cc
  12477. (create): New function.
  12478. (send): Removed.
  12479. (getMessage): New function.
  12480. (getMessageLength): New function.
  12481. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12482. (msg): New variable.
  12483. (sendPredicate): New function.
  12484. (onSendComplete): New function.
  12485. (send): Removed.
  12486. (getMessage): New function.
  12487. (getMessageLength): New function.
  12488. (create): New function.
  12489. * src/ChokeMessage.cc
  12490. (create): New function.
  12491. (send): Removed.
  12492. (sendPredicate): New function.
  12493. (getMessage): New function.
  12494. (getMessageLength): New function.
  12495. (onSendComplete): New function.
  12496. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12497. (msg): New variable.
  12498. (send): Removed.
  12499. (getMessage): New function.
  12500. (getMessageLength): New function.
  12501. * src/KeepAliveMessage.cc
  12502. (send): Removed.
  12503. (getMessage): New function.
  12504. (getMessageLength): New function.
  12505. * src/PortMessage.h
  12506. (create): New function.
  12507. (receivedAction): Updated log message.
  12508. * src/PortMessage.cc: New file.
  12509. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12510. (msg): New variable.
  12511. (sendPredicate): New function.
  12512. (onSendComplete): New function.
  12513. (create): New function.
  12514. (send): Removed.
  12515. (getMessage): New function.
  12516. (getMessageLength): New function.
  12517. * src/UnchokeMessage.cc
  12518. (create): New function.
  12519. (send): Removed.
  12520. (sendPredicate): New function.
  12521. (getMessage): New function.
  12522. (getMessageLength): New function.
  12523. (onSendComplete): New function.
  12524. * src/PieceMessage.h
  12525. (leftPieceDataLength): Removed.
  12526. (leftDataLength): New variable.
  12527. (headerSend): New variable.
  12528. (pendingCount): New variable.
  12529. (msgHeader): New variable.
  12530. (sendPieceData): New function.
  12531. (incrementPendingCount): New function.
  12532. (isPendingCountMax): New function.
  12533. (create): New function.
  12534. (getMessageHeader): New function.
  12535. (getMessageHeaderLength): New function.
  12536. * src/PieceMessage.cc
  12537. (create): New function.
  12538. (getMessageHeader): New function.
  12539. (getMessageHeaderLength): New function.
  12540. (send): Rewritten.
  12541. (sendPieceData): New function.
  12542. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12543. (msg): New variable.
  12544. (create): New function.
  12545. (getMessage): New function.
  12546. (getMessageLength): New function.
  12547. * src/HaveMessage.cc
  12548. (create): New function.
  12549. (send): Removed.
  12550. (sendPieceData): New function.
  12551. (getMessage): New function.
  12552. (getMessageLength): New function.
  12553. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12554. (msg): New variable.
  12555. (create): New function.
  12556. (send): Removed.
  12557. (getMessage): New function.
  12558. (getMessageLength): New function.
  12559. * src/RequestMessage.cc
  12560. (create): New function.
  12561. (receivedAction): Added the handling of fast extension.
  12562. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12563. (send): Removed.
  12564. (getMessage): New function.
  12565. (getMessageLength): New function.
  12566. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12567. (msg): New variable.
  12568. (sendPredicate): New function.
  12569. (onSendComplete): New function.
  12570. (create): New function.
  12571. (getMessage): New function.
  12572. (getMessageLength): New function.
  12573. * src/InterestedMessage.cc
  12574. (create): New function.
  12575. (send): Removed.
  12576. (sendPieceData): New function.
  12577. (getMessage): New function.
  12578. (getMessageLength): New function.
  12579. (onSendComplete): New function.
  12580. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12581. (msg): New variable.
  12582. (sendPieceData): New function.
  12583. (onSendComplete): New function.
  12584. (create): New function.
  12585. (send): Removed.
  12586. (getMessage): New function.
  12587. (getMessageLength): New function.
  12588. * src/NotInterestedMessage.cc
  12589. (create): New function.
  12590. (send): Removed.
  12591. (sendPredicate): New function.
  12592. (getMessage): New function.
  12593. (getMessageLength): New function.
  12594. (onSendComplete): New function.
  12595. * src/AllowedFastMessage.h: New class.
  12596. * src/AllowedFastMessage.cc: New class.
  12597. * src/RejectMessage.h: New class.
  12598. * src/RejectMessage.cc: New class.
  12599. * src/SuggestPieceMessage.h: New class.
  12600. * src/SuggestPieceMessage.cc: New class.
  12601. * src/HaveAllMessage.h: New class.
  12602. * src/HaveAllMessage.cc: New class.
  12603. * src/HaveNoneMessage.h: New class.
  12604. * src/HaveNoneMessage.cc: New class.
  12605. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12606. (msg): New variable.
  12607. (reserved): New variable.
  12608. (create): New function.
  12609. (getId): New function.
  12610. (receivedAction): New function.
  12611. (getMessage): New function.
  12612. (getMessageLength): New function.
  12613. (isFastExtensionSupported): New function.
  12614. * src/HandshakeMessage.cc
  12615. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12616. (create): New function.
  12617. (getMessage): New function.
  12618. (getMessageLength): New function.
  12619. (toString): Added the output of reserved field.
  12620. (check): Added const qualifier.
  12621. (isFastExtensionSupported): New function.
  12622. * src/PeerMessageUtil.h
  12623. (createChokeMessage): Removed.
  12624. (createUnchokeMessage): Removed.
  12625. (createInterestedMessage): Removed.
  12626. (createNotInterestedMessage): Removed.
  12627. (createHaveMessage): Removed.
  12628. (createBitfieldMessage): Removed.
  12629. (createRequestMessage): Removed.
  12630. (createCancelMessage): Removed.
  12631. (createPieceMessage): Removed.
  12632. (createPortMessage): Removed.
  12633. (createChokeMessage): Removed.
  12634. (createUnchokeMessage): Removed.
  12635. (createInterestedMessage): Removed.
  12636. (createNotInterestedMessage): Removed.
  12637. (createHaveMessage): Removed.
  12638. (createBitfieldMessage): Removed.
  12639. (createRequestMessage): Removed.
  12640. (createCancelMessage): Removed.
  12641. (createPieceMessage): Removed.
  12642. (createKeepAliveMessage): Removed.
  12643. (createHandshakeMessage): Removed.
  12644. (setIntParam): New function.
  12645. (createPeerMessageString): New function.
  12646. * src/PeerMessageUtil.cc
  12647. (createChokeMessage): Removed.
  12648. (createUnchokeMessage): Removed.
  12649. (createInterestedMessage): Removed.
  12650. (createNotInterestedMessage): Removed.
  12651. (createHaveMessage): Removed.
  12652. (createBitfieldMessage): Removed.
  12653. (createRequestMessage): Removed.
  12654. (createCancelMessage): Removed.
  12655. (createPieceMessage): Removed.
  12656. (createPortMessage): Removed.
  12657. (createRequestMessage): Removed.
  12658. (createCancelMessage): Removed.
  12659. (createPieceMessage): Removed.
  12660. (createHaveMessage): Removed.
  12661. (createChokeMessage): Removed.
  12662. (createUnchokeMessage): Removed.
  12663. (createInterestedMessage): Removed.
  12664. (createNotInterestedMessage): Removed.
  12665. (createBitfieldMessage): Removed.
  12666. (createKeepAliveMessage): Removed.
  12667. (createHandshakeMessage): Removed.
  12668. (setIntParam): New function.
  12669. (createPeerMessageString): New function.
  12670. * src/PeerConnection.h
  12671. (peer): Removed.
  12672. (torrentMan): Removed.
  12673. (createNLengthMessage): Removed.
  12674. (setIntParam): Removed.
  12675. (writeOutgoingMessageLog): Removed all overloaded functions.
  12676. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12677. (sendMessage): New function.
  12678. (sendHandshake): Removed.
  12679. (sendKeepAlive): Removed.
  12680. (sendChoke): Removed.
  12681. (sendUnchoke): Removed.
  12682. (sendInterested): Removed.
  12683. (sendNotInterested): Removed.
  12684. (sendHave): Removed.
  12685. (sendBitfield): Removed.
  12686. (sendRequest): Removed.
  12687. (sendPiece): Removed.
  12688. (sendPieceHeader): Removed.
  12689. (sendPieceData): Removed.
  12690. (sendCancel): Removed.
  12691. (getPeer): Removed.
  12692. * src/PeerConnection.cc
  12693. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12694. (sendHandshake): Removed.
  12695. (sendKeepAlive): Removed.
  12696. (createNLengthMessage): Removed.
  12697. (setIntParam): Removed.
  12698. (writeOutgoingMessageLog): Removed all overloaded functions.
  12699. (sendChoke): Removed.
  12700. (sendUnchoke): Removed.
  12701. (sendInterested): Removed.
  12702. (sendNotInterested): Removed.
  12703. (sendHave): Removed.
  12704. (sendBitfield): Removed.
  12705. (sendRequest): Removed.
  12706. (sendPiece): Removed.
  12707. (sendPieceHeader): Removed.
  12708. (sendPieceData): Removed.
  12709. (sendMessage): New function.
  12710. (sendCancel): Removed.
  12711. * src/PeerInteractionCommand.cc
  12712. (PeerInteractionCommand): Call setUploadLimit.
  12713. (executeInternal): Call setUploadLimit.
  12714. Added the handling of "inProgress" state of handshake message.
  12715. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12716. sendNow().
  12717. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12718. sendNow().
  12719. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12720. * src/TorrentMan.h
  12721. (PEER_ID_LENGTH): New definition.
  12722. (hasAllPieces): New function.
  12723. * src/TorrentMan.cc
  12724. (getMissingPiece): Added the handling of fast extension.
  12725. (cancelPiece): Call updatePiece().
  12726. (hasAllPieces): New function.
  12727. * src/PeerInteraction.h
  12728. (fastSet): New variable.
  12729. (getNewPieceAndSendInterest): Changed the return type to void.
  12730. (send): Renamed as sendMessages.
  12731. (deleteAllRequestSlot): Removed.
  12732. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12733. (cancelAllRequest): Removed all overloaded functions.
  12734. (deleteAllRequestSlot): Removed.
  12735. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12736. (rejectPieceMessageInQueue): New function.
  12737. (rejectAllPieceMessageInQueue): New function.
  12738. (onChoked): New function.
  12739. (isSendingMessageInProgress): New function.
  12740. (getCorrespondingRequestSlot): Changed its arguments.
  12741. (isInFastSet): New function.
  12742. (addFastSetIndex): New function.
  12743. (addRequests): New function.
  12744. (sendNow): Removed.
  12745. (trySendNow): Removed.
  12746. (sendBitfield): New function.
  12747. (sendAllowdFast): New function.
  12748. (createHaveAllMessage): New function.
  12749. (createHaveNoneMessage): New function.
  12750. (createRejectMessage): New function.
  12751. (createAllowedFastMessage): New function.
  12752. * src/PeerInteraction.cc
  12753. (send): Renamed as sendMessages.
  12754. (sendMessages): New function.
  12755. (MsgPushBack): New class.
  12756. (isSendingMessageInProgress): New function.
  12757. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12758. (rejectAllPieceMessageInQueue): New function.
  12759. Added the handling of fast extension.
  12760. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12761. (rejectPieceMessageInQueue): New function.
  12762. Added the handling of fast extension.
  12763. (deleteRequestSlot): Replaced for loop with std::find.
  12764. (onChoked): New function.
  12765. (deleteAllRequestSlot): Removed.
  12766. (abortPiece): Rewirtten.
  12767. (deleteTimeoutRequestSlot): Updated log messages.
  12768. (getCorrespondingRequestSlot): Changed its arguments.
  12769. (cancelAllRequest): Removed all overloaded functions.
  12770. (receiveHandshake): Added the check to see whether an incoming peer
  12771. supports fast extension.
  12772. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12773. PeerMessageUtil.
  12774. (createPeerMessage): Use create() of each message class instead of
  12775. PeerMessageUtil.
  12776. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12777. AllowedFastMessage were added.
  12778. (getNewPieceAndSendInterest): Changed its return value type to void.
  12779. Added the handling of fast extension.
  12780. (addRequests): New function.
  12781. (sendNow): Removed.
  12782. (sendHandshake): Rewritten.
  12783. (trySendNow): Removed.
  12784. (sendBitfield): New function.
  12785. (sendAllowdFast): New function.
  12786. (isInFastSet): New function.
  12787. (addFastSetIndex): New function.
  12788. (createRequestMessage): Use RequestMessage::create instead of
  12789. PeerMessageUtil.
  12790. (createCancelMessage): Use CancelMessage::create instead of
  12791. PeerMessageUtil.
  12792. (createPieceMessage): Use PieceMessage::create instead of
  12793. PeerMessageUtil.
  12794. (createHaveMessage): Use HaveMessage::create instead of
  12795. PeerMessageUtil.
  12796. (createChokeMessage): Use ChokeMessage::create instead of
  12797. PeerMessageUtil.
  12798. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12799. PeerMessageUtil.
  12800. (createInterestedMessage): Use InterestedMessage::create instead of
  12801. PeerMessageUtil.
  12802. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  12803. of PeerMessageUtil.
  12804. (createBitfieldMessage): Use BitfieldMessage::create instead of
  12805. PeerMessageUtil.
  12806. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  12807. PeerMessageUtil.
  12808. (createHaveAllMessage): New function.
  12809. (createHaveNoneMessage): New function.
  12810. (createRejectMessage): New function.
  12811. (createAllowedFastMessage: New function.
  12812. * src/Util.h
  12813. (sha1Sum): New function.
  12814. (computeFastSet): New function.
  12815. * src/Util.cc
  12816. (sha1Sum): New function.
  12817. (computeFastSet): New function.
  12818. * src/Peer.h
  12819. (fastExtensionEnabled): New variable.
  12820. (fastSet): New variable.
  12821. (setAllBitfield): New function.
  12822. (setFastExtensionEnabled): New function.
  12823. (isFastExtensionEnabled): New function.
  12824. (addFastSetIndex): New function.
  12825. (getFastSet): New function.
  12826. (isInFastSet): New function.
  12827. (countFastSet): New function.
  12828. * src/Peer.cc
  12829. (isInFastSet): New function.
  12830. (addFastSetIndex): New function.
  12831. (setAllBitfield): New function.
  12832. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  12833. sockets.
  12834. * src/PeerAbstractCommand.cc
  12835. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  12836. and uploadLimit.
  12837. (execute): Changed the procedure of checking sockets. The upload speed
  12838. checking were added.
  12839. (setUploadLimit): New function.
  12840. (setUploadLimitCheck): New function.
  12841. * src/PeerAbstractCommand.h
  12842. (setUploadLimit): New function.
  12843. (setUploadLimitCheck): New function.
  12844. (uploadLimit): New variable.
  12845. (uploadLimitCheck): New variable.
  12846. To contact a tracker regularly:
  12847. * src/TrackerWatcherCommand.h (interval): New variable.
  12848. (checkPoint): New variable.
  12849. (TrackerWatcherCommand): Added interval argument.
  12850. * src/TrackerWatcherCommand.cc
  12851. (TrackerWatcherCommand): Initialized checkPoint.
  12852. (execute): Now a tracker is contacted in every specified period.
  12853. If peer list is not needed, send request with numwant=0.
  12854. * src/TrackerUpdateCommand.cc
  12855. (execute): Updated log messages.
  12856. * src/DownloadEngine.cc
  12857. (~DownloadEngine): Removed two asserts.
  12858. (waitData): Uncommented wfds. May be a bug fix.
  12859. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12860. * src/PeerInteractionCommand.h
  12861. (checkInactiveConnection): Removed.
  12862. * src/PeerInteractionCommand.cc
  12863. (executeInternal): Removed following function calls:
  12864. detectMessageFlooding(), checkLongTimePeerChoking and
  12865. checkInactiveConnection().
  12866. (checkInactiveConnection): Removed.
  12867. (detectMessageFlooding): Removed function call to
  12868. checkInactiveConnection().
  12869. * src/PeerMessageUtil.h
  12870. (createChokeMessage): New function. Overload.
  12871. (createUnchokeMessage): New function. Overload.
  12872. (createInterestedMessage): New function. Overload.
  12873. (createNotInterestedMessage): New function. Overload.
  12874. (createHaveMessage): New function. Overload.
  12875. (createBitfieldMessage): New function. Overload.
  12876. (createRequestMessage): New function. Overload.
  12877. (createCancelMessage): New function. Overload.
  12878. (createPieceMessage): New function. Overload.
  12879. (createKeepAliveMessage): New function. Overload.
  12880. * src/PeerMessageUtil.cc
  12881. (createChokeMessage): New function. Overload.
  12882. (createUnchokeMessage): New function. Overload.
  12883. (createInterestedMessage): New function. Overload.
  12884. (createNotInterestedMessage): New function. Overload.
  12885. (createHaveMessage): New function. Overload.
  12886. (createBitfieldMessage): New function. Overload.
  12887. (createRequestMessage): New function. Overload.
  12888. (createCancelMessage): New function. Overload.
  12889. (createPieceMessage): New function. Overload.
  12890. (createKeepAliveMessage): New function. Overload.
  12891. * src/SendMessageQueue.cc
  12892. (createRequestMessage): Use PeerMessageUtil.
  12893. (createCancelMessage): Use PeerMessageUtil.
  12894. (createPieceMessage): Use PeerMessageUtil.
  12895. (createHaveMessage): Use PeerMessageUtil.
  12896. (createChokeMessage): Use PeerMessageUtil.
  12897. (createUnchokeMessage): Use PeerMessageUtil.
  12898. (createInterestedMessage): Use PeerMessageUtil.
  12899. (createNotInterestedMessage): Use PeerMessageUtil.
  12900. (createBitfieldMessage): Use PeerMessageUtil.
  12901. (createKeepAliveMessage): Use PeerMessageUtil.
  12902. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  12903. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  12904. * src/PeerInteraction.h: New class.
  12905. * src/PeerInteraction.cc: New class.
  12906. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12907. Each peer message has its own class.
  12908. * src/PendingMessages.h: Removed.
  12909. * src/PendingMessages.cc: Removed. The sending process was moved to
  12910. each message class.
  12911. * src/RequestSlotMan.h: Removed.
  12912. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  12913. SendMessageQueue.
  12914. * src/RequestMessage.h: New class.
  12915. * src/RequestMessage.cc: New class.
  12916. * src/CancelMessage.h: New class.
  12917. * src/CancelMessage.cc: New class.
  12918. * src/BitfieldMessage.h: New class.
  12919. * src/BitfieldMessage.cc: New class.
  12920. * src/ChokeMessage.h: New class.
  12921. * src/ChokeMessage.cc: New class.
  12922. * src/KeepAliveMessage.h: New class.
  12923. * src/KeepAliveMessage.cc: New class.
  12924. * src/PortMessage.h: New class.
  12925. * src/UnchokeMessage.h: New class.
  12926. * src/UnchokeMessage.cc: New class.
  12927. * src/PieceMessage.h: New class.
  12928. * src/PieceMessage.cc: New class.
  12929. * src/HaveMessage.h: New class.
  12930. * src/HaveMessage.cc: New class.
  12931. * src/BitfieldMessage.h: New class.
  12932. * src/BitfieldMessage.cc: New class.
  12933. * src/NotInterestedMessage.h: New class.
  12934. * src/NotInterestedMessage.cc: New class.
  12935. * src/InterestedMessage.h: New class.
  12936. * src/InterestedMessage.cc: New class.
  12937. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  12938. (getSendMessageQueue): New function.
  12939. (setSendMessageQueue): New function.
  12940. * src/HandshakeMessage.cc: New class.
  12941. * src/PeerConnection.h (receiveMessage): Changed return value and
  12942. arguments.
  12943. (receiveHandshake): Changed return value and arguments.
  12944. * src/PeerConnection.cc (receiveMessage): Do not create message class
  12945. here.
  12946. (receiveHandshake): Do not create handshake class here.
  12947. * src/PeerInteractionCommand.h (peerConnection): Removed.
  12948. (piece): Removed.
  12949. (syncPiece): Removed.
  12950. (sendInterest): Removed.
  12951. (sendMessages): Removed.
  12952. (createRequestPendingMessage): Removed.
  12953. (checkPieceHash): Removed.
  12954. (erasePieceOnDisk): Removed.
  12955. (getNewPieceAndSendInterest): Removed.
  12956. (onGotNewPice): Removed.
  12957. (onGotWrongPiece): Removed.
  12958. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12959. Removed peerConnection, piece.
  12960. (~PeerInteractionCommand): Removed peerConnection.
  12961. (executeInternal): Use sendMessageQueue instead of peerConnection.
  12962. (syncPiece): Moved to SendMessageQueue.
  12963. (decideChoking): Removed PendingMessage.
  12964. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  12965. The action after receiving peer message was moved to each message
  12966. class.
  12967. (onGotNewPice): Moved to SendMessageQueue.
  12968. (onGotWrongPiece): Moved to SendMessageQueue.
  12969. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  12970. (sendInterest): Moved to SendMessageQueue.
  12971. (createRequestPendingMessage): Removed.
  12972. (sendMessages): Moved to SendMessageQueue.
  12973. (onAbort): Use SendMessageQueue::abortPiece()
  12974. (keepAlive): Use sendMessageQueue instead of peerConnection.
  12975. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  12976. (checkPieceHash): Moved to SendMessageQueue.
  12977. (erasePieceOnDisk): Moved to SendMessageQueue.
  12978. * src/PeerMessageUtil.h
  12979. (createBitfieldMessage): Removed.
  12980. (createHaveMessage): Changed return value and arguments.
  12981. (createBitfieldMessage): Changed return value and arguments.
  12982. (createRequestCancelMessage): Removed.
  12983. (createPieceMessage): Changed return value and arguments.
  12984. (getShortIntParam): New function.
  12985. (checkIndex): Changed arguments.
  12986. (checkBegin): Changed arguments.
  12987. (checkLength): Changed arguments.
  12988. (checkPieceOffset): Removed.
  12989. (checkRange): New function.
  12990. (checkBitfield): Changed arguments.
  12991. (createPeerMessage): Removed.
  12992. (checkIntegrity): Removed.
  12993. (createHandshakeMessage): Changed arguments.
  12994. (createChokeMessage): New function.
  12995. (createUnchokeMessage): New function.
  12996. (createInterestedMessage): New function.
  12997. (createNotInterestedMessage): New function.
  12998. (createRequestMessage): New function.
  12999. (createCancelMessage): New function.
  13000. (createPortMessage): New function.
  13001. * src/PeerMessageUtil.cc
  13002. (createBitfieldMessage): Removed.
  13003. (createHaveMessage): Changed return value and arguments.
  13004. (createBitfieldMessage): Changed return value and arguments.
  13005. (createRequestCancelMessage): Removed.
  13006. (createPieceMessage): Changed return value and arguments.
  13007. (getShortIntParam): New function.
  13008. (checkIndex): Changed arguments.
  13009. (checkBegin): Changed arguments.
  13010. (checkLength): Changed arguments.
  13011. (checkPieceOffset): Removed.
  13012. (checkRange): New function.
  13013. (checkBitfield): Changed arguments.
  13014. (createPeerMessage): Removed.
  13015. (checkIntegrity): Removed.
  13016. (createHandshakeMessage): Changed arguments.
  13017. (createChokeMessage): New function.
  13018. (createUnchokeMessage): New function.
  13019. (createInterestedMessage): New function.
  13020. (createNotInterestedMessage): New function.
  13021. (createRequestMessage): New function.
  13022. (createCancelMessage): New function.
  13023. (createPortMessage): New function.
  13024. * src/PeerMessage.h
  13025. (id): Removed.
  13026. (index): Removed.
  13027. (begin): Removed.
  13028. (length): Removed.
  13029. (bitfield): Removed.
  13030. (bitfieldLength): Removed.
  13031. (block): Removed.
  13032. (blockLength): Removed.
  13033. (inProgress): New variable.
  13034. (cuid): New variable.
  13035. (peer): New variable.
  13036. (sendMessageQueue): New variable.
  13037. (logger): New variable.
  13038. (setBitfield): Removed.
  13039. (getBitfield): Removed.
  13040. (setBlock): Removed.
  13041. (getBlock): Removed.
  13042. (getBitfieldLength): Removed.
  13043. (getBlockLength): Removed.
  13044. (isInProgress): New function.
  13045. (toString): Made pure virtual.
  13046. (check): New function.
  13047. (send): New function.
  13048. (receivedAction): New function.
  13049. (getId): Made pure virtual.
  13050. (setId): Removed.
  13051. (getIndex): Removed.
  13052. (setIndex): Removed.
  13053. (getBegin): Removed.
  13054. (setBegin): Removed.
  13055. (getLength): Removed.
  13056. (setLength): Removed.
  13057. (getCuid): New function.
  13058. (setCuid): New function.
  13059. (getPeer): New function.
  13060. (setPeer): New function.
  13061. (getSendMessageQueue): New function.
  13062. (setSendMessageQueue): New function.
  13063. (ID): Removed.
  13064. * src/PeerMessage.cc
  13065. (setBitfield): Removed.
  13066. (setBlock): Removed.
  13067. (toString): Removed.
  13068. * src/TorrentMan.h
  13069. (getPieceLength): New function.
  13070. (getPieceLength): New function.
  13071. * src/SendMessageQueue.h
  13072. (REQUEST_TIME_OUT): New definition.
  13073. (RequestSlots): New definition.
  13074. (MessageQueue): New definition.
  13075. (requestSlotMan): Removed.
  13076. (pendingMessages): Removed.
  13077. (requestSlots): New variable.
  13078. (messageQueue): New variable.
  13079. (torrentMan): New variable.
  13080. (peerConnection): New variable.
  13081. (peer): New variable.
  13082. (piece): New variable.
  13083. (getNewPieceAndSendInterest): New function.
  13084. (createPeerMessage): New function.
  13085. (createHandshakeMessage): New function.
  13086. (send): Made private.
  13087. (setPeerMessageCommonProperty): New function.
  13088. (deleteAllRequestSlot): New function.
  13089. (deleteRequestMessageInQueue): New function.
  13090. (cancelAllRequest): Made private.
  13091. (cancelAllRequest): Made private.
  13092. (countRequestSlot): Made private.
  13093. (addPendingMessage): Removed.
  13094. (deletePendingPieceMessage): Removed.
  13095. (deletePendingRequestMessage): Removed.
  13096. (addMessage): New function.
  13097. (deletePieceMessageInQueue): New function.
  13098. (deleteTimeoutRequestSlot): Changed argument.
  13099. (deleteCompletedRequestSlot): Changed argument.
  13100. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13101. (getCorrespondingRequestSlot): New function.
  13102. (countPendingMessage): Removed.
  13103. (countMessageInQueue): New function.
  13104. (getTorrentMan): New function.
  13105. (getPeerConnection): New function.
  13106. (hasDownloadPiece): New function.
  13107. (getDownloadPiece): New function.
  13108. (setDownloadPiece): New function.
  13109. (syncPiece): New function.
  13110. (sendMessages): New function.
  13111. (sendNow): New function.
  13112. (trySendNow): New function.
  13113. (abortPiece): New function.
  13114. (sendHandshake): New function.
  13115. (receiveMessage): New function.
  13116. (receiveHandshake): New function.
  13117. (createRequestMessage): New function.
  13118. (createCancelMessage): New function.
  13119. (createPieceMessage): New function.
  13120. (createHaveMessage): New function.
  13121. (createChokeMessage): New function.
  13122. (createUnchokeMessage): New function.
  13123. (createInterestedMessage): New function.
  13124. (createNotInterestedMessage): New function.
  13125. (createBitfieldMessage): New function.
  13126. (createKeepAliveMessage): New function.
  13127. * src/SendMessageQueue.cc
  13128. (SendMessageQueue): Removed requestSlotMan.
  13129. Instantiated peerConnection here.
  13130. (~SendMessageQueue): Removed requestSlotMan.
  13131. Added deletion of peerConnection and the contents of messageQueue.
  13132. (send): Updated according to the change of messageQueue.
  13133. (addPendingMessage): Renamed to addMessage.
  13134. (addMessage): New function.
  13135. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13136. (deletePieceMessageInQueue): New function.
  13137. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13138. (deleteRequestMessageInQueue): New function.
  13139. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13140. here.
  13141. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13142. (...) was moved here.
  13143. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13144. moved here.
  13145. (deleteCompletedRequestSlot):
  13146. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13147. (getCorrespondingRequestSlot):
  13148. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13149. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13150. (countPendingMessage): Renamed to countMessageInQueue.
  13151. (countMessageInQueue): New function.
  13152. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13153. (receiveHandshake): New function.
  13154. (createHandshakeMessage): New function.
  13155. (receiveMessage): New function.
  13156. (createPeerMessage): New function.
  13157. (syncPiece): New function.
  13158. (getNewPieceAndSendInterest): New function.
  13159. (sendMessages): New function.
  13160. (sendNow): New function.
  13161. (trySendNow): New function.
  13162. (sendHandshake): New function.
  13163. (abortPiece): New function.
  13164. (getDownloadPiece): New function.
  13165. (getPeerMessageCommonProperty): New function.
  13166. (createRequestMessage): New function.
  13167. (createCancelMessage): New function.
  13168. (createPieceMessage): New function.
  13169. (createHaveMessage): New function.
  13170. (createChokeMessage): New function.
  13171. (createUnchokeMessage): New function.
  13172. (createInterestedMessage): New function.
  13173. (createNotInterestedMessage): New function.
  13174. (createBitfieldMessage): New function.
  13175. (createKeepAliveMessage): New function.
  13176. To add simple Content-Disposition support:
  13177. * src/HttpResponseCommand.h (determinFilename): New function.
  13178. * src/HttpResponseCommand.cc (executeInternal):
  13179. Use determinFilename(headers) instead of req->getFile() when comparing
  13180. filename.
  13181. (determinFilename): New function.
  13182. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13183. req->getFile().
  13184. (handleOtherEncoding): Use determinFilename(headers) instead of
  13185. req->getFile().
  13186. * src/Util.h (getContentDispositionFilename): New function.
  13187. * src/Util.cc (getContentDispositionFilename): New function.
  13188. * src/LogFactory.h (release): New function.
  13189. * src/LogFactory.cc (release): New function.
  13190. To fix a bug that causes out-of-bound exception when HTTP status
  13191. line is wrong:
  13192. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13193. size.
  13194. * src/common.h (Deleter): New class.
  13195. * src/SegmentMan.cc
  13196. (~SegmentMan): Added deletion of splitter and diskWriter.
  13197. * src/DownloadEngine.h
  13198. (Commands): Use deque.
  13199. (clearQueue): New function.
  13200. * src/DownloadEngine.cc
  13201. (~DownloadEngine): Added deletion of segmentMan.
  13202. (cleanQueue): New function.
  13203. * src/TorrentDownloadEngine.h
  13204. (TorrentDownloadEngine): The implementation was moved to
  13205. TorrentDownloadEngine.cc.
  13206. (~TorrentDownloadEngine): The implementation was moved to
  13207. TorrentDownloadEngine.cc.
  13208. * src/TorrentDownloadEngine.cc
  13209. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13210. * src/main.cc
  13211. (clearRequest): Removed.
  13212. (handler): Added deletion of e.
  13213. (torrentHandler): Added deletion of te.
  13214. (main): Do not share splitter.
  13215. Use Deleter instead of clearRequest.
  13216. Deletion of classes were updated.
  13217. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13218. * src/main.cc (main): Fixed typo.
  13219. * src/message.h: Fixed typo.
  13220. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13221. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13222. To add --select-file command-line option:
  13223. * src/Util.cc
  13224. (unfoldRange): New function.
  13225. (getNum): New function.
  13226. (unfoldSubRange): New function
  13227. * src/main.cc
  13228. (showUsage): Added help message.
  13229. (main): Added --select-file command-line option. Updated the layout of
  13230. file listing.
  13231. * src/common.h
  13232. (Integers): New definition.
  13233. * src/SocketCore.cc
  13234. (writeData): Removed timeout argument.
  13235. (readData): Removed timeout argument.
  13236. (peekData): Removed timeout argument.
  13237. * src/Socket.cc
  13238. (writeData): Removed timeout argument.
  13239. (readData): Removed timeout argument.
  13240. (peekData): Removed timeout argument.
  13241. * Release 0.4.1
  13242. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13243. To deploy upload rate based choking algorithm:
  13244. * src/PeerInteractionCommand.cc
  13245. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13246. peer currently used.
  13247. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13248. download completes. Simplified.
  13249. (receiveMessage): Updated.
  13250. * src/TorrentMan.h
  13251. (activePeers): New variable.
  13252. (addActivePeer): New function.
  13253. (getActivePeers): New function.
  13254. (deleteActivePeer): New function.
  13255. * src/TorrentMan.cc
  13256. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13257. * src/PeerAbstractCommand.cc
  13258. (onAbort): Use peer->resetStatus().
  13259. * src/main.cc
  13260. (PeerChokeCommand.h): Included.
  13261. (main): Added the instance of ChokingCommand to the command queue.
  13262. * src/Peer.h
  13263. (amChoking): Renamed from amChocking
  13264. (chokingRequired): New variable.
  13265. (optUnchoking): New variable.
  13266. (deltaUpload): New variable.
  13267. (deltaDownload): New variable.
  13268. (addDeltaUpload): New function.
  13269. (resetDeltaUpload): New function.
  13270. (addDeltaDownload): New function.
  13271. (resetDeltaDownload): New function.
  13272. (addPeerUpload): Added a call to addDeltaUpload.
  13273. (addPeerDownload): Added a call to addDeltaDownload.
  13274. * src/Peer.cc
  13275. (shouldBeChoking): Renamed from shouldChoke.
  13276. (resetStatus): New function.
  13277. * src/PeerChokeCommand.h: New class.
  13278. * src/PeerChokeCommand.cc: New class.
  13279. To add lazy upload speed limiter:
  13280. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13281. statistics calculation to TorrentDownloadEngine.
  13282. * src/TorrentConsoleDownloadEngine.cc
  13283. (sendStatistics): Renamed from printStatistics.
  13284. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13285. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13286. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13287. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13288. calculation.
  13289. (sendStatistics): New function as pure virtual function.
  13290. (getUploadSpeed): New function.
  13291. * src/TorrentDownloadEngine.cc
  13292. (initStatistics): New function.
  13293. (calculateSpeed): New function.
  13294. (calculateStatistics): New function.
  13295. * src/SendMessageQueue.h
  13296. (uploadLength): New variable.
  13297. (send): Added an argument.
  13298. (setUploadLimit): New function.
  13299. (getUploadLimit): New function.
  13300. * src/SendMessageQueue.cc
  13301. (send): Added upload speed limiter.
  13302. * src/prefs.h
  13303. (PREF_UPLOAD_LIMIT): New definition.
  13304. * src/PeerInteractionCommand.cc
  13305. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13306. * src/main.cc
  13307. (main): Added --upload-limit option
  13308. For bug fixes:
  13309. * src/main.cc
  13310. (showUsage): Corrected --listen-port help
  13311. Other changes:
  13312. * src/TorrentMan.cc
  13313. (getPeer): Return nullPeer if connection is grather than
  13314. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13315. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13316. To add some useful information to the exception message:
  13317. * src/SocketCore.cc : Updated messages.
  13318. * src/SegmentMan.cc :
  13319. * src/TorrentMan.cc : Updated messages.
  13320. * src/MultiDiskWriter.cc : Updated messages.
  13321. * src/Util.cc : Updated messages.
  13322. * src/AbstractDiskWriter.cc : Updated messages.
  13323. * src/PreAllocationDiskWriter.cc : Updated messages.
  13324. * src/message.cc : Added new messages. Updated some messages.
  13325. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13326. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13327. Updated threshold from 30 to 15.
  13328. * src/AbstractDiskWriter.h (filename): New variable.
  13329. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13330. (createFile): Assigned filename.
  13331. * src/main.cc: Updated the help message for http-auth-scheme.
  13332. * Release 0.4.0
  13333. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13334. To add TrackerUpdateCommand with which replaces
  13335. CompactTrackerResponseProcessor:
  13336. * src/TrackerWatcherCommand.h (req): Removed.
  13337. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13338. if the number of peer connections are less than 30.
  13339. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13340. * src/SegmentMan.h (diskWriter): New function.
  13341. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13342. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13343. (main): Use TrackerUpdateCommand.
  13344. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13345. (req): New variable.
  13346. (setTrackerResponseProcessor): Removed.
  13347. (getTrackerResponseProcessor): Removed.
  13348. (processTrackerResponse): Removed.
  13349. * src/DownloadEngine.h (diskWriter): Removed.
  13350. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13351. to torrentMan->processTrackerResponse().
  13352. To add Util::expandBuffer:
  13353. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13354. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13355. * src/Util.h (expandBuffer): New function.
  13356. To fix the bug that causes segmentation fault when "-l ." is specified
  13357. in command-line option:
  13358. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13359. (openFile): New function.
  13360. (closeFile): New function.
  13361. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13362. (~SimpleLogger): Call closeFile();
  13363. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13364. * src/main.cc (main): Added a check to see logger is configured
  13365. properly.
  13366. To enable HTTP authentication without specifying "--http-auth-scheme"
  13367. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13368. * src/HttpConnection.cc (createRequest): Send Authorization header
  13369. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13370. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13371. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13372. * src/Peer.cc (shouldChoke): Updated algorithm.
  13373. * src/message.h (EX_AUTH_FAILED): New definition.
  13374. (EX_FILE_OPEN): New definition.
  13375. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13376. if status == 401.
  13377. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13378. if req->isTorrent == true.
  13379. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13380. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13381. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13382. (createFile): Updated message.
  13383. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13384. To add a readout of estimated remaining time to normal HTTP/FTP
  13385. downloads:
  13386. * src/ConsoleDownloadEngine.h (startup): New variable.
  13387. (startupLength): New variable.
  13388. (isStartupLengthSet): New variable.
  13389. (avgSpeed): New variable.
  13390. (eta): New variable.
  13391. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13392. estimated remaining time.
  13393. (initStatistics): Initialized newly added variables.
  13394. (calculateStatistics): Calculate average speed and estimated remaining
  13395. time.
  13396. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13397. * src/TrackerDownloadCommand.h: Removed.
  13398. * src/TrackerDownloadCommand.cc: Removed.
  13399. * src/TrackerInitCommand.h: Removed.
  13400. * src/TrackerInitCommand.cc: Removed.
  13401. * src/TrackerUpdateCommand.h: Removed.
  13402. * src/TrackerUpdateCommand.cc: Removed.
  13403. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13404. url written in TrackerInitCommand was moved here. Do not create
  13405. tracker request command if torrentMan->trackers != 0.
  13406. * src/CompactTrackerResponseProcessor.h: New class.
  13407. * src/CompactTrackerResponseProcessor.cc: New class.
  13408. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13409. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13410. Decoupled TorrentDownloadEngine from this.
  13411. * src/SegmentMan.h (init): New function.
  13412. * src/SegmentMan.cc (init): New function.
  13413. * src/TorrentMan.h (responseProcessor): New variable.
  13414. (trackers): New variable.
  13415. (setTrackerResponseProcessor): New function.
  13416. (getTrackerResponseProcessor): New function.
  13417. (processTrackerResponse): New function.
  13418. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13419. (processTrackerResponse): New function.
  13420. * src/main.cc (main): Use ByteArrayDiskWriter and
  13421. CompactTrackerResponseProcessor.
  13422. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13423. processTrackerResponse().
  13424. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13425. readout.
  13426. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13427. which indicates download has completed.
  13428. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13429. (closeFile): fd >= 0, not fd > 0
  13430. * src/main.cc (main): Added short cut for show-files.
  13431. Added short cut for torrent-file.
  13432. Added new command-line option listen-port.
  13433. Updated i18n messages.
  13434. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13435. To add LogFactory which creates singleton logger:
  13436. * src/LogFactory.h: New class.
  13437. * src/LogFactory.cc: New class.
  13438. * src/Command.h (logger): New variable.
  13439. (Constructor): Use LogFactory.
  13440. * src/AbstractCommand.cc: Use Command::logger
  13441. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13442. Use LogFactory.
  13443. * src/SegmentSplitter.h : Made logger protected.
  13444. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13445. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13446. * src/DownloadEngine.h : Made logger protected.
  13447. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13448. * src/PeerInteractionCommand.cc : Use Command::logger.
  13449. * src/HttpResponseCommand.cc : Use Command::logger.
  13450. * src/SegmentMan.h : Made logger private.
  13451. * src/TorrentMan.h : Made logger private.
  13452. * src/TorrentMan.cc : Use LogFactory.
  13453. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13454. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13455. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13456. Use LogFactory.
  13457. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13458. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13459. Use LogFactory.
  13460. * src/DownloadCommand.cc : Use Command::logger.
  13461. * src/PeerAbstractCommand.cc : Use Command::logger.
  13462. * src/PeerListenCommand.cc : Use Command::logger.
  13463. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13464. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13465. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13466. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13467. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13468. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13469. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13470. Use LogFactory.
  13471. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13472. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13473. Use LogFactory.
  13474. * src/main.cc (main): Use LogFactory.
  13475. * src/DiskAdaptor.h (logger): New variable.
  13476. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13477. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13478. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13479. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13480. parameter to a tracker request.
  13481. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13482. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13483. * src/main.cc (setSignalHander): New function.
  13484. (main): Added a handler for SIGTERM.
  13485. (handler): Updated message.
  13486. (torrentHandler): Updated message.
  13487. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13488. * src/TorrentConsoleDownloadEngine.cc
  13489. (onPartialDownloadingCompletes): Renamed as
  13490. onSelectiveDownloadingCompletes.
  13491. (onSelectiveDownloadingCompletes): Updated message.
  13492. To add DiskAdaptor which abstract DiskWriter family:
  13493. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13494. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13495. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13496. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13497. MultiDiskAdaptor.h.
  13498. (readFileEntry): Changed its arguments.
  13499. (setup): setupDiskWriter is merged into this function.
  13500. (setupDiskWriter): Removed.
  13501. (setFileFilter): New function.
  13502. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13503. made in readFileEntry.
  13504. (getFilePath): Removed.
  13505. (getTempFilePath): Removed.
  13506. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13507. (fixFilename): Removed.
  13508. (copySingleFile): Removed.
  13509. (splitMultiFile): Removed.
  13510. (deleteTempFile): Removed.
  13511. (setFileEntriesToDownload): Removed.
  13512. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13513. (isSelectiveDownloadingMode): New function.
  13514. (setAllMultiFileRequestedState): Removed.
  13515. (finishPartialDownloadingMode): Renamed as
  13516. finishSelectiveDownloadingMode.
  13517. (finishSelectiveDownloadingMode): New function.
  13518. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13519. (getSelectedTotalLength): New function.
  13520. (onDownloadComplete): Use diskAdaptor.
  13521. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13522. (Range): Removed.
  13523. (setMultiFileEntries): Renamed as setFileEntries.
  13524. (setFileEntries): New function.
  13525. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13526. (pieceLength): New variable.
  13527. * src/main.cc (printDownloadCompeleteMessage): New function.
  13528. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13529. (main): Renamed torrent-show-files to show-files.
  13530. Rewritten file contents listing.
  13531. * src/TorrentMan.h (FileEntry): Removed.
  13532. (multiFileTopDir): Removed.
  13533. (multiFileEntries): Removed.
  13534. (diskWriter): Removed.
  13535. (diskAdaptor): New variable.
  13536. * src/DefaultDiskWriter.h (totalLength): New variable.
  13537. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13538. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13539. diskWriter.
  13540. * src/TorrentConsoleDownloadEngine.h
  13541. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13542. (partialTotalLength): Renamed as selectedTotalLength.
  13543. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13544. openExistingFile, otherwise call initAndOpenFile.
  13545. (closeFile): fd > 0, not fd != 0.
  13546. * src/DirectDiskAdaptor.h: New class.
  13547. * src/DirectDiskAdaptor.cc: New class.
  13548. * src/MultiDiskAdaptor.h: New class.
  13549. * src/MultiDiskAdaptor.cc: New class.
  13550. * src/CopyDiskAdaptor.h: New class.
  13551. * src/CopyDiskAdaptor.cc: New class.
  13552. * src/DiskAdaptor.h: New class.
  13553. * src/DiskAdaptor.cc: New class.
  13554. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13555. (PREF_SHOW_FILES): New definition.
  13556. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13557. To add the ability to download multi torrent into respective files
  13558. directly:
  13559. * src/DiskWriter.h (openFile): New function.
  13560. (seek): Removed.
  13561. * src/MultiDiskWriter.h: New class.
  13562. * src/MultiDiskWriter.cc: New class.
  13563. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13564. protected.
  13565. (openFile): New function.
  13566. * src/AbstractDiskWriter.cc (openFile): New function.
  13567. * src/prefs.h (V_FALSE): New definition.
  13568. (PREF_DIRECT_FILE_MAPPING): New definition.
  13569. * src/TorrentMan.h (setupDiskWriter): New function.
  13570. (setAllMultiFileRequestedState): New function.
  13571. (onDownloadComplete): New function.
  13572. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13573. (setupDiskWriter): New function.
  13574. (getFilePath): Updated.
  13575. (getTempFilePath): Updated.
  13576. (getSegmentFilePath): Updated.
  13577. (fixFilename): Updated.
  13578. (deleteTempFile): Updated.
  13579. (setAllMultiFileRequestedState): New function.
  13580. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13581. (finishPartialDownloadingMode): Reset requested flags.
  13582. (onDownloadComplete): New function.
  13583. * src/main.cc: Added --direct-file-mapping option.
  13584. Use TorrentMan::setupDiskWriter().
  13585. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13586. onDownloadComplete().
  13587. To fix ETA bug:
  13588. * src/Util.h (difftvsec): New function.
  13589. * src/Util.cc (difftvsec): New function.
  13590. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13591. type of "elapsed" instead of long long int.
  13592. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13593. The updates of statistics takes place every 1 seconds.
  13594. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13595. (calculateSpeed): Changed its argument signature.
  13596. * src/PeerMessage.cc (toString): Fixed message.
  13597. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13598. To print ETA:
  13599. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13600. completion handling when dealing with
  13601. TorrentMan::isPartialDownloadingMode() == true.
  13602. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13603. New function.
  13604. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13605. (sessionDownloadLength): New variable.
  13606. (avgSpeed): New variable.
  13607. (eta): New variable.
  13608. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13609. new variables: eta, avgSpeed, startup.
  13610. (calculateSpeed): Calculate average speed and ETA.
  13611. (printStatistics): Added ETA.
  13612. * src/Util.h (secfmt): New function.
  13613. * src/Util.cc (secfmt): New function.
  13614. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13615. To detect "keep alive" flooding:
  13616. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13617. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13618. variable: keepAliveCount.
  13619. (detectMessageFlooding): Added "keep alive" flooding detection.
  13620. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13621. received.
  13622. To add the ability to download only specified files in multi-file
  13623. torrent:
  13624. * src/BitfieldMan.h (filterBitfield): New variable.
  13625. (filterEnabled): New variable.
  13626. (setFilterBit): New function.
  13627. (enableFilter): New function.
  13628. (disableFilter): New function.
  13629. (isFilterEnabled): New function.
  13630. (getFilteredTotalLength): New function.
  13631. (getCompletedLength): New function.
  13632. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13633. filterBitfield, filterEnabled.
  13634. (CopyConstructor): Added filterBitfield and filterEnabled.
  13635. (operator==): Added filterBitfield and filterEnabled.
  13636. (Destructor): Added filterBitfield.
  13637. (getMissingIndex): Use filterBitfield.
  13638. (getMissingUnusedIndex): Use filterBitfield.
  13639. (getFirstMissingUnusedIndex): Use filterBitfield.
  13640. (getFirstMissingUnusedIndex): Use filterBitfield.
  13641. (getAllMissingIndexes): Use filterBitfield.
  13642. (countMissingBlock): Use filterBitfield.
  13643. (countBlock): Use filterBitfield.
  13644. (setBitInternal): Added new argument on.
  13645. (setUseBit): Use setBitInternal.
  13646. (unsetUseBit): Use setBitInternal.
  13647. (setBit): Use setBitInternal.
  13648. (unsetBit): Use setBitInternal.
  13649. (isAllBitSet): Use filterBitfield.
  13650. (setFilterBit): New function.
  13651. (addFilter): New function.
  13652. (enableFilter): New function.
  13653. (disableFilter): New function.
  13654. (clearFilter): New function.
  13655. (isFilterEnabled): New function.
  13656. (getFilteredTotalLength): New function.
  13657. (getCompletedLength): New function.
  13658. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13659. Initalized newly added variables.
  13660. [FileEntry](offset): New variable.
  13661. [FileEntry](extracted): New variable.
  13662. [FileEntry](requested): New variable.
  13663. (readFileEntry): New function.
  13664. (option): New variable.
  13665. (splitMultiFile): Removed const qualifier.
  13666. (fixFilename): Removed const qualifier.
  13667. (readFileEntryFromMetaInfoFile): New function.
  13668. (finishPartialDownloadingMode): New function.
  13669. (isPartialDownloadingMode): New function.
  13670. (setFileEntriesToDownload): New function.
  13671. (getCompletedLength): New function.
  13672. (getPartialTotalLength): New function.
  13673. * src/TorrentMan.cc (readFileEntry): New function.
  13674. (setup): Use readFileEntry. If no-preallocation option is specified,
  13675. use DefaultDiskWriter.
  13676. (readFileEntryFromMetaInfoFile): New function.
  13677. (fixFilename): Removed const qualifier.
  13678. (splitMultiFile): Removed const qualifier.
  13679. (setFileEntriesToDownload): New function.
  13680. (isPartialDownloadingMode): New function.
  13681. (finishPartialDownloadingMode): New function.
  13682. (getCompletedLength): New function.
  13683. (getPartialTotalLength): New function.
  13684. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13685. New variable.
  13686. (partialTotalLength): New variable.
  13687. (downloadLength): New variable.
  13688. (totalLength): New variable.
  13689. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13690. Added log.
  13691. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13692. partialTotalLength, downloadLength, totalLength.
  13693. (calculate): Calculate downloadLength and totalLength.
  13694. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13695. * src/main.cc (addCommand): Changed argument signature.
  13696. (main): Added new variable: args. Added new option "torrent-show-files"
  13697. "no-preallocation". Usage is not updated yet.
  13698. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13699. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13700. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13701. Attempt to add the ability to listing file entries in a .torrent file.
  13702. This feature is not yet complete.
  13703. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13704. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13705. (getName): New function.
  13706. * src/TorrentMan.h (getMultiFileEntries): New function.
  13707. (getName): New function.
  13708. * src/main.cc (main): Use above 2 funtion.
  13709. * Release 0.3.2
  13710. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13711. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13712. (detectMessageFlooding): Updated threshold value.
  13713. (checkLongTimePeerChoking): Updated timeout value.
  13714. (getNewPieceAndSendInterest): Added debug log.
  13715. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13716. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13717. (getPeer): Updated.
  13718. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13719. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13720. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13721. is localhost.
  13722. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13723. * src/PendingMessage.cc (processMessage): Not to send piece message
  13724. if peer is not interested in the pieces localhost has.
  13725. * src/Peer.cc (shouldChoke): Updated.
  13726. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13727. * src/Util.cc (isPowerOf): New function.
  13728. * src/Util.h (isPowerOf): New function.
  13729. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13730. whether or not it is power of 2.
  13731. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13732. Added new class SendMessageQueue that includes PendingMessages and
  13733. RequestSlotMan.
  13734. * src/SendMessageQueue.h: New class.
  13735. * src/SendMessageQueue.cc: New class.
  13736. * src/PendingMessage.h: Added new member variable blockIndex and its
  13737. accessors.
  13738. (createRequestMessage): Updated.
  13739. * src/PendingMessage.cc (createRequestMessage): Updated.
  13740. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13741. SendMessageQueue.
  13742. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13743. (receiveMessage): Updated with SendMessageQueue.
  13744. (deletePendingPieceMessage): Removed.
  13745. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13746. (sendInterest): Updated with SendMessageQueue.
  13747. (createRequestPendingMessage): Updated with SendMessageQueue.
  13748. (sendMessages): Updated with SendMessageQueue.
  13749. (onAbort): Updated with SendMessageQueue.
  13750. (keepAlive): Updated with SendMessageQueue.
  13751. (beforeSocketCheck): Updated SendMessageQueue.
  13752. * src/PeerInteractionCommand (sendMessages): Shuffle
  13753. missingBLockIndexes before using it.
  13754. Added its own timeout for peer connection.
  13755. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13756. setter.
  13757. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13758. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13759. Added setTimeout() call.
  13760. (executeInternal): Added setTimeout() call.
  13761. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13762. Added timeout.
  13763. (isTimeoutDetected): Updated.
  13764. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13765. option.
  13766. Added *simple* message flooding checker.
  13767. * src/PeerInteractionCommand.cc (executeInternal):
  13768. Added detectMessageFlooding() call.
  13769. (detectMessageFlooding): New function.
  13770. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13771. (beforeSocketCheck): Added detectMessageFlooding() call.
  13772. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13773. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13774. Removed deletePendingPieceMessage(), getRequestSlot(),
  13775. deleteRequestSlot(), deleteAllRequestSlot().
  13776. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13777. Added checkLongTimePeerChoking() call.
  13778. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13779. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13780. if duplicate == false.
  13781. The parameter "uploaded" and "downloaded" in the tracker request are
  13782. the size since the client sent the "started" event to the tracker.
  13783. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13784. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13785. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13786. getSessionDownloadedSize(), getSessionUploadedSize().
  13787. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13788. getSessionUploadedSize() instead of getDownloadedSize(),
  13789. getUploadedSize().
  13790. * src/PendingMessage.cc (processMessage): Do not send request message
  13791. if the peer is choking the client.
  13792. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13793. less than interval.
  13794. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13795. * configure.in: Added gnutls support. Added several CPP macros.
  13796. * m4/openssl.m4: Added.
  13797. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13798. readData(), peekData(). Added gnutls support.
  13799. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13800. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13801. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  13802. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  13803. Instead, added a check for whether setup method has executed
  13804. successfully.
  13805. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  13806. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  13807. * src/Makefile.am: Updated.
  13808. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  13809. using whether OpenSSL or gcrypt, depending on the result of configure
  13810. script.
  13811. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  13812. messageDigest.h.
  13813. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  13814. * src/PeerListenCommand.cc: Added log about port binded successfully.
  13815. Fixed memory leak.
  13816. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  13817. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  13818. Removed instantiation of TrackerInitCommand. Instead,
  13819. TrackerWatcherCommand is instantiated and pushed to the command queue.
  13820. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  13821. ENABLE_SSL.
  13822. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  13823. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  13824. If a piece is already acquired by another command, delete the request
  13825. slots for the piece.
  13826. * src/TrackerUpdateCommand.cc (execute):
  13827. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  13828. Added a check whether peer list is null.
  13829. Fixed the bug that causes sending completed event to the tracker
  13830. several times.
  13831. * src/TrackerInitCommand.cc (execute):
  13832. Fixed the bug that causes sending completed event to the tracker
  13833. several times.
  13834. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  13835. by using messageDigest.h.
  13836. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13837. * PeerConnection.cc: Replaced log message "keep-alive" with
  13838. "keep alive".
  13839. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  13840. localhost long time.
  13841. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  13842. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  13843. at most 100 failure entry from the list. If with duplicate = false,
  13844. MAX_PEER_LIST is not checked.
  13845. * PeerListenCommand.cc: Fixed the argument order of log message.
  13846. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13847. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  13848. Added warn().
  13849. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  13850. Implemented warn().
  13851. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  13852. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13853. * Request.h: Added AFTER_COMPLETED event.
  13854. * TorrentDownloadEngine.cc: Prints "Download complete" message
  13855. instead of downloaded size and progress(%) after download completes.
  13856. * PeerInteractionCommand.cc: After download completes, sends unchoke
  13857. message to the peer if it is interested in what localhost has
  13858. downloaded.
  13859. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  13860. destination instead of just renaming it.
  13861. * TorrentMan.cc: Added deleteTempFile().
  13862. * PeerAbstractCommand.cc: do not stop execution after download
  13863. completes. This makes localhost a seeder.
  13864. * Util.{h,cc}: Added fileCopy().
  13865. * PeerListenCommand.cc: do not stop execution after download completes.
  13866. This makes localhost a seeder.
  13867. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  13868. Added TorrentMan::deleteTempFile() to torrentHandler.
  13869. Initialized the variable dir as ".".
  13870. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  13871. Deleted renameSingleFile().
  13872. Added copySingleFile(), deleteTempFile().
  13873. * DownloadEngine.h: Added virtual function afterEachIteration().
  13874. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  13875. in onEndOfRun() to afterEachIteration().
  13876. In onEndOfRun(), changed if condition to check whether filenameFixed is
  13877. true.
  13878. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  13879. In rangedFileCopy(), added try-catch block to properly close file
  13880. descriptors.
  13881. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  13882. Added afterEachIteration(), isFilenameFixed().
  13883. * Peer.cc: Changed choking strategy.
  13884. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  13885. * TrackerInitCommand.cc: Send completed event only once.
  13886. * DownloadEngine.cc: Added a call to afterEachIteration().
  13887. * TrackerUpdateCommand.cc: Do not stop execution after download
  13888. completes.
  13889. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  13890. connect the peers at most MAX_PEER_UPDATE when a peer list is
  13891. received from a tracker.
  13892. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  13893. Decreased the number of failure peers to delete to 0(just comment out
  13894. the line).
  13895. * Release 0.3.1
  13896. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13897. * PeerInteractionCommand.cc: added a call to
  13898. TorrentMan::unadvertisePiece in Destructor.
  13899. * PeerInteractionCommand.cc: make have message sent immediately
  13900. if the size of pending message queue is zero.
  13901. * TorrentMan.cc: set the maximum size of peer list to 250.
  13902. * TorrentMan.h: changed the container type of Peers and UsedPieces
  13903. to deque.
  13904. * Util.cc: fixed rangedFileCopy.
  13905. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  13906. to Constructor. Also, moved digest cleanup to Destructor.
  13907. * MetaFileUtil.cc: fixed memory leak
  13908. * replaced std::vector with std::deque.
  13909. * AbstractCommand.cc: casted timeout value to long long int.
  13910. * ChunkedEncoding.cc: fixed memory leak.
  13911. * PeerInteractionCommand.cc: casted timeout value to long long int.
  13912. * SleepCommand.cc: casted timeout value to long long int.
  13913. * Data.cc: fixed memory leak.
  13914. * Data.cc: fixed toLLInt().
  13915. * BitfieldMan.cc: fixed memory leak.
  13916. * TorrentMan.cc: initialized storeDir to ".".
  13917. * TorrentMan.cc: fixed memory leak.
  13918. * TorrentMan.cc: corrected file paths of splitted files.
  13919. * PeerAbstractCommand.cc: casted timeout to long long int.
  13920. * main.cc: added delete(req) and delete(te->diskWriter).
  13921. * RequestSlot.cc: casted timeout value to long long int.
  13922. * Request.cc: fixed memory leak.
  13923. * PendingMessage.cc: make HAVE messages sent only when peer does not
  13924. have the piece.
  13925. * Peer.{h,cc}: added hasPiece(int index).
  13926. * main.cc: corrected addCommand.
  13927. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13928. * BitTorrent protocol support added.
  13929. * Release 0.3.0
  13930. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13931. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  13932. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13933. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  13934. decoding did not work properly.
  13935. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13936. * DownloadEngine.h: included sys/time.h
  13937. * DownloadEngine.cc: remove sys/time.h
  13938. * Makefile.am (SUBDIRS): Add intl.
  13939. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  13940. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13941. * main.cc: correct help message for --http-auth-scheme.
  13942. * main.cc: changed e-mail address for bug reports.
  13943. * ja.po: added japanese translation.
  13944. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13945. * SimpleLogger.cc: flush log file instead of stdout.
  13946. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13947. * main.cc: Fixed command-line option: max-tries
  13948. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  13949. does not equal to seg.sp.
  13950. * DownloadCommand.cc: If EOF is got from the server and the total size
  13951. of file is not zero, then throw DlRetryEx.
  13952. * main.cc: Set the minium value of min-segment-size to 1024.
  13953. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  13954. fails because of a regression since 0.2.0 release.
  13955. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13956. * HttpConnection.cc:
  13957. * common.h: defined the user agent name as macro
  13958. * DownloadEngine.{h, cc}:
  13959. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  13960. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  13961. * main.cc: Download complete/abort message is now generated by main.
  13962. * Makefile.am (SUBDIRS): Add m4.
  13963. (ACLOCAL_AMFLAGS): New variable.
  13964. (EXTRA_DIST): New variable.
  13965. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  13966. * gettext: added gettext functionality
  13967. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13968. * AbstractCommand.cc:
  13969. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  13970. unregister its cuid from SegmentMan.
  13971. * DownloadEngine.cc: .aria2 file was written when a downloading
  13972. failed with errors.
  13973. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  13974. Added "User-Agent" header to CONNECT proxy request.
  13975. Fixed "Proxy-Authorization" header. Now proxy authorization works
  13976. properly.
  13977. * Logger.h:
  13978. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  13979. * ChunkedEncoding.cc: Added #include directive for strings.h
  13980. * Release 0.2.1
  13981. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13982. * Util.{h,cc}: added startsWith().
  13983. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  13984. Util::endsWith().
  13985. * SocketCore.cc: struct addrinfo is now zero-initialized.
  13986. * common.h: added #include directive of limit.h.
  13987. * DownloadEngine.cc: added #include directive of sys/time.h and
  13988. algorithm.
  13989. * Exception.h: added #include directive of stdio.h.
  13990. * AbstractCommand.h: added #include directive of sys/time.h.
  13991. * DownloadCommand.h: added #include directive of sys/time.h.
  13992. * *.h: added #include directive of common.h to all base classes.
  13993. subclasses' one was removed.
  13994. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  13995. does not define these macros.
  13996. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13997. * Release 0.2.0
  13998. * main.cc:
  13999. * HttpInitiateConnectionCommand.{h,cc}:
  14000. * prefs.h:
  14001. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14002. We can now use GET command in http proxy.
  14003. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14004. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14005. that splits slowest segment of SegmentMan::commands vector.
  14006. This is the default split algorithm of aria2.
  14007. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14008. that splits first segment of SegmentMan::commands vector.
  14009. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14010. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14011. * Segment.h:
  14012. * SegmentMan.cc: Added speed field to Segment.h
  14013. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14014. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14015. * message.h: Change file size related %d to %lld.
  14016. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14017. * FtpInitiateConnectionCommand.{h,cc}:
  14018. * FtpNegotiationCommand.{h,cc}:
  14019. * FtpDownloadCommand.{h,cc}:
  14020. * FtpConnection.{h,cc}: Added FTP support
  14021. * SimpleLogger.cc: Log message now includes time information.
  14022. * main.cc: The value of --http-auth-scheme option is chagned from
  14023. 'BASIC' to 'basic'
  14024. * main.cc: Added --timeout command-line option.
  14025. * main.cc: Added --min-segment-size command-line option.
  14026. * main.cc: Added --max-retries command-line option.
  14027. * prefs.h: option string constants are now defined in prefs.h
  14028. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14029. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14030. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14031. with version 0.1.0's one.
  14032. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14033. * configure.in: Added --enable-ssl option to configure script.
  14034. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14035. cannot permit absoluteURI as Request-URI.
  14036. * HttpConnection.cc: Added Referer support.
  14037. * main.cc: Added referer command-line option.
  14038. * main.cc: Added rety-wait command-line option.
  14039. * Exception.h: Fixed formating bug in Exception::setMsg()
  14040. * SocketCore.{h,cc}:
  14041. * Socket.{h, cc}:
  14042. * Request.cc:
  14043. * InitiateConnectionCommandFactory.cc:
  14044. * HttpRequestCommand.cc: Added HTTPS support.
  14045. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14046. for SocketCore.
  14047. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14048. size is wrong
  14049. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14050. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14051. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14052. * Release 0.1.0