ChangeLog 487 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280
  1. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Documented --bt-external-ip option in man page. Updated man pages
  3. for --proxy-method option.
  4. * doc/aria2c.1.txt
  5. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  6. Use GET method for FTP via HTTP proxy.
  7. * src/FtpInitiateConnectionCommand.cc
  8. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  9. Changed the default value of --proxy-method option from 'tunnel'
  10. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  11. option.
  12. * src/AbstractCommand.cc
  13. * src/AbstractCommand.h
  14. * src/FtpInitiateConnectionCommand.cc
  15. * src/HttpDownloadCommand.cc
  16. * src/HttpInitiateConnectionCommand.cc
  17. * src/HttpInitiateConnectionCommand.h
  18. * src/OptionHandlerFactory.cc
  19. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  20. Initialized _logger
  21. * src/SelectEventPoll.cc
  22. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  23. Defined a copy constructor for the same type.
  24. * src/SharedHandle.h
  25. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  26. Added OptionParser::parseArg() which internally uses getopt_long
  27. to parse command-line options. All command-line options are now
  28. configured by OptionHandler. No manual editing of struct option*
  29. is required any more.
  30. * src/NameMatchOptionHandler.h
  31. * src/OptionHandler.h
  32. * src/OptionHandlerFactory.cc
  33. * src/OptionHandlerImpl.h
  34. * src/OptionParser.cc
  35. * src/OptionParser.h
  36. * src/array_fun.h
  37. * src/main.cc
  38. * src/option_processing.cc
  39. * test/OptionHandlerTest.cc
  40. * test/OptionParserTest.cc
  41. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  42. Fixed configure error with --disable-epoll
  43. * configure.ac
  44. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  45. Fixed compile error when HAVE_EPOLL is not defined.
  46. Fixed linker error on bigendian systems.
  47. * src/SocketCore.cc
  48. * src/SocketCore.h
  49. * test/DefaultBtProgressInfoFileTest.cc
  50. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  51. Added --bt-external-ip option. You can specify the external IP
  52. address to report to a BitTorrent tracker. Although this function
  53. is named 'external', it can accept any kind of IP addresses.
  54. * src/DefaultBtAnnounce.cc
  55. * src/OptionHandlerFactory.cc
  56. * src/option_processing.cc
  57. * src/prefs.cc
  58. * src/prefs.h
  59. * src/usage_text.h
  60. * test/DefaultBtAnnounceTest.cc
  61. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  62. Extracted the algorithm to find the longest incremental sequence
  63. as max_sequence template.
  64. * src/LongestSequencePieceSelector.cc
  65. * src/a2algo.h
  66. * test/Makefile.am
  67. * test/a2algoTest.cc
  68. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  69. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  70. * src/usage_text.h
  71. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  72. Updated doc for --uri-selector, --http-server-listen-port and
  73. --enable-http-server option. Documented --event-poll option.
  74. * doc/aria2c.1.txt
  75. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  76. Updated doc for --enable-http-server.
  77. * src/usage_text.h
  78. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  79. Documented --http-server-listen-port and --enable-http-server in
  80. man page.
  81. * doc/aria2c.1.txt
  82. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  83. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  84. translations. Thanks to all translators.
  85. * po/es.po
  86. * po/id.po
  87. * po/it.po
  88. * po/ru.po
  89. * po/uk.po
  90. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  91. Bump up version number to 1.2.0
  92. * configure.ac
  93. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  94. BtContext::getAnnounceTiers() now returns const reference.
  95. * src/BtContext.h
  96. * src/DefaultBtContext.cc
  97. * src/DefaultBtContext.h
  98. * test/MockBtContext.h
  99. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  100. Change the number of retries for tracker request based on the
  101. number of available tracker in a torrent file.
  102. * src/TrackerWatcherCommand.cc
  103. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  104. Added _maxTries property to RequestGroup and assign the option
  105. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  106. RequestGroup::getMaxTries() instead of
  107. Option::getAsInt(PREF_MAX_TRIES).
  108. * src/AbstractCommand.cc
  109. * src/RequestGroup.cc
  110. * src/RequestGroup.h
  111. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  112. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  113. Mandriva. I modified the patch: make RequestGroup have the
  114. timeout value and AdaptiveURISelector directly modifies that
  115. value.
  116. * src/AbstractCommand.cc
  117. * src/AdaptiveURISelector.cc
  118. * src/AdaptiveURISelector.h
  119. * src/FtpNegotiationCommand.cc
  120. * src/RequestGroup.cc
  121. * src/RequestGroup.h
  122. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  123. Fixed compiler warning
  124. * test/IteratableChecksumValidatorTest.cc
  125. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  126. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  127. integrated downloads. This PieceSelector subclass finds the
  128. longest continuous sequence in the available missing pieces and
  129. selects the last index of such sequence. This makes HTTP/FTP
  130. connections less interrupted by the pieces obtained by BitTorrent
  131. peers.
  132. * src/DefaultPieceStorage.cc
  133. * src/DefaultPieceStorage.h
  134. * src/LongestSequencePieceSelector.cc
  135. * src/LongestSequencePieceSelector.h
  136. * src/Makefile.am
  137. * src/PieceSelector.h
  138. * src/RarestPieceSelector.h
  139. * src/RequestGroup.cc
  140. * test/BtDependencyTest.cc
  141. * test/DefaultPieceStorageTest.cc
  142. * test/IteratableChecksumValidatorTest.cc
  143. * test/LongestSequencePieceSelectorTest.cc
  144. * test/Makefile.am
  145. * test/SegmentManTest.cc
  146. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  147. Fixed the bug that the average speed is wrong in
  148. http/ftp/BitTorrent integrated download. Only the download bytes
  149. in BitTorrent were considered.
  150. * src/RequestGroup.cc
  151. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  152. Choose port for BitTorrent/DHT randomly from the specified range.
  153. * src/DHTConnectionImpl.cc
  154. * src/PeerListenCommand.cc
  155. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  156. Send HTTP Authorization header only if it is requested by the
  157. server(response 401). There are some exceptions. The authorization
  158. header for proxy is always sent if it is available without request
  159. by the server. If username/password is specified in the URI, it
  160. is immediately sent to the server without request by the server.
  161. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  162. SharedHandle<AuthConfig>().
  163. NetrcAuthResolver::resolveAuthConfig() returns
  164. SharedHandle<AuthConfig>() if no AuthConfig is available.
  165. * src/AbstractAuthResolver.cc
  166. * src/AbstractProxyRequestCommand.cc
  167. * src/AuthConfigFactory.cc
  168. * src/AuthConfigFactory.h
  169. * src/HttpConnection.cc
  170. * src/HttpRequest.cc
  171. * src/HttpRequest.h
  172. * src/HttpResponse.cc
  173. * src/HttpResponseCommand.cc
  174. * src/HttpSkipResponseCommand.cc
  175. * test/AuthConfigFactoryTest.cc
  176. * test/HttpRequestTest.cc
  177. * test/HttpResponseTest.cc
  178. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  179. Remove leading "--" from help keyword and a substring after "="
  180. from help keyword, so that one can query options by '-h--max-' or
  181. '-hmax-peers=10'.
  182. * src/option_processing.cc
  183. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  184. Rewritten PStringVisitor and its implementation.
  185. * src/PStringBuildVisitor.cc
  186. * src/PStringBuildVisitor.h
  187. * src/PStringDatum.h
  188. * src/PStringNumLoop.h
  189. * src/PStringSegment.cc
  190. * src/PStringSegment.h
  191. * src/PStringSelect.h
  192. * src/PStringVisitor.h
  193. * src/download_helper.cc
  194. * test/PStringBuildVisitorTest.cc
  195. * test/ParameterizedStringParserTest.cc
  196. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  197. Persist connection between the built-in HTTP server and a client
  198. if a client supports keep-alive. Fixed the bug that aria2 exits
  199. when the HTTP server receives EOF from a client.
  200. * src/HttpServer.cc
  201. * src/HttpServer.h
  202. * src/HttpServerCommand.cc
  203. * src/HttpServerCommand.h
  204. * src/HttpServerResponseCommand.cc
  205. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Added experimental built-in HTTP server. Currently, when a client
  207. accesses to the server, it responds with the current download
  208. progress. By default, it is disabled. To enable the server, give
  209. --enable-http-server option. To change the default port number
  210. for the server to listen to, use --http-server-listen-port option.
  211. The response HTML is very simple and refreshes it self each 1
  212. second. Because of this refresh, you see flicker in normal web
  213. browser such as Firefox. I recommend to use console-based browser
  214. such as elinks, w3m. To connect to the server, run 'elinks
  215. http://localhost:6800/' while running aria2. Please replace port
  216. number '6800'(which is default) with your preference.
  217. * src/DownloadEngineFactory.cc
  218. * src/HttpHeader.cc
  219. * src/HttpHeader.h
  220. * src/HttpHeaderProcessor.cc
  221. * src/HttpHeaderProcessor.h
  222. * src/HttpListenCommand.cc
  223. * src/HttpListenCommand.h
  224. * src/HttpServer.cc
  225. * src/HttpServer.h
  226. * src/HttpServerCommand.cc
  227. * src/HttpServerCommand.h
  228. * src/HttpServerResponseCommand.cc
  229. * src/HttpServerResponseCommand.h
  230. * src/Makefile.am
  231. * src/OptionHandlerFactory.cc
  232. * src/Util.cc
  233. * src/Util.h
  234. * src/help_tags.h
  235. * src/option_processing.cc
  236. * src/prefs.cc
  237. * src/prefs.h
  238. * src/usage_text.h
  239. * test/HttpHeaderProcessorTest.cc
  240. * test/UtilTest.cc
  241. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  242. Removed.
  243. * src/CheckIntegrityMan.cc
  244. * src/FileAllocationMan.cc
  245. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  246. Made (piece) hash check sequential for each RequestGroup because
  247. simultaneous hash check is slower than sequential execution.
  248. * src/CheckIntegrityCommand.cc
  249. * src/CheckIntegrityDispatcherCommand.cc
  250. * src/CheckIntegrityDispatcherCommand.h
  251. * src/CheckIntegrityMan.h
  252. * src/ConsoleStatCalc.cc
  253. * src/DownloadCommand.cc
  254. * src/DownloadEngine.cc
  255. * src/DownloadEngine.h
  256. * src/DownloadEngineFactory.cc
  257. * src/Makefile.am
  258. * src/Makefile.in
  259. * src/RequestGroup.cc
  260. * src/StatCalc.h
  261. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  262. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  263. SequentialDispatcherCommand.
  264. * src/FileAllocationDispatcherCommand.cc
  265. * src/SequentialDispatcherCommand.h
  266. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  267. Rewritten FileAllocationDispatcherCommand using brand new
  268. SequentialDispatcherCommand.
  269. * src/DownloadEngineFactory.cc
  270. * src/FileAllocationCommand.cc
  271. * src/FileAllocationDispatcherCommand.cc
  272. * src/FileAllocationDispatcherCommand.h
  273. * src/Makefile.am
  274. * src/SequentialDispatcherCommand.h
  275. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  276. Replaced FileAllocationMan with
  277. SequentialPicker<FileAllocationEntry>.
  278. * src/BtCheckIntegrityEntry.cc
  279. * src/ConsoleStatCalc.cc
  280. * src/DownloadEngine.cc
  281. * src/DownloadEngine.h
  282. * src/DownloadEngineFactory.cc
  283. * src/FileAllocationCommand.cc
  284. * src/FileAllocationDispatcherCommand.cc
  285. * src/FileAllocationMan.h
  286. * src/Makefile.am
  287. * src/SequentialPicker.h
  288. * src/StatCalc.h
  289. * src/StreamCheckIntegrityEntry.cc
  290. * test/Makefile.am
  291. * test/SequentialPickerTest.cc
  292. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  293. Added doc for adaptive URI selector.
  294. * doc/aria2c.1.txt
  295. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  296. Added doc for adaptive URI selector.
  297. * src/usage_text.h
  298. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  299. Added doc for --bt-max-peers option.
  300. * doc/aria2c.1.txt
  301. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  302. Added doc for --bt-hash-check-seed option.
  303. * doc/aria2c.1.txt
  304. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  305. Documented exit codes.
  306. * doc/aria2c.1.txt
  307. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  308. Added --bt-max-peers option to specify the maximum number of peers
  309. per torrent. 0 means unlimited number of peers.
  310. * src/ActivePeerConnectionCommand.cc
  311. * src/BtRuntime.h
  312. * src/DefaultPeerStorage.cc
  313. * src/DefaultPeerStorage.h
  314. * src/OptionHandlerFactory.cc
  315. * src/RequestGroup.cc
  316. * src/option_processing.cc
  317. * src/prefs.cc
  318. * src/prefs.h
  319. * src/usage_text.h
  320. * test/DefaultPeerStorageTest.cc
  321. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Added --bt-hash-check-seed option. If true is given to this
  323. option, after hash check using --check-integrity option and file
  324. is complete, continue to seed file. If you want to check file and
  325. download it only when it is damaged or incomplete, set this option
  326. to false. This option has effect only on BitTorrent download.
  327. The default value is true(This is the same behavior with the
  328. previous release).
  329. * src/BtCheckIntegrityEntry.cc
  330. * src/OptionHandlerFactory.cc
  331. * src/option_processing.cc
  332. * src/prefs.cc
  333. * src/prefs.h
  334. * src/usage_text.h
  335. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  336. Updated copyright year.
  337. * src/version_usage.cc
  338. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  339. Rewritten the usage text for --bt-request-peer-speed-limit option.
  340. * doc/aria2c.1.txt
  341. * src/usage_text.h
  342. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  343. Made the max value of split option unlimited.
  344. * doc/aria2c.1.txt
  345. * src/OptionHandlerFactory.cc
  346. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  347. Fixed compile warning/error.
  348. * src/DownloadResult.h
  349. * src/HttpDownloadCommand.cc
  350. * src/ServerStat.cc
  351. * test/RequestGroupTest.cc
  352. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  353. Added --event-poll option to select the method for polling events.
  354. The available methods are "select" and "epoll". "epoll" is
  355. available on Linux only. The earlier release has the compile
  356. option to choose from these methods.
  357. * configure.ac
  358. * src/RequestGroupMan.cc
  359. * src/OptionHandlerFactory.cc
  360. * src/EpollEventPoll.h
  361. * src/StreamFileAllocationEntry.cc
  362. * src/a2io.h
  363. * src/SelectEventPoll.h
  364. * src/option_processing.cc
  365. * src/prefs.h
  366. * src/EpollEventPoll.cc
  367. * src/EventPoll.h
  368. * src/SocketCore.h
  369. * src/Makefile.am
  370. * src/main.cc
  371. * src/DownloadEngine.h
  372. * src/SelectEventPoll.cc
  373. * src/DownloadEngine.cc
  374. * src/SocketCore.cc
  375. * src/DownloadEngineFactory.cc
  376. * src/Makefile.in
  377. * src/prefs.cc
  378. * src/usage_text.h
  379. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  380. Included RecoverableException.h from main.cc
  381. * src/main.cc
  382. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  383. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  384. now returns last error encountered in the HTTP/FTP downloads as a
  385. exit status value. If all downloads finished successfully, aria2
  386. returns 0. The error code is defined in src/DownloadResult.h.
  387. The error occurred in the download currently in progress is not
  388. reported as a last error. If no error has encountered but there
  389. are in progress or waiting downloads, aria2 returns 7.
  390. * src/AbstractCommand.cc
  391. * src/DlAbortEx.h
  392. * src/DlRetryEx.h
  393. * src/DownloadCommand.cc
  394. * src/DownloadFailureException.h
  395. * src/DownloadResult.h
  396. * src/FtpNegotiationCommand.cc
  397. * src/HttpSkipResponseCommand.cc
  398. * src/Makefile.am
  399. * src/MultiUrlRequestInfo.cc
  400. * src/MultiUrlRequestInfo.h
  401. * src/RecoverableException.h
  402. * src/RequestGroup.cc
  403. * src/RequestGroup.h
  404. * src/RequestGroupMan.cc
  405. * src/RequestGroupMan.h
  406. * src/URIResult.cc
  407. * src/URIResult.h
  408. * src/main.cc
  409. * src/option_processing.cc
  410. * test/RequestGroupTest.cc
  411. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  412. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  413. patch adds AdaptiveURISelector, which selects one of the bests
  414. mirrors for first and reserved connections. For supplementary
  415. ones, it returns mirrors which has not been tested yet, and if
  416. each of them already tested, returns mirrors which has to be
  417. tested again. Otherwise, it doesn't return anymore mirrors.
  418. * src/AdaptiveURISelector.cc
  419. * src/AdaptiveURISelector.h
  420. * src/FtpNegotiationCommand.cc
  421. * src/HttpResponseCommand.cc
  422. * src/Makefile.am
  423. * src/Makefile.in
  424. * src/OptionHandlerFactory.cc
  425. * src/RequestGroup.cc
  426. * src/RequestGroup.h
  427. * src/RequestGroupMan.cc
  428. * src/ServerStat.cc
  429. * src/ServerStat.h
  430. * src/ServerStatMan.cc
  431. * src/SpeedCalc.cc
  432. * src/URISelector.h
  433. * src/prefs.cc
  434. * src/prefs.h
  435. * test/RequestGroupManTest.cc
  436. * test/ServerStatManTest.cc
  437. * test/ServerStatTest.cc
  438. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  439. Fixed unit test error.
  440. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  441. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  442. * Release 1.1.2
  443. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  444. Updated Russian translation. Thanks to the translators.
  445. * po/ru.po
  446. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  447. Added the description of --use-head option to man page.
  448. * doc/aria2c.1.txt
  449. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  450. Bump up version number to 1.1.2
  451. * configure.ac
  452. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  453. Added --use-head option to toggle whether HEAD method should be
  454. used in the first HTTP request. By default aria2 uses HEAD method
  455. as the first request. When the server doesn't recognize HEAD, then
  456. give aria2 --use-head=false to force aria2 to use GET method
  457. instead.
  458. * src/OptionHandlerFactory.cc
  459. * src/RequestGroupMan.cc
  460. * src/option_processing.cc
  461. * src/prefs.cc
  462. * src/prefs.h
  463. * src/usage_text.h
  464. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  465. Fixed the bug that BitTorrent download doesn't finish when REJECT
  466. message is received before CHOKE message. The old implementation
  467. doen't clear the use-bit of the piece when recieved REJECT
  468. message.
  469. * src/DefaultBtMessageDispatcher.cc
  470. * test/DefaultBtMessageDispatcherTest.cc
  471. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  472. * Release 1.1.1
  473. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Bump up version number to 1.1.1.
  475. * configure.ac
  476. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  477. Fixed the bug that --summary-interval=0 doesn't work. The summary
  478. is printed repeatedly.
  479. * src/ConsoleStatCalc.cc
  480. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  481. * Release 1.1.0
  482. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  483. Added ifdef clause for conditional compilation.
  484. * src/main.cc
  485. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  486. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  487. translations. Thanks to all translators.
  488. * po/ja.po
  489. * po/ru.po
  490. * po/uk.po
  491. * po/zh_CN.po
  492. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  493. Added the preceding ">>> " before the message "Printing the
  494. contents of file..." to make the output more readable.
  495. * src/main.cc
  496. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  497. Added try-catch block in the loop in showFiles() to continue the
  498. operation even if the exception occurred in one file.
  499. * src/main.cc (showFiles)
  500. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  501. Made messages in showFiles() translatable.
  502. * po/aria2.pot
  503. * src/main.cc
  504. * src/message.h
  505. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  506. Print the contents of Torrent/Metalink files are printed without
  507. -T/-M options.
  508. * src/main.cc
  509. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  510. Escaped '--' with '\--'
  511. * README
  512. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  513. Updated "How to build" section in README. Mentioned about
  514. --with-ca-bundle compile option.
  515. * README
  516. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  517. Bump up version number to 1.1.0.
  518. * configure.ac
  519. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  520. Added a note for --dht-listen-port option.
  521. * doc/aria2c.1.txt
  522. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  523. Update doc for --realtime-chunk-checksum option.
  524. * doc/aria2c.1.txt
  525. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  526. Update doc for --realtime-chunk-checksum option.
  527. * src/usage_text.h
  528. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  529. Updated French, Japanese, Russian and Ukrainian translations.
  530. Thanks to all translators.
  531. * po/fr.po
  532. * po/ja.po
  533. * po/ru.po
  534. * po/uk.po
  535. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  536. Renamed aria2c.pot to aria2.pot
  537. * po/aria2.pot
  538. * po/aria2c.pot: Removed.
  539. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  540. Removed MetaEntry.h
  541. * src/Makefile.am
  542. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  543. Rename file by appending digits if a local file exists and its
  544. file size is larger than that of remote file with --continue
  545. option. The old implementation just throws exception in such case.
  546. * src/RequestGroup.cc
  547. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  548. Fixed the bug that download progress summary is not printed in the
  549. interval specified by the option.
  550. * src/ConsoleStatCalc.cc
  551. * src/ConsoleStatCalc.h
  552. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  553. Fixed compiler warning
  554. * src/Cookie.cc
  555. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  556. Fixed the cookie implementation based on RFC2965.
  557. Now if a value in domain field is not started with dot, then
  558. prepend dot. That means a cookie with domain=sf.net is sent to
  559. wiki.sf.net.
  560. * src/Cookie.cc
  561. * test/CookieParserTest.cc
  562. * test/CookieStorageTest.cc
  563. * test/CookieTest.cc
  564. * test/NsCookieParserTest.cc
  565. * test/Sqlite3MozCookieParserTest.cc
  566. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  567. Fixed the bug that causes corrupted downloads if HTTP pipelining
  568. is enabled and the server doesn't support keep-alive.
  569. * src/AbstractCommand.cc
  570. * src/DownloadCommand.cc
  571. * src/HttpDownloadCommand.cc
  572. * src/HttpDownloadCommand.h
  573. * src/HttpResponseCommand.cc
  574. * src/Request.cc
  575. * src/Request.h
  576. * test/RequestTest.cc
  577. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  578. Removed Dictionary/List/Data and its related classes.
  579. * src/BencodeVisitor.cc: Removed.
  580. * src/BencodeVisitor.h: Removed.
  581. * src/Data.cc: Removed.
  582. * src/Data.h: Removed.
  583. * src/Dictionary.cc: Removed.
  584. * src/Dictionary.h: Removed.
  585. * src/List.cc: Removed.
  586. * src/List.h: Removed.
  587. * src/Makefile.am
  588. * src/MetaEntry.h: Removed.
  589. * src/MetaEntryVisitor.h: Removed.
  590. * src/MetaFileUtil.cc: Removed.
  591. * src/MetaFileUtil.h: Removed.
  592. * test/BencodeVisitorTest.cc: Removed.
  593. * test/DataTest.cc: Removed.
  594. * test/DictionaryTest.cc: Removed.
  595. * test/ListTest.cc: Removed.
  596. * test/Makefile.am
  597. * test/MetaFileUtilTest.cc: Removed.
  598. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  599. Removed include of MetaEntry.h
  600. * test/DHTMessageTrackerEntryTest.cc
  601. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  602. Use BDE instead of Dictionary/List/Data.
  603. * src/AnnounceList.cc
  604. * src/AnnounceList.h
  605. * test/AnnounceListTest.cc
  606. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  607. Use BDE instead of Dictionary/List/Data.
  608. * src/DHTAbstractMessage.cc
  609. * src/DHTAbstractMessage.h
  610. * src/DHTAnnouncePeerMessage.cc
  611. * src/DHTAnnouncePeerMessage.h
  612. * src/DHTAnnouncePeerReplyMessage.cc
  613. * src/DHTAnnouncePeerReplyMessage.h
  614. * src/DHTFindNodeMessage.cc
  615. * src/DHTFindNodeMessage.h
  616. * src/DHTFindNodeReplyMessage.cc
  617. * src/DHTFindNodeReplyMessage.h
  618. * src/DHTGetPeersMessage.cc
  619. * src/DHTGetPeersMessage.h
  620. * src/DHTGetPeersReplyMessage.cc
  621. * src/DHTGetPeersReplyMessage.h
  622. * src/DHTMessageFactory.h
  623. * src/DHTMessageFactoryImpl.cc
  624. * src/DHTMessageFactoryImpl.h
  625. * src/DHTMessageReceiver.cc
  626. * src/DHTMessageTracker.cc
  627. * src/DHTMessageTracker.h
  628. * src/DHTPingMessage.cc
  629. * src/DHTPingMessage.h
  630. * src/DHTPingReplyMessage.cc
  631. * src/DHTPingReplyMessage.h
  632. * src/DHTQueryMessage.cc
  633. * src/DHTQueryMessage.h
  634. * src/DHTResponseMessage.cc
  635. * src/DHTResponseMessage.h
  636. * test/DHTAnnouncePeerMessageTest.cc
  637. * test/DHTAnnouncePeerReplyMessageTest.cc
  638. * test/DHTFindNodeMessageTest.cc
  639. * test/DHTFindNodeReplyMessageTest.cc
  640. * test/DHTGetPeersMessageTest.cc
  641. * test/DHTGetPeersReplyMessageTest.cc
  642. * test/DHTMessageFactoryImplTest.cc
  643. * test/DHTMessageTrackerTest.cc
  644. * test/DHTPingMessageTest.cc
  645. * test/DHTPingReplyMessageTest.cc
  646. * test/MockDHTMessageFactory.h
  647. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Added tests the case where length < 0 is specified.
  649. * test/BencodeTest.cc
  650. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  651. Fixed memory leak in decoderawstring()
  652. * src/bencode.cc
  653. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  654. Added missing #ifdef guard. Added uc() function for String and
  655. removeKey() for Dict.
  656. * src/bencode.cc
  657. * src/bencode.h
  658. * test/BencodeTest.cc
  659. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  660. Use BDE instead of Dictionary/List/Data.
  661. * src/HandshakeExtensionMessage.cc
  662. * src/HandshakeExtensionMessage.h
  663. * test/HandshakeExtensionMessageTest.cc
  664. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  665. Added --max-overall-upload-limit option. This option limits the
  666. overall upload speed. Stated in help message that the existing
  667. --max-upload-limit option limits the upload speed per each
  668. torrent. Man page is also updated.
  669. * doc/aria2c.1.txt
  670. * src/DefaultBtMessageDispatcher.cc
  671. * src/DefaultBtMessageDispatcher.h
  672. * src/OptionHandlerFactory.cc
  673. * src/PeerInteractionCommand.cc
  674. * src/option_processing.cc
  675. * src/prefs.cc
  676. * src/prefs.h
  677. * src/usage_text.h
  678. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  679. Use BDE instead of Dictionary/List/Data classes.
  680. * src/CompactPeerListProcessor.cc
  681. * src/CompactPeerListProcessor.h
  682. * src/DefaultBtAnnounce.cc
  683. * src/DefaultBtContext.cc
  684. * src/DefaultBtContext.h
  685. * src/DefaultPeerListProcessor.cc
  686. * src/DefaultPeerListProcessor.h
  687. * src/DelegatingPeerListProcessor.cc
  688. * src/DelegatingPeerListProcessor.h
  689. * src/PeerListProcessor.h
  690. * src/UTPexExtensionMessage.cc
  691. * src/Util.h
  692. * src/message.h
  693. * test/DefaultBtContextTest.cc
  694. * test/DefaultPeerListProcessorTest.cc
  695. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Added bencode helper functions and BDE class.
  697. They will replace MetaFileUtil and Dictionary/List/Data classes.
  698. * src/Makefile.am
  699. * src/bencode.cc
  700. * src/bencode.h
  701. * test/BencodeTest.cc
  702. * test/Makefile.am
  703. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  704. Fixed the bug that bad URI is sent to the tracker when the announe
  705. URI in torrent file includes query.
  706. * src/DefaultBtAnnounce.cc
  707. * test/DefaultBtAnnounceTest.cc
  708. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  709. Added Option::blank().
  710. Use !Option::blank(name) instead of Option::defined(name) for
  711. the options that take filename.
  712. * src/MultiUrlRequestInfo.cc
  713. * src/Option.cc
  714. * src/Option.h
  715. * src/main.cc
  716. * src/option_processing.cc
  717. * test/OptionTest.cc
  718. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  719. Documented the default value of --check-certificate option in man
  720. page.
  721. * doc/aria2c.1.txt
  722. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  723. Enabled --check-certificate by default. Added compile
  724. time(configure) option --with-ca-bundle to specify CA bundle.
  725. Warn if --check-certificate=true and --ca-certificate is not
  726. specified or loading CA certificate is failed.
  727. * configure.ac
  728. * src/MultiUrlRequestInfo.cc
  729. * src/OptionHandlerFactory.cc
  730. * src/message.h
  731. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  732. Mentioned https tag in help option.
  733. * doc/aria2c.1.txt
  734. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. Added `https' tag to help option category. Added https tag to
  736. --ca-certificate, --certificate, --check-certificate and
  737. --private-key option.
  738. * src/OptionHandlerFactory.cc
  739. * src/help_tags.h
  740. * src/option_processing.cc
  741. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  742. Changed the package name from `aria2c' to `aria2' in order to fix
  743. the packaging issue in Debian and Fedora. The name of the
  744. executable is not changed.
  745. * configure.ac
  746. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  747. Fixed typos
  748. * src/usage_text.h
  749. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  750. Fixed typos and updated doc.
  751. * README
  752. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  753. Fixed typos
  754. * doc/aria2c.1.txt
  755. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. Fixed typos
  757. * src/usage_text.h
  758. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  759. Print a message when no files to download.
  760. * src/download_helper.cc
  761. * src/main.cc
  762. * src/message.h
  763. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  764. RFC3986 complied Percent-Encoding(urlencode).
  765. Use uppercase hexadecimal digits for encoded text instead of lowercase
  766. ones.
  767. * src/Request.cc
  768. * src/Util.cc
  769. * src/Util.h
  770. * test/BtHandshakeMessageTest.cc
  771. * test/DefaultBtAnnounceTest.cc
  772. * test/DefaultBtContextTest.cc
  773. * test/RequestTest.cc
  774. * test/UtilTest.cc
  775. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  776. Fixed the bug that prevents aria2 from downloading 0-length files
  777. via HTTP/FTP.
  778. * src/DefaultBtContext.cc
  779. * src/DefaultBtContext.h
  780. * src/DownloadContext.h
  781. * src/FtpNegotiationCommand.cc
  782. * src/HttpResponseCommand.cc
  783. * src/HttpResponseCommand.h
  784. * src/RequestGroup.cc
  785. * src/SingleFileDownloadContext.cc
  786. * src/SingleFileDownloadContext.h
  787. * test/BtPostDownloadHandlerTest.cc
  788. * test/MetalinkPostDownloadHandlerTest.cc
  789. * test/MockBtContext.h
  790. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  791. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  792. * src/option_processing.cc
  793. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  794. Applied aria2-1.0.1-mingw.patch.
  795. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  796. mingw.
  797. Collected 4th and 5th argument types for getsockopt and setsockopt.
  798. * src/SocketCore.cc
  799. * src/a2netcompat.h
  800. * test/SocketCoreTest.cc
  801. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  802. * Release 1.0.1
  803. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  804. Updated Ukrainian and Norwegian Nynorsk translations.
  805. Thanks to all translators.
  806. * po/nn.po
  807. * po/uk.po
  808. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  809. Don't show download result when -S option is used.
  810. * src/main.cc
  811. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  812. Bump up version number to 1.0.1
  813. * configure.ac
  814. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  815. Closed files after the test cases in MultiDiskWriterTest::
  816. testResetDiskWriterEntries(). This will fix the unit test error
  817. in mingw32 build.
  818. * test/MultiDiskWriterTest.cc
  819. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  820. Use HEAD method to get file size from HTTP server for segmented
  821. downloading.
  822. The request to the BitTorrent Tracker always uses GET method because
  823. the response of the tracker is small and it doesn't need segmented
  824. download.
  825. * src/FtpNegotiationCommand.cc
  826. * src/HttpRequest.cc
  827. * src/HttpResponseCommand.cc
  828. * src/HttpSkipResponseCommand.cc
  829. * src/RequestGroup.cc
  830. * src/RequestGroup.h
  831. * src/TrackerWatcherCommand.cc
  832. * test/HttpRequestTest.cc
  833. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  834. Fixed the bug that causes floating exception when -T option is used and
  835. no URIs are given.
  836. * src/download_helper.cc
  837. * test/DownloadHelperTest.cc
  838. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  839. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  840. errors in MinGW:
  841. Closed file after saving server stats (RequestGroupMan.cc)
  842. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  843. Ignored case & handled 2-digit years (strptime.c)
  844. Added missing suseconds_t definition (a2time.h)
  845. Fixed socket CLOSE() define (SocketCore.cc)
  846. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  847. Changed utime() test values from x000 to x00000 as MinGW failed on
  848. values less than timezone offset from Unix epoch
  849. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  850. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  851. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  852. handle negative dates (CookieParserTest.cc)
  853. * src/a2time.h
  854. * src/FtpConnection.cc
  855. * src/RequestGroupMan.cc
  856. * src/SocketCore.cc
  857. * src/strptime.c
  858. * test/CookieParserTest.cc
  859. * test/CopyDiskAdaptorTest.cc
  860. * test/FileTest.cc
  861. * test/FtpConnectionTest.cc
  862. * test/MultiDiskAdaptorTest.cc
  863. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  864. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  865. * doc/aria2c.1.txt
  866. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  867. * Release 1.0.0
  868. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  869. Added '~' to reserved characters.
  870. * src/Util.cc
  871. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  872. Do not urlencode Request::url in setUrl() because we want unmodified
  873. URL using Request::getUrl()
  874. * src/Request.cc
  875. * src/Request.h
  876. * test/RequestTest.cc
  877. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  878. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  879. Thanks to all translators.
  880. * po/bg.po
  881. * po/fr.po
  882. * po/ja.po
  883. * po/ru.po
  884. * po/uk.po
  885. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  886. Bump up version number to 1.0.0
  887. * configure.ac
  888. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  889. Added nosqlite3 build to build_test.sh.
  890. Renamed noxml as expat.
  891. * build_test.sh
  892. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  893. Updated INPUT FILE section.
  894. * doc/aria2c.1.txt
  895. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  896. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  897. on big endian systems because test .aria2 files are made for little
  898. endian systems.
  899. * test/DefaultBtProgressInfoFileTest.cc
  900. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  901. Dropped ares support.
  902. * README
  903. * configure.ac
  904. * m4/libares.m4: Removed.
  905. * src/AsyncNameResolver.cc
  906. * src/Makefile.am
  907. * test/Makefile.am
  908. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  909. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  910. Removed const qualifier from DiskWriter::size().
  911. * src/AbstractDiskWriter.cc
  912. * src/AbstractDiskWriter.h
  913. * src/ByteArrayDiskWriter.cc
  914. * src/ByteArrayDiskWriter.h
  915. * src/DiskWriter.h
  916. * test/ByteArrayDiskWriterTest.cc
  917. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  918. Fixed the bug that causes segmentation fault/bus error during executing
  919. choking algorithm while seeding. This is caused by improper
  920. implementation of compare function which returns inconsistent results
  921. depending on the timing of last unchoke.
  922. * src/BtSeederStateChoke.cc
  923. * src/BtSeederStateChoke.h
  924. * src/DefaultPeerStorage.cc
  925. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  926. Removed TODO
  927. * TODO
  928. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  929. Added a section that explains how to pass argument to options that
  930. takes optional arguments with its short form.
  931. * doc/aria2c.1.txt
  932. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  933. Added -u for the short form of --max-upload-limit option.
  934. * doc/aria2c.1.txt
  935. * src/option_processing.cc
  936. * src/usage_text.h
  937. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  938. Added -V for the short form of --check-integrity option.
  939. Now the argument of --check-integrity option is optional:
  940. if it is omitted, it is evaluated as true.
  941. * doc/aria2c.1.txt
  942. * src/option_processing.cc
  943. * src/usage_text.h
  944. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Made the default value of --ftp-pasv option set to true and it can take
  946. true/false values.
  947. * src/OptionHandlerFactory.cc
  948. * src/option_processing.cc
  949. * src/usage_text.h
  950. * doc/aria2c.1.txt
  951. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Given custom random number generator to std::random_shuffle.
  953. * src/AnnounceList.cc
  954. * src/BtLeecherStateChoke.cc
  955. * src/BtSeederStateChoke.cc
  956. * src/DefaultBtRequestFactory.cc
  957. * src/MetalinkEntry.cc
  958. * src/RarestPieceSelector.cc
  959. * src/SimpleRandomizer.cc
  960. * src/SimpleRandomizer.h
  961. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  962. Now the default value of --enable-direct-io is true.
  963. * src/OptionHandlerFactory.cc
  964. * doc/aria2c.1.txt
  965. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  966. Erase peer before executing onReturningPeer and onErasingPeer
  967. because choking algorithm called from onReturningPeer doesn't
  968. like erasing peer in the active peer list.
  969. * src/DefaultPeerStorage.cc
  970. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  971. Instead of creating special filename in createDownloadResult() if
  972. inMemoryDownload() is true, now it is done in getFilePath().
  973. * src/RequestGroup.cc
  974. * test/RequestGroupTest.cc
  975. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  976. Print "[MEMORY]" and filename if a file is not saved in disk and just
  977. processed in memory. This is the fix for previous comment out.
  978. * src/MemoryBufferPreDownloadHandler.cc
  979. * src/RequestGroup.cc
  980. * src/RequestGroup.h
  981. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  982. Commented out the code which sets virtual directory path "[MEMORY]"
  983. propagate directory to store to following RequestGroup.
  984. * src/MemoryBufferPreDownloadHandler.cc
  985. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  986. Bump up version number to 1.0.0b
  987. * configure.ac
  988. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  989. Added input_uris.txt to EXTRA_DIST
  990. * test/Makefile.am
  991. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  992. Removed PeerObject.h from Makefile.am
  993. * src/Makefile.am
  994. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  995. Avoid slow seeding
  996. * src/PeerInteractionCommand.cc
  997. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  998. Updated usage for -i option.
  999. * src/usage_text.h (TEXT_INPUT_FILE)
  1000. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1001. Added INPUT FILE section to man page.
  1002. Escaped fake URLs.
  1003. * doc/aria2c.1.txt
  1004. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1005. Fixed wrong note position for -o option.
  1006. * doc/aria2c.1.txt
  1007. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1008. Fixed compile error without SSL/XML library.
  1009. * src/DefaultBtProgressInfoFile.cc
  1010. * src/DefaultBtProgressInfoFile.h
  1011. * src/FileMetalinkParserState.cc
  1012. * src/RequestGroup.h
  1013. * src/SocketCore.cc
  1014. * src/SocketCore.h
  1015. * src/VerificationMetalinkParserState.cc
  1016. * src/download_helper.h
  1017. * src/main.cc
  1018. * test/DefaultBtProgressInfoFileTest.cc
  1019. * test/DownloadHelperTest.cc
  1020. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1021. Rewritten URI handling functions. They are now provided as a testable
  1022. functions.
  1023. * src/Makefile.am
  1024. * src/RequestGroup.cc
  1025. * src/RequestGroup.h
  1026. * src/download_helper.cc
  1027. * src/download_helper.h
  1028. * src/main.cc
  1029. * test/DownloadHelperTest.cc
  1030. * test/Makefile.am
  1031. * test/input_uris.txt
  1032. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1033. Quickly terminate commands when ctrl-c is pressed.
  1034. * src/DownloadEngine.cc
  1035. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1036. Quickly terminate idle commands when download finished.
  1037. * src/AbstractCommand.cc
  1038. * src/DownloadCommand.cc
  1039. * src/DownloadEngine.cc
  1040. * src/DownloadEngine.h
  1041. * src/SleepCommand.cc
  1042. * src/SleepCommand.h
  1043. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1044. Added the ability to specify output filename and directory in input
  1045. file.
  1046. Additional parameters are added in the following line of URIs
  1047. with proceeding white space(s), 1 parameter in 1 line.
  1048. The parameter names are the same with the command-line option name
  1049. without proceeding "--". Not all the options are available here:
  1050. at the moment, 'dir' and 'out' options are avialable.
  1051. Please note that out option has no effect against Metalink or BitTorrent
  1052. downloads.
  1053. Example input file:
  1054. http://host/foo-1.1.tar.bz2
  1055. out=foo.tar.bz2
  1056. dir=/tmp/downloads
  1057. http://host/thundermonkey-2.0.tar.bz2
  1058. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  1059. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  1060. thundermonkey-2.0.tar.bz2 is saved as
  1061. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  1062. * src/BtPostDownloadHandler.cc
  1063. * src/Metalink2RequestGroup.cc
  1064. * src/Metalink2RequestGroup.h
  1065. * src/MetalinkPostDownloadHandler.cc
  1066. * src/UriListParser.cc
  1067. * src/UriListParser.h
  1068. * src/main.cc
  1069. * test/Metalink2RequestGroupTest.cc
  1070. * test/UriListParserTest.cc
  1071. * test/filelist1.txt
  1072. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1073. Fixed error when SSL library is not found.
  1074. * configure.ac
  1075. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1076. Cross referenced among -s, -C and -j options.
  1077. Updated usage of -C and -s options.
  1078. * src/usage_text.h
  1079. * doc/aria2c.1.txt
  1080. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1081. Fixed bad cast in 32bit platforms.
  1082. * test/DefaultPieceStorageTest.cc
  1083. (DefaultPieceStorageTest::testGetCompletedLength)
  1084. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1085. Fixed unit test fails on 32bit platforms.
  1086. * test/CookieParserTest.cc
  1087. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1088. Show an average download speed in Download results.
  1089. * src/BtFileAllocationEntry.cc
  1090. * src/DefaultPieceStorage.cc
  1091. * src/DownloadContext.cc
  1092. * src/DownloadContext.h
  1093. * src/DownloadResult.h
  1094. * src/RequestGroup.cc
  1095. * src/RequestGroupMan.cc
  1096. * src/StreamFileAllocationEntry.cc
  1097. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1098. Fixed the bug that metalink file is not processed if Content-Type
  1099. field has a paramter.
  1100. * src/HttpResponse.cc
  1101. * src/HttpResponse.h
  1102. * test/HttpResponseTest.cc
  1103. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1104. Removed unused code.
  1105. * src/DefaultBtAnnounce.cc
  1106. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1107. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  1108. the value larger than DefaultPieceStorage::getTotalLength() when
  1109. in flight pieces are involved.
  1110. * src/DefaultPieceStorage.cc
  1111. * test/DefaultPieceStorageTest.cc
  1112. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1113. Bump up version number to 1.0.0a.
  1114. * configure.ac
  1115. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1116. Updated configure.ac
  1117. * configure.ac
  1118. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1119. Added usege for proxy.
  1120. * doc/aria2c.1.txt
  1121. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1122. Added usage for --ca-certificate, --certificate, --private-key and
  1123. --check-certificate options.
  1124. * doc/aria2c.1.txt
  1125. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1126. Updated man page
  1127. * doc/aria2c.1.txt
  1128. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1129. Added --no-proxy option. It receives comman separated hostname or
  1130. domains to which proxy should not be used.
  1131. aria2 honors the environment variable no_proxy to override no-proxy
  1132. value in configuration file. The user can override the environment
  1133. variable no_proxy with --no-proxy command-line option.
  1134. * src/AbstractCommand.cc
  1135. * src/OptionHandlerFactory.cc
  1136. * src/option_processing.cc
  1137. * src/prefs.cc
  1138. * src/prefs.h
  1139. * src/usage_text.h
  1140. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1141. Added the ability to verify peer in SSL/TLS using given CA certificates.
  1142. The CA certificates are specified in --ca-certificate option.
  1143. By default, the verification is disabled. Use --check-certificate
  1144. option to enable it.
  1145. * src/HttpRequestCommand.cc
  1146. * src/LibgnutlsTLSContext.cc
  1147. * src/LibgnutlsTLSContext.h
  1148. * src/LibsslTLSContext.cc
  1149. * src/LibsslTLSContext.h
  1150. * src/MultiUrlRequestInfo.cc
  1151. * src/OptionHandlerFactory.cc
  1152. * src/SocketCore.cc
  1153. * src/SocketCore.h
  1154. * src/a2functional.h
  1155. * src/message.h
  1156. * src/option_processing.cc
  1157. * src/prefs.cc
  1158. * src/prefs.h
  1159. * src/usage_text.h
  1160. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1161. Added client certificate authentication for SSL/TLS.
  1162. Currently a private key must be decrypted for use with aria2.
  1163. If a user accidentally gives encrypted file to aria2 then following
  1164. thing happens:
  1165. If encrypted private key is given to aria2, it behaves differently
  1166. depending on the ssl library it uses. If aria2 built with openssl then
  1167. openssl prompts the user for password. If aria2 build with gnutls then
  1168. aria2 exists with error at start up.
  1169. * src/DownloadEngineFactory.cc
  1170. * src/MultiUrlRequestInfo.cc
  1171. * src/OptionHandlerFactory.cc
  1172. * src/option_processing.cc
  1173. * src/prefs.cc
  1174. * src/prefs.h
  1175. * src/usage_text.h
  1176. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1177. Introduced TLSContext that holds TLS related data that can be shared
  1178. with multiple SSL connections.
  1179. * src/DownloadEngineFactory.cc
  1180. * src/LibgnutlsTLSContext.cc
  1181. * src/LibgnutlsTLSContext.h
  1182. * src/LibsslTLSContext.cc
  1183. * src/LibsslTLSContext.h
  1184. * src/Makefile.am
  1185. * src/SocketCore.cc
  1186. * src/SocketCore.h
  1187. * src/TLSContext.h
  1188. * src/message.h
  1189. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1190. Fixed the bug that the DiskWriter of the first FileEntry whose
  1191. `needsFileAllocation' property is false is not created
  1192. even if it shares a piece with next FileEntry which `requested' property
  1193. is true.
  1194. Fixed the bug that zero-length file is not created if pre file
  1195. allocation is not done.
  1196. * src/MultiDiskAdaptor.cc
  1197. * src/MultiDiskAdaptor.h
  1198. * test/MultiDiskAdaptorTest.cc
  1199. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1200. Added the ability to pool proxy connection.
  1201. The conneciton in FTP with proxy-method=GET is not pooled.
  1202. Proxy-Connection header will not be sent when sending CONNECT method.
  1203. * src/DownloadEngine.cc
  1204. * src/DownloadEngine.h
  1205. * src/FtpFinishDownloadCommand.cc
  1206. * src/FtpInitiateConnectionCommand.cc
  1207. * src/FtpNegotiationCommand.cc
  1208. * src/HttpDownloadCommand.cc
  1209. * src/HttpInitiateConnectionCommand.cc
  1210. * src/HttpRequest.cc
  1211. * src/HttpRequest.h
  1212. * src/HttpResponse.cc
  1213. * src/HttpSkipResponseCommand.cc
  1214. * test/HttpRequestTest.cc
  1215. * test/HttpResponseTest.cc
  1216. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1217. Handle date before epoch.
  1218. To create *bad* Time object, call Time::null().
  1219. * src/CookieParser.cc
  1220. * src/FtpConnection.cc
  1221. * src/FtpConnection.h
  1222. * src/FtpNegotiationCommand.cc
  1223. * src/RequestGroup.cc
  1224. * src/TimeA2.cc
  1225. * src/TimeA2.h
  1226. * test/CookieParserTest.cc
  1227. * test/FtpConnectionTest.cc
  1228. * test/TimeTest.cc
  1229. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1230. Added support for following envrionment variables: http_proxy,
  1231. https_proxy, ftp_proxy and all_proxy.
  1232. Each variable is equivalent to the aria2 option whose name is the
  1233. variable name with '_' replaced with '-'.
  1234. They overrides options specified in aria2.conf file.
  1235. The envrionment variables can be overrode using command-line option.
  1236. * src/option_processing.cc
  1237. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1238. Renamed --http-proxy-method as --proxy-method.
  1239. * src/AbstractCommand.cc
  1240. * src/FtpInitiateConnectionCommand.cc
  1241. * src/HttpInitiateConnectionCommand.cc
  1242. * src/OptionHandlerFactory.cc
  1243. * src/option_processing.cc
  1244. * src/prefs.cc
  1245. * src/prefs.h
  1246. * src/usage_text.h
  1247. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1248. Deprecated --http-proxy-user and --http-proxy-passwd options.
  1249. Added --https-proxy, --ftp-proxy and --all-proxy options.
  1250. Above 3 options and --http-proxy option can handle proxy in URL format
  1251. like: http://user:passwd@host:port.
  1252. If a proxy requires user/password, they must be specified in a URL.
  1253. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  1254. instead.
  1255. * src/AbstractCommand.cc
  1256. * src/AbstractCommand.h
  1257. * src/AbstractProxyRequestCommand.cc
  1258. * src/AbstractProxyRequestCommand.h
  1259. * src/AuthConfigFactory.cc
  1260. * src/AuthConfigFactory.h
  1261. * src/FtpFinishDownloadCommand.cc
  1262. * src/FtpInitiateConnectionCommand.cc
  1263. * src/FtpInitiateConnectionCommand.h
  1264. * src/FtpNegotiationCommand.cc
  1265. * src/FtpTunnelRequestCommand.cc
  1266. * src/FtpTunnelRequestCommand.h
  1267. * src/HttpDownloadCommand.cc
  1268. * src/HttpInitiateConnectionCommand.cc
  1269. * src/HttpInitiateConnectionCommand.h
  1270. * src/HttpProxyRequestCommand.cc
  1271. * src/HttpProxyRequestCommand.h
  1272. * src/HttpRequest.cc
  1273. * src/HttpRequest.h
  1274. * src/HttpRequestCommand.cc
  1275. * src/HttpRequestCommand.h
  1276. * src/HttpSkipResponseCommand.cc
  1277. * src/InitiateConnectionCommand.cc
  1278. * src/InitiateConnectionCommand.h
  1279. * src/OptionHandlerFactory.cc
  1280. * src/OptionHandlerImpl.h
  1281. * src/Request.cc
  1282. * src/option_processing.cc
  1283. * src/prefs.cc
  1284. * src/prefs.h
  1285. * src/usage_text.h
  1286. * test/AuthConfigFactoryTest.cc
  1287. * test/HttpRequestTest.cc
  1288. * test/OptionHandlerTest.cc
  1289. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1290. Execute choking algorithm when unchoked and interested peer is
  1291. disconected.
  1292. * src/DefaultPeerStorage.cc
  1293. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1294. Added testcase for BtNotInterestedMessage from unchoked peer.
  1295. * test/BtNotInterestedMessageTest.cc
  1296. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1297. Execute choking algorithm when BtInterestedMessage arrives from
  1298. unchoked peer.
  1299. * src/BtInterestedMessage.cc
  1300. * src/BtInterestedMessage.h
  1301. * src/DefaultBtMessageFactory.cc
  1302. * test/BtInterestedMessageTest.cc
  1303. * test/MockPeerStorage.h
  1304. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1305. AuthConfigFactory is now part of DownloadEngine.
  1306. * src/AbstractProxyRequestCommand.cc
  1307. * src/AuthConfigFactory.h
  1308. * src/DownloadEngine.cc
  1309. * src/DownloadEngine.h
  1310. * src/FtpConnection.cc
  1311. * src/FtpConnection.h
  1312. * src/FtpNegotiationCommand.cc
  1313. * src/HttpConnection.cc
  1314. * src/HttpRequest.cc
  1315. * src/HttpRequest.h
  1316. * src/HttpRequestCommand.cc
  1317. * src/HttpResponse.cc
  1318. * src/HttpResponseCommand.cc
  1319. * src/HttpSkipResponseCommand.cc
  1320. * src/MultiUrlRequestInfo.cc
  1321. * src/main.cc
  1322. * test/FtpConnectionTest.cc
  1323. * test/HttpRequestTest.cc
  1324. * test/HttpResponseTest.cc
  1325. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1326. Corrected catched exception type.
  1327. * src/ServerStatMan.cc
  1328. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1329. DNSCache is now part of DownloadEngine.
  1330. * src/DNSCache.h
  1331. * src/DownloadEngine.cc
  1332. * src/DownloadEngine.h
  1333. * src/InitiateConnectionCommand.cc
  1334. * src/MultiUrlRequestInfo.cc
  1335. * test/Makefile.am
  1336. * test/Makefile.in
  1337. * test/SimpleDNSCacheTest.cc
  1338. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1339. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  1340. DownloadEngine.
  1341. * src/ActivePeerConnectionCommand.cc
  1342. * src/BtSetup.cc
  1343. * src/CUIDCounter.h
  1344. * src/DHTSetup.cc
  1345. * src/DownloadCommand.cc
  1346. * src/DownloadEngine.cc
  1347. * src/DownloadEngine.h
  1348. * src/DownloadEngineFactory.cc
  1349. * src/FileAllocationDispatcherCommand.cc
  1350. * src/InitiatorMSEHandshakeCommand.cc
  1351. * src/PeerInitiateConnectionCommand.cc
  1352. * src/PeerInteractionCommand.cc
  1353. * src/PeerListenCommand.cc
  1354. * src/RequestGroup.cc
  1355. * src/StreamFileAllocationEntry.cc
  1356. * src/TrackerWatcherCommand.cc
  1357. * src/main.cc
  1358. * test/RequestGroupManTest.cc
  1359. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1360. Implemented commented code in BtSeederStateChoke
  1361. * src/BtSeederStateChoke.cc
  1362. * src/Peer.cc
  1363. * src/Peer.h
  1364. * src/PeerInteractionCommand.cc
  1365. * src/PeerSessionResource.cc
  1366. * src/PeerSessionResource.h
  1367. * test/MockBtMessageDispatcher.h
  1368. * test/PeerSessionResourceTest.cc
  1369. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1370. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  1371. its object.
  1372. * src/AbstractBtMessage.cc
  1373. * src/ActivePeerConnectionCommand.cc
  1374. * src/ActivePeerConnectionCommand.h
  1375. * src/BtContextAwareCommand.cc
  1376. * src/BtContextAwareCommand.h
  1377. * src/BtExtendedMessage.cc
  1378. * src/BtExtendedMessage.h
  1379. * src/BtInterestedMessage.cc
  1380. * src/BtInterestedMessage.h
  1381. * src/BtNotInterestedMessage.cc
  1382. * src/BtNotInterestedMessage.h
  1383. * src/BtRegistry.cc
  1384. * src/BtRegistry.h
  1385. * src/BtSeederStateChoke.cc
  1386. * src/BtSetup.cc
  1387. * src/DHTGetPeersCommand.cc
  1388. * src/DHTGetPeersCommand.h
  1389. * src/DHTPeerAnnounceEntry.cc
  1390. * src/DHTPeerAnnounceEntry.h
  1391. * src/DHTPeerAnnounceStorage.cc
  1392. * src/DHTPeerAnnounceStorage.h
  1393. * src/DHTPeerLookupTask.cc
  1394. * src/DHTPeerLookupTask.h
  1395. * src/DHTSetup.cc
  1396. * src/DHTSetup.h
  1397. * src/DHTTaskFactory.h
  1398. * src/DHTTaskFactoryImpl.cc
  1399. * src/DHTTaskFactoryImpl.h
  1400. * src/DefaultBtAnnounce.cc
  1401. * src/DefaultBtInteractive.cc
  1402. * src/DefaultBtInteractive.h
  1403. * src/DefaultBtMessageDispatcher.cc
  1404. * src/DefaultBtMessageDispatcher.h
  1405. * src/DefaultBtMessageFactory.cc
  1406. * src/DefaultBtMessageFactory.h
  1407. * src/DefaultBtMessageReceiver.cc
  1408. * src/DefaultBtProgressInfoFile.cc
  1409. * src/DefaultBtProgressInfoFile.h
  1410. * src/DefaultBtRequestFactory.cc
  1411. * src/DefaultBtRequestFactory.h
  1412. * src/DefaultExtensionMessageFactory.cc
  1413. * src/DefaultExtensionMessageFactory.h
  1414. * src/DefaultPeerStorage.cc
  1415. * src/DefaultPeerStorage.h
  1416. * src/DownloadEngine.cc
  1417. * src/DownloadEngine.h
  1418. * src/InitiatorMSEHandshakeCommand.cc
  1419. * src/InitiatorMSEHandshakeCommand.h
  1420. * src/MSEHandshake.cc
  1421. * src/MSEHandshake.h
  1422. * src/Makefile.am
  1423. * src/Makefile.in
  1424. * src/PeerChokeCommand.cc
  1425. * src/PeerChokeCommand.h
  1426. * src/PeerInitiateConnectionCommand.cc
  1427. * src/PeerInitiateConnectionCommand.h
  1428. * src/PeerInteractionCommand.cc
  1429. * src/PeerInteractionCommand.h
  1430. * src/PeerObject.h
  1431. * src/PeerReceiveHandshakeCommand.cc
  1432. * src/PeerReceiveHandshakeCommand.h
  1433. * src/ReceiverMSEHandshakeCommand.cc
  1434. * src/RequestGroup.cc
  1435. * src/RequestGroup.h
  1436. * src/RequestGroupMan.cc
  1437. * src/RequestGroupMan.h
  1438. * src/SeedCheckCommand.cc
  1439. * src/SeedCheckCommand.h
  1440. * src/ShareRatioSeedCriteria.h
  1441. * src/SimpleBtMessage.cc
  1442. * src/TrackerWatcherCommand.cc
  1443. * src/TrackerWatcherCommand.h
  1444. * src/UTPexExtensionMessage.cc
  1445. * src/UTPexExtensionMessage.h
  1446. * test/BtCancelMessageTest.cc
  1447. * test/BtChokeMessageTest.cc
  1448. * test/BtExtendedMessageTest.cc
  1449. * test/BtInterestedMessageTest.cc
  1450. * test/BtNotInterestedMessageTest.cc
  1451. * test/BtPieceMessageTest.cc
  1452. * test/BtPortMessageTest.cc
  1453. * test/BtRegistryTest.cc
  1454. * test/BtRejectMessageTest.cc
  1455. * test/BtRequestMessageTest.cc
  1456. * test/DHTPeerAnnounceEntryTest.cc
  1457. * test/DHTPeerAnnounceStorageTest.cc
  1458. * test/DefaultBtMessageDispatcherTest.cc
  1459. * test/DefaultBtMessageFactoryTest.cc
  1460. * test/DefaultBtProgressInfoFileTest.cc
  1461. * test/DefaultBtRequestFactoryTest.cc
  1462. * test/DefaultExtensionMessageFactoryTest.cc
  1463. * test/MSEHandshakeTest.cc
  1464. * test/MockDHTTaskFactory.h
  1465. * test/ShareRatioSeedCriteriaTest.cc
  1466. * test/UTPexExtensionMessageTest.cc
  1467. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1468. Fixed compiler warning.
  1469. * test/UtilTest.cc
  1470. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1471. Treat Cookie object as session cookie if expiry = 0 is given.
  1472. With this change, you can specify session scoped cookies in an external
  1473. file setting expiry value to 0.
  1474. * src/Cookie.cc
  1475. * src/Cookie.h
  1476. * test/CookieParserTest.cc
  1477. * test/CookieStorageTest.cc
  1478. * test/CookieTest.cc
  1479. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1480. Changed signature of DHTMessageFactory::createResponseMessage().
  1481. Removed unused validateIDMatch.
  1482. * src/DHTMessageFactory.h
  1483. * src/DHTMessageFactoryImpl.cc
  1484. * src/DHTMessageFactoryImpl.h
  1485. * src/DHTMessageTracker.cc
  1486. * test/DHTMessageFactoryImplTest.cc
  1487. * test/MockDHTMessageFactory.h
  1488. Dropped DHT message coming from same ID of localhost.
  1489. * src/DHTMessageReceiver.cc
  1490. Rejected adding node whose ID is the same as localhost's.
  1491. * src/DHTRoutingTable.cc
  1492. * test/BtPortMessageTest.cc
  1493. * test/DHTRoutingTableTest.cc
  1494. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1495. Pool connection when redirection occurs with Content-Length = 0.
  1496. * src/HttpSkipResponseCommand.cc
  1497. * src/HttpSkipResponseCommand.h
  1498. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1499. Fixed the bug that causes time out when redirection occurs with
  1500. content-length 0.
  1501. * src/HttpResponseCommand.cc
  1502. * src/HttpSkipResponseCommand.cc
  1503. * src/HttpSkipResponseCommand.h
  1504. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1505. Now each status legends is shown only when it appears in Download
  1506. Result. If Download Result has no item, then status legend will not
  1507. be printed.
  1508. * src/RequestGroupMan.cc
  1509. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1510. Removed duplicate creation of OptionHandlers.
  1511. * src/option_processing.cc
  1512. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1513. Fixed the bug that causes segmentation fault when accessing files which
  1514. don't exist or are not included in --select-file option while
  1515. validating chunk checksum.
  1516. * src/MultiDiskAdaptor.cc
  1517. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1518. Fixed compiler warning.
  1519. * test/UtilTest.cc
  1520. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1521. Included cstdlib. This fixed the compile error with g++-4.3.2.
  1522. * src/IteratableChecksumValidator.cc
  1523. * src/IteratableChunkChecksumValidator.cc
  1524. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1525. * Release 0.16.2
  1526. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1527. Added Serbian translation. Updated Ukrainian translation.
  1528. Thanks to all translators.
  1529. * po/sr.po
  1530. * po/uk.po
  1531. * po/LINGUAS
  1532. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1533. Bump up version number to 0.16.2
  1534. * configure.ac
  1535. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1536. Added length equality test to operator== to drop a piece message
  1537. whose length does not match to the requested one.
  1538. * src/RequestSlot.cc
  1539. * test/DefaultBtMessageDispatcherTest.cc
  1540. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1541. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  1542. recieved.
  1543. In this fix, if a request larger than 16KiB length is received, aria2
  1544. disconnects the peer.
  1545. * src/BtConstants.h
  1546. * src/PeerMessageUtil.cc
  1547. * src/PeerMessageUtil.h
  1548. * test/BtRequestMessageTest.cc
  1549. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1550. * Release 0.16.1
  1551. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1552. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  1553. * doc/aria2c.1.txt
  1554. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1555. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  1556. Updated French, Simplified Chinese and Japanese translations.
  1557. Thanks to all translators.
  1558. en@quot and en@boldquot are also added.
  1559. * po/LINGUAS
  1560. * po/fr.po
  1561. * po/ja.po
  1562. * po/uk.po
  1563. * po/vi.po
  1564. * po/zh_CN.po
  1565. * po/zh_TW.po
  1566. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1567. Bump up version number to 0.16.1.
  1568. * configure.ac
  1569. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1570. Updated README.
  1571. * README
  1572. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1573. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  1574. not to replace '--' with em dash character.
  1575. * doc/aria2c.1.txt
  1576. * doc/makeman
  1577. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1578. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  1579. every SEC seconds.
  1580. * src/DownloadEngineFactory.cc
  1581. * src/OptionHandlerFactory.cc
  1582. * src/option_processing.cc
  1583. * src/usage_text.h
  1584. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1585. Fixed compile warning on linux-amd64
  1586. * src/FtpConnection.cc
  1587. * src/IteratableChunkChecksumValidator.cc
  1588. * src/MultiDiskAdaptor.cc
  1589. Fixed the bug that unit test fails on linux-amd64
  1590. * test/UtilTest.cc
  1591. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1592. Added --dht-file-path option to change the path to dht.dat, which is a
  1593. serialized DHT routing table.
  1594. * src/OptionHandlerFactory.cc
  1595. * src/option_processing.cc
  1596. * src/usage_text.h
  1597. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1598. Fixed possible underflow.
  1599. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  1600. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1601. Fixed the bug that last character in URI is not encoded.
  1602. * src/Request.cc
  1603. * test/RequestTest.cc
  1604. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1605. Fixed the bug that referer header field contains fragment.
  1606. Now Request class removes fragment part of URI and encodes it
  1607. in Request::setUri() and setReferer().
  1608. * src/Request.h
  1609. * src/Request.cc
  1610. * test/RequestTest.cc
  1611. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1612. Added missing m4 macros.
  1613. * m4/cppunit.m4
  1614. * m4/libgcrypt.m4
  1615. * m4/libgnutls-extra.m4
  1616. * m4/libgnutls.m4
  1617. * m4/libxml2.m4
  1618. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1619. Fixed compile error with gcc-4.4(snapshot)
  1620. * src/File.cc
  1621. * src/FtpConnection.cc
  1622. * src/OptionHandlerImpl.h
  1623. * src/Util.cc
  1624. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1625. Removed assert()
  1626. * src/SocketBuffer.cc (SocketBuffer::send)
  1627. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1628. Changed the type of _numNewConnection to unsigned int.
  1629. * src/ActivePeerConnectionCommand.cc
  1630. * src/ActivePeerConnectionCommand.h
  1631. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1632. * Release 0.16.0
  1633. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1634. Updated doc
  1635. * README
  1636. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1637. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  1638. translations. Thanks to all translators.
  1639. * po/bg.po
  1640. * po/de.po
  1641. * po/fr.po
  1642. * po/ja.po
  1643. * po/zh_CN.po
  1644. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1645. Bump up version number to 0.16.0.
  1646. * configure.ac
  1647. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1648. Casted entry->maxConnections to int32_t for std::min<T> with T =
  1649. int32_t.
  1650. Changed the type of count to int32_t.
  1651. * src/Metalink2RequestGroup.cc
  1652. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1653. Added test for Time::elapsed(time_t).
  1654. * test/TimeTest.cc
  1655. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1656. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  1657. Util::difftv() should be used instead.
  1658. * src/TimeA2.cc
  1659. * src/TimeA2.h
  1660. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1661. Made socket for dht connections non-blocking
  1662. * src/DHTAbstractMessage.cc
  1663. * src/DHTAbstractMessage.h
  1664. * src/DHTConnection.h
  1665. * src/DHTConnectionImpl.cc
  1666. * src/DHTConnectionImpl.h
  1667. * src/DHTMessage.h
  1668. * src/DHTMessageDispatcherImpl.cc
  1669. * src/DHTMessageDispatcherImpl.h
  1670. * src/DHTUnknownMessage.cc
  1671. * src/DHTUnknownMessage.h
  1672. * src/SocketCore.cc
  1673. * src/SocketCore.h
  1674. * test/MockDHTMessage.h
  1675. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1676. Changed the type of offset to int.
  1677. * src/ParameterizedStringParser.cc
  1678. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1679. Made getAsInt() return int32_t
  1680. * src/Option.h
  1681. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1682. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  1683. build.
  1684. * configure.ac
  1685. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1686. Use sqlite3_open if sqlite3_open_v2 is not available.
  1687. * src/Sqlite3MozCookieParser.cc
  1688. * src/Sqlite3MozCookieParser.h
  1689. * m4/sqlite3.m4
  1690. * test/Sqlite3MozCookieParserTest.cc
  1691. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1692. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  1693. * src/BtPieceMessage.cc
  1694. * src/DHTPeerAnnounceStorage.cc
  1695. * src/DefaultPieceStorage.cc
  1696. * src/DownloadCommand.cc
  1697. * src/DownloadEngine.cc
  1698. * src/FtpConnection.cc
  1699. * src/PeerConnection.cc
  1700. * src/PeerMessageUtil.cc
  1701. * src/RequestGroup.cc
  1702. * src/RequestGroupMan.cc
  1703. * src/SimpleBtMessage.cc
  1704. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1705. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  1706. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  1707. * src/AbstractDiskWriter.cc
  1708. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1709. Don't set Request::supportsPersistentConnection() in HttpConnection
  1710. since this code is also used in AbstractProxyResponseCommand.
  1711. Moved those code to HttpResponse.
  1712. * src/HttpResponse.cc
  1713. * src/HttpResponse.h
  1714. * src/HttpConnection.cc
  1715. * src/HttpConnection.h
  1716. * src/HttpResponseCommand.cc
  1717. * test/HttpResponseTest.cc
  1718. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1719. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  1720. The configuration is minimum: no torrent, no metalink, so there may be
  1721. other compile error on their code.
  1722. * src/a2netcompat.h
  1723. * src/File.cc
  1724. * src/File.h
  1725. * src/SocketCore.cc
  1726. * src/SocketCore.h
  1727. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1728. Made a socket of incoming peer non-blocking.
  1729. * src/PeerListenCommand.cc
  1730. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1731. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  1732. whole message data is not sent in one send() call.
  1733. * src/BtPieceMessage.cc
  1734. * src/BtPieceMessage.h
  1735. * src/PeerConnection.cc
  1736. * src/PeerConnection.h
  1737. * src/SimpleBtMessage.cc
  1738. * src/SimpleBtMessage.h
  1739. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1740. Fixed the bug that aria2 downloads faster than max-download-limit when
  1741. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  1742. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  1743. , instead of sum of them.
  1744. * src/ActivePeerConnectionCommand.cc
  1745. * src/DefaultBtInteractive.cc
  1746. * src/DownloadCommand.cc
  1747. * src/PeerInteractionCommand.cc
  1748. * src/PeerReceiveHandshakeCommand.cc
  1749. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1750. Fixed the bug that HTTPS download fails.
  1751. * src/AbstractCommand.cc
  1752. * src/AbstractCommand.h
  1753. * src/DownloadCommand.cc
  1754. * src/FtpConnection.cc
  1755. * src/HttpConnection.cc
  1756. * src/HttpRequestCommand.cc
  1757. * src/HttpResponseCommand.cc
  1758. * src/HttpSkipResponseCommand.cc
  1759. * src/MSEHandshake.cc
  1760. * src/PeerConnection.cc
  1761. * src/SocketCore.cc
  1762. * src/SocketCore.h
  1763. Fixed the bug that aria2 doesn't download whole content body and cannot
  1764. reuse connection if chunked transfer encoding and gzip content encoding
  1765. are set.
  1766. * src/DownloadCommand.cc
  1767. * src/HttpSkipResponseCommand.cc
  1768. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1769. Updated man page.
  1770. * doc/aria2c.1.txt
  1771. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1772. When error occurred while aria2 was parsing an .aria2.conf file, print
  1773. the usage of the option that caused error.
  1774. * src/option_processing.cc
  1775. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1776. Fixed compile error on OptionHandlerException
  1777. * src/Makefile.am
  1778. * src/OptionHandlerException.cc
  1779. * src/OptionHandlerException.h
  1780. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1781. Moved message of the error to OptionHandlerException.h
  1782. * src/NameMatchOptionHandler.h
  1783. * src/OptionHandlerException.h
  1784. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1785. When error occurs while aria2 is parsing an command-line option, print
  1786. the usage of the option.
  1787. * src/Makefile.am
  1788. * src/NameMatchOptionHandler.h
  1789. * src/OptionHandlerException.h
  1790. * src/option_processing.cc
  1791. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1792. Reverted previous change.
  1793. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  1794. username is not in URI.
  1795. * src/HttpRequest.cc
  1796. * src/Request.cc
  1797. * test/HttpRequestTest.cc
  1798. * test/RequestTest.cc
  1799. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1800. Now colon is required for username and password in FTP URL, like:
  1801. ftp://username:password@host.
  1802. If colon is not there, aria2 don't parse it as a username. For example,
  1803. aria2 don't retrieve username from ftp://username@host.
  1804. This fix was made in order to login FTP server via non-transparent ftp
  1805. proxy.
  1806. * src/Request.cc
  1807. * test/RequestTest.cc
  1808. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1809. Use netrc for HTTP.
  1810. Now FTP user/password is sent in Authorization header when
  1811. --ftp-via-http-proxy=get is given.
  1812. * src/AuthConfigFactory.cc
  1813. * src/HttpRequest.cc
  1814. * src/HttpRequest.h
  1815. * src/NetrcAuthResolver.cc
  1816. * src/NetrcAuthResolver.h
  1817. * src/OptionHandlerFactory.cc
  1818. * src/option_processing.cc
  1819. * src/prefs.cc
  1820. * src/prefs.h
  1821. * test/AuthConfigFactoryTest.cc
  1822. * test/HttpRequestTest.cc
  1823. * test/NetrcAuthResolverTest.cc
  1824. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1825. Issue PWD command first and get working directory and use it as a prefix
  1826. for CWD command.
  1827. * src/DownloadEngine.cc
  1828. * src/DownloadEngine.h
  1829. * src/FtpConnection.cc
  1830. * src/FtpConnection.h
  1831. * src/FtpFinishDownloadCommand.cc
  1832. * src/FtpInitiateConnectionCommand.cc
  1833. * src/FtpNegotiationCommand.cc
  1834. * src/FtpNegotiationCommand.h
  1835. * test/FtpConnectionTest.cc
  1836. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1837. Removed default user/pass for FTP user/pass, since it should not have
  1838. precedence over netrc configuration by default.
  1839. * src/OptionHandlerFactory.cc
  1840. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1841. Added debug log for socket event.
  1842. * src/AbstractCommand.cc
  1843. * src/PeerAbstractCommand.cc
  1844. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1845. Log microseconds.
  1846. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  1847. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1848. Replaced HelpItem.cc with OptionHandler.cc.
  1849. * po/POTFILES.in
  1850. Updated po files with 'make update-po'
  1851. * po/aria2c.pot
  1852. * po/*.po
  1853. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1854. Removed possible values from the text.
  1855. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  1856. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1857. Removed unused preferences:
  1858. PREF_NO_PREALLOCATION
  1859. PREF_STDOUT_LOG
  1860. PREF_TRACKER_MAX_TRIES
  1861. PREF_DIRECT_DOWNLOAD_TIMEOUT
  1862. PREF_MIN_SEGMENT_SIZE
  1863. * src/option_processing.cc
  1864. * src/prefs.cc
  1865. * src/prefs.h
  1866. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1867. Integrated HelpItem into OptionParser to ease the workload for adding
  1868. new options. Removed default value from usage text.
  1869. * src/HelpItem.cc: Removed.
  1870. * src/HelpItem.h: Removed.
  1871. * src/HelpItemFactory.cc: Removed.
  1872. * src/HelpItemFactory.h: Removed.
  1873. * src/Makefile.am
  1874. * src/Makefile.in
  1875. * src/NameMatchOptionHandler.h
  1876. * src/OptionHandler.cc
  1877. * src/OptionHandler.h
  1878. * src/OptionHandlerFactory.cc
  1879. * src/OptionHandlerImpl.h
  1880. * src/OptionParser.cc
  1881. * src/OptionParser.h
  1882. * src/TagContainer.cc: Removed.
  1883. * src/TagContainer.h: Removed.
  1884. * src/TaggedItem.cc: Removed.
  1885. * src/TaggedItem.h: Removed.
  1886. * src/main.cc
  1887. * src/option_processing.cc
  1888. * src/usage_text.h
  1889. * src/version_usage.cc
  1890. * test/HelpItemTest.cc: Removed.
  1891. * test/Makefile.am
  1892. * test/Makefile.in
  1893. * test/OptionHandlerTest.cc
  1894. * test/OptionParserTest.cc
  1895. * test/TagContainerTest.cc: Removed.
  1896. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1897. Moved `TransferStat stat = ...' to inside the `if' clause.
  1898. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  1899. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1900. Fixed the bug that a block in a piece is requested when same block is
  1901. already requested to the same peer in end game mode.
  1902. * src/BtRequestFactory.h
  1903. * src/DefaultBtInteractive.cc
  1904. * src/DefaultBtRequestFactory.cc
  1905. * src/DefaultBtRequestFactory.h
  1906. * src/DefaultPieceStorage.cc
  1907. * src/DefaultPieceStorage.h
  1908. * src/PieceStorage.h
  1909. * src/UnknownLengthPieceStorage.cc
  1910. * src/UnknownLengthPieceStorage.h
  1911. * test/DefaultBtRequestFactoryTest.cc
  1912. * test/DefaultPieceStorageTest.cc
  1913. * test/MockBtRequestFactory.h
  1914. * test/MockPieceStorage.h
  1915. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1916. Removed _uploadLength and _downloadLength from PeerSessionResource
  1917. and use PeerStat::_sessionUploadLength and
  1918. PeerStat::_sessionDownloadLength.
  1919. * src/PeerSessionResource.cc
  1920. * src/PeerSessionResource.h
  1921. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1922. Fixed the bug that prefixLength of split bucket which doesn't include
  1923. local node ID is incremented.
  1924. * src/DHTBucket.cc
  1925. * src/DHTBucket.h
  1926. * test/DHTBucketTest.cc
  1927. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1928. Added cookies.sqlite to EXTRA_DIST
  1929. * test/Makefile.am
  1930. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1931. Added Turkish translation. Updated French, German, Russian and
  1932. Simplified Chinese translations. Thanks to all translators.
  1933. * po/LINGUAS
  1934. * po/de.po
  1935. * po/fr.po
  1936. * po/ru.po
  1937. * po/tr.po
  1938. * po/zh_CN.po
  1939. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1940. Added deliminating text to the beginning of the log so that one can find
  1941. where the log starts easily.
  1942. * src/main.cc
  1943. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1944. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  1945. to fix compile error when async DNS is not enabled by configuration.
  1946. * src/AbstractCommand.cc
  1947. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1948. If establishing conneciton to a server is failed, then mark error on
  1949. its ServerStat.
  1950. Added the cause of error to log when error event occurred.
  1951. Moved message string to message.h for translation.
  1952. * src/AbstractCommand.cc
  1953. * src/AbstractCommand.h
  1954. * src/FtpNegotiationCommand.cc
  1955. * src/HttpRequestCommand.cc
  1956. * src/PeerAbstractCommand.cc
  1957. * src/message.h
  1958. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1959. Added the function to get error message from socket.
  1960. * src/SocketCore.cc
  1961. * src/SocketCore.h
  1962. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1963. Added convenient method RequestGroupMan::getOrCreateServerStat()
  1964. * src/RequestGroupMan.cc
  1965. * src/RequestGroupMan.h
  1966. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1967. If error event is received in epoll, then abort download immediately.
  1968. * src/AbstractCommand.cc
  1969. * src/Command.cc
  1970. * src/Command.h
  1971. * src/DownloadEngine.cc
  1972. * src/PeerAbstractCommand.cc
  1973. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1974. Added usage message for --uri-selector, --server-stat-of,
  1975. --server-stat-in, --server-stat-timeout options.
  1976. * src/HelpItemFactory.cc
  1977. * src/usage_text.h
  1978. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1979. Added upper limit of FTP response buffer. The current implementation
  1980. uses 4096bytes as a limit.
  1981. * src/FtpConnection.cc
  1982. * src/FtpConnection.h
  1983. * test/FtpConnectionTest.cc
  1984. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  1985. Use non-blocking socket for TCP communication to avoid possible
  1986. blocking due to buffer full.
  1987. * src/AbstractProxyRequestCommand.cc
  1988. * src/FtpConnection.cc
  1989. * src/FtpConnection.h
  1990. * src/FtpNegotiationCommand.cc
  1991. * src/FtpNegotiationCommand.h
  1992. * src/HttpConnection.cc
  1993. * src/HttpConnection.h
  1994. * src/HttpRequestCommand.cc
  1995. * src/InitiatorMSEHandshakeCommand.cc
  1996. * src/InitiatorMSEHandshakeCommand.h
  1997. * src/MSEHandshake.cc
  1998. * src/MSEHandshake.h
  1999. * src/Makefile.am
  2000. * src/PeerConnection.cc
  2001. * src/PeerConnection.h
  2002. * src/PeerInteractionCommand.cc
  2003. * src/PeerListenCommand.cc
  2004. * src/ReceiverMSEHandshakeCommand.cc
  2005. * src/ReceiverMSEHandshakeCommand.h
  2006. * src/SocketBuffer.cc
  2007. * src/SocketBuffer.h
  2008. * src/SocketCore.cc
  2009. * src/SocketCore.h
  2010. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2011. Call setStatusRealtime() in constructor.
  2012. * src/RealtimeCommand.cc
  2013. * src/RealtimeCommand.h
  2014. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2015. Call Download::setNoWait(true) to execute newly created command without
  2016. a pause.
  2017. * src/AbstractCommand.cc
  2018. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2019. Added --max-file-not-found=NUM option. If aria2 receives `file not
  2020. found' error from HTTP/FTP server NUM times without getting single
  2021. bytes of data, then force the download to fail.
  2022. Basically aria2 tris all URIs available. So if long list of URIs are
  2023. specified in Metalink, then aria2 will take a long time to fail
  2024. eventually if all URIs are outdated. This option eases this situation
  2025. to limit the number of servers to try.
  2026. * src/FtpNegotiationCommand.cc
  2027. * src/HelpItemFactory.cc
  2028. * src/HttpResponseCommand.cc
  2029. * src/OptionHandlerFactory.cc
  2030. * src/PeerStat.h
  2031. * src/RequestGroup.cc
  2032. * src/RequestGroup.h
  2033. * src/SegmentMan.cc
  2034. * src/SegmentMan.h
  2035. * src/option_processing.cc
  2036. * src/prefs.cc
  2037. * src/prefs.h
  2038. * src/usage_text.h
  2039. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2040. Fixed the bug that bulkReceiveResponse() reads all received data as a
  2041. response even if more than one response is in it.
  2042. * src/FtpConnection.cc
  2043. * src/FtpConnection.h
  2044. * test/FtpConnectionTest.cc
  2045. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2046. Merged from stable-0.15
  2047. * m4/libcares.m4
  2048. Use pkg-config
  2049. * m4/sqlite3.m4
  2050. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2051. Removed unnecessary if statement.
  2052. * src/DefaultPieceStorage.cc (initPieceStorage)
  2053. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2054. Added --connect-timeout option to specify connect timeout in seconds.
  2055. This option is in effect for HTTP/FTP/proxy server. The timeout for
  2056. connecting to BitTorrent peer is not controlled by this option.
  2057. * src/AbstractProxyRequestCommand.cc
  2058. * src/FtpNegotiationCommand.cc
  2059. * src/HelpItemFactory.cc
  2060. * src/HttpRequestCommand.cc
  2061. * src/OptionHandlerFactory.cc
  2062. * src/option_processing.cc
  2063. * src/prefs.cc
  2064. * src/prefs.h
  2065. * src/usage_text.h
  2066. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2067. Added help message for -R option.
  2068. * src/HelpItemFactory.cc
  2069. * src/usage_text.h
  2070. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2071. Added the message that the time is in local time zone.
  2072. * src/RequestGroup.cc
  2073. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2074. Implemented the ability to get timestamp from remote FTP server using
  2075. MDTM command described in RFC3659.
  2076. * src/FtpConnection.cc
  2077. * src/FtpConnection.h
  2078. * src/FtpNegotiationCommand.cc
  2079. * src/FtpNegotiationCommand.h
  2080. * test/FtpConnectionTest.cc
  2081. * test/Makefile.am
  2082. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2083. Implemented the ability to get timestamp from remote HTTP server and
  2084. apply it to local file. To enable this feature, --remote-time option
  2085. is added. No usage text has been written yet.
  2086. If several servers returns difference timestamp, then aria2 uses latest
  2087. one.
  2088. * src/CopyDiskAdaptor.cc
  2089. * src/CopyDiskAdaptor.h
  2090. * src/DirectDiskAdaptor.cc
  2091. * src/DirectDiskAdaptor.h
  2092. * src/DiskAdaptor.h
  2093. * src/File.cc
  2094. * src/File.h
  2095. * src/HttpHeader.cc
  2096. * src/HttpHeader.h
  2097. * src/HttpResponse.cc
  2098. * src/HttpResponse.h
  2099. * src/HttpResponseCommand.cc
  2100. * src/HttpResponseCommand.h
  2101. * src/MultiDiskAdaptor.cc
  2102. * src/MultiDiskAdaptor.h
  2103. * src/OptionHandlerFactory.cc
  2104. * src/RequestGroup.cc
  2105. * src/RequestGroup.h
  2106. * src/RequestGroupMan.cc
  2107. * src/option_processing.cc
  2108. * src/prefs.cc
  2109. * src/prefs.h
  2110. * test/CopyDiskAdaptorTest.cc
  2111. * test/FileTest.cc
  2112. * test/Makefile.am
  2113. * test/Makefile.in
  2114. * test/MultiDiskAdaptorTest.cc
  2115. * test/TestUtil.cc
  2116. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2117. Fixed the bug that DiskWriterEntry is not created when its
  2118. FileEntry.isRequested() is false and it doesn't share a piece with
  2119. other FileEntries that are requested. This bug causes segmentation fault
  2120. in the end.
  2121. * src/MultiDiskAdaptor.cc
  2122. * src/MultiDiskAdaptor.h
  2123. * src/MultiFileAllocationIterator.cc
  2124. * test/MultiDiskAdaptorTest.cc
  2125. * test/MultiFileAllocationIteratorTest.cc
  2126. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2127. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  2128. called if the number of file entries are greater than max open files.
  2129. * src/AbstractSingleDiskAdaptor.cc
  2130. * src/AbstractSingleDiskAdaptor.h
  2131. * src/DiskAdaptor.h
  2132. * src/MultiDiskAdaptor.cc
  2133. * src/MultiDiskAdaptor.h
  2134. * test/MultiDiskAdaptorTest.cc
  2135. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2136. Added a constuctor that receives struct timeval.
  2137. Added operator<.
  2138. * src/TimeA2.cc
  2139. * src/TimeA2.h
  2140. * test/TimeTest.cc
  2141. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2142. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  2143. * src/CookieParser.cc
  2144. * test/CookieParserTest.cc
  2145. * test/HttpResponseTest.cc
  2146. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2147. Implmented the functions to parse date.
  2148. * src/TimeA2.cc
  2149. * src/TimeA2.h
  2150. * test/TimeTest.cc
  2151. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2152. Added "Firefox3 Cookie" feature to FeatureConfig
  2153. * src/FeatureConfig.cc
  2154. * src/FeatureConfig.h
  2155. * test/FeatureConfigTest.cc
  2156. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2157. Bump up version number to 0.16.0b
  2158. * configure.ac
  2159. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2160. Use pkg-config if is is available.
  2161. * m4/openssl.m4
  2162. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2163. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  2164. * src/BtAnnounce.h
  2165. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2166. If an error occurred with a URI, remove identical URI from remaining
  2167. URI list because it is likely that same error occurred in the end and it
  2168. is waste of time.
  2169. * src/AbstractCommand.cc
  2170. * src/RequestGroup.cc
  2171. * src/RequestGroup.h
  2172. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2173. Removed wrong comment.
  2174. * src/DefaultPeerStorage.cc
  2175. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2176. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  2177. Added return value of getpid() to argument of srand() to achieve more
  2178. randomized value.
  2179. * src/SimpleRandomizer.cc
  2180. * src/SimpleRandomizer.h
  2181. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2182. Contact tracker frequently when the number of connections are 0 and
  2183. download is not finished yet.
  2184. * src/ActivePeerConnectionCommand.cc
  2185. * src/BtAnnounce.h
  2186. * src/DefaultBtAnnounce.cc
  2187. * src/DefaultBtAnnounce.h
  2188. * test/MockBtAnnounce.h
  2189. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2190. Moved threshold values to UTPexExtensionMessage.
  2191. * src/DefaultBtInteractive.cc
  2192. * src/Peer.cc
  2193. * src/Peer.h
  2194. * src/UTPexExtensionMessage.cc
  2195. * src/UTPexExtensionMessage.h
  2196. * test/UTPexExtensionMessageTest.cc
  2197. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2198. Added _incoming member to Peer class and made it true if the peer
  2199. initiated connection. Don't add those peer to UTPex message.
  2200. If extended handshake is received, assign _incoming to false.
  2201. * src/DefaultBtInteractive.cc
  2202. * src/HandshakeExtensionMessage.cc
  2203. * src/Peer.cc
  2204. * src/Peer.h
  2205. * src/PeerListenCommand.cc
  2206. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2207. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  2208. Encoding Decoder. Removed size threshold for turning off on the fly
  2209. inflation because resulting file may or may not be inflated depending
  2210. on the file size and I think it is not expected by users.
  2211. This change fixes segmentation fault when Metalink file contains gzipped
  2212. file and its filesize is provided.
  2213. * src/HttpResponseCommand.cc
  2214. * src/HttpResponseCommand.h
  2215. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2216. Made Cookie immutable.
  2217. * src/Cookie.cc
  2218. * src/Cookie.h
  2219. * src/CookieParser.cc
  2220. * src/CookieParser.h
  2221. * src/CookieStorage.cc
  2222. * test/CookieParserTest.cc
  2223. * test/CookieStorageTest.cc
  2224. * test/NsCookieParserTest.cc
  2225. * test/Sqlite3MozCookieParserTest.cc
  2226. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2227. Removed CookieBox, CookieBoxFactory.
  2228. * src/CookieBox.cc
  2229. * src/CookieBox.h
  2230. * src/CookieBoxFactory.cc
  2231. * src/CookieBoxFactory.h
  2232. * src/Makefile.am
  2233. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2234. Use CookieStorage class instead of CookieBox class.
  2235. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  2236. * src/AbstractProxyRequestCommand.cc
  2237. * src/CookieStorage.cc
  2238. * src/DownloadEngine.cc
  2239. * src/DownloadEngine.h
  2240. * src/HttpConnection.cc
  2241. * src/HttpConnection.h
  2242. * src/HttpRequest.cc
  2243. * src/HttpRequest.h
  2244. * src/HttpRequestCommand.cc
  2245. * src/HttpResponse.cc
  2246. * src/HttpResponseCommand.cc
  2247. * src/HttpSkipResponseCommand.cc
  2248. * src/Makefile.am
  2249. * src/MultiUrlRequestInfo.cc
  2250. * src/Request.cc
  2251. * src/Request.h
  2252. * src/main.cc
  2253. * test/AllTest.cc
  2254. * test/CookieStorageTest.cc
  2255. * test/CookieTest.cc
  2256. * test/HttpRequestTest.cc
  2257. * test/HttpResponseTest.cc
  2258. * test/Makefile.am
  2259. * test/NsCookieParserTest.cc
  2260. * test/Sqlite3MozCookieParserTest.cc
  2261. * test/nscookietest.txt
  2262. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2263. Updated
  2264. * test/Cookies.sqlite
  2265. * test/nscookietest.txt
  2266. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2267. Added tests for CookieStorage::load()
  2268. * test/CookieStorageTest.cc
  2269. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2270. Added CookieStorage class which is based on RFC2109 and manages cookies
  2271. more strictly than CookieBox and CookieBoxFactory class.
  2272. * src/CookieStorage.cc
  2273. * src/CookieStorage.h
  2274. * src/Cookie.cc
  2275. * src/Cookie.h
  2276. * test/CookieStorageTest.cc
  2277. * test/CookieTest.cc
  2278. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2279. Fixed the bug that commands are created more than the number of pieces.
  2280. * src/RequestGroup.cc
  2281. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2282. Fixed infinite loop bug in FTP when SIZE command failed.
  2283. * src/FtpNegotiationCommand.cc
  2284. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2285. Removed DirectDiskAdaptorTest.h
  2286. * test/Makefile.am
  2287. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2288. Fixed chunk checksum validation cannot detect trailing garbage data.
  2289. BUG#2074141
  2290. * src/AbstractSingleDiskAdaptor.cc
  2291. * src/AbstractSingleDiskAdaptor.h
  2292. * src/CheckIntegrityEntry.cc
  2293. * src/CheckIntegrityEntry.h
  2294. * src/DiskAdaptor.h
  2295. * src/MultiDiskAdaptor.cc
  2296. * src/MultiDiskAdaptor.h
  2297. * src/RequestGroup.cc
  2298. * test/DirectDiskAdaptorTest.cc
  2299. * test/MultiDiskAdaptorTest.cc
  2300. * test/TestUtil.cc
  2301. * test/TestUtil.h
  2302. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2303. Bump up version number of dht.dat file to 3. In version 3 format, time
  2304. is stored in 64bit, network byte order.
  2305. New build can load old format(version 2) but it saves the file in new
  2306. format. It means once you used new build, your dht.dat becomes
  2307. incompatible with older build.
  2308. * src/DHTRoutingTableDeserializer.cc
  2309. * src/DHTRoutingTableSerializer.cc
  2310. * test/DHTRoutingTableSerializerTest.cc
  2311. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2312. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  2313. * test/Makefile.am
  2314. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2315. Bump up version number of .aria2 control file to 0001.
  2316. New aria2 can still load version 0000 file but it saves the file in
  2317. version 0001 format. It means that new aria2 can resume download
  2318. started by old aria2 but the opposite is not true.
  2319. * src/DefaultBtProgressInfoFile.cc
  2320. * src/DefaultBtProgressInfoFile.h
  2321. * test/DefaultBtProgressInfoFileTest.cc
  2322. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2323. Added ntoh64 and hton64 as inline functions.
  2324. * src/Util.cc
  2325. * test/UtilTest.cc
  2326. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2327. Added sqlite3 depenency and Firefox3 cookie support.
  2328. * README
  2329. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2330. State that firefox3 cookie is supported explicitly in the usage.
  2331. * src/usage_text.h
  2332. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2333. Externalized message.
  2334. * src/RequestGroupMan.cc
  2335. * src/message.h
  2336. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2337. Save temporary file first and rename to the destination on success.
  2338. Added test cases.
  2339. * src/RequestGroupMan.cc
  2340. * test/RequestGroupManTest.cc
  2341. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2342. Fixed the bug that the number of connected peer is exceeding the limit
  2343. (55 by default) in seeding mode.
  2344. Multiplied 0.8 to _maxUploadSpeedLimit.
  2345. * src/ActivePeerConnectionCommand.cc
  2346. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2347. Clear table item.
  2348. * src/Dictionary.cc
  2349. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2350. Fixed error handling of lseek.
  2351. * src/AbstractDiskWriter.cc
  2352. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2353. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  2354. style cookie file.
  2355. * src/usage_text.h
  2356. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2357. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  2358. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  2359. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  2360. * src/Util.cc
  2361. * src/Util.h
  2362. * src/CookieParser.cc
  2363. * test/UtilTest.cc
  2364. * test/CookieParserTest.cc
  2365. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2366. Separate the implementation to load old mozilla format of cookie to
  2367. NsCookieParser class.
  2368. * src/CookieBoxFactory.cc
  2369. * src/CookieBoxFactory.h
  2370. * src/NsCookieParser.cc
  2371. * src/NsCookieParser.h
  2372. * test/NsCookieParserTest.cc
  2373. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2374. Made parse() const
  2375. * src/Sqlite3MozCookieParser.cc
  2376. * src/Sqlite3MozCookieParser.h
  2377. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2378. Added firefox3 cookie support based on the patch submitted by
  2379. tizianomueller.
  2380. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  2381. this functionality.
  2382. * configure.ac
  2383. * m4/sqlite3.m4
  2384. * src/CookieBoxFactory.cc
  2385. * src/CookieBoxFactory.h
  2386. * src/Makefile.am
  2387. * src/Makefile.in
  2388. * src/Sqlite3MozCookieParser.cc
  2389. * src/Sqlite3MozCookieParser.h
  2390. * src/main.cc
  2391. * test/CookieBoxFactoryTest.cc
  2392. * test/Makefile.am
  2393. * test/Makefile.in
  2394. * test/Sqlite3MozCookieParserTest.cc
  2395. * test/badcookies.sqlite
  2396. * test/cookies.sqlite
  2397. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2398. Added Danish and Greek translations.
  2399. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  2400. Great thanks to all translators.
  2401. * po/LINGUAS
  2402. * po/el.po
  2403. * po/da.po
  2404. * po/es.po
  2405. * po/ca.po
  2406. * po/nn.po
  2407. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2408. Fixed man page: --follow-bittorrent should be --follow-torrent
  2409. * doc/aria2c.1.txt
  2410. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2411. Fixed: numCommand is less than the value specified in -C option.
  2412. * src/RequestGroup.cc
  2413. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2414. Fixed occasional assertion failure in PieceSegment.
  2415. Calling PieceStorage::getMissingPiece(size_t) was missing after
  2416. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  2417. creation of duplicate segments and one of the segment was finished then
  2418. assertion failure was caused.
  2419. * src/SegmentMan.cc
  2420. * test/SegmentManTest.cc
  2421. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2422. Added options to load/save the server's performance/status to a file
  2423. and the timeout to drop their data.
  2424. --server-stat-of=FILE specifies the file to which performance data
  2425. is saved.
  2426. --server-stat-if=FILE specifies the file to read previously saved
  2427. by --server-stat-of option. Might be used with --uri-selector=feedback.
  2428. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  2429. TIMEOUT is specified in seconds and the default value is 24hours.
  2430. * src/MultiUrlRequestInfo.cc
  2431. * src/OptionHandlerFactory.cc
  2432. * src/RequestGroupMan.cc
  2433. * src/RequestGroupMan.h
  2434. * src/ServerStatMan.cc
  2435. * src/ServerStatMan.h
  2436. * src/option_processing.cc
  2437. * src/prefs.cc
  2438. * src/prefs.h
  2439. * test/ServerStatManTest.cc
  2440. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2441. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  2442. * src/ServerStatMan.cc
  2443. * src/ServerStatMan.h
  2444. * test/ServerStatManTest.cc
  2445. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2446. Implemented ServerStatMan::load(...) function and its test case.
  2447. * src/ServerStat.cc
  2448. * src/ServerStat.h
  2449. * src/ServerStatMan.cc
  2450. * test/ServerStatManTest.cc
  2451. * test/ServerStatTest.cc
  2452. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2453. Use time_t instead of int32_t. Use int64_t where milli second is
  2454. expected.
  2455. * src/TimeA2.cc
  2456. * src/TimeA2.h
  2457. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2458. Implemented ServerStatMan::save(...) function and its test case.
  2459. * src/ServerStat.cc
  2460. * src/ServerStat.h
  2461. * src/ServerStatMan.cc
  2462. * src/ServerStatMan.h
  2463. * test/ServerStatManTest.cc
  2464. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2465. Now aria2 uses name attribute in Metalink as local filename in
  2466. BitTorrent downloads. BUG#2033999
  2467. * src/BtContext.h
  2468. * src/BtDependency.cc
  2469. * src/DefaultBtContext.cc
  2470. * src/DefaultBtContext.h
  2471. * src/SingleFileDownloadContext.cc
  2472. * src/SingleFileDownloadContext.h
  2473. * test/BtDependencyTest.cc
  2474. * test/DefaultBtContextTest.cc
  2475. * test/MockBtContext.h
  2476. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2477. Added AC_C_BIGENDIAN
  2478. * src/configure.ac
  2479. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2480. Limited numCommand less than or equal to the number of piece.
  2481. * src/RequestGroup.cc
  2482. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2483. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  2484. directive.
  2485. * test/DefaultPieceStorageTest.cc
  2486. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2487. Fixed memory leak in test code
  2488. * test/AnnounceListTest.cc
  2489. * test/DefaultPeerListProcessorTest.cc
  2490. * test/DefaultPeerStorageTest.cc
  2491. * test/MetaFileUtilTest.cc
  2492. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2493. Fixed wrong argument passing to BitfieldMan::isBitSet()
  2494. * src/DefaultPieceStorage.cc
  2495. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2496. Initialized _directIOAllowed
  2497. * src/MultiDiskAdaptor.cc
  2498. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2499. Fixed memory leak
  2500. * src/GZipDecoder.cc
  2501. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2502. Fixed memory leak
  2503. * src/MetalinkParserStateMachine.cc
  2504. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2505. Fixed memory leak
  2506. * src/Dictionary.cc
  2507. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2508. Fixed memory leak
  2509. * src/IteratableChunkChecksumValidator.h
  2510. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2511. Fixed unmatched malloc/free.
  2512. * src/IteratableChunkChecksumValidator.cc
  2513. * src/IteratableChecksumValidator.cc
  2514. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2515. Removed max chunk size check. This change fixes BUG#2040169
  2516. * src/ChunkedDecoder.cc
  2517. * src/ChunkedDecoder.h
  2518. * test/ChunkedDecoderTest.cc
  2519. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2520. Implemented download speed based URI selection algorithm.
  2521. Introduced new option --uri-selector.
  2522. If --uri-selector=feedback is given, aria2 uses download speed observed
  2523. in the previous downloads and chooses fastest server in the URI list.
  2524. Currently at most 10 URIs are considered to introduce randomeness for
  2525. finding better servers. The speed is average download speed in the
  2526. downloads.
  2527. On the other hand, if --uri-selector=inorder is given, which is default,
  2528. URI is tried in order in URI list.
  2529. The usage text for the new option has not been written yet.
  2530. * src/AbstractCommand.cc
  2531. * src/DownloadCommand.cc
  2532. * src/DownloadEngine.cc
  2533. * src/DownloadEngineFactory.cc
  2534. * src/InOrderURISelector.cc
  2535. * src/InOrderURISelector.h
  2536. * src/OptionHandlerFactory.cc
  2537. * src/PeerStat.h
  2538. * src/RequestGroup.cc
  2539. * src/RequestGroup.h
  2540. * src/RequestGroupMan.cc
  2541. * src/RequestGroupMan.h
  2542. * src/SegmentMan.cc
  2543. * src/SegmentMan.h
  2544. * src/ServerStat.cc
  2545. * src/ServerStat.h
  2546. * src/ServerStatMan.cc
  2547. * src/ServerStatMan.h
  2548. * src/ServerStatURISelector.cc
  2549. * src/ServerStatURISelector.h
  2550. * src/URISelector.h
  2551. * src/option_processing.cc
  2552. * src/prefs.cc
  2553. * src/prefs.h
  2554. * test/InOrderURISelectorTest.cc
  2555. * test/RequestGroupManTest.cc
  2556. * test/ServerStatManTest.cc
  2557. * test/ServerStatURISelectorTest.cc
  2558. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2559. * Release 0.15.1+2
  2560. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2561. Bump up version number to 0.15.1+2
  2562. * configure.ac
  2563. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2564. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  2565. * m4/aria2_arg.m4
  2566. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2567. * Release 0.15.1+1
  2568. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2569. Bump up version number to 0.15.1+1
  2570. * configure.ac
  2571. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2572. Fixed the bug that causes segmentaion fault when resuming download
  2573. using metalink without size tag. Reproducible only using HTTP URI.
  2574. * src/HttpResponseCommand.cc
  2575. * src/FtpNegotiationCommand.cc
  2576. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2577. * Release 0.15.1
  2578. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2579. Updated Bulgarian and French translations, thanks to all translators.
  2580. * po/bg.po
  2581. * po/fr.po
  2582. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2583. Bump up version number to 0.15.1
  2584. * configure.ac
  2585. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2586. Avoid repeated call of gettimeofday() when calculating speed.
  2587. * src/SpeedCalc.cc
  2588. * src/SpeedCalc.h
  2589. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2590. Removed writable check when socket's send buffer is full in BitTorrent
  2591. downloads to lower CPU usage.
  2592. * src/PeerInteractionCommand.cc
  2593. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2594. Fixed broken gzip inflation.
  2595. Turn off segmented downloading if gzip content is smaller than or equal
  2596. to 1MiB and inflate the data on the fly, because HTTP response header
  2597. doesn't contain the length of inflated file we can't determin where
  2598. the chunk of data should be written.
  2599. On the other hand, if gzip content is larger than 1MB, then turn off
  2600. on the fly inflation, because some servers returns "content-type: gzip"
  2601. for *.tgz, *.gz files.
  2602. * src/DownloadCommand.cc
  2603. * src/HttpResponseCommand.cc
  2604. * src/HttpResponseCommand.h
  2605. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2606. Applied tizianomueller's patch to fix compile error.
  2607. * test/BitfieldManTest.cc
  2608. * test/BtRequestMessageTest.cc
  2609. * test/DefaultBtContextTest.cc
  2610. * test/DefaultDiskWriterTest.cc
  2611. * test/DefaultPieceStorageTest.cc
  2612. * test/HttpHeaderProcessorTest.cc
  2613. * test/HttpResponseTest.cc
  2614. * test/Metalink2RequestGroupTest.cc
  2615. * test/MetalinkParserControllerTest.cc
  2616. * test/MetalinkProcessorTest.cc
  2617. * test/PeerSessionResourceTest.cc
  2618. * test/UtilTest.cc
  2619. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2620. * Release 0.15.0
  2621. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2622. Reordered src files in POTFILES.in so that usage text appears first.
  2623. * po/POTFILES.in
  2624. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2625. Bump up version number to 0.15.0
  2626. * configure.ac
  2627. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2628. Added Bulgarian translation.
  2629. Updated Catalan, Spanish, French and Japanese translations.
  2630. Thanks to all translators.
  2631. * po/LINGUAS
  2632. * po/bg.po
  2633. * po/ca.po
  2634. * po/es.po
  2635. * po/fr.po
  2636. * po/ja.po
  2637. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2638. Updated feature list. Added libz for dependency section.
  2639. Added a description about unit testing using CppUnit.
  2640. * README
  2641. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2642. Added a test for libz. Quoted where it is necessary.
  2643. * build_test.sh
  2644. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2645. Added GZip to `Enabled Features' list.
  2646. * src/FeatureConfig.cc
  2647. * src/FeatureConfig.h
  2648. * test/FeatureConfigTest.cc
  2649. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2650. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  2651. the transfer has not yet started.
  2652. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  2653. * src/SegmentMan.cc
  2654. * src/SegmentMan.h
  2655. * test/SegmentManTest.cc
  2656. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2657. Cache last calculated average download/upload speed.
  2658. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  2659. cached value.
  2660. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  2661. * src/PeerStat.h
  2662. * src/SpeedCalc.cc
  2663. * src/SpeedCalc.h
  2664. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2665. Call parseUrl directly.
  2666. * src/Request.cc (resetUrl)
  2667. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2668. Supported absolute/relative path in Location header field.
  2669. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  2670. * src/HttpHeader.cc
  2671. * src/HttpHeader.h
  2672. * src/HttpResponse.cc
  2673. * src/HttpSkipResponseCommand.cc
  2674. * src/Request.cc
  2675. * test/HttpHeaderTest.cc
  2676. * test/HttpResponseTest.cc
  2677. * test/RequestTest.cc
  2678. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2679. Changed help text for --load-cookie option.
  2680. * doc/aria2c.1.txt
  2681. * src/usage_text.h
  2682. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2683. Regenerated test/Makefile.in to remove stale ChangeLog.
  2684. * test/Makefile.in
  2685. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2686. Updated po files.
  2687. * po/aria2c.pot
  2688. * po/*.po
  2689. * po/*.gmo
  2690. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2691. Bump up version number to 0.15.0b
  2692. * configure.ac
  2693. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2694. Externalize messages.
  2695. * src/RequestGroupMan.cc
  2696. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  2697. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2698. Use File::exists() instead of File::isFile() to allow non-regular file
  2699. such as block special files.
  2700. * src/AbstractDiskWriter.cc
  2701. * src/MultiDiskWriter.cc
  2702. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2703. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  2704. * src/gai_strerror.h
  2705. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2706. Fixed compile error. Thanks gknauf for the patch.
  2707. * src/asctime_r.c
  2708. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2709. Included asctime_r.h from a2time.h.
  2710. * src/a2time.h
  2711. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2712. Added a message "aria2 doesn't verify signature" to log message when
  2713. signature file is saved.
  2714. * src/RequestGroupMan.cc
  2715. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2716. Added the ability to save signature when download is completed if
  2717. signature is available. The filename of signature file is the path to
  2718. download file followed by ".sig". If it already exists, then signature
  2719. will not be saved.
  2720. * src/RequestGroupMan.cc
  2721. * src/Signature.cc
  2722. * test/SignatureTest.cc
  2723. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2724. Updated the descriptions for --bt-seed-unverified.
  2725. * doc/aria2c.1
  2726. * doc/aria2c.1.html
  2727. * doc/aria2c.1.txt
  2728. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2729. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  2730. that this is not going to verify files using piece hashes.
  2731. * src/HelpItemFactory.cc
  2732. * src/OptionHandlerFactory.cc
  2733. * src/RequestGroup.cc
  2734. * src/option_processing.cc
  2735. * src/prefs.cc
  2736. * src/prefs.h
  2737. * src/usage_text.h
  2738. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2739. Added the ability to retrieve signature from Metalink file.
  2740. A retrieved signature is stored in Signature class and it is held by
  2741. DownloadContext class. Note that aria2 doesn't verify signature.
  2742. * src/DownloadContext.cc
  2743. * src/DownloadContext.h
  2744. * src/Makefile.am
  2745. * src/Makefile.in
  2746. * src/Metalink2RequestGroup.cc
  2747. * src/MetalinkEntry.cc
  2748. * src/MetalinkEntry.h
  2749. * src/MetalinkParserController.cc
  2750. * src/MetalinkParserController.h
  2751. * src/MetalinkParserStateMachine.cc
  2752. * src/MetalinkParserStateMachine.h
  2753. * src/Signature.cc
  2754. * src/Signature.h
  2755. * src/SignatureMetalinkParserState.cc
  2756. * src/SignatureMetalinkParserState.h
  2757. * src/VerificationMetalinkParserState.cc
  2758. * src/VerificationMetalinkParserState.h
  2759. * test/Metalink2RequestGroupTest.cc
  2760. * test/MetalinkParserControllerTest.cc
  2761. * test/MetalinkProcessorTest.cc
  2762. * test/test.xml
  2763. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2764. Close DiskAdaptor after renaming file.
  2765. * src/RequestGroup.cc
  2766. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2767. Corrected indentation
  2768. * src/DefaultBtProgressInfoFile.cc
  2769. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2770. Moved the calls of std::ios::exceptions() inside of try-catch block
  2771. because if an error occurred in constructor of std::fstream, then
  2772. exception is thrown immediately when std::ios::exceptions() is called
  2773. which results unhandled exception and aria2c aborts.
  2774. * src/DefaultBtProgressInfoFile.cc
  2775. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2776. Added the test for the previous change in DefaultBtContext.cc
  2777. * test/DefaultBtContextTest.cc
  2778. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2779. Fixed the bug that causes infinite loop when the number of pieces are
  2780. fewer than allowed fast set size which is 10 by default.
  2781. * src/DefaultBtContext.cc
  2782. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2783. Updated the descriptions for -j, -s. Added --bt-seed.
  2784. * doc/aria2c.1
  2785. * doc/aria2c.1.html
  2786. * doc/aria2c.1.txt
  2787. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2788. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  2789. aria2 seeds previously downloaded files without validating piece hashs.
  2790. * src/HelpItemFactory.cc
  2791. * src/OptionHandlerFactory.cc
  2792. * src/RequestGroup.cc
  2793. * src/option_processing.cc
  2794. * src/prefs.cc
  2795. * src/prefs.h
  2796. * src/usage_text.h
  2797. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2798. Updated DESCRIPTION of man page.
  2799. * doc/aria2c.1
  2800. * doc/aria2c.1.html
  2801. * doc/aria2c.1.txt
  2802. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2803. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  2804. Don't define `struct addrinfo' when __sun is defined.
  2805. * src/getaddrinfo.h
  2806. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2807. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  2808. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  2809. second argument is of type `struct _stati64'. Otherwise it is defined as
  2810. `struct stat'.
  2811. * src/AbstractDiskWriter.cc
  2812. * src/File.cc
  2813. * src/File.h
  2814. * src/a2io.h
  2815. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2816. Fixed the compile error in hurd-i386
  2817. See the original bug report:
  2818. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  2819. * src/a2io.h
  2820. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2821. Code cleanup.
  2822. * src/PeerAbstractCommand.cc
  2823. * src/PeerAbstractCommand.h
  2824. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2825. Removed TransferEncoding.
  2826. * src/DownloadCommand.cc
  2827. * src/DownloadCommand.h
  2828. * src/HttpResponseCommand.cc
  2829. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2830. Updated po files.
  2831. * po/aria2c.pot
  2832. * po/*.po
  2833. * po/*.gmo
  2834. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2835. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  2836. * src/A2STR.cc
  2837. * src/A2STR.h
  2838. * src/ChunkedDecoder.cc
  2839. * src/ChunkedDecoder.h
  2840. * src/ChunkedEncoding.cc: Removed
  2841. * src/ChunkedEncoding.h: Removed
  2842. * src/DownloadCommand.cc
  2843. * src/DownloadCommand.h
  2844. * src/HttpDownloadCommand.cc
  2845. * src/HttpResponse.cc
  2846. * src/HttpResponse.h
  2847. * src/HttpResponseCommand.cc
  2848. * src/HttpSkipResponseCommand.cc
  2849. * src/HttpSkipResponseCommand.h
  2850. * src/Makefile.am
  2851. * src/TransferEncoding.h: Removed
  2852. * test/ChunkedDecoderTest.cc
  2853. * test/ChunkedEncodingTest.cc: Removed
  2854. * test/HttpResponseTest.cc
  2855. * test/Makefile.am
  2856. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2857. Use append instead of insert.
  2858. * src/GZipDecoder.cc
  2859. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2860. Updated doc
  2861. * src/Decoder.h
  2862. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2863. Updated usage text for -s option.
  2864. * src/usage_text.h
  2865. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2866. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  2867. * src/Request.cc
  2868. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2869. Cleaned up configure.ac.
  2870. * configure.ac
  2871. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2872. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  2873. AC_ARG_ENABLE.
  2874. * configure.ac
  2875. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2876. Added gzip, deflate decoding support in HTTP using libz. If compiled
  2877. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  2878. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  2879. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  2880. fly and writes decoded data to a local disk.
  2881. * README
  2882. * README.html
  2883. * configure.ac
  2884. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  2885. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  2886. * m4/libz.m4
  2887. * src/Decoder.h
  2888. * src/DownloadCommand.cc
  2889. * src/DownloadCommand.h
  2890. * src/Exception.h
  2891. * src/GZipDecoder.cc
  2892. * src/GZipDecoder.h
  2893. * src/HttpHeader.cc
  2894. * src/HttpHeader.h
  2895. * src/HttpRequest.cc
  2896. * src/HttpRequest.h
  2897. * src/HttpResponse.cc
  2898. * src/HttpResponse.h
  2899. * src/HttpResponseCommand.cc
  2900. * src/Makefile.am
  2901. * test/GZipDecoderTest.cc
  2902. * test/HttpRequestTest.cc
  2903. * test/HttpResponseTest.cc
  2904. * test/Makefile.am
  2905. * test/Makefile.in
  2906. * test/gzip_decode_test.gz
  2907. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2908. Clarified usage of -j option.
  2909. * src/usage_text.h
  2910. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2911. Disabled getting size from the response of RETR.
  2912. If SIZE command failed, then disable resuming and segmented downloading.
  2913. * src/FtpConnection.cc
  2914. * src/FtpConnection.h
  2915. * src/FtpNegotiationCommand.cc
  2916. * src/FtpNegotiationCommand.h
  2917. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2918. Use digits to find first byte of file size, which makes the intention
  2919. of the code clearer.
  2920. * src/FtpConnection.cc
  2921. Don't call validateTotalLength() when size is 0.
  2922. * src/FtpNegotiationCommand.cc
  2923. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2924. Updated po files.
  2925. * po/aria2c.pot
  2926. * po/*.gmo
  2927. * po/*.po
  2928. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2929. Clarified usage text for --split option.
  2930. * src/usage_text.h
  2931. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2932. Bump up version number to 0.15.0dev. "dev" means "development"
  2933. version, which means I started the development of the next release!
  2934. * src/configure.ac
  2935. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2936. If FTP server returns negative response with REST raw command and
  2937. requested range is not 0, throw exception. If requested range is 0,
  2938. continue download a file from 0 byte.
  2939. * src/FtpNegotiationCommand.cc
  2940. * src/FtpNegotiationCommand.h
  2941. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2942. Supported FTP server which don't recognize SIZE raw command.
  2943. If SIZE raw command is failed, aria2 will try to get file size
  2944. from the response of RETR raw command. If both attempts are failed,
  2945. then resuming and segmented downloading are disabled.
  2946. * src/FtpConnection.cc
  2947. * src/FtpConnection.h
  2948. * src/FtpNegotiationCommand.cc
  2949. * src/FtpNegotiationCommand.h
  2950. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2951. * Release 0.14.0+1
  2952. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2953. Bump up version number to 0.14.0+1
  2954. * src/configure.ac
  2955. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2956. Fixed the code that refers static member variable from non-static
  2957. context.
  2958. * src/DefaultPeerStorage.cc
  2959. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2960. * Release 0.14.0
  2961. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2962. Added build test script
  2963. * build_test.sh
  2964. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2965. Updated ja.po
  2966. * src/ja.po
  2967. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2968. Bump up version number to 0.14.0
  2969. * src/configure.ac
  2970. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2971. Updated ja.po and fr.po. Great thanks for french translators and
  2972. Sebastien WILLEMIJNS.
  2973. * po/fr.po
  2974. * po/ja.po
  2975. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2976. Added configure option to enable/disable epoll support.
  2977. * configure.ac
  2978. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2979. Updated man page.
  2980. * doc/aria2c.1.txt
  2981. * doc/aria2c.1
  2982. * doc/aria2c.1.html
  2983. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2984. Added missing default value '5' to the usage of --split option.
  2985. * src/HelpItemFactory.cc
  2986. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2987. Filled up pieces based on the number of missing blocks, rather than
  2988. simplay the number of piece * block length.
  2989. * src/BtRequestFactory.h
  2990. * src/DefaultBtInteractive.cc
  2991. * src/DefaultBtInteractive.h
  2992. * src/DefaultBtRequestFactory.cc
  2993. * src/DefaultBtRequestFactory.h
  2994. * src/Piece.cc
  2995. * src/Piece.h
  2996. * test/BitfieldManTest.cc
  2997. * test/DefaultBtRequestFactoryTest.cc
  2998. * test/MockBtRequestFactory.h
  2999. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3000. Made _epEvents a member variable.
  3001. * src/DownloadEngine.cc
  3002. * src/DownloadEngine.h
  3003. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3004. Cancel download if http redirect is bounded more than 20 times.
  3005. * src/AbstractCommand.cc
  3006. * src/HttpSkipResponseCommand.cc
  3007. * src/Request.cc
  3008. * src/Request.h
  3009. * test/RequestTest.cc
  3010. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3011. Fixed unhandled exception(removed keyword `new').
  3012. * src/SocketCore.cc (initEPOLL)
  3013. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3014. Removed visit(const MetaEntry*)
  3015. * src/MetaEntryVisitor.h:
  3016. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  3017. and made them virtual.
  3018. * src/BencodeVisitor.h
  3019. * src/BencodeVisitor.cc
  3020. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3021. Updated po files.
  3022. * po/aria2c.pot
  3023. * po/*.po
  3024. * po/*.gmo
  3025. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3026. Moved the call setWriteCheckSocket inside the previous clause to reduce
  3027. the number of socket to watch out.
  3028. * src/PeerInteractionCommand.cc
  3029. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3030. When there is not enough space in disk when writing a chunk of data,
  3031. aria2 now prints the message to the console to warn user and aborts
  3032. its download. Not all downloads are canceled because some downloads
  3033. may use another disk or partition. BUG#1640332
  3034. * src/AbstractDiskWriter.cc
  3035. * src/PeerAbstractCommand.cc
  3036. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  3037. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  3038. setHaltRequested(true) to cancel download.
  3039. * src/PeerInteractionCommand.h
  3040. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3041. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  3042. socket from int to sock_t as sockets are unsigned in Windows.
  3043. For AsyncNameResolver, DownloadEngine, I did additional modification
  3044. for the portion of the code changed according to epoll support.
  3045. I defined sock_t in a2netcompat.h to use sock_t without including
  3046. SocketCore.h.
  3047. * src/AsyncNameResolver.cc
  3048. * src/AsyncNameResolver.h
  3049. * src/DownloadEngine.cc
  3050. * src/DownloadEngine.h
  3051. * src/SocketCore.cc
  3052. * src/SocketCore.h
  3053. * src/a2netcompat.h
  3054. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3055. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  3056. changes in the patch were applied.
  3057. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  3058. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  3059. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  3060. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3061. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  3062. a2io.h and common.h were modified.
  3063. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  3064. MinGW.
  3065. * src/common.h: Changed off_t to 64 bit in MinGW.
  3066. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3067. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3068. only a2netcompat.h is modified.
  3069. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  3070. directives.
  3071. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3072. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  3073. only gai_strerror.h is modified.
  3074. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  3075. winsock errors in MinGW.
  3076. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3077. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  3078. follow sources are applied.
  3079. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  3080. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  3081. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  3082. I included locale.h from Platform.cc.
  3083. * src/main.cc: Moved common setup/teardown code to Platform class.
  3084. * test/AllTest.cc: Use Platform class.
  3085. Set locale to C in AllTest.cc to prevent the messages to be localized.
  3086. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3087. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  3088. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  3089. * test/HttpRequestTest.cc: Casted to off_t where it should.
  3090. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3091. Applied Ross's aria2-0.13.2+1-mingw.patch and
  3092. aria2-0.13.2+1-mingw-2.patch.
  3093. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  3094. systems which don't have termious.h. I moved the directive inside of
  3095. if(isTTY) { ... clause so that line is wiped out without termious.h.
  3096. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  3097. anyway.
  3098. * src/asctime_r.h
  3099. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  3100. I added 2nd argument to the prototype declaration.
  3101. * src/StringFormat.cc: Get rid of vasprintf.
  3102. * src/getaddrinfo.h: Fixed constants.
  3103. * configure.ac: Added the check for asctime_r function.
  3104. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  3105. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3106. Added writable test for Socket when the sending message is in progress.
  3107. Usually the sending message is piece message. Without wriable check,
  3108. upload latency is dropped to more than 1sec.
  3109. * src/PeerInteractionCommand.cc
  3110. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3111. Create only requested files and files which shares a piece with
  3112. requested file in multi-torrent downloads. Directory structures are
  3113. also created in the same rule.
  3114. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  3115. DiskWriterEntry as in the previous implementation.
  3116. * src/MultiDiskWriter.cc
  3117. * src/MultiFileAllocationIterator.cc
  3118. * src/MultiFileAllocationIterator.h
  3119. * test/MultiFileAllocationIteratorTest.cc
  3120. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3121. Commented out -lprofiler
  3122. * src/Makefile.am
  3123. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3124. Bump up version number to 0.14.0b.
  3125. * src/configure.ac
  3126. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3127. Actively establish connection to peers in seeding, when peer cache
  3128. is not full and max upload speed limit is not reached.
  3129. * src/ActivePeerConnectionCommand.cc
  3130. * src/ActivePeerConnectionCommand.h
  3131. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3132. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  3133. to make room more fleshy, recently found peers.
  3134. Peer::_badConditionStartTime is not used anymore. Consider to remove
  3135. it.
  3136. * src/DefaultPeerStorage.cc
  3137. * test/DefaultPeerStorageTest.cc
  3138. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3139. Returns cached data only when the previous receiveHandshake() is called
  3140. with peek = true.
  3141. * src/PeerConnection.cc (receiveHandshake)
  3142. * src/PeerConnection.h (receiveHandshake)
  3143. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3144. Changed default value of -s option from 1 to 5.
  3145. Also max value of -s option is changed from 5 to 16.
  3146. * src/HelpItemFactory.cc
  3147. * src/OptionHandlerFactory.cc
  3148. * src/option_processing.cc
  3149. * src/usage_text.h
  3150. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3151. Changed -s options behavior. Now it means the number of connections
  3152. made simultaneously in each http/ftp download.
  3153. If 1 URL is specified, the behavior is the same with old implementation.
  3154. If -s N is given and more than N URLs are specified, first N URLs are
  3155. used and remaining URLs are used for backup. If less than N URLs are
  3156. specified, some of URLs are used more than once so that totally N
  3157. connections are made simultaneously.
  3158. * src/main.cc
  3159. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3160. Included missing iosfwd or ostream header.
  3161. * src/RequestGroupMan.cc
  3162. * src/TaggedItem.cc
  3163. * src/TaggedItem.h
  3164. * src/Util.cc
  3165. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3166. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  3167. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  3168. * src/HttpConnection.cc: Included missing sstream.
  3169. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3170. Added --bt-max-open-files option.
  3171. * src/DefaultPieceStorage.cc
  3172. * src/HelpItemFactory.cc
  3173. * src/MultiDiskAdaptor.cc
  3174. * src/MultiDiskAdaptor.h
  3175. * src/OptionHandlerFactory.cc
  3176. * src/option_processing.cc
  3177. * src/prefs.cc
  3178. * src/prefs.h
  3179. * src/usage_text.h
  3180. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3181. Fixed the bug that aria2 aborts when a path to a directory is given
  3182. in command-line.
  3183. * src/ProtocolDetector.cc
  3184. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3185. Limited the number files opened in each BitTorrent download. The default
  3186. value is 100. The option to change this value will be added.
  3187. * src/MultiDiskAdaptor.cc
  3188. * src/MultiDiskAdaptor.h
  3189. * src/MultiFileAllocationIterator.cc
  3190. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3191. Fixed the bug that HTTP downloads don't start with old libraries.
  3192. * src/HttpHeaderProcessor.cc
  3193. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3194. Use empty() instead of size() > 0.
  3195. * src/HttpConnection.cc
  3196. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3197. Drop connection if the incoming peer ID is the same with localhost's
  3198. one. The previous implementation drops connection when incoming peer's
  3199. IP address is the same with localhost's one.
  3200. * src/PeerListenCommand.cc
  3201. * src/DefaultBtInteractive.cc
  3202. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3203. Returns cached data without checking whether socket is readable
  3204. if the cache is available.
  3205. * src/PeerConnection.cc (receiveHandshake)
  3206. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3207. Included stdint.h
  3208. * src/common.h
  3209. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3210. Removed duplicate HAVE_GETTIMEOFDAY
  3211. * src/Makefile.am
  3212. * src/Makefile.in
  3213. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3214. Use interval as a minInterval when minInterval is not supplied.
  3215. * src/DefaultBtAnnounce.cc
  3216. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3217. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  3218. attempt is failed, then 2nd attempt get kicked out more quickly.
  3219. And it is now static const member of DefaultBtAnnounce.
  3220. * src/DefaultBtAnnounce.h
  3221. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3222. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  3223. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  3224. * src/ActivePeerConnectionCommand.cc
  3225. * src/BtConstants.h
  3226. * src/BtRuntime.h
  3227. * src/DHTGetPeersCommand.cc
  3228. * src/DefaultBtAnnounce.cc
  3229. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  3230. BtRuntime::MAX_PEERS.
  3231. * src/DefaultPeerStorage.h
  3232. * src/InitiatorMSEHandshakeCommand.cc
  3233. * src/PeerInitiateConnectionCommand.cc
  3234. * src/PeerInteractionCommand.cc
  3235. * src/PeerReceiveHandshakeCommand.cc
  3236. * src/TrackerWatcherCommand.cc
  3237. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3238. Always Connect to _numNewConnection
  3239. * src/ActivePeerConnectionCommand.cc
  3240. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3241. Made `begin' unsigned int.
  3242. * src/GrowSegment.h
  3243. * src/Piece.cc
  3244. * src/Piece.h
  3245. * src/PiecedSegment.cc
  3246. * src/PiecedSegment.h
  3247. * src/Segment.h
  3248. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3249. Calculate piece hash when data is arrived if the data is arrived in
  3250. order. This removes additional read operation for hash calculation.
  3251. If the data is arrived in out of order, the hash is calucated when the
  3252. piece is completed. This is the same behavior as the old implementation.
  3253. * src/BtPieceMessage.cc
  3254. * src/DefaultBtProgressInfoFile.cc
  3255. * src/DefaultPieceStorage.cc
  3256. * src/DownloadCommand.cc
  3257. * src/DownloadCommand.h
  3258. * src/DownloadEngine.cc
  3259. * src/GrowSegment.cc
  3260. * src/GrowSegment.h
  3261. * src/Piece.cc
  3262. * src/Piece.h
  3263. * src/PiecedSegment.cc
  3264. * src/PiecedSegment.h
  3265. * src/Segment.h
  3266. * test/PieceTest.cc
  3267. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3268. Try to keep the ordering of outgoing piece message.
  3269. * src/DefaultBtMessageDispatcher.cc
  3270. (DefaultBtMessageDispatcher::sendMessages)
  3271. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3272. Fixed busy loop when error/hup epoll events occur.
  3273. * src/AbstractCommand.cc
  3274. * src/PeerAbstractCommand.cc
  3275. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3276. Added --bt-request-peer-speed-limit option, which was a constant
  3277. SLOW_SPEED_THRESHOLD.
  3278. * src/ActivePeerConnectionCommand.cc
  3279. * src/ActivePeerConnectionCommand.h
  3280. * src/BtConstants.h
  3281. * src/HelpItemFactory.cc
  3282. * src/OptionHandlerFactory.cc
  3283. * src/PeerReceiveHandshakeCommand.cc
  3284. * src/option_processing.cc
  3285. * src/prefs.cc
  3286. * src/prefs.h
  3287. * src/usage_text.h
  3288. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3289. Removed repeated call of getTopDirPath(). Instead, call it once and
  3290. cache the result.
  3291. * src/MultiDiskAdaptor.cc
  3292. * src/MultiDiskAdaptor.h
  3293. (mkdir, openFile, initAndOpenFile, openExistingFile)
  3294. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3295. Fixed compile error on debian etch.
  3296. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  3297. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  3298. it is undefined.
  3299. * src/Util.cc (ULLONG_MAX)
  3300. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3301. Added epoll support. Use epoll if it is available. If not, use select.
  3302. When async dns is enabled in compile time, epoll support is enabled
  3303. only when aria2 is built with c-ares. This condition statement is
  3304. defined in a2io.h.
  3305. Currently aria2 supports both c-ares and ares, but ares is maintained
  3306. for quite a while and debian already has c-ares package, ares support
  3307. will be dropped in the future version.
  3308. * configure.ac
  3309. * src/AbstractCommand.cc
  3310. * src/AsyncNameResolver.cc
  3311. * src/AsyncNameResolver.h
  3312. * src/Command.cc
  3313. * src/Command.h
  3314. * src/DownloadEngine.cc
  3315. * src/DownloadEngine.h
  3316. * src/PeerAbstractCommand.cc
  3317. * src/SocketCore.cc
  3318. * src/SocketCore.h
  3319. * src/a2io.h
  3320. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3321. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  3322. directive.
  3323. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3324. Do not do write operation to /dev/null file.
  3325. * src/LogFactory.cc
  3326. * src/SimpleLogger.cc
  3327. Replaced vasprintf with vsnprintf
  3328. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3329. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3330. * src/BtRequestMessage.cc
  3331. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  3332. for segmentation fault caused by previous commit.
  3333. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3334. Reduced the usage of gettimeofday().
  3335. * src/DefaultBtMessageDispatcher.cc
  3336. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  3337. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3338. * src/RequestSlot.cc
  3339. * src/RequestSlot.h
  3340. (RequestSlot::isTimeout)
  3341. Made RequestSlot have a reference to Piece object to avoid find
  3342. Piece repeatedly.
  3343. * src/DefaultBtMessageDispatcher.cc
  3344. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  3345. * src/RequestSlot.cc
  3346. * src/RequestSlot.h
  3347. (RequestSlot::getPiece)
  3348. * test/DefaultBtMessageDispatcherTest.cc
  3349. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3350. * src/TimeA2.cc
  3351. * src/TimeA2.h
  3352. (Time::difference): New function.
  3353. (Time::elapsed): Done optimization.
  3354. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  3356. directive.
  3357. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3358. * src/option_processing.cc: Added missing `defined' keyword to #if
  3359. directive.
  3360. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3361. Bump up version number to 0.13.2+1
  3362. * src/configure.ac
  3363. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3364. Refactored broken outstanding piece handling.
  3365. * src/DefaultPieceStorage.cc
  3366. * src/DefaultPieceStorage.h
  3367. * src/Piece.cc
  3368. * src/Piece.h
  3369. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3370. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  3371. name collision of static variable and predefined macro.
  3372. * src/BtContext.cc
  3373. * src/BtContext.h
  3374. * src/CookieBoxFactory.cc
  3375. * src/CookieBoxFactory.h
  3376. * src/CookieParser.cc
  3377. * src/CookieParser.h
  3378. * src/DefaultBtContext.cc
  3379. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3380. * src/RequestGroup.cc
  3381. (RequestGroup::createInitialCommand): Use empty() instead of size().
  3382. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3383. * Release 0.13.2
  3384. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3385. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  3386. * po/fr.po
  3387. * po/ja.po
  3388. * po/aria2c.pot
  3389. * po/*.po
  3390. * po/*.gmo
  3391. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3392. Bump up version number to 0.13.2
  3393. * src/configure.ac
  3394. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3395. Refactord.
  3396. * src/RequestGroupMan.cc
  3397. (removeStoppedGroup)
  3398. (fillRequestGroupFromReserver)
  3399. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3400. Fixed compile error on Ubuntu.
  3401. * src/BtPieceMessage.cc
  3402. * src/MessageDigestHelper.cc
  3403. * src/Util.cc
  3404. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3405. Fixed compile error when configured with --disable-bittorrent
  3406. * test/DownloadHandlerFactoryTest.cc
  3407. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3408. Done make update-po
  3409. * po/aria2c.pot
  3410. * po/*.po
  3411. * po/*.gmo
  3412. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3413. Bump up version number to 0.13.2rc.
  3414. * src/configure.ac
  3415. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3416. Made option name bold. Updated SYNOPSIS to make it more readable.
  3417. * doc/aria2c.1.txt
  3418. * doc/aria2c.1
  3419. * doc/aria2c.1.html
  3420. * src/version_usage.cc
  3421. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3422. Refactored. Use std::string instead of size and char*.
  3423. * Data.cc
  3424. * Data.h
  3425. * test/Data.cc
  3426. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3427. Added trimSelf(). Rewritten trim() to use trimSelf().
  3428. * Util.cc
  3429. * Util.h
  3430. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3431. * src/ChunkChecksum.h (getChecksum): Return const reference.
  3432. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3433. Fixed compile error when configured with --disable-metalink.
  3434. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  3435. * test/FeatureConfigTest.cc
  3436. * test/DownloadHandlerFactoryTest.cc
  3437. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3438. Fixed compile error when configured with --without-gnutls
  3439. --without-openssl
  3440. * src/main.cc
  3441. * test/DefaultBtProgressInfoFileTest.cc
  3442. * test/SegmentManTest.cc
  3443. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3444. Fixed compile error with OpenSSL.
  3445. * src/IteratableChunkChecksumValidator.cc
  3446. * src/LibsslDHKeyExchange.h
  3447. * src/MessageDigestHelper.cc
  3448. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3449. Revert the default value of --max-concurrent-downloads to 5.
  3450. Revert the default value of --metalink-servers to 5.
  3451. Man pages was also updated.
  3452. * src/option_processing.cc
  3453. * doc/aria2c.1.txt
  3454. * doc/aria2c.1.html
  3455. * doc/aria2c.1
  3456. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3457. Returns const reference:
  3458. DownloadContext::getPieceHash, DownloadContext::getName,
  3459. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  3460. BtContext::getInfoHashAsString,
  3461. * src/BtContext.h
  3462. * src/DefaultBtContext.cc
  3463. * src/DefaultBtContext.h
  3464. * src/DownloadContext.h
  3465. * src/SingleFileDownloadContext.h
  3466. * test/MockBtContext.h
  3467. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3468. * src/RequestGroup.h (getDir): Removed.
  3469. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3470. Returns const reference. The internal urlencode function was optimized
  3471. a little bit.
  3472. * src/Request.cc
  3473. * src/Request.h
  3474. * src/HttpRequest.cc
  3475. * src/HttpRequest.h
  3476. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3477. Defined option name and possible values as std::string to reduce
  3478. temporary string object creation in runtime.
  3479. * src/HelpItemFactory.cc
  3480. * src/LogFactory.cc
  3481. * src/Option.cc
  3482. * src/OptionHandlerFactory.cc
  3483. * src/option_processing.cc
  3484. * src/prefs.cc
  3485. * src/prefs.h
  3486. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3487. Return const reference.
  3488. * src/DownloadHandlerConstants.cc
  3489. * src/DownloadHandlerConstants.h
  3490. (getMetalinkExtensions)
  3491. (getMetalinkContentTypes)
  3492. (getBtExtensions)
  3493. (getBtContentTypes)
  3494. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3495. * src/HttpHeader.cc (get): Rewritten.
  3496. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3497. Make HttpHeader::getFirst(...) return const reference.
  3498. * src/HttpHeader.cc
  3499. * src/HttpHeader.h
  3500. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3501. Use Option::getAsBool(...) instead of Option::get(...) and compare
  3502. it with V_TRUE.
  3503. * src/DefaultPieceStorage.cc
  3504. * src/DownloadCommand.cc
  3505. * src/FtpNegotiationCommand.cc
  3506. * src/HttpRequest.cc
  3507. * src/InitiateConnectionCommand.cc
  3508. * src/RequestGroup.cc
  3509. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3510. Made Option::get(...) return const reference of std::string.
  3511. * src/Option.cc
  3512. * src/Option.h
  3513. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3514. Replaced std:copy with insert.
  3515. * src/DefaultBtMessageDispatcher.cc
  3516. * src/DefaultPieceStorage.cc
  3517. * src/DownloadEngineFactory.cc
  3518. * src/RequestGroup.cc
  3519. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3520. Included SocketCore.h to fix compiler warning.
  3521. * src/InitiateConnectionCommand.cc
  3522. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3523. Put piece selection strategy algorithm to RarestPieceSelector class,
  3524. Added a switch to choose whether randomized selection so that unit
  3525. tests emit same results in, possibly, win32.
  3526. * src/DefaultPieceStorage.cc
  3527. * src/DefaultPieceStorage.h
  3528. * src/RarestPieceSelector.cc
  3529. * src/RarestPieceSelector.h
  3530. * test/DefaultPieceStorageTest.cc
  3531. * test/RarestPieceSelectorTest.cc
  3532. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3533. Don't pool connection if HTTP proxy is enabled.
  3534. * src/FtpFinishDownloadCommand.cc
  3535. * src/FtpNegotiationCommand.cc
  3536. * src/HttpSkipResponseCommand.cc
  3537. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3538. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  3539. * src/AbstractCommand.cc
  3540. * src/AbstractCommand.h
  3541. * src/ActivePeerConnectionCommand.cc
  3542. * src/FtpInitiateConnectionCommand.cc
  3543. * src/HttpInitiateConnectionCommand.cc
  3544. * src/InitiateConnectionCommandFactory.cc
  3545. * src/PeerAbstractCommand.cc
  3546. * src/PeerAbstractCommand.h
  3547. * src/PeerInitiateConnectionCommand.cc
  3548. * src/TrackerWatcherCommand.cc
  3549. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3550. Sort RequestSlot in ascending order and manipulate them using
  3551. lower_bound.
  3552. * src/DefaultBtMessageDispatcher.cc
  3553. * src/DefaultBtMessageDispatcher.h
  3554. (getMessageQueue): Added const qualifier.
  3555. (getRequestSlots): Added const qualifier.
  3556. (sendMessages): Use empty() instead of size().
  3557. (doCancelSendingPieceAction): Use HandleEvent object.
  3558. (doAbortOutstandingRequestAction): Rewritten.
  3559. (doChokedAction): Rewritten.
  3560. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  3561. (isOutstandingRequest): Rewritten.
  3562. (getOutstandingRequest): Rewritten.
  3563. (removeOutstandingRequest): Rewritten.
  3564. (addOutstandingRequest): Rewritten.
  3565. * src/RequestSlot.cc
  3566. * src/RequestSlot.h
  3567. (operator=): Rewritten.
  3568. (operator!=): New function.
  3569. (operator<): New function.
  3570. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3571. * src/DefaultBtRequestFactory.cc
  3572. (doChokedAction): Rewritten.
  3573. (removeCompletedPiece): Rewritten.
  3574. (removeTargetPiece): Rewritten.
  3575. (createRequestMessages): Added the debug log.
  3576. (createRequestMessagesOnEndGame: Added the debug log.
  3577. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3578. Added the debug log message.
  3579. * src/BtPieceMessage.cc (doReceivedAction)
  3580. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3581. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  3582. used lower_bound to process them rather than linear search.
  3583. * src/DHTPeerAnnounceStorage.cc
  3584. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3585. Call subtractPieceStats from ~PeerInteractionCommand only when the
  3586. peer has at least one completed piece.
  3587. * src/Peer.cc
  3588. * src/Peer.h
  3589. * src/PeerInteractionCommand.cc
  3590. * src/PeerSessionResource.cc
  3591. * src/PeerSessionResource.h
  3592. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3593. Removed unnecessary sorting
  3594. * src/DefaultPieceStorage (DefaultPieceStorage)
  3595. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3596. Rewritten the portion of the code that mangaes allowed fast indexes.
  3597. * src/PeerSessionResource.cc
  3598. * src/PeerSessionResource.h
  3599. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3600. Removed the invalid string including '\r' from ru.po and
  3601. did make update-po.
  3602. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3603. Added --log-level and --summary-interval to man page.
  3604. * doc/aria2c.1.txt
  3605. * doc/aria2c.1.html
  3606. * doc/aria2c.1
  3607. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3608. Added --log-level option to specify log level. Log messages under
  3609. the specified level are not output. Default value is `debug'.
  3610. * src/HelpItemFactory.cc
  3611. * src/LogFactory.cc
  3612. * src/LogFactory.h
  3613. * src/Logger.h
  3614. * src/OptionHandlerFactory.cc
  3615. * src/SimpleLogger.cc
  3616. * src/SimpleLogger.h
  3617. * src/main.cc
  3618. * src/option_processing.cc
  3619. * src/prefs.h
  3620. * src/usage_text.h
  3621. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3622. Print download progress summary of all parallel downloads in specified
  3623. interval, default 60 secs. While aria2 could download several files
  3624. in parallel (see -j option), it displayed just first download progress,
  3625. and the other downloads are hidden from the users. This new feature
  3626. prints all downloads currently in-progress to the console so that you
  3627. can check the status of all downloads. The interval can be adjusted
  3628. by --summary-interval option.
  3629. The progress readout is now cut so that all fits in the one line of
  3630. console.
  3631. * src/ConsoleStatCalc.cc
  3632. * src/ConsoleStatCalc.h
  3633. * src/HelpItemFactory.cc
  3634. * src/OptionHandlerFactory.cc
  3635. * src/RequestGroupMan.cc
  3636. * src/RequestGroupMan.h
  3637. * src/main.cc
  3638. * src/option_processing.cc
  3639. * src/prefs.h
  3640. * src/usage_text.h
  3641. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3642. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  3643. * src/DownloadEngine.cc (DownloadEngine)
  3644. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3645. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  3646. defined.
  3647. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  3648. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3649. Use erase+lower_bound+insert instead of sort.
  3650. * src/DefaultPieceStorage.cc (addPieceStats)
  3651. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3652. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  3653. * src/A2STR.cc
  3654. * src/A2STR.h
  3655. * src/OptionParser.cc (parse)
  3656. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3657. Defined fake filename `[tracker.announce]' as static const std::string.
  3658. * src/TrackerWatcherCommand.cc (createRequestGroup)
  3659. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3660. Defined default filename `index.html' as static const std::string
  3661. * src/SingleFileDownloadContext.cc
  3662. * src/SingleFileDownloadContext.h
  3663. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3664. Defined "[MEMORY]" as static const std::string.
  3665. * src/MemoryBufferPreDownloadHandler.cc (execute)
  3666. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3667. Defined control file's version number as static const std::string.
  3668. * src/DefaultBtProgressInfoFile.cc
  3669. * src/DefaultBtProgressInfoFile.h
  3670. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3671. Use Request::METHOD_GET
  3672. * src/RequestGroup.cc (createNextCommandWithAdj)
  3673. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3674. Defined "OK", "ERR", "INPR" as static const std::string
  3675. * src/RequestGroupMan.cc (showDownloadResults)
  3676. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3677. Defined default client used in extended handshake as static const
  3678. std::string
  3679. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  3680. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3681. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  3682. * src/HttpConnection.cc (eraseConfidentialInfo)
  3683. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3684. Defined default ftp user and password as static const std::string
  3685. * src/AuthConfigFactory.cc
  3686. * src/AuthConfigFactory.h
  3687. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3688. Defined strings used in netrc as static const std::string
  3689. * src/Netrc.cc
  3690. * src/Netrc.h
  3691. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3692. Defined HTTP status as static const std::string
  3693. * src/AbstractProxyResponseCommand.cc
  3694. * src/HttpHeader.cc
  3695. * src/HttpHeader.h
  3696. * src/HttpResponse.cc
  3697. * src/HttpResponseCommand.cc
  3698. * src/HttpSkipResponseCommand.cc
  3699. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3700. Defined "\r\n", "A", "I" as static const std::string
  3701. * src/A2STR.cc
  3702. * src/A2STR.h
  3703. * src/FtpConnection.cc
  3704. * src/FtpConnection.h
  3705. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3706. Added COLON_C(".") and used it in Request::parseUrl()
  3707. * src/A2STR.cc
  3708. * src/A2STR.h
  3709. * src/Request.cc (parseUrl)
  3710. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3711. Changed the type of padName from `const std::string&' to `const char*'.
  3712. * src/MSEHandshake.cc (verifyPadLength)
  3713. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3714. Defined "sha1" as static const std::string.
  3715. * src/MetalinkParserController.cc
  3716. * src/MetalinkParserController.h
  3717. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3718. Defined message digest algorithm name as static const std::string
  3719. * src/DHTTokenTracker.cc
  3720. * src/DHTUtil.cc
  3721. * src/DefaultBtContext.cc
  3722. * src/MSEHandshake.cc
  3723. * src/MessageDigestHelper.cc
  3724. * src/Peer.cc
  3725. * src/messageDigest.cc
  3726. * src/messageDigest.h
  3727. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3728. Made string literals used in SAX parser static const std::string.
  3729. * src/FileMetalinkParserState.cc
  3730. * src/FileMetalinkParserState.h
  3731. * src/FilesMetalinkParserState.cc
  3732. * src/FilesMetalinkParserState.h
  3733. * src/InitialMetalinkParserState.cc
  3734. * src/InitialMetalinkParserState.h
  3735. * src/MetalinkMetalinkParserState.cc
  3736. * src/MetalinkMetalinkParserState.h
  3737. * src/PiecesMetalinkParserState.cc
  3738. * src/PiecesMetalinkParserState.h
  3739. * src/ResourcesMetalinkParserState.cc
  3740. * src/ResourcesMetalinkParserState.h
  3741. * src/VerificationMetalinkParserState.cc
  3742. * src/VerificationMetalinkParserState.h
  3743. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3744. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  3745. * src/A2STR.cc
  3746. * src/A2STR.h
  3747. * src/File.cc
  3748. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3749. Defined static const std::string IP("ip"), PORT("port") and use them
  3750. instead of string literals.
  3751. * src/DefaultPeerListProcessor.cc
  3752. * src/DefaultPeerListProcessor.h
  3753. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3754. Made string literals for torrent file processing static const
  3755. std::string.
  3756. * src/BtContext.cc
  3757. * src/BtContext.h
  3758. * src/DefaultBtContext.cc
  3759. * src/DefaultBtContext.h
  3760. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3761. Made string literal for tracker response static const std::string
  3762. * src/BtAnnounce.cc
  3763. * src/BtAnnounce.h
  3764. * src/DefaultBtAnnounce.cc
  3765. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3766. Use DHTMessage::T instead of "t".
  3767. * src/DHTMessageTracker.cc (messageArrived)
  3768. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3769. Made keyName static const. Made trimmed charset static const
  3770. std::string.
  3771. * src/Util.cc (getContentDispositionFilename)
  3772. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3773. Made USER_AGENT const. Made "/" static const std::string.
  3774. * src/A2STR.cc
  3775. * src/A2STR.h
  3776. * src/HttpRequest.cc
  3777. * src/HttpRequest.h
  3778. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3779. Made string listeral to static const std::string:
  3780. "Content-Range", "Content-Length"
  3781. * src/HttpHeader.cc
  3782. * src/HttpHeader.h
  3783. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3784. Made string listeral to static const std::string.
  3785. * src/HttpConnection.cc
  3786. * src/HttpHeader.cc
  3787. * src/HttpHeader.h
  3788. * src/HttpResponse.cc
  3789. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3790. Made string listeral to static const std::string.
  3791. * src/A2STR.cc
  3792. * src/A2STR.h
  3793. * src/SimpleLogger.cc
  3794. * src/SimpleLogger.h
  3795. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3796. Made string literal to static const std::string.
  3797. Rewritten CookieParser::setField.
  3798. * src/A2STR.cc
  3799. * src/A2STR.h
  3800. * src/CookieBoxFactory.cc
  3801. * src/CookieBoxFactory.h
  3802. * src/CookieParser.cc
  3803. * src/CookieParser.h
  3804. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3805. Made string literal to static const std::string
  3806. * src/DHTAbstractMessage.cc
  3807. * src/DHTAnnouncePeerMessage.cc
  3808. * src/DHTAnnouncePeerMessage.h
  3809. * src/DHTAnnouncePeerReplyMessage.cc
  3810. * src/DHTAnnouncePeerReplyMessage.h
  3811. * src/DHTFindNodeMessage.cc
  3812. * src/DHTFindNodeMessage.h
  3813. * src/DHTFindNodeReplyMessage.cc
  3814. * src/DHTFindNodeReplyMessage.h
  3815. * src/DHTGetPeersMessage.cc
  3816. * src/DHTGetPeersMessage.h
  3817. * src/DHTGetPeersReplyMessage.cc
  3818. * src/DHTGetPeersReplyMessage.h
  3819. * src/DHTMessage.cc
  3820. * src/DHTMessage.h
  3821. * src/DHTMessageFactoryImpl.cc
  3822. * src/DHTMessageReceiver.cc
  3823. * src/DHTPingMessage.cc
  3824. * src/DHTPingMessage.h
  3825. * src/DHTPingReplyMessage.cc
  3826. * src/DHTPingReplyMessage.h
  3827. * src/DHTQueryMessage.cc
  3828. * src/DHTQueryMessage.h
  3829. * src/DHTResponseMessage.cc
  3830. * src/DHTResponseMessage.h
  3831. * src/DHTUnknownMessage.cc
  3832. * src/DHTUnknownMessage.h
  3833. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3834. Made string literal to static const std::string
  3835. * src/BtChokeMessage.cc (toString)
  3836. * src/BtHaveAllMessage.cc (toString)
  3837. * src/BtHaveNoneMessage.cc (toString)
  3838. * src/BtInterestedMessage.cc (toString)
  3839. * src/BtNotInterestedMessage.cc (toString)
  3840. * src/BtUnchokeMessage.cc (toString)
  3841. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3842. Replaced "" with static const variable A2STR::NIL.
  3843. Replaced string comparison against "" with std::string::empty().
  3844. Added PROTO_* to Request class and use them as a protocol string
  3845. constant.
  3846. Made "started", "stopped", "completed" static const variable in
  3847. AnnounceList class.
  3848. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3849. Updated translations. Great thanks to translators.
  3850. * po/ca.po
  3851. * po/de.po
  3852. * po/fr.po
  3853. * po/it.po
  3854. * po/ja.po
  3855. * po/ru.po
  3856. * po/zh_CN.po
  3857. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3858. Updated man page; categorized options and fixed typo.
  3859. * doc/aria2c.1.txt
  3860. * doc/aria2c.1.html
  3861. * doc/aria2c.1
  3862. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3863. Removed const ref
  3864. * src/MetalinkEntry.cc (AddProtocolPreference)
  3865. * src/RequestGroup.cc (FindServerHostByHostname)
  3866. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3867. Rewritten Accept-Features handling.
  3868. * src/HttpRequestCommand.cc (createHttpRequest)
  3869. * src/a2functional.h
  3870. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Changed method signature:
  3872. DHTAbstractNodeLookupTask::toEntries
  3873. * src/DHTAbstractNodeLookupTask.cc
  3874. * src/DHTAbstractNodeLookupTask.h
  3875. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3876. Changed method signature:
  3877. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  3878. * src/BtContext.h
  3879. * src/DefaultBtContext.cc
  3880. * src/DefaultBtContext.h
  3881. * src/DefaultBtInteractive.cc
  3882. * test/DefaultBtContextTest.cc
  3883. * test/MockBtContext.h
  3884. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3885. Changed method signature:
  3886. MultiFileAllocationIterator::makeDiskWriterEntries
  3887. * src/MultiFileAllocationIterator.cc
  3888. * src/MultiFileAllocationIterator.h
  3889. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3890. Changed method sinature:
  3891. MetalinkEntry::toFileEntry,
  3892. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  3893. Metalinker::queryEntry
  3894. * src/Metalink2RequestGroup.cc
  3895. * src/MetalinkEntry.cc
  3896. * src/MetalinkEntry.h
  3897. * src/MetalinkHelper.cc
  3898. * src/MetalinkHelper.h
  3899. * src/Metalinker.cc
  3900. * src/Metalinker.h
  3901. * src/main.cc
  3902. * test/MetalinkHelperTest.cc
  3903. * test/MetalinkerTest.cc
  3904. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3905. Changed method sinature:
  3906. RequestGroup::getURIs
  3907. * src/RequestGroup.cc
  3908. * src/RequestGroup.h
  3909. * test/Metalink2RequestGroupTest.cc
  3910. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3911. Changed method signature:
  3912. PeerListProcessor::extractPeer
  3913. * src/CompactPeerListProcessor.cc
  3914. * src/CompactPeerListProcessor.h
  3915. * src/DefaultBtAnnounce.cc
  3916. * src/DefaultPeerListProcessor.cc
  3917. * src/DefaultPeerListProcessor.h
  3918. * src/DelegatingPeerListProcessor.cc
  3919. * src/DelegatingPeerListProcessor.h
  3920. * src/PeerListProcessor.h
  3921. * src/UTPexExtensionMessage.cc
  3922. * test/DefaultPeerListProcessorTest.cc
  3923. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3924. Changed method signature:
  3925. BtRequestFactory::createRequestMessages,
  3926. BtRequestFactory::createRequestMessagesOnEndGame
  3927. * src/BtRequestFactory.h
  3928. * src/DefaultBtInteractive.cc
  3929. * src/DefaultBtRequestFactory.cc
  3930. * src/DefaultBtRequestFactory.h
  3931. * test/DefaultBtRequestFactoryTest.cc
  3932. * test/MockBtRequestFactory.h
  3933. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3934. Changed method signature:
  3935. PieceStorage::getInFlightPieces
  3936. * src/DefaultBtProgressInfoFile.cc
  3937. * src/DefaultPieceStorage.cc
  3938. * src/DefaultPieceStorage.h
  3939. * src/PieceStorage.h
  3940. * src/UnknownLengthPieceStorage.cc
  3941. * src/UnknownLengthPieceStorage.h
  3942. * test/DefaultBtProgressInfoFileTest.cc
  3943. * test/MockPieceStorage.h
  3944. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3945. Changed method signature:
  3946. PostDownloadHandler::getNextRequestGroups
  3947. Metalink2RequestGroup::generate
  3948. RequestGroup::postDownloadProcessing
  3949. * src/BtPostDownloadHandler.cc
  3950. * src/BtPostDownloadHandler.h
  3951. * src/Metalink2RequestGroup.cc
  3952. * src/Metalink2RequestGroup.h
  3953. * src/MetalinkPostDownloadHandler.cc
  3954. * src/MetalinkPostDownloadHandler.h
  3955. * src/PostDownloadHandler.h
  3956. * src/RequestGroup.cc
  3957. * src/RequestGroup.h
  3958. * src/RequestGroupMan.cc
  3959. * src/main.cc
  3960. * test/BtPostDownloadHandlerTest.cc
  3961. * test/Metalink2RequestGroupTest.cc
  3962. * test/MetalinkPostDownloadHandlerTest.cc
  3963. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3964. Rewritten AccRequestGroup
  3965. * src/main.cc
  3966. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3967. Rewritten.
  3968. * src/TaggedItem.cc (toTagString)
  3969. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3970. Rewritten Accept-Features handling.
  3971. * src/HttpRequestCommand.cc (createHttpRequest)
  3972. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3973. Rewritten accept types handling.
  3974. * HttpRequest.cc (createRequest)
  3975. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3976. Rewritten
  3977. * src/FeatureConfig.cc (featureSummary)
  3978. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3979. Changed method signature:
  3980. PeerStorage::getActivePeers
  3981. * src/DHTPeerAnnounceEntry.cc
  3982. * src/DefaultPeerStorage.cc
  3983. * src/DefaultPeerStorage.h
  3984. * src/PeerStorage.h
  3985. * test/DefaultPeerStorageTest.cc
  3986. * test/MockPeerStorage.h
  3987. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3988. Changed method signature:
  3989. DHTPeerAnnounceStorage::getPeers,
  3990. DHTPeerAnnounceEntry::getPeers
  3991. * src/DHTGetPeersMessage.cc
  3992. * src/DHTPeerAnnounceEntry.cc
  3993. * src/DHTPeerAnnounceEntry.h
  3994. * src/DHTPeerAnnounceStorage.cc
  3995. * src/DHTPeerAnnounceStorage.h
  3996. * test/DHTAnnouncePeerMessageTest.cc
  3997. * test/DHTPeerAnnounceEntryTest.cc
  3998. * test/DHTPeerAnnounceStorageTest.cc
  3999. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4000. Changed method signature:
  4001. NameResolver::resolve
  4002. * src/DHTEntryPointNameResolveCommand.cc
  4003. * src/InitiateConnectionCommand.cc
  4004. * src/NameResolver.cc
  4005. * src/NameResolver.h
  4006. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4007. Changed method signature:
  4008. PieceStorage::getAdvertisedPieceIndexes
  4009. * src/DefaultBtInteractive.cc
  4010. * src/DefaultPieceStorage.cc
  4011. * src/DefaultPieceStorage.h
  4012. * src/PieceStorage.h
  4013. * src/UnknownLengthPieceStorage.h
  4014. * test/MockPieceStorage.h
  4015. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4016. Changed method signature:
  4017. SegmentMan::getInFlightSegment
  4018. * src/AbstractCommand.cc
  4019. * src/SegmentMan.cc
  4020. * src/SegmentMan.h
  4021. * test/SegmentManTest.cc
  4022. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4023. Changed method signature:
  4024. DHTAbstractNodeLookupTask::getNodesFromMessage
  4025. * src/DHTAbstractNodeLookupTask.cc
  4026. * src/DHTAbstractNodeLookupTask.h
  4027. * src/DHTNodeLookupTask.cc
  4028. * src/DHTNodeLookupTask.h
  4029. * src/DHTPeerLookupTask.cc
  4030. * src/DHTPeerLookupTask.h
  4031. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4032. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  4033. * src/AbstractCommand.cc
  4034. * src/BtCheckIntegrityEntry.cc
  4035. * src/BtCheckIntegrityEntry.h
  4036. * src/BtFileAllocationEntry.cc
  4037. * src/BtFileAllocationEntry.h
  4038. * src/BtSetup.cc
  4039. * src/BtSetup.h
  4040. * src/CheckIntegrityCommand.cc
  4041. * src/CheckIntegrityEntry.h
  4042. * src/ChecksumCheckIntegrityEntry.cc
  4043. * src/ChecksumCheckIntegrityEntry.h
  4044. * src/DHTSetup.cc
  4045. * src/DHTSetup.h
  4046. * src/DownloadEngine.cc
  4047. * src/FileAllocationCommand.cc
  4048. * src/FileAllocationEntry.h
  4049. * src/RequestGroup.cc
  4050. * src/RequestGroup.h
  4051. * src/RequestGroupMan.cc
  4052. * src/RequestGroupMan.h
  4053. * src/StreamCheckIntegrityEntry.cc
  4054. * src/StreamCheckIntegrityEntry.h
  4055. * src/StreamFileAllocationEntry.cc
  4056. * src/StreamFileAllocationEntry.h
  4057. * src/TrackerWatcherCommand.cc
  4058. * src/a2functional.h
  4059. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4060. Changed method signature:
  4061. BNode::findClosestKNodes, BNode:: enumerateBucket,
  4062. DHTBucket::getGoodNodes,
  4063. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  4064. * src/BNode.cc
  4065. * src/BNode.h
  4066. * src/DHTAbstractNodeLookupTask.cc
  4067. * src/DHTAutoSaveCommand.cc
  4068. * src/DHTBucket.cc
  4069. * src/DHTBucket.h
  4070. * src/DHTBucketRefreshTask.cc
  4071. * src/DHTFindNodeMessage.cc
  4072. * src/DHTGetPeersMessage.cc
  4073. * src/DHTRoutingTable.cc
  4074. * src/DHTRoutingTable.h
  4075. * test/BNodeTest.cc
  4076. * test/DHTBucketTest.cc
  4077. * test/DHTRoutingTableTest.cc
  4078. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4079. In piece selection functions, Pass std::deque<...> by reference rather
  4080. than returning it.
  4081. * src/BitfieldMan.cc
  4082. * src/BitfieldMan.h
  4083. * src/DefaultBtRequestFactory.cc
  4084. * src/DefaultPieceStorage.cc
  4085. * src/Piece.cc
  4086. * src/Piece.h
  4087. * test/BitfieldManTest.cc
  4088. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4089. Implemented rarest piece first piece selection strategy.
  4090. * src/AbstractBtMessage.cc
  4091. * src/AbstractBtMessage.h
  4092. * src/BitfieldMan.cc
  4093. * src/BitfieldMan.h
  4094. * src/BtBitfieldMessage.cc
  4095. * src/BtHaveAllMessage.cc
  4096. * src/BtHaveMessage.cc
  4097. * src/DefaultPieceStorage.cc
  4098. * src/DefaultPieceStorage.h
  4099. * src/PeerInteractionCommand.cc
  4100. * src/PieceStorage.h
  4101. * src/UnknownLengthPieceStorage.h
  4102. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4103. Rewritten readData and writeData.
  4104. * src/MultiDiskAdaptor.cc
  4105. * src/MultiDiskAdaptor.h
  4106. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4107. Move \n out of the message "Usage: ...".
  4108. * src/version_usage.cc
  4109. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4110. Bump up version number to 0.13.2b.
  4111. * configure.ac
  4112. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4113. Added const qualifier to argument Exception& e.
  4114. * src/Logger.h
  4115. * src/SimpleLogger.cc
  4116. * src/SimpleLogger.h
  4117. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4118. Pool connection when CWD, SIZE command fails.
  4119. * src/FtpNegotiationCommand.cc
  4120. * src/FtpNegotiationCommand.h
  4121. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4122. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  4123. * src/HttpResponseCommand.cc
  4124. * src/HttpSkipResponseCommand.cc
  4125. * src/HttpSkipResponseCommand.h
  4126. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4127. Pool connection when a server returns 4xx, 5xx responses.
  4128. * src/HttpNullDownloadCommand.cc
  4129. * src/HttpNullDownloadCommand.h
  4130. * src/HttpResponse.cc
  4131. * src/HttpResponse.h
  4132. * src/HttpResponseCommand.cc
  4133. * src/HttpResponseCommand.h
  4134. * test/HttpResponseTest.cc
  4135. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4136. Print usage when no URL is specifed or bad command-line option is
  4137. specified.
  4138. * src/HelpItemFactory.cc
  4139. * src/help_tags.h
  4140. * src/option_processing.cc
  4141. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4142. Removed duplicate log message.
  4143. * src/AbstractCommand.cc (asyncResolveHostname)
  4144. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4145. Updated man page: --async-dns and --ftp-reuse-connection were added.
  4146. Changed -j option's default value from 5 to 1.
  4147. Added new examples using protocol auto detection feature.
  4148. Removed -T, -M usage where it can be omitted.
  4149. * doc/aria2c.1.txt
  4150. * doc/aria2c.1.html
  4151. * doc/aria2c.1.txt
  4152. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4153. Updated command-line usage text, so that it tells users that they
  4154. can specify any number of torrent files and metalink files in
  4155. command-line.
  4156. * src/version_usage.cc
  4157. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4158. Changed the default value of -j option to 1.
  4159. * src/HelpItemFactory.cc
  4160. * src/option_processing.cc
  4161. * src/usage_text.h
  4162. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4163. Added the ability to reuse connection in FTP and it is enabled by
  4164. default. It can be disabled by --ftp-reuse-connection=false option.
  4165. * src/Command.cc
  4166. * src/DownloadCommand.cc
  4167. * src/FtpDownloadCommand.cc
  4168. * src/FtpDownloadCommand.h
  4169. * src/FtpFinishDownloadCommand.cc
  4170. * src/FtpFinishDownloadCommand.h
  4171. * src/FtpInitiateConnectionCommand.cc
  4172. * src/FtpNegotiationCommand.cc
  4173. * src/FtpNegotiationCommand.h
  4174. * src/HelpItemFactory.cc
  4175. * src/Makefile.am
  4176. * src/Makefile.in
  4177. * src/OptionHandlerFactory.cc
  4178. * src/option_processing.cc
  4179. * src/prefs.h
  4180. * src/usage_text.h
  4181. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4182. Call Command::transitStatus() before calling Command::execute(),
  4183. so that the status change made in execute() is not cleared.
  4184. * src/DownloadEngine.cc
  4185. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4186. Removed forward declaration of SocketCore class.
  4187. * src/HttpDownloadCommand.h
  4188. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4189. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  4190. in InitiateConnectionCommandFactory. They should be set only when
  4191. the protocol is HTTP or HTTPS.
  4192. * src/InitiateConnectionCommandFactory.cc
  4193. * src/RequestGroup.cc
  4194. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4195. Fixed infinite loop in checksum checking.
  4196. * src/IteratableChecksumValidator.cc
  4197. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4198. Set _supportsPersistentConnection to true by default.
  4199. * src/Request.cc
  4200. * src/RequestGroup.cc
  4201. * test/HttpRequestTest.cc
  4202. * test/RequestTest.cc
  4203. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4204. Added timeout to socket pool. The default timeout is 15 seconds,
  4205. which is the same value Apache uses.
  4206. * src/DownloadEngine.cc
  4207. * src/DownloadEngine.h
  4208. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4209. Fixed misuse of multimap::find()
  4210. * src/HttpHeader.cc
  4211. * test/HttpHeaderTest.cc
  4212. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4213. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  4214. option.
  4215. The asynchronous DNS is not capable of IPv6 yet.
  4216. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  4217. least for HTTP download.
  4218. * src/AbstractCommand.cc
  4219. * src/AbstractCommand.h
  4220. * src/AsyncNameResolver.cc
  4221. * src/AsyncNameResolver.h
  4222. * src/DHTEntryPointNameResolveCommand.cc
  4223. * src/DHTEntryPointNameResolveCommand.h
  4224. * src/DownloadEngine.cc
  4225. * src/DownloadEngine.h
  4226. * src/FtpInitiateConnectionCommand.cc
  4227. * src/FtpInitiateConnectionCommand.h
  4228. * src/HelpItemFactory.cc
  4229. * src/HttpInitiateConnectionCommand.cc
  4230. * src/HttpInitiateConnectionCommand.h
  4231. * src/InitiateConnectionCommand.cc
  4232. * src/InitiateConnectionCommand.h
  4233. * src/Makefile.am
  4234. * src/Makefile.in
  4235. * src/NameResolver.cc
  4236. * src/NameResolver.h
  4237. * src/OptionHandlerFactory.cc
  4238. * src/SocketCore.cc
  4239. * src/SocketCore.h
  4240. * src/Util.cc
  4241. * src/Util.h
  4242. * src/option_processing.cc
  4243. * src/prefs.h
  4244. * src/usage_text.h
  4245. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4246. Updated man page: --quiet, --header were added.
  4247. --metalink-servers and --enable-http-keep-alive option were updated.
  4248. * doc/aria2c.1
  4249. * doc/aria2c.1.html
  4250. * doc/aria2c.1.txt
  4251. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4252. Enable HTTP keep-alive by default.
  4253. * src/HelpItemFactory.cc
  4254. * src/option_processing.cc
  4255. * src/usage_text.h
  4256. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4257. Disable http keep-alive if the remote server is not HTTP/1.1.
  4258. * src/HttpConnection.cc
  4259. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4260. Receive content body of 302 response so that the connection can be
  4261. reused later when http keep-alive is enabled.
  4262. * src/HttpNullDownloadCommand.cc
  4263. * src/HttpNullDownloadCommand.h
  4264. * src/HttpResponseCommand.cc
  4265. * src/HttpResponseCommand.h
  4266. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4267. const SharedHandle<Request> -> const SharedHandle<Request>&
  4268. * src/FtpDowndloadCommand.cc
  4269. * src/FtpDowndloadCommand.h
  4270. * src/HttpDownloadCommand.cc
  4271. * src/HttpDownloadCommand.h
  4272. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4273. Fixed the bug that the control file(.aria2 file) is not renamed
  4274. according to tryAutoFileRenaming().
  4275. tryAutoFileRenaming() was rewritten so that if both renamed file and
  4276. its control file exist, use them and continue download.
  4277. The old implementation didn't take into account of control file's
  4278. existence, so basically you couldn't continue download of renamed file.
  4279. * src/BtProgressInfoFile.h
  4280. * src/DefaultBtProgressInfoFile.cc
  4281. * src/DefaultBtProgressInfoFile.h
  4282. * src/NullProgressInfoFile.h
  4283. * src/RequestGroup.cc
  4284. * test/DefaultBtProgressInfoFileTest.cc
  4285. * test/MockBtProgressInfoFile.h
  4286. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4287. Change the default value of --metalink-servers option from `5' to `1'.
  4288. * src/HelpItemFactory.cc
  4289. * src/option_processing.cc
  4290. * src/usage_text.h
  4291. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4292. Reimplemented transparent metalink using Accept request header.
  4293. * src/HttpRequest.cc
  4294. * src/HttpRequest.h
  4295. * src/HttpRequestCommand.cc
  4296. * src/Metalink2RequestGroup.cc
  4297. * src/RequestGroup.cc
  4298. * src/RequestGroup.h
  4299. * test/HttpRequestTest.cc
  4300. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4301. Bump up version number to 0.13.2a
  4302. * configure.ac
  4303. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4304. Updated configure.ac using the result of autoscan.
  4305. * configure.ac
  4306. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4307. Fixed compilation error without gcrypt/openssl.
  4308. * src/DownloadCommand.cc
  4309. * src/DownloadCommand.h
  4310. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4311. Reorganized version information so that it can be displayed in a
  4312. standard terminal screen without scrolling.
  4313. Removed http, ftp from Configuration section, because they are always
  4314. enabled.
  4315. * src/FeatureConfig.cc
  4316. * src/FeatureConfig.h
  4317. * src/main.cc
  4318. * src/messageDigest.cc
  4319. * src/messageDigest.h
  4320. * src/version_usage.cc
  4321. * test/FeatureConfigTest.cc
  4322. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4323. Masked user ID in log.
  4324. * src/FtpConnection.cc (sendUser)
  4325. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4326. Removed query part from filename in HTTP download. The query part means
  4327. the substring after "?" in URL. Firefox seems do the same thing.
  4328. A query part is sometimes very long and not suitable to filename,
  4329. so I think it is better to remove it from filename.
  4330. * src/HttpRequest.cc
  4331. * src/HttpRequest.h
  4332. * src/Request.cc
  4333. * src/Request.h
  4334. * test/HttpRequestTest.cc
  4335. * test/RequestTest.cc
  4336. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4337. Rewritten Exception class. Throw exception object, not its pointer and
  4338. catch by reference, so that remove problematic delete operator for
  4339. catched exception.
  4340. * src/Exception.cc
  4341. * src/Exception.h
  4342. * test/ExceptionTest.cc
  4343. * src/*: All files throwing/catching exception.
  4344. * test/*: All files throwing/catching exception.
  4345. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4346. Now auto protocol detection is enabled without -Z option.
  4347. But there is a important difference between with/without -Z optoin.
  4348. For example, if you type:
  4349. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  4350. then, aria2 interprets there are 3 request groups:
  4351. (1) http://host/file, http://mirror/file <-- multi-source download
  4352. (2) file1.torrent
  4353. (3) file2.metalink
  4354. On the other hand, if you invoke above command with -Z option, it is
  4355. interpreted as 4 request groups:
  4356. (1) http://host/file
  4357. (2) file1.torrent
  4358. (3) file2.metalink
  4359. (4) http://mirror/file
  4360. I think usually user don't mix multi-source URLs and torrent files, so
  4361. there is no big problem here.
  4362. * src/main.cc
  4363. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4364. Fixed the bug that causes segmentaion fault when reading XML containing
  4365. unescapsed character like '&'.
  4366. Also a modification was made which avoids adding unnecessary
  4367. characters stack and appending unused string.
  4368. * src/ExpatMetalinkProcessor.cc
  4369. * src/FileMetalinkParserState.h
  4370. * src/FilesMetalinkParserState.h
  4371. * src/FinMetalinkParserState.h
  4372. * src/HashMetalinkParserState.h
  4373. * src/InitialMetalinkParserState.h
  4374. * src/LanguageMetalinkParserState.h
  4375. * src/MetalinkMetalinkParserState.h
  4376. * src/MetalinkParserState.h
  4377. * src/MetalinkParserStateMachine.cc
  4378. * src/MetalinkParserStateMachine.h
  4379. * src/OSMetalinkParserState.h
  4380. * src/PieceHashMetalinkParserState.h
  4381. * src/PiecesMetalinkParserState.h
  4382. * src/ResourcesMetalinkParserState.h
  4383. * src/SizeMetalinkParserState.h
  4384. * src/SkipTagMetalinkParserState.h
  4385. * src/URLMetalinkParserState.h
  4386. * src/VerificationMetalinkParserState.h
  4387. * src/VersionMetalinkParserState.h
  4388. * src/XML2SAXMetalinkProcessor.cc
  4389. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4390. Added StringFormat class, which internally calls vasprintf.
  4391. operator<< is defined for this class, so it can be used with iostream
  4392. classes nicely. SimpleLogger and following functions are rewritten
  4393. using StringFormat class.
  4394. Besides, now Logger class's methods are non-const, many classes
  4395. that has a const Logger* as a member variable are modified to remove
  4396. const qualifier from the variable declaration.
  4397. * src/HelpItemFactory.cc
  4398. * src/Request.cc
  4399. * src/SimpleLogger.cc
  4400. * src/StringFormat.cc
  4401. * src/StringFormat.h
  4402. * src/Util.cc
  4403. * src/option_processing.cc
  4404. * src/version_usage.cc
  4405. * test/StringFormatTest.cc
  4406. * src/*.h: The classes that has const Logger* as a member variable.
  4407. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4408. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  4409. failed. Also fixed memory link when exception is thrown there.
  4410. * src/main.cc (AccRequestGroup)
  4411. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4412. Added build-in "Accept-Features" support. For now only "metalink" is
  4413. used in this header field.
  4414. This "metalink" value is removed from the list when connecting URLs
  4415. fed by metalink file to avoid loop in "transparent" metlaink.
  4416. * src/HttpRequest.cc
  4417. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  4418. header is also held in this variable. Also renamed setUserHeaders as
  4419. addHeader and it was rewritten to add header not just to clear the old
  4420. value.
  4421. * src/HttpRequestCommand.cc
  4422. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  4423. from "Accept-Features" list.
  4424. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  4425. default.
  4426. * src/RequestGroup.h
  4427. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  4428. * src/a2functional.h: Included <string> because Concat class depends on
  4429. it.
  4430. * test/HttpRequestTest.cc
  4431. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4432. Added comment
  4433. * src/RequestGroup.cc (createNextCommand)
  4434. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4435. Capitalized METHOD_GET and METHOD_HEAD
  4436. * src/Request.cc
  4437. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4438. Added getDownloadResults() method
  4439. * src/RequestGroupMan.cc
  4440. * src/RequestGroupMan.h
  4441. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4442. Fixed the bug that aria2 exits when commands is empty() but
  4443. _routineCommands are not.
  4444. * src/DownloadEngine.cc
  4445. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Use the default value pulled from Option object in HelpItemFactory.
  4447. except options whose defualt value is embedded in a usage text.
  4448. * src/HelpItemFactory.cc
  4449. * src/HelpItemFactory.h
  4450. * src/option_processing.cc
  4451. * src/version_usage.cc
  4452. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4453. Added --quiet option to make aria2 quiet (no console output).
  4454. --quiet option is tagged with ADVANCED.
  4455. * src/HelpItemFactory.cc
  4456. * src/LogFactory.cc
  4457. * src/LogFactory.h
  4458. * src/MultiUrlRequestInfo.cc
  4459. * src/MultiUrlRequestInfo.h
  4460. * src/NullStatCalc.h: New class. This class prints nothing.
  4461. * src/OptionHandlerFactory.cc
  4462. * src/main.cc
  4463. * src/option_processing.cc
  4464. * src/prefs.h
  4465. * src/usage_text.h
  4466. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4467. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  4468. * src/HelpItemFactory.cc (createHelpItems):
  4469. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4470. Fixed compilation error in ExpatMetalinkProcessor.cc
  4471. * src/ExpatMetalinkProcessor.cc
  4472. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4473. Reuse socket if the origin server supports HTTP keep-alive and
  4474. --enable-http-keep-alive or --enable-http-pipelining is given.
  4475. The current implementation doesn't reuse the connections established
  4476. against proxy server.
  4477. * src/AbstractCommand.cc
  4478. * src/DownloadEngine.cc
  4479. * src/DownloadEngine.h
  4480. * src/HttpDownloadCommand.cc
  4481. * src/HttpInitiateConnectionCommand.cc
  4482. * src/HttpResponseCommand.cc
  4483. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4484. Rewritten HTTP keep-alive and pipelining routine.
  4485. * src/AbstractCommand.cc
  4486. * src/HttpConnection.cc
  4487. * src/HttpDownloadCommand.cc
  4488. * src/HttpRequest.cc
  4489. * src/HttpRequestCommand.cc
  4490. * src/HttpResponseCommand.cc
  4491. * src/Request.cc
  4492. * src/Request.h
  4493. * src/RequestGroup.cc
  4494. * test/HttpRequestTest.cc
  4495. * test/HttpResponseTest.cc
  4496. * test/RequestTest.cc
  4497. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4498. Added missing setUserHeaders call
  4499. * src/HttpRequestCommand.cc
  4500. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4501. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  4502. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  4503. waste of time because it is more likey false.
  4504. * src/FileAllocationDispatcherCommand.cc (execute)
  4505. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4506. Now HTTP status and version are a member variable of HttpHeader.
  4507. HTTP status is processed as a string, not integer.
  4508. * src/AbstractProxyResponseCommand.cc
  4509. * src/HttpConnection.cc
  4510. * src/HttpHeader.cc
  4511. * src/HttpHeader.h
  4512. * src/HttpHeaderProcessor.cc
  4513. * src/HttpHeaderProcessor.h
  4514. * src/HttpResponse.cc
  4515. * src/HttpResponse.h
  4516. * test/HttpHeaderProcessorTest.cc
  4517. * test/HttpResponseTest.cc
  4518. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4519. Added --header option. You can specify any number of additional HTTP headers
  4520. like:
  4521. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  4522. Unlike other commad-line option, you can use --header option multiple times.
  4523. * src/HelpItemFactory.cc
  4524. * src/HttpRequest.{cc, h}
  4525. * src/HttpRequestCommand.cc
  4526. * src/OptionHandlerFactory.cc
  4527. * src/OptionHandlerImpl.h
  4528. * src/option_processing.cc
  4529. * src/prefs.h
  4530. * src/usage_text.h
  4531. * test/HttpRequestTest.cc (testUserHeaders)
  4532. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4533. Eliminates the time lag between sequential downloads and commands in
  4534. the same RequestGroup.
  4535. In old implementation, aria2 occasionally waits 1 seconds before
  4536. executing next command or RequestGroup.
  4537. This is really a waste of time, and new implementation eliminates
  4538. this unnecessary time lag.
  4539. * src/AbstractCommand.cc
  4540. * src/AutoSaveCommand.cc
  4541. * src/CheckIntegrityCommand.cc
  4542. * src/Command.{cc, h}
  4543. * src/DownloadEngine.{cc, h}
  4544. * src/DownloadEngineFactory.cc
  4545. * src/FileAllocationCommand.cc
  4546. * src/FileAllocationDispatcherCommand.cc
  4547. * src/FillRequestGroupCommand.cc
  4548. * src/FtpInitiateConnectionCommand.cc
  4549. * src/HaveEraseCommand.cc
  4550. * src/HttpInitiateConnectionCommand.cc
  4551. * src/HttpResponseCommand.cc
  4552. * src/RealtimeCommand.cc
  4553. * src/RequestGroup.cc
  4554. * src/RequestGroupMan.cc
  4555. * src/StreamFileAllocationEntry.cc
  4556. * src/TimeBasedCommand.{cc, h}
  4557. * src/TimedHaltCommand.cc
  4558. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4559. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  4560. keyword explicit and SharedHandle's default constructor initializes
  4561. its internal obj to null, old implementation initializes it using
  4562. obj's default constructor.
  4563. To assign null, write SharedHandle<T> x(...); x.reset();
  4564. TODO: test/SharedHandleTest.cc needs more tests.
  4565. * src/SharedHandle.h
  4566. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4567. Fixed type in man page.
  4568. * doc/aria2c.1.txt
  4569. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4570. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  4571. * src/SimpleLogger.{cc, h}
  4572. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4573. Implemented auto protocol detection.
  4574. Now you can do:
  4575. aria2c -Z http://host/file file1.torrent file2.metalink
  4576. (Note: -Z option is required for auto protcol detection.)
  4577. Then aria2c downloads 3 files simultaneously:
  4578. 1. http://host/file
  4579. 2. file1.torrent <-- read local torrent file
  4580. 3. file2.metalink <-- read local Metalink file.
  4581. Same thing goes with -i option. Assume your uris.txt contans:
  4582. http://host/file
  4583. file1.torrent
  4584. file2.metalink
  4585. Then you can do: aria2c -i uris.txt
  4586. (Note: -Z option is not needed if -i option is given.)
  4587. * src/main.cc
  4588. * src/ProtocolDetector.{cc, h}
  4589. * test/ProtocolDetectorTest.cc
  4590. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4591. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  4592. installed
  4593. * src/ARC4Encryptor.h
  4594. * src/ARC4Decryptor.h
  4595. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4596. Renamed argument from 'errno' to 'err', since errno is confused with
  4597. errno defined in errno.h.
  4598. * src/LibgcryptARC4Decryptor.h
  4599. * src/LibgcryptARC4Context.h
  4600. * src/LibgcryptDHKeyExchange.h
  4601. * src/LibgcryptARC4Encryptor.h
  4602. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4603. Rewritten choking algorithm.
  4604. * src/PeerChokeCommand.{cc, h}
  4605. * src/BtInterestedMessage.cc
  4606. * src/PeerSessionResource.{cc, h}
  4607. * src/DefaultPeerStorage.{cc, h}
  4608. * src/BtNotInterestedMessage.cc
  4609. * src/DefaultBtMessageDispatcher.{cc, h}
  4610. * src/BtMessageDispatcher.h
  4611. * src/Peer.{cc, h}
  4612. * src/BtLeecherStateChoke.{cc, h}
  4613. * src/BtSetup.cc
  4614. * src/BtSeederStateChoke.{cc, h}
  4615. * src/PeerStorage.h
  4616. * test/MockPeerStorage.h
  4617. * test/MockBtMessageDispatcher.h
  4618. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4619. Fixed compilation error on x84-64 platform.
  4620. * src/AuthConfig.cc: Included ostream.
  4621. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4622. Rewritten getBasename() and getDirname(), without standard library
  4623. basename(), dirname().
  4624. * src/File.cc
  4625. * test/FileTest.cc
  4626. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4627. Added Simplified Chinese translation. Also updated the following
  4628. translations: Polish, Dutch, German. Great thanks to all translators.
  4629. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4630. Suppress content-range error when 'Content-Range' response header
  4631. doesn't contains bytes-unit specifier 'bytes'
  4632. * src/HttpHeader.cc (getRange)
  4633. * test/HttpHeaderTest.cc
  4634. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4635. Fixed compilation error with g++-4.3
  4636. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4637. Added missing include files for MinGW
  4638. * test/HttpHeaderProcessorTest.cc
  4639. * test/DHTRoutingTableSerializerTest.cc
  4640. * test/DHTRoutingTableDeserializerTest.cc
  4641. * test/UriListParserTest.cc
  4642. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4643. Now download line is printed nicely with no garbage at the end of
  4644. line. I use ioctl to get the columns of terminal.
  4645. If stdout is redirected to another device, instead of carriage return,
  4646. end of line '\n' character is used. This is feature request#1909659
  4647. * src/ConsoleStatCalc.cc (calculateStat)
  4648. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4649. Included a2time.h
  4650. * src/DHTMessageDispatcher.h
  4651. * src/DHTMessageEntry.h
  4652. * src/DHTReplaceNodeTask.h
  4653. * src/DHTMessageTracker.h
  4654. * src/Util.h
  4655. * src/CookieBox.h
  4656. * src/SocketCore.h
  4657. * src/DefaultBtMessageDispatcher.h
  4658. * src/SocketCore.cc
  4659. * src/Util.cc
  4660. * src/DHTPingTask.h
  4661. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4662. Fixed high memory footprint when DHT is enabled.
  4663. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  4664. queued than it is processed and the queue is getting longer. As a
  4665. consequence, momory usage is increased.
  4666. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  4667. replacement cache in DHTBucket which is described in Kademlia paper.
  4668. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  4669. DHTReplaceNodeTask.
  4670. * src/DHTBucket.{h, cc}
  4671. (cacheNode): New function.
  4672. (getCachedNodes): New function.
  4673. (dropNode): Push back cached node to _nodes.
  4674. * test/DHTBucketTest.cc
  4675. (testCacheNode): New test
  4676. (testDropNode): New test
  4677. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4678. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  4679. the unused 4KB memory when ssl is not used.
  4680. * src/SocketCore.cc
  4681. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4682. Added summary log for peer announce storage.
  4683. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  4684. Removed cast
  4685. * src/DefaultPeerStorage.cc (addPeer)
  4686. Log exception message
  4687. * src/DHTMessageTracker.cc (handleTimeout)
  4688. Fixed casting
  4689. * test/HttpRequestTest.cc
  4690. * test/MetalinkProcessorTest.cc
  4691. * test/PieceTest.cc
  4692. * test/MetalinkEntryTest.cc
  4693. * test/SequenceTest.cc
  4694. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4695. * src/ParameterizedStringParser.cc (createLoop):
  4696. Removed unused variable sstep.
  4697. * src/AlphaNumberDecorator.h (decode): Rewritten.
  4698. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4699. * src/Util.{h, cc}
  4700. (parseUInt): New function.
  4701. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  4702. The actual range is uint32_t.
  4703. * test/UtilTest.cc
  4704. * src/ParameterizedStringParser.cc:
  4705. Use Util::parseUInt() for loop variables.
  4706. * test/ParameterizedStringParserTest.cc
  4707. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  4708. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4709. Rewritten the functions for binding port.
  4710. * src/DHTConnectionImpl.{h, cc}
  4711. * src/PeerListenCommand.{h, cc}
  4712. * src/DHTSetup.cc
  4713. * src/BtSetup.cc
  4714. * test/DHTConnectionImplTest.cc
  4715. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4716. type cleanup for allmost all remaining files.
  4717. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4718. Type clarification
  4719. * src/PeerSessionResource.{h, cc}
  4720. * src/DefaultPieceStorage.{h, cc}
  4721. * src/Peer.{h, cc}
  4722. * test/PeerSessionResourceTest.cc
  4723. Use div function
  4724. * src/BtPieceMessage.cc (erasePieceOnDisk)
  4725. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4726. Type clarification
  4727. * src/DefaultPeerStorage.{h, cc}
  4728. * test/DefaultPeerStorageTest.cc
  4729. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4730. Type clarification: size_t for length or size, uint64_t for file
  4731. length, off_t for file offset.
  4732. * src/DefaultBtProgressInfoFile.cc
  4733. * src/DefaultBtContext.{h, cc}
  4734. * src/DefaultBtInteractive.cc
  4735. * src/DownloadCommand.{h, cc}
  4736. * src/IteratableChunkChecksumValidator.{h, cc}
  4737. * src/SegmentMan.{h, cc}
  4738. * src/SingleFileDownloadContext.{h, cc}
  4739. * src/IteratableChecksumValidator.{h, cc}
  4740. * src/BtContext.h
  4741. * src/IteratableValidator.h
  4742. * src/DownloadContext.h
  4743. * test/SingleFileDownloadContextTest.cc
  4744. * test/DefaultBtContextTest.cc
  4745. * test/MockBtContext.h
  4746. * test/Metalink2RequestGroupTest.cc
  4747. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4748. Type clarification: size_t for length or size, uint64_t for file
  4749. length, off_t for file offset.
  4750. * src/PiecedSegment.cc
  4751. * src/GrowSegment.h
  4752. * src/DefaultBtRequestFactory.h
  4753. * src/DefaultBtProgressInfoFile.cc
  4754. * src/UnknownLengthPieceStorage.h
  4755. * src/DefaultPieceStorage.cc
  4756. * src/UnknownLengthPieceStorage.cc
  4757. * src/DefaultBtInteractive.cc
  4758. * src/GrowSegment.cc
  4759. * src/BitfieldMan.h
  4760. * src/DownloadCommand.cc
  4761. * src/BtRequestFactory.h
  4762. * src/PiecedSegment.h
  4763. * src/DefaultPieceStorage.h
  4764. * src/Piece.cc
  4765. * src/DefaultBtRequestFactory.cc
  4766. * src/PieceStorage.h
  4767. * src/Segment.h
  4768. * src/Piece.h
  4769. * src/BitfieldMan.cc
  4770. * src/Util.cc
  4771. * test/DefaultBtProgressInfoFileTest.cc
  4772. * test/DefaultPieceStorageTest.cc
  4773. * test/MockPieceStorage.h
  4774. * test/BtRequestMessageTest.cc
  4775. * test/DefaultBtMessageDispatcherTest.cc
  4776. * test/BitfieldManTest.cc
  4777. * test/GrowSegmentTest.cc
  4778. * test/PieceTest.cc
  4779. * test/SegmentTest.cc
  4780. * test/SegmentManTest.cc
  4781. * test/DefaultBtRequestFactoryTest.cc
  4782. * test/MockBtRequestFactory.h
  4783. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4784. Fixed compilation error with --disable-nls
  4785. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  4786. in gettext.h causes the problem.
  4787. * src/common.h
  4788. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4789. Removed subPiece related functions.
  4790. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  4791. * src/DefaultPieceStorage.{h, cc}
  4792. * test/PieceTest.cc
  4793. * test/DefaultPieceStorageTest.cc
  4794. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4795. Use unsigned char for data store.
  4796. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4797. Bump up version number to 0.13.0+1
  4798. * configure.ac
  4799. * Release 0.13.0+1
  4800. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4801. Changed inactive connection timeout to 120.
  4802. To accept more mulually interested peers, disconnect peer when there
  4803. is no interest between us after certain time passed.
  4804. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  4805. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4806. Fixed the bug that aria2 only uses first dns server in resolv.conf
  4807. when compiled with async DNS support.
  4808. * src/DownloadEngine.cc
  4809. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  4810. value '10' will be a little bit short when some DNS servers are
  4811. offline and several DNS servers are tried. It should be configured
  4812. by command-line option.
  4813. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4814. Merged Ross's mingw patch.
  4815. * src/DHTRoutingTableDeserializer.cc
  4816. * src/DHTRoutingTableSerializer.cc
  4817. * src/Platform.{h, cc}
  4818. * src/timegm.h
  4819. * src/gettimeofday.h
  4820. * src/getaddrinfo.h
  4821. * src/SocketCore.h
  4822. * src/common.h
  4823. * src/inet_aton.h
  4824. * src/DownloadEngine.h
  4825. * src/gai_strerror.h
  4826. * src/a2netcompat.h
  4827. * configure.ac
  4828. * configure
  4829. * aclocal.m4
  4830. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4831. Included missing iostream.
  4832. * test/AllTest.cc
  4833. * test/BtDependencyTest.cc
  4834. * test/BtExtendedMessageTest.cc
  4835. * test/DHTConnectionImplTest.cc
  4836. * test/DHTMessageFactoryImplTest.cc
  4837. * test/DHTMessageTrackerEntryTest.cc
  4838. * test/DHTNodeTest.cc
  4839. * test/DHTRoutingTableSerializerTest.cc
  4840. * test/DefaultBtAnnounceTest.cc
  4841. * test/DefaultBtContextTest.cc
  4842. * test/DefaultBtMessageFactoryTest.cc
  4843. * test/DefaultExtensionMessageFactoryTest.cc
  4844. * test/HandshakeExtensionMessageTest.cc
  4845. * test/HttpResponseTest.cc
  4846. * test/MetalinkProcessorTest.cc
  4847. * test/MultiFileAllocationIteratorTest.cc
  4848. * test/SocketCoreTest.cc
  4849. * test/UTPexExtensionMessageTest.cc
  4850. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4851. Reorganized includes.
  4852. * src/NameResolver.cc
  4853. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4854. Fixed compilation error without ares/c-ares
  4855. * src/NameResolver.h:
  4856. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4857. Added a test for large file.
  4858. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  4859. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4860. Fixed the bug that file size is ignored if size > INT32_MAX
  4861. * src/SizeMetalinkParserState.cc (endElement):
  4862. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4863. Bump up version number to 0.13.0
  4864. * configure.ac
  4865. * Release 0.13.0
  4866. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4867. Updated Makfefile.am to make 'make dist' work.
  4868. Now packaged filename is aria2c-VERSION.tar.bz2.
  4869. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  4870. Added LICENSE.OpenSSL to dist_noinst_DATA.
  4871. Large file support is now configured by configure script.
  4872. * configure.ac
  4873. Removed unsused source files
  4874. * src/
  4875. * test/
  4876. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  4877. Peer.h and BtContext.h respectively.
  4878. * src/Peer.h
  4879. * src/BtContext.h
  4880. Updated translations.
  4881. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  4882. translations. Great thanks to all translators!;)
  4883. * po/*.{po, gmo}
  4884. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4885. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  4886. statically declared sha1 MessageDigestContext.
  4887. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  4888. initialization of short-lived MessageDigestContext.
  4889. * src/MessageDigestHelper.{h, cc}
  4890. * src/main.cc
  4891. Now DownloadCommand has a reference to MessageDigestContext to avoid
  4892. the initialization of MessageDigestContext every time in validating
  4893. chunk checksum.
  4894. * src/DownloadCommand.{h, cc}
  4895. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4896. Add a file descriptor which connected to fast peer(latency<1500) to
  4897. select(). This change reduced CPU load.
  4898. * src/PeerInteractionCommand.cc
  4899. * src/DefaultBtInteractive.{h, cc}
  4900. * src/BtInteractive.h
  4901. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4902. Fixed the previous insufficient fix for possible busy loop.
  4903. * src/MSEHandshake.cc (identifyHandshakeType)
  4904. Removed unused functions.
  4905. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  4906. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4907. Fixed possible busy loop if first 20 bytes are not received for a few
  4908. minutes.
  4909. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  4910. * src/ReceiverMSEHandshakeCommand.cc
  4911. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4912. Fixed compilation error
  4913. * src/ExpatMetalinkProcessor.cc
  4914. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4915. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  4916. * src/DHTBucket.cc
  4917. Removed unnecessary cast.
  4918. * src/HandshakeExtensionMessage.cc
  4919. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4920. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  4921. is missing.
  4922. * src/OptionHandlerFactory.cc
  4923. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4924. Fixed the bug that HAVE message is not sent for a piece they are
  4925. downloaded fom http/ftp server before any BitTorrent handshake is done
  4926. with peers.
  4927. * src/DefaultBtInteractive.cc
  4928. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4929. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  4930. * src/Makefile.am
  4931. * src/Makefile.in
  4932. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4933. Updated README. Added html version of README and man page.
  4934. * README
  4935. * README.html
  4936. * readme2html: Shell script to generate README.html from README using
  4937. asciidoc.
  4938. * doc/aria2c.1.html
  4939. * doc/makeman: Added the line to generate aria2c.1.html
  4940. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4941. Fixed offset calculation.
  4942. * src/LibgcryptDHKeyExchange.h (computeSecret)
  4943. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4944. Rewritten itos and uitos using template. llitos and ullitos are
  4945. replaced with itos and uitos respectively.
  4946. * src/Util.{h, cc}
  4947. * test/UtilTest.cc
  4948. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4949. Fixed the bug that DH key exchange sometimes fails due to bad handling
  4950. of the number of bytes required for storing public key and shared
  4951. secret.
  4952. * src/LibgcryptDHKeyExchange.h
  4953. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  4954. * src/MSEHandshake.cc
  4955. * test/DHKeyExchangeTest.cc
  4956. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4957. Removed since they are not used.
  4958. * src/Xml2MetalinkProcessor.{h, cc}
  4959. * src/Socket.cc
  4960. * src/SegmentSplitter.{h, cc}
  4961. * test/Xml2MetalinkProcessorTest.cc
  4962. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. Fixed the bug that prevents aria2 from stopping other than by pressing
  4964. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  4965. option. aria2 doesn't stop even after --seed-time is satisfied and
  4966. continues to output blank lines in the console.
  4967. * src/ReceiverMSEHandshakeCommand.cc
  4968. * src/PeerReceiveHandshakeCommand.cc
  4969. * src/PeerListenCommand.cc
  4970. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4971. Bump up version number to 0.13.0rc
  4972. * configure.ac
  4973. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4974. Updated man page and some usage text.
  4975. * doc/aria2c.1.txt
  4976. * src/usage_text.h
  4977. * po/*.{po, gmo}
  4978. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4979. Updated translations. Added Finnish and Hebrew translations.
  4980. Great thanks to all translators!
  4981. * po/*.{po, gmo}
  4982. * po/LINGUAS
  4983. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4984. Log more detailed information about each message.
  4985. * src/DHTQueryMessage.{h, cc}
  4986. * src/DHTGetPeersMessage.{h, cc}
  4987. * src/DHTFindNodeReplyMessage.{h, cc}
  4988. * src/DHTGetPeersReplyMessage.{h, cc}
  4989. * src/DHTAnnouncePeerMessage.{h, cc}
  4990. * src/DHTResponseMessage.{h, cc}
  4991. * src/DHTFindNodeMessage.{h, cc}
  4992. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4993. Use constants defined in prefs.h
  4994. * src/option_processing.cc
  4995. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4996. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  4997. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4998. Make room for future enchancements for IPv6 addresses.
  4999. Bump up version number of dht.dat file format to 2.
  5000. Not compatible with previous version.
  5001. * src/DHTRoutingTableSerializer.cc
  5002. * src/DHTRoutingTableDeserializer.cc
  5003. * test/DHTRoutingTableSerializerTest.cc
  5004. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5005. Added handling for the return values from
  5006. PeerMessageUtil::createcompact().
  5007. * src/DefaultBtContext.cc (computeFastSet):
  5008. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5009. Fixed abort when peer's ip address is IPv4-mapped address.
  5010. * src/DefaultBtContext.cc (computeFastSet)
  5011. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  5012. cannot handle IPv4-mapped addresses.
  5013. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  5014. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5015. Proper return value handling for OpenSSL functions.
  5016. * src/LibsslDHKeyExchange.h
  5017. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5018. Random bytes generation using libgcrypt and OpenSSL.
  5019. * src/DHTUtil.{h, cc}
  5020. * test/DHTUtilTest.cc
  5021. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5022. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  5023. received.
  5024. * src/DHTMessageReceiver.cc (receiveMessage)
  5025. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5026. Fixed the bug that a return code is always 0. BUG#1897704
  5027. If error occurred during the download or there exist unfinished
  5028. downloads, aria2 returns with code 1.
  5029. * src/RequestGroupMan.{h, cc}
  5030. * src/MultiUrlRequestInfo.{h, cc}
  5031. * src/main.cc
  5032. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5033. IPv6 support for SocketCore class.
  5034. TODO: In SocketCore::establishConnection(), this is insufficient to
  5035. determin the failure of connect() here because the socket is
  5036. non-blocking state. The next addresses should be tried after select().
  5037. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  5038. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  5039. instead which address family independent.
  5040. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  5041. information in a compact peer format which is for IPv4 only.
  5042. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  5043. this is a spec of BitTorrent protocol.
  5044. * src/SocketCore.{h, cc}
  5045. * src/PeerMessageUtil.cc
  5046. * test/SocketCoreTest.cc
  5047. * test/PeerMessageUtilTest.cc
  5048. * test/DHTConnectionImplTest.cc
  5049. Handle IPv4-mapped addresses.
  5050. * src/DHTNode.cc: Now identity is determined by node id.
  5051. * src/DHTMessageTrackerEntry.cc
  5052. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  5053. should handle it.
  5054. * src/DHTRoutingTableDeserializer.cc
  5055. * src/DHTMessageFactoryImpl.cc
  5056. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5057. Change the unit of --stop option from a minute to a second.
  5058. * src/usage_text.h
  5059. * src/DownloadEngineFactory.cc
  5060. * src/OptionHandlerFactory.cc
  5061. * src/message.h
  5062. * src/TimedHaltCommand.cc
  5063. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5064. Make listening socket non-block mode.
  5065. * src/FtpConnection.cc
  5066. * src/FtpNegotiationCommand.{h, cc}
  5067. * src/PeerListenCommand.cc
  5068. Fixed the bug that cause slow ftp negotiation.
  5069. * src/FtpNegotiationCommand.{h, cc}
  5070. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5071. Added basic tag to --enable-dht, --dht-listen-port option.
  5072. * src/HelpItemFactory.cc (createHelpItems)
  5073. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5074. Updated text.
  5075. * src/usage_text.h
  5076. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5077. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  5078. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5079. Determin _threadtholdSpeed in each constructor for
  5080. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  5081. * src/ActivePeerConnectionCommand.{h, cc}
  5082. * src/PeerReceiveHandshakeCommand.{h, cc}
  5083. * src/BtSetup.cc
  5084. * src/BtConstants.h
  5085. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5086. Added --bt-min-crypto-level and --bt-require-crypto options.
  5087. * src/OptionHandlerFactory.cc
  5088. * src/MSEHandshake.cc
  5089. * src/HelpItemFactory.cc
  5090. * src/option_processing.cc
  5091. * src/ReceiverMSEHandshakeCommand.cc
  5092. * src/prefs.h
  5093. * src/DefaultBtAnnounce.cc
  5094. * src/InitiatorMSEHandshakeCommand.cc
  5095. * src/usage_text.h
  5096. * test/MSEHandshakeTest.cc
  5097. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5098. Bump version number to 0.13.0b
  5099. * configure.ac
  5100. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5101. Updated doc.
  5102. * src/MessageDigestHelper.h:
  5103. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5104. Use raw message digest as a token instead of its hexadecimal
  5105. representation.
  5106. * src/DHTTokenTracker.cc (generateToken)
  5107. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5108. Added Message Stream Encryption(MSE) support.
  5109. Currently, aria2 accepts incoming connections with Obfuscation Header
  5110. and legacy BitTorrent Header and establishes connections with
  5111. Obfuscation Header first and if failed then retry with legacy
  5112. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  5113. choose ARC4. The new option to change the default behavior is planned.
  5114. For tracker extension, "supportcrypto=1" is added statically.
  5115. * src/PeerInitiateConnectionCommand.{h, cc}
  5116. * src/PeerConnection.{h, cc}
  5117. * src/HandleRegistry.h
  5118. * src/SocketCore.h
  5119. * src/PeerReceiveHandshakeCommand.{h, cc}
  5120. * src/BtRegistry.{h, cc}
  5121. * src/PeerListenCommand.cc
  5122. * src/InitiatorMSEHandshakeCommand.{h, cc}
  5123. * src/ReceiverMSEHandshakeCommand.{h, cc}
  5124. * src/MSEHandshake.{h, cc}
  5125. * src/ARC4Encryptor.h
  5126. * src/ARC4Decryptor.h
  5127. * src/LibgcryptARC4Encryptor.h
  5128. * src/LibgcryptARC4Decryptor.h
  5129. * src/LibgcryptARC4Context.h
  5130. * src/LibsslARC4Encryptor.h
  5131. * src/LibsslARC4Decryptor.h
  5132. * src/LibsslARC4Context.h
  5133. * src/DHKeyExchange.h
  5134. * src/LibgcryptDHKeyExchange.h
  5135. * src/LibsslDHKeyExchange.h
  5136. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  5137. * test/DefaultBtAnnounceTest.cc
  5138. * test/ARC4Test.cc
  5139. * test/DHKeyExchangeTest.cc
  5140. Removed prepareForRetry() because it is not used.
  5141. * src/PeerAbstractCommand.{h, cc}
  5142. * src/PeerInteractionCommand.{h, cc}
  5143. * src/PeerInitiateConnectionCommand.{h, cc}
  5144. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5145. Added the ability to load nodes from torrent file. These nodes are
  5146. added to the routing table when downloading that torrent.
  5147. * src/BtContext.h
  5148. * src/DefaultBtContext.{h, cc}
  5149. * src/DHTSetup.cc
  5150. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  5151. hostname and port pair, and resolves all of them.
  5152. * src/NameResolver.{h, cc}: Added reset().
  5153. * src/RequestGroup.cc
  5154. * test/DefaultBtContextTest.cc
  5155. * test/MockBtContext.h
  5156. Removed assert() from DefaultBtContext and throw exception instead.
  5157. * src/DefaultBtContext.cc
  5158. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5159. Fixed segmentation fault bug when exiting if dht is disabled.
  5160. * src/RequestGroup.cc
  5161. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5162. Fixed typo in log message and define the message in message.h
  5163. * src/TimedHaltCommand.cc
  5164. * src/message.h
  5165. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5166. Included RecoverableException.h to fix compilation error.
  5167. * test/DHTMessageFactoryImplTest.cc
  5168. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5169. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  5170. * test/DHTPingMessageTest.cc
  5171. * test/DHTGetPeersMessageTest.cc
  5172. * test/DHTFindNodeMessageTest.cc
  5173. * test/DHTAnnouncePeerMessageTest.cc
  5174. * test/MockDHTMessage.h
  5175. * test/MockDHTMessageFactory.h
  5176. * test/MockDHTMessageDispatcher.h: New class.
  5177. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5178. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  5179. virtual.
  5180. * src/DHTMessageDispatcher.h
  5181. * src/DHTMessageDispatcherImpl.{h, cc}
  5182. * src/DHTSetup.cc
  5183. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5184. Adding handling of DHT error message. Just log error message and
  5185. throw exception.
  5186. * src/DHTMessageFactoryImpl.cc
  5187. * test/DHTMessageFactoryImplTest.cc
  5188. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5189. Added handling of dynamic cast failure.
  5190. * src/DHTNodeLookupTask.cc
  5191. * src/DHTPeerLookupTask.cc
  5192. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5193. Added the ability to stop aria2 itself when given time has passed
  5194. from start. Use --stop option to specify time in minutes.
  5195. When 0 is given, this feature is disabled.
  5196. * src/OptionHandlerFactory.cc
  5197. * src/TimeBasedCommand.h: Make _interval protected scope.
  5198. * src/HelpItemFactory.cc
  5199. * src/option_processing.cc
  5200. * src/prefs.h
  5201. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  5202. before calling RequestGroupMan::fillRequestGroupFromReserver().
  5203. Without this modification, the result list shows "ERR" when aria2 is
  5204. stopped by --stop option. It should be "INPR".
  5205. * src/DownloadEngine.{h, cc}
  5206. * src/DownloadEngineFactory.cc
  5207. * src/usage_text.h
  5208. * src/TimedHaltCommand.{h, cc}: New class.
  5209. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5210. Bootstrap through node added by port message.
  5211. Currently bootstrap is executed if the number of buckets in routing
  5212. table is 1.
  5213. * src/BtPortMessage.{h, cc}
  5214. * src/DefaultBtMessageFactory.{h, cc}
  5215. * src/PeerInteractionCommand.cc
  5216. * test/BtPortMessageTest.cc
  5217. * test/MockDHTTask.h
  5218. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5219. Extract the Peer class's member variables, which are only needed after
  5220. PeerInteractionCommand, into PeerSessionResource class.
  5221. This class is instantiated in PeerInteractionCommand class's ctor and
  5222. released in its dtor.
  5223. This will make Peer class lightweight and uses less memory for peers
  5224. which are not connected and wait in the queue.
  5225. * src/PeerChokeCommand.cc
  5226. * src/PeerSessionResource.{h, cc}
  5227. * src/PeerInteractionCommand.cc
  5228. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  5229. * src/DefaultBtInteractive.cc
  5230. * src/BtPieceMessage.cc
  5231. * src/BtInterestedMessage.cc
  5232. * src/BtUnchokeMessage.cc
  5233. * src/DefaultPeerStorage.{h, cc}
  5234. * src/PeerInitiateConnectionCommand.cc
  5235. * src/ActivePeerConnectionCommand.cc
  5236. * src/BtNotInterestedMessage.cc
  5237. * src/DefaultBtMessageDispatcher.cc
  5238. * src/BtChokeMessage.cc
  5239. * src/BtRequestMessage.cc
  5240. * src/Peer.{h, cc}
  5241. * src/BtRegistry.h
  5242. * src/TrackerWatcherCommand.cc
  5243. * src/PeerReceiveHandshakeCommand.cc
  5244. * test/BtExtendedMessageTest.cc
  5245. * test/BtAllowedFastMessageTest.cc
  5246. * test/BtCancelMessageTest.cc
  5247. * test/DefaultPieceStorageTest.cc
  5248. * test/BtBitfieldMessageTest.cc
  5249. * test/BtHaveMessageTest.cc
  5250. * test/BtNotInterestedMessageTest.cc
  5251. * test/BtRequestMessageTest.cc
  5252. * test/PeerSessionResourceTest.cc
  5253. * test/DefaultBtMessageDispatcherTest.cc
  5254. * test/PeerTest.cc
  5255. * test/BtInterestedMessageTest.cc
  5256. * test/BtRejectMessageTest.cc
  5257. * test/BtChokeMessageTest.cc
  5258. * test/DefaultPeerStorageTest.cc
  5259. * test/BtHaveNoneMessageTest.cc
  5260. * test/BtHaveAllMessageTest.cc
  5261. * test/DefaultExtensionMessageFactoryTest.cc
  5262. * test/BtUnchokeMessageTest.cc
  5263. * test/DefaultBtMessageFactoryTest.cc
  5264. * test/HandshakeExtensionMessageTest.cc
  5265. * test/UTPexExtensionMessageTest.cc
  5266. * test/DefaultBtRequestFactoryTest.cc
  5267. * test/BtPieceMessageTest.cc
  5268. Removed typedef PeerStats.
  5269. * src/PeerStat.h
  5270. * src/SegmentMan.cc
  5271. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5272. Added std namespace to copy, remove_copy, back_inserter,
  5273. front_inserter.
  5274. * src/RequestGroupMan.cc
  5275. * src/DefaultPieceStorage.cc
  5276. * src/StreamFileAllocationEntry.cc
  5277. * src/BtFileAllocationEntry.cc
  5278. * src/RequestGroup.cc
  5279. * src/MetalinkEntry.cc
  5280. * src/DelegatingPeerListProcessor.cc
  5281. * src/DefaultBtRequestFactory.cc
  5282. * src/DefaultBtMessageDispatcher.cc
  5283. * src/version_usage.cc: Included <algorithm>
  5284. * src/main.cc
  5285. * src/MetalinkParserController.cc
  5286. * src/DefaultBtContext.cc
  5287. * src/DownloadEngineFactory.cc
  5288. * src/a2algo.h
  5289. Removed.
  5290. * test/StreamUriListParserTest.cc
  5291. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5292. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  5293. ActivePeerConnectionCommand when it is given and
  5294. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  5295. * src/ActivePeerConnectionCommand.{h, cc}
  5296. * src/BtSetup.cc
  5297. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5298. Only add socket to DownloadEngine's select routine when peer or
  5299. localhost is unchoked and interested. This lowers CPU usage a
  5300. little bit.
  5301. * src/PeerInteractionCommand.cc
  5302. * src/PeerAbstractCommand.{h, cc}
  5303. * src/BtInteractive.h
  5304. * src/DefaultBtInteractive.{h, cc}
  5305. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5306. Revert previous change because get_peers message is needed for
  5307. announce_peer anyway.
  5308. * src/DHTGetPeersCommand.cc
  5309. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5310. Request peers thought DHT only when download hasn't finished.
  5311. * src/DHTGetPeersCommand.cc
  5312. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5313. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  5314. * src/DHTBucketRefreshTask.{h, cc}
  5315. * src/DHTSetup.cc
  5316. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5317. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  5318. standard classes.
  5319. Included string.h where mem* function are used.
  5320. Added namespace aria2.
  5321. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5322. Create directory before saving DHT routing table.
  5323. Now ios::failure is now handled properly.
  5324. * src/DHTAutoSaveCommand.cc
  5325. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5326. Removed unnecessary cerr.
  5327. * src/DownloadEngine.cc
  5328. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5329. Catch exception inside DHTMessageReceiver::receiveMessage().
  5330. Log unknown message.
  5331. * src/DHTMessageReceiver.{h, cc}
  5332. * src/DHTMessageFactory.h
  5333. * src/DHTMessageFactoryImpl.{h, cc}
  5334. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  5335. * src/DHTInteractionCommand.cc
  5336. * src/DHTUnknownMessage.{h, cc}
  5337. * test/DHTUnknownMessageTest.cc
  5338. * test/MockDHTMessageFactory.h
  5339. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5340. Commented out ip address comparison because a host can have multiple
  5341. ip addresses and it is hard to predict the hostname is resolved into
  5342. which one.
  5343. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  5344. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5345. * po/Makefile.in: Removed since this is generated by configure.
  5346. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5347. Fixed compiler warning about redefinition of SIZE_MAX.
  5348. Use common.h instead of config.h directly here.
  5349. * src/Platform.{h, cc}
  5350. The check of ENABLE_NLS is made in gettext.h, so it is not required
  5351. here.
  5352. * common.h
  5353. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  5354. Updated gettext related files.
  5355. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  5356. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  5357. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5358. Added DHT functionality, compatible with mainline.
  5359. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  5360. You may need to specify entry point to DHT network using
  5361. --dht-entry-point. DHT uses UDP port to listen incoming message.
  5362. Use --dht-listen-port to specify port number. Make sure that your
  5363. firewall configuration can pass through UDP traffic to the port.
  5364. The routing table is saved in $HOME/.aria2/dht.dat.
  5365. * src/DHT*
  5366. * src/BNode.{h, cc}
  5367. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  5368. particular torrent.
  5369. * src/Data.cc: Rewritten ctor.
  5370. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  5371. --dht-entry-point.
  5372. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  5373. * src/RequestGroup.cc: Initialize DHT functionality. When download
  5374. ends, remove BtContext from DHTPeerAnnounceStorage.
  5375. * src/BtPortMessage.{h, cc}: Rewritten.
  5376. * src/message.h
  5377. * src/OptionHandlerImpl.cc
  5378. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  5379. --dht-entry-point.
  5380. * src/Dictionary.{h, cc} (remove): New function.
  5381. * src/prefs.h
  5382. * src/DefaultBtMessageFactory.h
  5383. * src/BtHandshakeMessage.cc
  5384. * src/ActivePeerConnectionCommand.cc
  5385. * src/SocketCore.{h, cc}: Added datagram socket support.
  5386. * src/DefaultBtMessageFactory.cc
  5387. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  5388. Create DHT commands.
  5389. * src/BtMessageFactory.h
  5390. * src/PeerMessageUtil.{h, cc}
  5391. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5392. Fixed the bug that log file is not written when configuration file doesn't exist.
  5393. This is caused by using Logger class before LogFactory is not configured.
  5394. BUG #1875079
  5395. * src/option_processing.cc
  5396. Warning message "configuration doesn't exist" is only printed when --conf is
  5397. given.
  5398. * src/option_processing.cc
  5399. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5400. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  5401. ShaVisitor is now deprecated and slated to be removed.
  5402. * src/DefaultBtContext.cc
  5403. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5404. Externalize message to message.h
  5405. * src/Platform.cc
  5406. * src/message.h
  5407. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5408. Set default domain and default path to cookie.
  5409. * src/HttpResponse.cc
  5410. * src/CookieBox.{h, cc}
  5411. * src/CookieParser.{h, cc}
  5412. * test/CookieParserTest.cc
  5413. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5414. Added --no-conf and --conf-path command-line option.
  5415. --no-conf option disables loading aria2.conf file.
  5416. --conf-path option changes the configuration file path. The default
  5417. file path is $HOME/.aria2/aria2.conf
  5418. Added a warning message when the configuration file is not found.
  5419. * src/HelpItemFactory.cc
  5420. * src/option_processing.cc
  5421. * src/prefs.h
  5422. * src/usage_text.h
  5423. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5424. Added the message to inform users that other help categories are
  5425. available in -h option.
  5426. * src/version_usage.cc
  5427. * src/TagContainer.{h, cc}
  5428. * test/TagContainerTest.cc
  5429. * src/TaggedItem.{h, cc}
  5430. * test/TaggedItemTest.cc
  5431. * src/HelpItem.h
  5432. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5433. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  5434. from PiecedSegment's ctor.
  5435. Previously Piece::getAllMissingBlockIndexes() is called from
  5436. PiecedSegment() but it is rather expensive since only first element is
  5437. used.
  5438. * src/PiecedSegment.cc
  5439. * src/Piece.{h, cc}
  5440. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Rewritten get*Missing*Index functions. Now no need to allocate memory
  5442. each time these functions are called.
  5443. * src/BitfieldMan.{h, cc}
  5444. * test/BitfieldManTest.cc
  5445. * src/array_fun.h
  5446. * test/array_funTest.cc
  5447. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  5448. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  5449. filtered. Removed unnecessary cast to int32_t.
  5450. * src/BitfieldMan.{h, cc}
  5451. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5452. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  5453. payload length(4bytes) are received. This happens because lenbufLength
  5454. is not updated in this particular case and successive call of
  5455. receiveMessage() overwrites payload length with bytes recieved which
  5456. are payload body.
  5457. * src/PeerConnection.{h, cc}
  5458. * src/message.h
  5459. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5460. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  5461. peer if there are peers that have same ipaddr and port.
  5462. I've experiened segmentation fault and "pure virtual function was
  5463. called" error.
  5464. * src/Peer.h
  5465. * test/PeerTest.cc
  5466. * src/DefaultPeerStorage.cc
  5467. * test/DefaultPeerStorageTest.cc
  5468. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5469. Removed a call to isPowerOf() because it is no longer necessary here
  5470. and a request block is not always power of 2.
  5471. BUG#1866924
  5472. * src/PeerMessageUtil.cc (checkLength)
  5473. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5474. Fixed the bug that always first found Segment is removed from
  5475. usedSegmentEntries. Removed unused functions.
  5476. * src/SegmentMan.{h, cc}
  5477. * test/SegmentManTest.cc
  5478. Fixed the bug that ServerHost is not removed.
  5479. * src/RequestGroup.cc
  5480. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5481. Fixed the bug that SegmentMan::completeSegment() is not called
  5482. even if Segment is complete when --lowest-speed-limit is enabled.
  5483. BUG#1864525
  5484. * src/DownloadCommand.{h, cc}
  5485. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5486. Fixed: hash algorithm 'sha1' is always used.
  5487. * src/DownloadCommand.cc (validatePieceHash)
  5488. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5489. Added --enable-peer-exchange command-line option.
  5490. * src/OptionHandlerFactory.cc
  5491. * src/HelpItemFactory.cc
  5492. * src/option_processing.cc
  5493. * src/usage_text.h
  5494. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5495. Move extension from BtRuntime to ExtensionMessageFactory, because
  5496. extension can be specified per peer, not per torrent.
  5497. * src/DefaultBtInteractive.cc
  5498. * src/BtRuntime.h
  5499. * src/ExtendedMessagingAware.h
  5500. * src/ExtensionMessageFactory.h
  5501. * src/DefaultExtensionMessageFactory.cc
  5502. * test/DefaultExtensionMessageFactoryTest.cc
  5503. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5504. Added categorized option help. Specify category using --help option.
  5505. Also added the ability to search options in forward match.
  5506. * src/HelpItem.{h, cc}
  5507. * test/HelpItemTest.cc
  5508. * src/HelpItemFactory.{h, cc}
  5509. * src/TagContainer.{h, cc}
  5510. * test/TagContainerTest.cc
  5511. * src/option_processing.cc
  5512. * src/prefs.h
  5513. * src/TaggedItem.{h, cc}
  5514. * test/TaggedItemTest.cc
  5515. * src/version_usage.cc
  5516. * src/help_tags.h
  5517. * src/usage_text.h
  5518. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5519. Fixed segmentation fault when bad torrent metainfo is parsed.
  5520. Added dynamic_cast properly to detect the misconfiguration of metainfo
  5521. and then throw exception or skip it.
  5522. * src/DefaultBtContext.{h, cc}
  5523. * test/DefaultBtContextTest.cc
  5524. * src/AnnounceList.cc
  5525. * src/CompactPeerListProcessor.cc
  5526. * src/message.h
  5527. * src/DefaultBtAnnounce.{h, cc}
  5528. * test/DefaultBtAnnounceTest.cc
  5529. * src/BencodeVisitor.cc
  5530. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5531. Added missing "B"(=Byte). So now the message looks like this:
  5532. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  5533. * src/message.h (MSG_SHARE_RATIO_REPORT)
  5534. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5535. Show the seed ratio after torrent downloads.
  5536. For example, after torrent download completed and --seed-time and
  5537. --seed-ratio conditions are fulfilled, following message is printed
  5538. right after "Download complete: .....":
  5539. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  5540. * src/RequestGroupMan.cc
  5541. * src/RequestGroup.{h, cc}
  5542. * src/message.h
  5543. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5544. Remove a defunct control file. A defunct control file means that while
  5545. it exists, but the corresponding download file is missing.
  5546. After its removal, a download restarts from the beginning.
  5547. * src/RequestGroup.cc
  5548. * src/message.h
  5549. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5550. Allocate bitfield in Peer when it is really used. More specifically,
  5551. bitfield in Peer is allocated after the connection is established and
  5552. deallocated when the connection is dropped.
  5553. Since 2 parameters(piece length and total length) was removed from the
  5554. constructor of Peer class, many test classes were modified accordingly.
  5555. See svn log for more detailed information.
  5556. * src/PeerInteractionCommand.cc
  5557. * src/CompactPeerListProcessor.cc
  5558. * src/Peer.cc
  5559. * src/DefaultPeerListProcessor.cc
  5560. * src/PeerListenCommand.cc
  5561. * src/PeerReceiveHandshakeCommand.cc
  5562. Fixed memory leak
  5563. * src/Piece.cc
  5564. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5565. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  5566. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  5567. command-line options.
  5568. * src/option_processing.cc
  5569. * src/ActivePeerConnectionCommand.cc
  5570. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5571. Send have message to peer if it already has the piece.
  5572. * src/BtHaveMessage.{h, cc}
  5573. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5574. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  5575. port.
  5576. * src/DefaultPeerStorage.{h, cc}
  5577. * test/DefaultPeerStorageTest.cc
  5578. * src/HandshakeExtensionMessage.cc
  5579. * test/HandshakeExtensionMessageTest.cc
  5580. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  5581. * src/PeerStorage.h
  5582. * test/MockPeerStorage.h
  5583. * src/PeerListenCommand.cc
  5584. * src/PeerReceiveHandshakeCommand.cc
  5585. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5586. Added --metalink-enable-unique-protocol option.
  5587. * src/Metalink2RequestGroup.cc
  5588. * src/option_processing.cc
  5589. * src/prefs.h
  5590. * src/version_usage.cc
  5591. * doc/aria2c.1.txt
  5592. * doc/aria2c.1
  5593. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5594. Allow a peer in incomingPeer to be added peers.
  5595. * src/DefaultPeerStorage.cc
  5596. * test/DefaultPeerStorageTest.cc
  5597. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5598. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  5599. I could reproduce this bug in following procedure:
  5600. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  5601. 2. Restart aria2.
  5602. 3. You see the download stopped around 99%.
  5603. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  5604. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  5605. If timeout is reached, then _nextCommand is unused and it may contains
  5606. segments and they won't be canceled. Actually, timeout is not needed
  5607. here because if the server dropped connection, then retry is made.
  5608. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5609. Added uTorrent compatible Peer Exchange.
  5610. * src/BencodeVisitor.{h, cc}
  5611. * test/BencodeVisitorTest.cc
  5612. * src/BtConstants.h
  5613. * src/BtContext.h: Added 'private' flag.
  5614. * src/BtExtendedMessage.{h, cc}
  5615. * test/BtExtendedMessageTest.cc
  5616. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  5617. reserved field.
  5618. * test/BtHandshakeMessageTest.cc
  5619. * src/BtMessageFactory.h
  5620. * src/BtRegistry.h
  5621. * src/BtRuntime.h: This class holds default extension message IDs for
  5622. aria2. By default, aria2 uses ID 8 for ut_pex.
  5623. * src/DefaultBtContext.cc
  5624. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  5625. When it is true, aria2 enables ut_pex. This value is set by
  5626. PeerInteractionCommand.
  5627. * src/DefaultBtMessageFactory.{h, cc}
  5628. * test/DefaultBtMessageFactoryTest.cc
  5629. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  5630. handling to DefaultBtInteractive class.
  5631. * src/DefaultExtensionMessageFactory.{h, cc}
  5632. * test/DefaultExtensionMessageFactoryTest.cc
  5633. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  5634. the container(peers and incomingPeers. The equality is determined by
  5635. Peer::id).
  5636. * test/DefaultPeerStorageTest.cc
  5637. * src/ExtensionMessage.h
  5638. * test/MockExtensionMessage.h
  5639. * src/ExtensionMessageFactory.h
  5640. * test/MockExtensionMessageFactory.h
  5641. * src/HandshakeExtensionMessage.{h, cc}
  5642. * test/HandshakeExtensionMessageTest.cc
  5643. * src/MetaEntry.h
  5644. * src/Peer.{h, cc}
  5645. * src/PeerInteractionCommand.cc
  5646. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  5647. addIncomingPeer.
  5648. * src/PeerMessageUtil.{h, cc}
  5649. * src/PeerObject.h
  5650. * src/UTPexExtensionMessage.{h, cc}
  5651. * test/UTPexExtensionMessageTest.cc
  5652. * src/message.h
  5653. * src/prefs.h
  5654. Fixed the bug that returns incomplete data when it contains null
  5655. character. A convenient constructor was also added.
  5656. * src/Data.{h, cc}
  5657. Rewritten.
  5658. * src/CompactPeerListProcessor.cc
  5659. Fixed typos.
  5660. * src/message.h
  5661. * src/MetaFileUtil.cc
  5662. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5663. Added "Status Legend" label to the explanation text of 'stat' in
  5664. download result and moved it to the last. BUG#1848214
  5665. * src/RequestGroupMan.cc
  5666. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5667. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  5668. * src/Makefie.am
  5669. * test/Makefile.am
  5670. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5671. Fixed the bug that prevents aria2 from loading cookie file when expire
  5672. value is greater than 2^31-1. BUG#1851066
  5673. * src/CookieBoxFactory.cc
  5674. * test/CookieBoxFactoryTest.cc
  5675. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5676. Fixed possible memory leak when an exception is thrown.
  5677. * src/XML2SAXMetalinkProcessor.cc
  5678. Added Expat support. If both libxml2 and Expat are installed, then
  5679. libxml2 is used by default.
  5680. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  5681. ExpatMetalinkProcessor according to the configuration.
  5682. * src/ExpatMetalinkProcessor.{h, cc}
  5683. * src/main.cc: Removed libxml2 specific header and init/free function.
  5684. * src/MetalinkProcessorFactory.{h, cc}
  5685. * src/MetalinkHelper.cc
  5686. * src/Metalinker.h: Removed unnecessary libxml2 header.
  5687. * src/MetalinkProcessor.h
  5688. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  5689. MetalinkProcessorTest is used instead.
  5690. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  5691. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  5692. MetalinkProcessorFactory::newInstance().
  5693. * m4/libexpat.m4
  5694. * configure.ac: Added configuration options for libexpat.
  5695. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5696. Disabled -s option in metalink download.
  5697. * src/Metalink2RequestGroup.cc
  5698. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5699. If several protocols are available for a mirror in metalink file,
  5700. aria2 now use one of them. --metalink-preferred-protocol option was
  5701. added to specify the preference of protocol.
  5702. * src/AbstractCommand.cc
  5703. * src/OptionHandlerFactory.cc
  5704. * src/ServerHost.{h, cc}
  5705. * src/Metalink2RequestGroup.cc
  5706. * src/RequestGroup.{h, cc}
  5707. * test/RequestGroupTest.cc
  5708. * src/option_processing.cc
  5709. * src/prefs.h
  5710. * src/HttpResponseCommand.cc
  5711. * src/MetalinkResource.{h, cc}
  5712. * src/FtpNegotiationCommand.cc
  5713. * src/MetalinkEntry.{h, cc}
  5714. * src/MetalinkEntryTest.cc
  5715. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5716. Code cleanup and added debug log.
  5717. * src/PeerConnection.cc
  5718. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5719. Compiler error fix: applied the patch by Tiziano Mueller
  5720. * src/RequestGroup.cc
  5721. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5722. Fixed the bug: only first announce URL is tried in AnnounceTier,
  5723. in stopped and completed event.
  5724. * src/AnnounceList.{h, cc}
  5725. * test/AnnounceListTest.cc
  5726. * src/DefaultBtAnnounce.cc
  5727. * test/DefaultBtAnnounceTest.cc
  5728. Sorted URLs.
  5729. * test/Metalink2RequestGroupTest.cc
  5730. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5731. Removed unnecessary string copy. Updated doc and corrected indentation.
  5732. * src/Base64.cc
  5733. Fixed compilation warnings
  5734. * test/DataTest.cc
  5735. * test/HttpRequestTest.cc
  5736. * test/MetaFileUtilTest.cc
  5737. * test/RequestTest.cc
  5738. * Release 0.12.0
  5739. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5740. Updated translations
  5741. * po/{de,fr,ja,nl,ru}.po
  5742. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  5743. translations. Many thanks to translators.
  5744. * po/{ca,es,it,pt_BR,sv}.po
  5745. * po/LINGUAS
  5746. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5747. Added a notice about URL
  5748. * src/version_usage.cc
  5749. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  5750. Fixed the bug#1845750; CTRL+C does not stop torrent.
  5751. aria2 repeatedly sends stopped request when tracker returns error code.
  5752. * src/AnnounceList.cc
  5753. * test/AnnounceListTest.cc
  5754. * src/AnnounceTier.h
  5755. Added a message when ctrl-c is hit.
  5756. Now second ctrl-c is also handled in signal handler.
  5757. * src/RequestGroupMan.{h, cc}
  5758. * src/RequestGroup.{h, cc}
  5759. * src/MultiUrlRequestInfo.cc
  5760. * src/DownloadEngine.cc
  5761. * src/TrackerWatcherCommand.cc
  5762. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5763. Code cleanup
  5764. * src/Base64.cc (encode)
  5765. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5766. Changed Direct/IO enable/disable procesure in file allocation routine.
  5767. * src/SingleFileAllocationIterator.cc
  5768. (SingleFileAllocationIterator):
  5769. Disable directIO if offset is not multiple of 512.
  5770. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  5771. * src/MultiFileAllocationIterator.cc (allocateChunk):
  5772. Enable created SingleFileAllocationIterator's directIO.
  5773. * src/FileAllocationEntry.cc
  5774. (FileAllocationEntry): Enable directIO here.
  5775. (~FileAllocationEntry): Disable directIO here.
  5776. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5777. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  5778. * src/Peer.{h, cc}
  5779. * src/DefaultPieceStorage.cc
  5780. * test/DefaultPieceStorageTest.cc
  5781. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5782. Rewritten direct I/O support routine
  5783. * src/SingleFileAllocationIterator.cc
  5784. * src/MultiDiskAdaptor.{h, cc}
  5785. * src/ByteArrayDiskWriter.h
  5786. * src/AbstractSingleDiskAdaptor.h
  5787. * src/AbstractDiskWriter.cc
  5788. * src/DefaultPieceStorage.cc
  5789. * src/DiskWriter.h
  5790. * src/BinaryStream.h
  5791. * src/IteratableChunkChecksumValidator.cc
  5792. * src/IteratableChecksumValidator.cc
  5793. * src/CheckIntegrityEntry.cc
  5794. * src/FileAllocationEntry.cc
  5795. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Fixed typo
  5797. * src/version_usage.cc
  5798. Updated doc
  5799. * doc/aria2c.1.txt
  5800. * doc/aria2c.1
  5801. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5802. Fixed compile error without message digest support.
  5803. * src/FileMetalinkParserState.cc
  5804. * src/MetalinkParserController.{h, cc}
  5805. * test/XML2SAXMetalinkProcessorTest.cc
  5806. * test/MetalinkParserControllerTest.cc
  5807. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5808. Enable direct I/O support in checksum checking.
  5809. * src/IteratableChunkChecksumValidator.{h, cc}
  5810. * test/IteratableChunkChecksumValidatorTest.cc
  5811. * src/CheckIntegrityEntry.cc
  5812. * src/PieceHashCheckIntegrityEntry.cc
  5813. * src/IteratableChecksumValidator.{h, cc}
  5814. * src/BtCheckIntegrityEntry.cc: Added doc.
  5815. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5816. Added --allow-piece-length-change option.
  5817. * src/DefaultBtProgressInfoFile.cc
  5818. * test/DefaultBtProgressInfoFileTest.cc
  5819. * src/OptionHandlerFactory.cc
  5820. * src/option_processing.cc
  5821. * src/prefs.h
  5822. * src/version_usage.cc
  5823. * doc/aria2c.1.txt
  5824. * doc/aria2c.1
  5825. Fixed: duplicated result entry appears when exception is thrown in
  5826. RequestGroup::createInitiateConnectionCommand().
  5827. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  5828. Add RequestGroup to _requestGroup after RequetGroup::
  5829. createInitiateConnectionCommand() succeeds.
  5830. Externalized message
  5831. * src/XML2SAXMetalinkProcessor.cc
  5832. * src/message.h
  5833. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5834. Forced download abort when received negative response from http/ftp
  5835. server.
  5836. * src/HttpResponseCommand.cc
  5837. * src/FtpNegotiationCommand.cc
  5838. * src/HttpResponse.cc
  5839. * src/FtpConnection.cc
  5840. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5841. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  5842. the predecessor, Xml2MetalinkParser class.
  5843. I tested them against 94KB metalink file with 1234 chunk checksums.
  5844. The new one parsed it in 22msec, while it took 6000msec with old one.
  5845. * src/XML2SAXMetalinkProcessor.{h, cc}
  5846. * test/XML2SAXMetalinkProcessorTest.cc
  5847. * src/MetalinkParserController.{h, cc}
  5848. * test/MetalinkParserControllerTest.cc
  5849. * src/MetalinkParserState.h: Also added 16 subclasses.
  5850. * src/main.cc
  5851. * src/Metalink2RequestGroup.cc
  5852. * src/MetalinkHelper.cc
  5853. * src/MetalinkEntry.cc
  5854. * src/ChunkChecksum.h
  5855. Rewritten Base64 class for better performance.
  5856. * src/Base64.{h, cc}
  5857. * test/Base64Test.cc
  5858. * src/HttpRequest.cc
  5859. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5860. Fixed the bug#1841757: aria2 will connect to server to only get
  5861. file size.
  5862. * src/StreamFileAllocationEntry.cc
  5863. * src/option_processing.cc
  5864. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  5865. downloads.
  5866. * src/FtpNegotiationCommand.cc
  5867. Suppressed wrong message when finding PreDownloadHandler
  5868. * src/RequestGroup.cc
  5869. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Updated usage
  5871. * src/version_usage.cc
  5872. Updated man page
  5873. * doc/aria2c.1.txt
  5874. * doc/aria2c.1
  5875. Updated po files
  5876. * po/aria2c.pot
  5877. * po/*.po
  5878. * po/*.gmo
  5879. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5880. Eliminated g++-4.2 warning
  5881. * src/DownloadHandlerConstants.{h, cc}
  5882. * src/Util.cc
  5883. * test/MetaFileUtilTest.cc
  5884. * test/PStringBuildVisitorTest.cc
  5885. Fixed bug: --check-integrity doesn't work for multi file torrent.
  5886. * src/RequestGroup.cc
  5887. * src/BtCheckIntegrityEntry.cc
  5888. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5889. Fixed a2io.h
  5890. * src/a2io.h
  5891. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5892. Added direct I/O support. The current implementation uses O_DIRECT,
  5893. which is not posix standard and is tested on linux 2.6.21.
  5894. Currently only file allocation uses direct I/O.
  5895. * src/SingleFileAllocationIterator.{h, cc}
  5896. * test/SingleFileAllocationIteratorTest.cc
  5897. * src/MultiFileAllocationIterator.{h, cc}
  5898. * test/MultiFileAllocationIteratorTest.cc
  5899. * src/BinaryStream.h
  5900. * src/DiskWriter.h
  5901. * src/AbstractDiskWriter.{h, cc}
  5902. * src/ByteArrayDiskWriter.h
  5903. * src/DiskAdaptor.h
  5904. * src/AbstractSingleDiskAdaptor.{h, cc}
  5905. * src/MultiDiskAdaptor.{h, cc}
  5906. * src/FileAllocationEntry.cc
  5907. * src/Util.{h, cc}
  5908. * src/OptionHandlerFactory.cc
  5909. * src/prefs.h
  5910. * src/version_usage.cc
  5911. * src/option_processing.cc
  5912. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  5913. handleException.
  5914. * src/MultiFileAllocationIterator.cc
  5915. Added EINTR handling
  5916. * src/SocketCore.cc
  5917. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5918. Updated usage
  5919. * src/version_usage.cc
  5920. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5921. Applied Ross's patch for MinGW port.
  5922. * src/DownloadEngine.h
  5923. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5924. Set Content-Type to SingleFileDownloadContext when http response is
  5925. received.
  5926. * src/HttpResponseCommand.cc
  5927. * src/HttpResponse.{h, cc}
  5928. * test/HttpResponseTest.cc
  5929. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5930. Rewritten to add content-type support.
  5931. * src/DownloadHandler.{h, cc}
  5932. * src/BtPostDownloadHandler.{h, cc}
  5933. * test/BtPostDownloadHandlerTest.cc
  5934. * src/MetalinkPostDownloadHandler.{h, cc}
  5935. * test/MetalinkPostDownloadHandlerTest.cc
  5936. * src/PostDownloadHandler.{h, cc}
  5937. * src/DownloadHandlerConstants.{h, cc}
  5938. * src/RequestGroup.cc
  5939. * src/HttpResponseCommand.cc
  5940. * src/FtpNegotiationCommand.cc
  5941. * src/SingleFileDownloadContext.{h, cc}
  5942. * src/RequestGroup.h
  5943. * src/RequestGroupCriteria.h
  5944. * src/ContentTypeRequestGroupCriteria.h
  5945. Added 'mem' option value for --follow-metalink, --follow-torrent.
  5946. If it is give, metalink/torrent file is not written to the disk, but
  5947. just is kept in memory. Parsing is occurred on memory.
  5948. * src/MetalinkHelper.{h, cc}
  5949. * src/MetalinkProcessor.h
  5950. * src/Xml2MetalinkProcessor.{h, cc}
  5951. * test/Xml2MetalinkProcessorTest.cc
  5952. * src/DownloadHandlerFactory.{h, cc}
  5953. * test/DownloadHandlerFactoryTest.cc
  5954. * src/PreDownloadHandler.{h, cc}
  5955. * src/OptionHandlerFactory.cc
  5956. * src/DefaultBtContext.{h, cc}
  5957. * test/DefaultBtContextTest.cc
  5958. * src/version_usage.cc
  5959. * src/Metalink2RequestGroup.{h, cc}
  5960. * src/RequestGroup.{h, cc}
  5961. * src/a2functional.h
  5962. * test/a2functionalTest.cc
  5963. * src/MemoryBufferPreDownloadHandler.{h, cc}
  5964. * src/OptionHandlerImpl.h
  5965. * src/prefs.h
  5966. * src/Util.{h, cc}
  5967. * test/UtilTest.cc
  5968. Keep DownloadResult rather than RequestGroup after downloads to reduce
  5969. memory usage.
  5970. * src/RequestGroupMan.{h, cc}
  5971. * src/DownloadEngine.cc
  5972. * src/BtDependency.{h, cc}: Changed the type of dependee from
  5973. WeakHandle to SharedHandle because WeakHandle could be null.
  5974. * src/RequestGroup.{h, cc}
  5975. * src/DownloadEngineFactory.cc
  5976. * src/DownloadResult.h
  5977. Set totalLength after download finished
  5978. * src/UnknownLengthPieceStorage.{h, cc}
  5979. Keep torrent file specified in metalink in memory.
  5980. * src/Metalink2RequestGroup.cc
  5981. * src/BtDependency.cc
  5982. * src/TrueRequestGroupCriteria.h
  5983. Fixed the bug: seekg is used where seekp should be used.
  5984. * src/ByteArrayDiskWriter.cc
  5985. * test/ByteArraydiskWriterTest.cc
  5986. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5987. Fixed syntax error
  5988. * test/SequenceTest.cc
  5989. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5990. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5991. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  5992. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  5993. * src/RequestGroup.cc (downloadFinishedByFileLength)
  5994. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. Added the check to see whether ares_host_callback accepts timeouts
  5996. with c-ares; only c-ares 1.5.0 or newer accepts it.
  5997. * src/NameResolver.{h, cc}
  5998. * m4/libcares.m4
  5999. * configure.ac: Set C++ for language choice.
  6000. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6001. Fixed: compilation fails without c-ares/ares
  6002. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  6003. Generate http/ftp commands only when download is incomplete.
  6004. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  6005. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6006. Corrected typo. Examples are removed since they are available in man
  6007. page.
  6008. * src/version_usage.cc
  6009. Updated man page.
  6010. * doc/aria2c.1
  6011. * doc/aria2c.1.txt
  6012. * doc/makeman: Commented out sed command.
  6013. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6014. Throw DlAbortEx when a remote file is not found.
  6015. * src/HttpResponse.cc
  6016. * src/FtpNegotiationCommand.cc
  6017. * src/message.h
  6018. Overwrite an existing file if --allow-overwrite=true is given.
  6019. * src/RequestGroup.cc
  6020. Removed unused functions
  6021. * src/AbstractCommand.h
  6022. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6023. Removed 'extern' from 'extern typedef ...' in src/*.h
  6024. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6025. Updated usage
  6026. * src/version_usage.cc
  6027. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6028. Trim announce URL
  6029. * src/DefaultBtContext.cc
  6030. * test/ShaVisitorTest.cc
  6031. Trim argument s. Give trimed s to exception constructor.
  6032. * src/Util.cc (parseInt)(parseLLInt)
  6033. * test/UtilTest.cc
  6034. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6035. Set precision back to 1.
  6036. * src/ConsoleStatCalc.cc (calculateStat)
  6037. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6038. Replaced strtol with Util::parseInt
  6039. * src/ChunkedEncoding.cc
  6040. * src/HttpConnection.cc
  6041. * src/CookieBoxFactory.cc
  6042. * src/ParameterizedStringParser.cc
  6043. * src/Util.cc
  6044. * test/UtilTest.cc
  6045. * test/OptionHandlerTest.cc
  6046. * src/Request.cc
  6047. Throw exception when empty string is given. The message for exception
  6048. changed.
  6049. * src/Util.cc (parseInt)(parseLLInt)
  6050. * src/message.h
  6051. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6052. Set precision to 2 because share ratio is rounded into 1.0 if precision
  6053. set to 1.
  6054. * src/ConsoleStatCalc.cc (calculateStat)
  6055. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Preallocate non-requested file which is adjacent forward to requested
  6057. file('requested' files means the files given in --select-file option)
  6058. if they share a same piece.
  6059. This fixes long pause in the file system which doesn't support sparse
  6060. files like FAT32 while downloading.
  6061. * src/MultiFileAllocationIterator.{h, cc}
  6062. * test/MultiFileAllocationIteratorTest.cc
  6063. * src/FileEntry.{h, cc}
  6064. Removed unused _option.
  6065. * src/MultiDiskAdaptor.h
  6066. * test/MultiDiskAdaptorTest.cc
  6067. * src/DefaultPieceStorage.cc
  6068. Set the default value of --seed-ratio to 1.0.
  6069. If 0.0 is given, then seeding continues regardless of share ratio.
  6070. * src/version_usage.cc
  6071. * src/option_processing.cc
  6072. * src/BtSetup.cc
  6073. * doc/aria2c.1.txt
  6074. * doc/aria2c.1
  6075. Fixed: Selective download is not working in BitTorrent
  6076. * src/RequestGroup.cc
  6077. Introduced Sequence class. Use this instead of Util::unfoldRange()
  6078. * src/PieceStorage.h
  6079. * test/MockPieceStorage.h
  6080. * src/UnknownLengthPieceStorage.h
  6081. * src/DefaultPieceStorage.{h, cc}
  6082. * src/Metalink2RequestGroup.cc
  6083. * src/RequestGroup.cc
  6084. * src/Sequence.h
  6085. * test/SequenceTest.cc
  6086. * src/IntSequence.h
  6087. * src/message.h
  6088. * src/Util.{h, cc}
  6089. * test/UtilTest.cc
  6090. Added new function 'parse' to catch exception thrown by subclass's
  6091. parseArg
  6092. * src/OptionHandler.h
  6093. * src/OptionParser.cc
  6094. * src/NameMatchOptionHandler.h
  6095. * src/OptionHandlerImpl.h
  6096. * test/OptionHandlerTest.cc
  6097. Added IntegerRangeOptionHandler. Used for --listen-port and
  6098. --select-file. Now --listen-port accepts range of port.
  6099. * src/OptionHandlerFactory.cc
  6100. * src/version_usage.cc
  6101. * src/OptionHandlerImpl.h
  6102. * src/option_processing.cc
  6103. * src/BtSetup.cc
  6104. * src/PeerListenCommand.{h, cc}
  6105. * doc/aria2c.1.txt
  6106. * doc/aria2c.1
  6107. Implemented operator< for Exception class to provide easy way to print
  6108. exception stack trace.
  6109. * src/Exception.{h, cc}
  6110. * src/main.cc
  6111. * src/option_processing.cc
  6112. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6113. * src/version_usage.cc
  6114. (showVersion): Reworked.
  6115. (showUsage): Added examples.
  6116. Removed Hint for total length and file name.
  6117. * src/Metalink2RequestGroup.cc
  6118. * src/RequestGroup.{h, cc}
  6119. * src/HttpResponseCommand.cc
  6120. * src/FtpNegotiationCommand.cc
  6121. Now --follow-torrent and --follow-metalink option work properly.
  6122. * src/RequestGroup.cc
  6123. Updated man page
  6124. * doc/aria2c.1.txt
  6125. * doc/aria2c.1
  6126. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6127. Removed.
  6128. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  6129. Use Segment::operator==()
  6130. * src/HttpConnection.cc
  6131. * src/Segment.h
  6132. Updated usage
  6133. * src/version_usage.cc
  6134. Added EINTR treatment.
  6135. * src/SocketCore.cc
  6136. * src/AbstractDiskWriter.cc
  6137. Rewritten.
  6138. * src/Util.cc (rangedFileCopy)
  6139. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6140. Fixed typo.
  6141. * src/version_usage.cc
  6142. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6143. Implemented. Now -c option works fine.
  6144. * src/DefaultPieceStorage.cc (markPiecesDone)
  6145. * test/DefaultPieceStorageTest.cc
  6146. Removed.
  6147. * src/SegmentMan.{h, cc}
  6148. (markAllPiecesDone)
  6149. (markPieceDone)
  6150. Synchronized po files with
  6151. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  6152. * src/fr.po
  6153. * src/ru.po
  6154. * src/de.po
  6155. * src/ja.po
  6156. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6157. Added ifdef and some modifications to compile without BitTorrent,
  6158. Metalink, MessageDigest
  6159. support.
  6160. * src/PieceHashCheckIntegrityEntry.cc
  6161. * src/MetalinkEntry.h
  6162. * src/version_usage.cc
  6163. * src/main.cc
  6164. * src/DownloadEngine.{h, cc}
  6165. * src/Metalink2RequestGroup.cc
  6166. * src/Peer.cc
  6167. * src/RequestGroup.cc
  6168. * src/MetalinkHelper.cc
  6169. * test/DefaultPieceStorageTest.cc
  6170. * test/MetalinkPostDownloadHandlerTest.cc
  6171. * test/Metalink2RequestGroupTest.cc
  6172. Hide TOTAL SPD when all downloads complete.
  6173. * src/ConsoleStatCalc.cc
  6174. Log target system information.
  6175. * src/main.cc
  6176. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6177. Now --metalink-location accepts a comma-deliminated list of locations.
  6178. * src/MetalinkEntry.{h, cc}
  6179. * test/MetalinkEntryTest.cc
  6180. * src/version_usage.cc
  6181. * src/Metalink2RequestGroup.cc
  6182. * src/Xml2MetalinkProcessor.cc
  6183. * test/Xml2MetalinkProcessorTest.cc
  6184. * doc/aria2c.1.txt
  6185. * doc/aria2c.1
  6186. * src/Util.cc (toUpper)(toLower): Rewritten.
  6187. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6188. Added the ability to detect duplicate download entry which is about to
  6189. download the same file other RequestGroup is downloading.
  6190. * src/RequestGroup.cc
  6191. * src/HttpResponseCommand.cc
  6192. * src/FtpNegotiationCommand.cc
  6193. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6194. Recalculates download progress when loading a control file,
  6195. if the piece length of DownloadContext is different from the one saved
  6196. in the control file. Currently in-flight pieces are ignored.
  6197. * src/DefaultBtProgressInfoFile.cc
  6198. * test/DefaultBtProgressInfoFileTest.cc
  6199. * src/Util.{h, cc}
  6200. * test/UtilTest.cc
  6201. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Do not rotate tiers in announce-list.
  6203. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  6204. AnnounceList::allTiersFailed() used instead to detect whether all
  6205. tiers are tried and failed.
  6206. * test/DefaultBtAnnounceTest.cc
  6207. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  6208. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  6209. * test/AnnounceListTest.cc
  6210. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  6211. clause. Catch RecoverableException instead of DlRetryEx instead.
  6212. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Implemented checksum validation feature(1 checksum for each file)
  6214. The validation takes place after the download.
  6215. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  6216. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  6217. * src/CheckIntegrityCommand.cc: Changed log message.
  6218. * src/Metalink2RequestGroup.cc: Set checksum to
  6219. SingleFileDownloadContext.
  6220. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  6221. PieceHashCheckIntegrity class.
  6222. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  6223. PieceHashCheckIntegrity class.
  6224. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  6225. * src/IteratableValidator.h: New class.
  6226. * src/message.h
  6227. * src/CheckIntegrityEntry.{h, cc}
  6228. * src/IteratableChunkChecksumValidator.{h, cc}
  6229. * src/SingleFileDownloadContext.h
  6230. * src/DownloadCommand.cc
  6231. --allow-overwrite=true is no longer needed to check file integrity
  6232. before download in BitTorrent download.
  6233. * src/RequestGroup.cc (getInitialCommand)
  6234. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  6235. throws exception.
  6236. * src/RequestGroupMan.cc (getInitialCommands)
  6237. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6238. urlencode the given url inside Request::parseUrl(...)
  6239. * src/Request.{h, cc}
  6240. * src/Util.{h, cc}
  6241. * test/RequestTest.cc
  6242. Removed #!metalink3! notation support because it is deleted from
  6243. the metalink specification.
  6244. * src/Request.{h, cc}
  6245. * test/RequestTest.cc
  6246. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6247. Don't connect server before checking file integrity at startup, if
  6248. filesize and output file path are known.
  6249. * src/AbstractCommand.cc
  6250. * src/StreamFileAllocationEntry.cc
  6251. * src/Metalink2RequestGroup.cc
  6252. * src/RequestGroup.{h, cc}
  6253. * src/HttpResponseCommand.cc
  6254. * src/FtpNegotiationCommand.cc
  6255. Added DownloadFailureException. If it is thrown, RequestGroup should
  6256. halt.
  6257. * src/AbstractCommand.cc
  6258. * src/DownloadFailureException.h
  6259. * src/RequestGroup.cc
  6260. Catch RecoverableException, instead of DlAbortEx.
  6261. * src/RequestGroupMan.cc
  6262. * src/FillRequestGroupCommand.cc
  6263. * src/MetaFileUtil.cc
  6264. * src/IteratableChunkChecksumValidator.cc
  6265. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  6266. getGID())
  6267. * src/CheckIntegrityCommand.cc
  6268. * src/message.h
  6269. Print gid instead of idx.
  6270. * src/RequestGroupMan.cc
  6271. Removed exception throwers declaration.
  6272. * src/DirectDiskAdaptor.{h, cc}
  6273. * src/SocketCore.{h, cc}
  6274. * src/MultiDiskAdaptor.{h, cc}
  6275. * src/HttpConnection.{h, cc}
  6276. * src/HttpResponse.{h, cc}
  6277. * src/DiskAdaptor.{h, cc}
  6278. * src/CopyDiskAdaptor.{h, cc}
  6279. * src/MultiDiskAdaptor.{h, cc}
  6280. * src/HttpHeaderProcessor.{h, cc}
  6281. * src/AbstractSingleDiskAdaptor.{h, cc}
  6282. * src/Util.{h, cc}
  6283. * test/UtilTest.cc
  6284. * src/DefaultDiskWriter.{h, cc}
  6285. * src/FtpConnection.{h, cc}
  6286. * src/AbstractDiskWriter.{h, cc}
  6287. Removed duplicate code.
  6288. * src/StreamCheckIntegrityEntry.cc
  6289. Removed unnecessary include.
  6290. * src/DiskWriter.h
  6291. Included Exception.h
  6292. * src/option_processing.cc
  6293. Included 2 files and added doc
  6294. * src/TrackerWatcherCommand.cc
  6295. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  6296. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6297. Changed CheckIntegrityEntry interface so that it can define
  6298. the action when all the chunk checksums are valid.
  6299. * src/CheckIntegrityEntry.h
  6300. * src/StreamCheckIntegrityEntry.{h, cc}
  6301. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  6302. are valid, then aira2 goes to seeding mode. Sometimes it is better
  6303. to exit rather than doing seeding. So, it would be good to toggle this
  6304. behavior.
  6305. * src/CheckIntegrityCommand.cc
  6306. * src/AbstractCommand.cc
  6307. * src/RequestGroup.cc
  6308. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Reflect the download length of in-flight pieces.
  6310. It makes the download length readout more precise.
  6311. * src/DefaultPieceStorage.{h, cc}
  6312. * test/DefaultPieceStorageTest.cc
  6313. * src/a2functional.h
  6314. * test/a2functionalTest.cc
  6315. Lower CPU load when --max-download-limit is used.
  6316. There is up and down in speed indicator when enabling
  6317. http-pipelining but a download goes well. I think the problem is that
  6318. because http-pipelining is enabled, DownloadCommand is created for
  6319. each segment and in its constructor, PeerStat::downloadStart() is
  6320. called. In PeerStat::downloadStart(), speed calculation object is
  6321. reseted, which makes download speed zero.
  6322. * src/DownloadCommand.cc
  6323. Rewritten using accumulate.
  6324. * src/RequestGroupMan.cc (calculateStat)
  6325. Code clearnup.
  6326. * src/FtpNegotiationCommand.cc
  6327. * src/HttpResponseCommand.cc
  6328. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6329. Fixed: Can not resume: aria2 reports download already finished.
  6330. * src/AbstractCommand.{h, cc}
  6331. * src/HttpResponseCommand.cc
  6332. * src/FtpNegotiateCommand.cc
  6333. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6334. Now a file is stored in the directory specified in .metalnk file
  6335. (file[@name]).
  6336. * src/Metalink2RequestGroup.cc
  6337. Create the directory structure when opening the file if it doesn't
  6338. exist.
  6339. * src/AbstractDiskWriter.cc
  6340. * src/Util.{h, cc}
  6341. * src/File.h
  6342. * test/UtilTest.cc
  6343. Removed file name comparison
  6344. * src/Metalink2RequestGroup.cc
  6345. * src/HttpResponseCommand.cc
  6346. Rewritten using Util::mkdirs()
  6347. * src/FileEntry.cc (setupDir)
  6348. * test/FileEntryTest.cc
  6349. Updated doc
  6350. * src/SingleFileDownloadContext.h
  6351. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6352. Now SleepCommand dispatches nextCommand when halt is requested.
  6353. It avoids a possible long wait after hitting CTRL-C.
  6354. * src/SleepCommand.{h, cc}
  6355. * src/RequestGroupAware.{h, cc}
  6356. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6357. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  6358. to open listen port, then remove the port number from the tracker
  6359. request.
  6360. * src/DefaultBtAnnounce.cc
  6361. * test/DefaultBtAnnounceTest.cc
  6362. * test/MockPieceStorage.h
  6363. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  6364. them more testable.
  6365. * src/DefaultBtAnnounce.{h, cc}
  6366. * src/DefaultBtContext.{h, cc}
  6367. * src/Util.{h, cc}
  6368. * test/DefaultBtAnnounceTest.cc
  6369. * test/DefaultBtContextTest.cc
  6370. * test/UtilTest.cc
  6371. Added 'B' to upload bytes readout.
  6372. * src/ConsoleStatCalc.cc
  6373. Now the listen port for BitTorrent download is opened when it is
  6374. needed.
  6375. * src/DownloadEngineFactory.cc
  6376. * src/BtSetup.{h, cc}
  6377. * src/PeerListenCommand.{h, cc}
  6378. Now an exception thrown while parsing tracker response is now logged.
  6379. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  6380. called, which means no retry is made in this case, assuming a tracker
  6381. has a problem.
  6382. * src/TrackerWatcherCommand.cc
  6383. Fixed: downloading a file whose length is unkown fails.
  6384. * src/DownloadCommand.cc
  6385. Simplified prepareForNextSegment()
  6386. * src/DownloadCommand.cc
  6387. Updated
  6388. * po/POTFILES.in
  6389. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6390. Re-implemented a file listing for Metalink, which was dropped while
  6391. http/ftp/torrent integration was being implemented.
  6392. * src/MetalinkHelper.{h, cc}: New class.
  6393. * test/MetalinkHelperTest.cc
  6394. * src/main.cc
  6395. * src/Metalink2RequestGroup.cc
  6396. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6397. Added the ability to display the detailed torrent file information.
  6398. Now -S option gives not only a file listing, but also total download
  6399. length, info hash, announce URI, piece length, the number of pieces,
  6400. and mode(single or multi-torrent).
  6401. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  6402. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  6403. KiB)
  6404. * test/UtilTest.cc
  6405. * src/main.cc
  6406. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6407. Added ftp://USER:PASSWD@Servername automatic parsing.
  6408. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  6409. _password. Recognize username and password in URI.
  6410. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  6411. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  6412. * src/RequestFactory.{h, cc}: Removed.
  6413. * src/AuthConfigFactory.{h, cc}: New class.
  6414. * src/FtpConnection.cc: Use AuthConfigFactory.
  6415. * src/HttpRequest.cc: Use AuthConfigFactory.
  6416. * test/HttpRequestTest.cc: Updated.
  6417. * test/RequestTest.cc: Updated.
  6418. * test/AuthConfigFactoryTest.cc: New class.
  6419. * test/RequestFactoryTest.cc: Removed.
  6420. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6421. Use RequestGroup::allDownloadFinished() to decide whether the control
  6422. file should be removed or saved.
  6423. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  6424. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  6425. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6426. Use File::renameTo()
  6427. * src/DefaultBtProgressInfoFile.cc
  6428. Added --no-file-allocation-limit command-line option.
  6429. * src/version_usage.cc
  6430. * src/option_processing.cc
  6431. * src/OptionHandlerFactory.cc
  6432. * src/RequestGroup.{h, cc}
  6433. * src/BtCheckIntegrityEntry.cc
  6434. * src/StreamCheckIntegrityEntry.cc
  6435. * src/prefs.h
  6436. * doc/aria2c.1.txt
  6437. * doc/aria2c.1
  6438. Now prealloc is the default value for --file-allocation option.
  6439. * src/version_usage.cc
  6440. * src/option_processing.cc
  6441. * doc/aria2c.1.txt
  6442. * doc/aria2c.1
  6443. Don't URL-encode user-agent.
  6444. * src/HttpRequest.cc
  6445. Updated translations
  6446. * po/LINGUAS: Added nl for Dutch translation.
  6447. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  6448. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  6449. * po/POTFILES.in: Updated.
  6450. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6451. Added the ability to recognize url-list in a torrent file.
  6452. The retrieved URLs are attached to the corresponding FileEntry.
  6453. * src/DefaultBtContext.{h, cc}
  6454. * src/FileEntry.{h, cc}
  6455. * test/DefaultBtContextTest.cc
  6456. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6457. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  6458. after the download finishes.
  6459. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6460. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  6461. the data smaller than block length.
  6462. A block length can be specified by constructor's argument.
  6463. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  6464. Get a missing piece in the range of given FileEntry. This function is
  6465. not used in the program yet.
  6466. * src/Util.h: Added some macros.
  6467. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. Added HTTP/1.1 keep alive and pipelining support.
  6469. See --enable-http-keep-alive and --enable-http-pipelining option.
  6470. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  6471. Segment.
  6472. * src/HttpDownloadCommand.{h, cc}
  6473. * src/OptionHandlerFactory.cc
  6474. * src/HttpConnection.{h, cc}
  6475. * src/version_usage.cc
  6476. * src/HttpInitiateConnectionCommand.cc
  6477. * src/FtpInitiateConnectionCommand.cc
  6478. * src/Segment.h
  6479. * src/HttpRequestCommand.{h, cc}
  6480. * src/option_processing.cc
  6481. * src/prefs.h
  6482. * src/HttpResponseCommand.cc
  6483. * src/SegmentMan.{h, cc}
  6484. * src/FtpNegotiateCommand.cc
  6485. * src/HttpProxyResponseCommand.cc
  6486. * src/Request.cc
  6487. * src/HttpRequest.cc
  6488. * src/DownloadCommand.cc
  6489. * test/HttpRequestTest.cc
  6490. * test/RequestTest.cc
  6491. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6492. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  6493. finished.
  6494. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  6496. catching it inside the method.
  6497. When no file entry is found in a metalink without querying user
  6498. preferences, throw the exception with the error message that suggests
  6499. metalink file is probably broken.
  6500. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  6501. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6502. Fixed the bug that prevents remote Metalink/Torrent file from begin
  6503. processed.
  6504. * src/RequestGroupMan.cc (removeStoppedGroup)
  6505. Added debug message.
  6506. * src/BtPostDownloadHandler.cc
  6507. * src/MetalinkPostDownloadHandler.cc
  6508. * src/PostDownloadHandler.{h, cc}
  6509. * src/RequestGroup.cc
  6510. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6511. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  6512. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6513. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  6514. stops and there are any unfinished or in-progress downloads.
  6515. Added the legend of "stat".
  6516. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6517. Throw exception when chunck checksum verification fails.
  6518. * src/DownloadCommand.cc (validatePieceHash): New function.
  6519. * src/PiecedSegment.{h, cc} (clear): New function.
  6520. * src/GrowSegment.{h, cc} (clear): New function.
  6521. * src/Segment.h (clear): New function.
  6522. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  6523. * test/SegmentTest.cc
  6524. * test/GrowSegmentTest.cc
  6525. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6526. Do not send referer when redirected.
  6527. * src/Request.cc (redirectUrl)
  6528. * test/RequestTest.cc
  6529. * test/HttpRequestTest.cc
  6530. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6531. Implemented BitTorrent/http/ftp integrated download.
  6532. I've rewritten lots of files and now some headers have forward
  6533. class declarations to reduce compile time.
  6534. The implementation is extremely alpha stage, I recommend to use this
  6535. for testing purpose only.
  6536. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6537. Fixed the compilation error on 64bit platform.
  6538. * test/HttpHeaderProcessorTest.cc
  6539. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6540. Merged Ross's patch that fixes compilation problem in MinGW
  6541. * test/DefaultBtProgressInfoFileTest.cc
  6542. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6543. Updated fr.po by sebone
  6544. * po/fr.po
  6545. Updated man page.
  6546. * doc/aria2c.1.txt
  6547. * Release 0.11.3
  6548. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6549. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  6550. failure in Metalink.
  6551. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6552. Automatically save *.aria2 control file of http/ftp download in every
  6553. 60 seconds.
  6554. * src/AutoSaveCommand.{h, cc}: New class.
  6555. * src/TimeBasedCommand.{h, cc}: New class.
  6556. * src/DownloadEngineFactory.cc (newConsoleEngine)
  6557. Disable parameterized URI support by default. Added -P option to
  6558. enable the feature.
  6559. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  6560. * src/OptionHandlerFactory.cc
  6561. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  6562. Updated Japanese translation.
  6563. * po/ja.po
  6564. Updated man page.
  6565. * doc/aria2c.1.txt
  6566. * Release 0.11.3-rc
  6567. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6568. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  6569. it is successful, then renamed to *.aria2.
  6570. This prevents *.aria2 file from being truncated or corrupted when
  6571. file system becomes out of space.
  6572. * src/DefaultBtProgressInfoFile.cc (save)
  6573. * src/SegmentMan.cc (save)
  6574. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  6575. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6576. Reduced the fragmentation of bitfield in http/ftp download.
  6577. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  6578. * test/BitfieldManTest.cc
  6579. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6580. Added the ability to disable segmented download in .metalink.
  6581. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  6582. 'url' tag.
  6583. * src/MetalinkEntry.{h, cc}
  6584. * src/RequestResource.{h, cc}
  6585. * src/MetalinkRequestInfo.cc
  6586. * src/Xml2MetalinkProcessor.cc
  6587. * test/Xml2MetalinkProcessorTest.cc
  6588. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6589. Added parameterized URI support.
  6590. * src/main.cc: -Z option added.
  6591. * src/OptionHandlerFactory.cc
  6592. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  6593. * src/PStringDatum.h: New class.
  6594. * src/PStringSegment.{h,cc}: New class.
  6595. * src/PStringNumLoop.h: New class.
  6596. * src/PStringSelect.h: New class.
  6597. * src/NumberDecorator.h: New class.
  6598. * src/FixedWidthNumberDecorator.h: New class.
  6599. * src/AlphaNumberDecorator.h: New class.
  6600. * src/PStringVisitor.h: New class.
  6601. * src/PStringBuildVisitor.{h,cc}: New class.
  6602. * src/ParameterizedStringParser.{h,cc}: New class.
  6603. * src/Util.{h,cc}
  6604. (isNumber): New function.
  6605. (isLowercase): New function.
  6606. (isUppercase): New function.
  6607. (alphaToNum): New function.
  6608. * test/ParameterizedStringParserTest.cc: New class.
  6609. * test/AlphaNumberDecoratorTest.cc: New class.
  6610. * test/PStringBuildVisitorTest.cc: New class.
  6611. * test/UtilTest.cc
  6612. (testIsNumber): New function.
  6613. (testIsLowercase): New function.
  6614. (testIsUppercase): New function.
  6615. (testAlphaToNum): New function.
  6616. Added '\n' after the error message
  6617. * src/RequestInfo.h (printDownloadAbortMessage)
  6618. Added auto file renaming feature in http(s)/ftp download.
  6619. * src/main.cc: Added --auto-file-renaming command-line option.
  6620. * src/OptionHandlerFactory.cc
  6621. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  6622. * src/RequestGroup.{h, cc}
  6623. (shouldCancelDownloadForSafety): Rewritten
  6624. (tryAutoFileRenaming): New function.
  6625. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  6626. * src/HttpResponseCommand.cc
  6627. (executeInternal): Removed the call to RequestGroupMan::
  6628. isSameFileBeingDownloaded()
  6629. * src/FtpNegotiateCommand.cc
  6630. (recvSize): Removed the call to RequestGroupMan::
  6631. isSameFileBeingDownloaded()
  6632. * test/RequestGroupTest.cc: New class.
  6633. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6634. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  6635. IO.
  6636. * src/DefaultBtProgressInfoFile.cc
  6637. * src/MetaFileUtil.cc
  6638. * src/SimpleLogger.cc
  6639. * src/SegmentMan.cc
  6640. * src/Util.cc
  6641. * src/Platform.cc
  6642. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6643. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  6644. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6645. Avoid sparse files if possible, because VFAT32 doesn't support it.
  6646. * src/DefaultDiskWriter.cc (initAndOpenFile)
  6647. Fixed the bug that prevents file allocation is not done when
  6648. dowloading multi-torrent file.
  6649. * src/AbstractDiskWriter.cc (openFile)
  6650. Increase the maximum number of -j option from 15 to 45.
  6651. * src/OptionHandlerFactory.cc (createOptionHandlers)
  6652. Added fr.po, thanks to Charles Landemaine.
  6653. * po/fr.po
  6654. * po/LINGUAS
  6655. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6656. gcc 3.4.4 support:
  6657. * src/DefaultBtContext.cc: int32_t -> int
  6658. * src/main.cc: int -> int32_t, int32_t -> int
  6659. * src/messageDigest.h: uint32_t -> unsigned int
  6660. * src/NameResolver.h: int32_t -> int
  6661. * src/PeerConnection.cc: int -> int32_t
  6662. * src/SpeedCalc.cc: int32_t -> int
  6663. * src/TrackerUpdateCommand.h: int -> int32_t
  6664. * src/Util.cc: int32_t -> int
  6665. * src/Util.h: int32_t -> int
  6666. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  6667. * test/AnnounceListTest.cc: int -> int32_t
  6668. * test/ChunkedEncodingTest.cc: int -> int32_t
  6669. * test/DataTest.cc: int -> int32_t
  6670. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  6671. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  6672. * test/DefaultPieceStorageTest.cc: int -> int32_t
  6673. * test/FeatureConfigTest.cc: int -> int32_t
  6674. * test/MetalinkEntryTest.cc: int -> int32_t
  6675. * test/MockBtRequestFactory.h: int -> int32_t
  6676. * test/MockPieceStorage.h: int -> int32_t
  6677. * test/OptionTest.cc: int -> int32_t
  6678. * test/RequestTest.cc: int -> int32_t
  6679. * test/SegmentManTest.cc: int -> int32_t
  6680. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  6681. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  6682. Move sleep functions to Util class:
  6683. * src/Util.cc
  6684. (sleep): New function.
  6685. (usleep): New function.
  6686. * src/DownloadCommand.cc: sleep -> Util::sleep
  6687. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  6688. MinGW build enhancements. The following files are added:
  6689. * src/timegm.{c,h}
  6690. Changes to support the above new files:
  6691. * configure.ac
  6692. * src/Makefile.am
  6693. * src/a2time.h
  6694. * src/Util.cc:
  6695. * src/strptime.c: Added support for %Z option.
  6696. Fixed MinGW non-blocking bug.
  6697. * src/SocketCore.cc
  6698. * src/HttpRequestCommand.cc
  6699. Miscellenous build fixes/enhancements.
  6700. * configure.ac: Added summary report.
  6701. * src/Platform.h: Tweaked #include's.
  6702. * src/a2netcompat.h: Tweaked #include's.
  6703. * src/strptime.h: Tweaked #include's.
  6704. * src/gai_strerror.c: Tweaked #include's.
  6705. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  6706. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  6707. * src/gettimeofday.h: Added HAVE_CONFIG_H
  6708. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6709. Increased the initial connection size in BitTorrent download to 40.
  6710. * src/BtRuntime.h
  6711. Added the usage message of --peer-id-prefix option.
  6712. * src/main.cc
  6713. * Release 0.11.2
  6714. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6715. MessageDigestHelper is introduced in order to simplify the use
  6716. of message digest. Removed repeated code.
  6717. The message digest algorithm is now specified by string, like "sha1",
  6718. "md5".
  6719. * src/messageDigest.{h, cc}
  6720. * src/MessageDigestHelper.{h, cc}: New class.
  6721. * src/DefaultPieceStorage.cc
  6722. * src/DefaultBtContext.{h, cc}
  6723. (computeFastSet): New function.
  6724. (setInfoHash): Added for unit testing.
  6725. (setNumPieces): Added for unit testing.
  6726. * src/DefaultBtInteractive.cc
  6727. * src/BtPieceMessage.cc
  6728. * src/Peer.cc
  6729. * src/Checksum.h
  6730. * src/message.h
  6731. * src/IteratableChecksumValidator.h
  6732. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  6733. inside it.
  6734. * src/SegmentMan.{h, cc}
  6735. (checkIntegrity): Removed.
  6736. * src/IteratableChunkChecksumValidator.{h, cc}
  6737. * src/Util.h
  6738. (sha1Sum): Removed.
  6739. (simpleMessageDigest): Removed.
  6740. (fileChecksum): Removed.
  6741. (computeFastSet): Removed.
  6742. * src/ShaVisitor.cc
  6743. * src/ChunkChecksum.h
  6744. * src/DownloadCommand.cc
  6745. Removed messageDigest virtual functions.
  6746. * src/MultiDiskAdaptor.{h, cc}
  6747. * src/DiskAdaptor.h
  6748. * src/ByteArrayDiskWriter.h
  6749. * src/DiskWriter.h
  6750. * src/DiskAdaptorWriter.h
  6751. * src/AbstractSingleDiskAdaptor.{h, cc}
  6752. * src/AbstractDiskWriter.{h, cc}
  6753. Fixed comilation error when message digest is disabled.
  6754. * src/MetalinkEntry.{h, cc}
  6755. * src/MetalinkRequestInfo.cc
  6756. Removed srandom and random.
  6757. * src/SimpleRandomizer.h
  6758. Added size() virtual function to DiskAdaptor
  6759. * src/MultiDiskAdaptor.h
  6760. Fixed the bug that causes that files are not opened correctly in
  6761. multi-file torrent.
  6762. * src/TorrentRequestInfo.cc
  6763. * src/MultiDiskAdaptor.cc
  6764. Added SHA256 support
  6765. * src/messageDigest.cc
  6766. * src/Xml2MetalinkProcessor.cc
  6767. Show supported message digest algorithms
  6768. * src/main.cc
  6769. Updated contact info.
  6770. * src/main.cc
  6771. Applied Ross's patch
  6772. * src/a2netcompat.h
  6773. * src/main.cc
  6774. Fixed the bug that prevents a remote metalink from not being processed
  6775. even if '-o foo.metalink' is specified.
  6776. * src/MetalinkRequestInfo.cc
  6777. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6778. Merged Dan's patch:
  6779. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  6780. Use va_copy to avoid core dump on amd64:
  6781. * src/SimpleLogger.cc
  6782. Updated contact info.
  6783. * src/main.cc
  6784. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  6785. digest is not available.
  6786. * src/MetalinkEntry.h
  6787. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6788. Make a2netcompat.h include a2io.h to fix compilation error:
  6789. * src/a2netcompat.h
  6790. * src/SocketCore.cc: Removed include of a2io.h
  6791. * src/Util.cc: Removed include of a2io.h
  6792. Gather time related functions to a2time.h:
  6793. * src/a2time.h: New file.
  6794. * src/DefaultPeerStorage.cc
  6795. * src/SimpleLogger.cc
  6796. * src/Util.{h, cc}
  6797. * src/SimpleRandomizer.h
  6798. * src/TimeA2.{h,cc}
  6799. * src/DownloadCommand.cc
  6800. * src/main.cc
  6801. Removed #ifdef __MINGW32__ since gai_strerror is included in
  6802. a2netcompat.h:
  6803. * src/NameResolver.cc
  6804. Fixed compilation error without openssl:
  6805. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  6806. Added default block to suppress compiler warnings:
  6807. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  6808. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  6809. MinGW build enhancements. The following files are added:
  6810. * src/gai_strerror.{c,h}
  6811. * src/gettimeofday.{c,h}
  6812. Changes to support the above new files:
  6813. * configure.ac
  6814. * src/Makefile.am
  6815. * src/a2netcompat.h
  6816. * src/TimeA2.cc
  6817. * src/DefaultPeerStorage.cc
  6818. * src/NameResolver.cc: removed mingw_strerror() function.
  6819. * src/SocketCore.cc: removed mingw_strerror() function.
  6820. Miscellaneous MinGW build fixes.
  6821. * src/a2io.h: Use _lseeki64() instead of lseek()
  6822. * src/common.h
  6823. * src/DefaultFileAllocator.cc
  6824. * src/GlowFileAllocator.cc
  6825. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  6826. * src/NameResolver.cc
  6827. (callback): Changed int32_t to int.
  6828. (resolve): Changed int32_t to int.
  6829. * src/Platform.cc
  6830. * src/Platform.h
  6831. * test/MultiDiskWriterTest.cc
  6832. * test/PeerMessageUtilTest.cc
  6833. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  6834. Other enhancements and fixes.
  6835. * src/HttpRequestCommand.cc
  6836. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  6837. * src/SocketCore.cc:
  6838. (error): New function to abstract errno/WSAGetLastError().
  6839. (errorMsg): New function to abstract errno/WSAGetLastError().
  6840. (initiateSecureConnection): Added more detailed error reporting.
  6841. * src/SocketCore.h: Added private variable blocking, to allow
  6842. proper handling of OpenSSL psuedo-errors.
  6843. * src/message.h
  6844. (EX_SSL_INIT_FAILURE)
  6845. (EX_SSL_IO_ERROR)
  6846. (EX_SSL_PROTOCOL_ERROR)
  6847. (EX_SSL_UNKNOWN_ERROR)
  6848. (EX_SSL_CONNECT_ERROR)
  6849. (EX_SOCKET_BLOCKING)
  6850. (EX_SOCKET_NONBLOCKING)
  6851. (EX_SOCKET_UNKNOWN_ERROR)
  6852. * src/Util.cc
  6853. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  6854. reserved name.
  6855. (httpGMT): Fixed typo.
  6856. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6857. Merged Ross's win32 patch(manually)
  6858. In the course of merging, following files are added.
  6859. * src/strptime.{h,c}
  6860. * src/libgen.{h,c}
  6861. * src/inet_aton.{h,c}
  6862. * src/Platform.{h,cc}
  6863. * src/localtime_r.{h,c}
  6864. * src/getaddrinfo.{h,c}
  6865. I've gethered network related things, and put them to following file:
  6866. * src/a2netcompat.h
  6867. Also io related things are put to following file:
  6868. * src/a2io.h
  6869. Changed %lld to %s because mingw32 doesn't recognize %lld.
  6870. * src/message.h
  6871. (MSG_ALLOCATION_COMPLETED)
  6872. (EX_TOO_LARGE_FILE)
  6873. (EX_SIZE_MISMATCH)
  6874. (EX_FILE_OFFSET_OUT_OF_RANGE)
  6875. (EX_INVALID_CHUNK_CHECKSUM)
  6876. (EX_INVALID_RANGE_HEADER)
  6877. * src/FileAllocationCommand.cc
  6878. * src/HttpResponse.cc
  6879. * src/RequestGroup.cc
  6880. * src/MultiDiskAdaptor.cc
  6881. * src/OptionHandlerImpl.h
  6882. * src/HttpResponseCommand.cc
  6883. * src/FtpNegotiateCommand.cc
  6884. * src/IteratableChecksumValidator.cc
  6885. * src/SegmentMan.cc
  6886. * src/ChunkChecksumValidator.cc
  6887. Added Randomizer::getRandomNumber(long int)
  6888. * src/Randomizer.h (getRandomNumber)
  6889. * src/SimpleRandomizer.h (getRandomNumber)
  6890. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  6891. * src/Util.cc (randomAlpha): Use this new function.
  6892. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Converted int's to in32_t. long long int's are also converted to
  6894. int64_t
  6895. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6896. Fixed the bug that prevents cookies from being sent to the server
  6897. if the domain of cookie is FQDN and starts with ".".
  6898. * src/Cookie.cc (match)
  6899. To add the ability to change peer id.
  6900. * src/DefaultBtContext.h
  6901. (_peerIdPrefix): New variable
  6902. (setPeerIdPrefix): New function.
  6903. * src/torrentRequestInfo.cc
  6904. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  6905. DefaultBtContext.
  6906. * src/main.cc (main): Added peer-id-prefix command-line option.
  6907. The usage message is not added yet.
  6908. * src/DefaultBtContext.cc
  6909. (generatePeerId): Use _peerIdPrefix.
  6910. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  6911. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6912. Fixed the bug that prevents filename in content-disposition from
  6913. being retrieved when filename is not quoted.
  6914. * src/Util.cc (getContentDispositionFilename)
  6915. Fixed the bug that causes infinate loop and memory leak when file open
  6916. operation failed.
  6917. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  6918. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6919. Fixed the bug that causes segfault when all URIs specified are
  6920. unsupported.
  6921. * src/RequestGroupMan.cc (getInitialCommands)
  6922. Check if RequestGroup::createNextCommand() returns empty list of
  6923. commands.
  6924. * src/RequestGroup.cc (createNextCommand)
  6925. Change log level from info to error so that users can notice that
  6926. an error occurred.
  6927. Fixed the bug that causes segfault when a zero-sized file is
  6928. downloaded.
  6929. * src/BitfieldMan.cc (isAllBitSet)
  6930. Return true if bitfieldLength is 0.
  6931. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6932. * src/main.cc
  6933. (showUsage): Added 3 usage examples for metalink download.
  6934. Replace MetalinkChunkChecksum with ChunkChecksum.
  6935. * src/MetalinkChunkChecksum.h: Removed.
  6936. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  6937. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  6938. * src/Xml2MetalinkProcessor.cc
  6939. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  6940. * src/MetalinkRequestInfo.cc (execute)
  6941. * Release 0.11.1
  6942. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6943. Reads URIs from stdin when "-i -" is specified.
  6944. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  6945. * src/UriListParser.h, src/UriListParser.cc: New class.
  6946. * src/StreamUriListParser.h: New class.
  6947. * src/FileUriListParser.h: New class.
  6948. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  6949. instead of UriFileListParser.
  6950. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6951. Made console readout more readable.
  6952. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6953. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6954. Fix the bug that causes -s option not to work.
  6955. * src/main.cc (main)
  6956. * src/a2algo.h: New file.
  6957. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6958. Create directory structure specified in metalink file.
  6959. * src/RequestGroup.h, src/RequestGroup.cc
  6960. (initAndOpenFile): Create a directory to store files if it does not
  6961. exist.
  6962. (getDir): New function.
  6963. Added ETA and download speed for an individual file to readout.
  6964. * src/ConsoleDownloadEngine.cc (sendStatistics)
  6965. * src/RequestGroup.h
  6966. (calculateDownloadSpeed): New function.
  6967. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6968. Made -S option work with metalink file and provided selective download
  6969. to metalink.
  6970. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  6971. (filename): Removed.
  6972. (file): New variable.
  6973. (size): Removed.
  6974. (operator=): Updated.
  6975. (getPath): New function.
  6976. (getLength): New function.
  6977. (toFileEntry): New function.
  6978. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  6979. (execute): Use toStream.
  6980. (showFileEntry): Removed.
  6981. * src/MetalinkRequestInfo.h
  6982. (targetFiles): New variable.
  6983. (setTargetFiles): New variable.
  6984. * src/MetalinkRequestInfo.cc
  6985. (execute): Added the ability to print file information included in
  6986. a metalink file.
  6987. Added selective download mode to metalink.
  6988. * src/main.cc
  6989. (showUsage): Updated to denote that -S and --select-file options are
  6990. applicable to metalink.
  6991. * src/FileEntry.h
  6992. (operator=): New function.
  6993. (getBasename): New function.
  6994. (getDirname): New function.
  6995. * src/Util.h, src/Util.cc
  6996. (toStream): New function.
  6997. * src/Xml2MetalinkProcessor.cc: Updated.
  6998. Made aria2 work with metalink with directory structure.
  6999. * src/File.h, src/File.cc
  7000. (getBasename): New function.
  7001. (getDirname): New function.
  7002. * src/RequestGroup.h, src/RequestGroup.cc
  7003. (_topDir): New variable.
  7004. (setTopDir): New function.
  7005. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  7006. Rewrote HTTP header parsing with stringstream.
  7007. * src/HttpConnection.h, src/HttpConnection.cc
  7008. (HttpRequestEntry): New class.
  7009. (headerBuf): Removed.
  7010. (headerBufLength): Removed.
  7011. (outstandingHttpRequests): Now its element type is
  7012. HttpRequestEntryHandle.
  7013. (findEndOfHeader): Removed.
  7014. (receiveResponse): Rewritten.
  7015. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  7016. Updated doc for -j option to notice that it should be used with -i
  7017. option.
  7018. * src/main.cc (showUsage)
  7019. Removed unused classes.
  7020. * src/RequestInfo.h
  7021. (FileInfo): Removed.
  7022. (checksum): Removed.
  7023. (fileInfo): Removed.
  7024. (setChecksum): Removed.
  7025. (getChecksum): Removed.
  7026. (getFileInfo): Removed.
  7027. Use ISO units.
  7028. * src/ConsoleDownloadEngine.cc
  7029. * src/TorrentConsoleDownloadEngine.cc
  7030. * src/Util.cc (abbrevSize)
  7031. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7032. Added the default listening ports to the help message.
  7033. * src/main.cc (showUsage)
  7034. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7035. Reduce the number of calls to gettimeofday to lower CPU load.
  7036. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  7037. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  7038. * src/Peer.h (calculateUploadSpeed): New function.
  7039. (calculateDownloadSpeed): New function.
  7040. * src/DefaultPeerStorage.cc
  7041. (CalculateStat): Added _now variable.
  7042. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  7043. and Peer::calculateUploadSpeed(const struct timeval&)
  7044. Drop connection if no request or piece message is exchanged in
  7045. a certain interval.
  7046. * src/DefaultBtInteractive.h
  7047. (btRuntime): New variable.
  7048. (inactiveCheckPoint): New variable.
  7049. (checkActiveInteraction): New function.
  7050. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  7051. request or piece message is received.
  7052. (checkActiveInteraction): New function.
  7053. (doInteractionProcessing): Call checkActiveInteraction.
  7054. Fixed the bug that causes remote Metalink and Torrent files are not
  7055. processed.
  7056. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  7057. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7058. Changed format of log file.
  7059. * src/SimpleLogger.cc
  7060. * Release 0.11.0
  7061. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7062. * src/AbstractCommand.cc
  7063. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  7064. MSG_MAX_TRY from error to info.
  7065. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  7066. * src/message.h
  7067. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  7068. (MSG_DOWNLOAD_ABORTED): Added %s.
  7069. (MSG_RESTARTING_DOWNLOAD): Added %s.
  7070. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  7071. * src/PeerAbstractCommand.cc
  7072. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  7073. * src/Request.h
  7074. (cookieBox): Made ShardHandle.
  7075. * src/RequestGroup.h, src/RequestGroup.cc
  7076. (createNextCommandWithAdj): New function.
  7077. * src/FileAllocationCommand.cc
  7078. (executeInternal): Use createNextCommandWithAdj().
  7079. * src/CheckIntegrityCommand.cc
  7080. (executeInternal): Use createNextCommandWithAdj().
  7081. Added --load-cookies command-option.
  7082. * src/OptionHandlerFactory.cc
  7083. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  7084. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  7085. Now aria2 can handle cookie's expiration date.
  7086. * src/Cookie.h (expires): Changed its type to time_t.
  7087. * src/main.cc: Added --load-cookies command-line option.
  7088. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  7089. * src/Util.h, src/Util.cc (httpGMT): New function.
  7090. * src/Request.cc (Request): Initialize cookieBox using
  7091. CookieBoxFactory.
  7092. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  7093. * src/CookieParser.h, src/CookieParser.cc: New class.
  7094. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  7095. * src/HttpResponseCommand.cc
  7096. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  7097. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  7098. download.
  7099. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7100. Added -j command-line option.
  7101. * src/OptionHandlerFactory.cc (createOptionHandlers)
  7102. * src/main.cc
  7103. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  7104. Rewritten using stringstream.
  7105. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  7106. Rewritten using stringstream.
  7107. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7108. Make download size shown in MB, KB.
  7109. * src/ConsoleDownloadEngine.h (sendStatistics)
  7110. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  7111. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7112. Accept incoming connections if download rate is low.
  7113. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  7114. (_lowestSpeedLimit): New variable.
  7115. (setLowestSpeedLimit): New function.
  7116. (execute): Accept incoming connections if download rate is low.
  7117. MAX_PEERS is ignored in this case.
  7118. Disable PREF_OUT in multiple concurrent download:
  7119. * src/RequestGroup.h, src/RequestGroup.cc
  7120. (setUserDefinedFilename): New function.
  7121. * src/DownloadEngineFactory.cc
  7122. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  7123. concurrent download.
  7124. * src/DefaultSegmentManFactory.cc
  7125. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  7126. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7127. RequestGroup::getNextCommand() was renamed to createNextCommand().
  7128. Added its overloaded method.
  7129. * src/RequestGroup.h
  7130. (_numConcurrentCommand): New variable.
  7131. (setNumConcurrentCommand): New function.
  7132. * src/RequestGroup.cc
  7133. Abort download if same file is being downloaded concurrently.
  7134. * src/RequestGroup.h, src/RequestGroupMan.cc
  7135. (isSameFileBeingDownloaded): New function.
  7136. * src/HttpResponseCommand.cc (executeInternal)
  7137. * src/FtpNegotiateCommand.cc (recvSize)
  7138. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  7139. * main.cc: Added help message for -i option.
  7140. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7141. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  7142. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  7143. * src/MetalinkEntry.h
  7144. (checksum): Changed to ChecksumHandle
  7145. * src/MetalinkRequestInfo.cc
  7146. (checksum): Changed to ChecksumHandle
  7147. * src/File.cc
  7148. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  7149. * src/common.h
  7150. (DIR_OPEN_MODE): New definition
  7151. * src/RequestGroup.cc
  7152. (prepareForNextAction): Added an argument.
  7153. * src/message.h
  7154. (MSG_GOOD_CHECKSUM): New definition
  7155. (MSG_BAD_CHECKSUM): New definition
  7156. * src/HttpResponseCommand.cc
  7157. (handleDefaultEncoding): Continue download sequence in new
  7158. non-segmented download.
  7159. * src/FileAllocationEntry.h
  7160. (_nextDownloadCommand): New variable.
  7161. * src/DownloadCommand.cc
  7162. (prepareForNextSegment): Create ChecksumCommand if checksum is
  7163. available.
  7164. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  7165. * src/IteratableChecksumValidator.h,
  7166. src/IteratableChecksumValidator.cc: New class.
  7167. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  7168. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7169. Change file mode to 666:
  7170. * src/common.h (OPEN_MODE): New definition.
  7171. * src/File.cc
  7172. * src/Util.cc
  7173. * src/Directry.cc
  7174. * src/AbstractDiskWriter.cc
  7175. Change the level of log message "download aborted" to debug:
  7176. * src/PeerAbstractCommand.cc (execute)
  7177. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  7178. * src/TrackerWatcherCommand.cc
  7179. (createCommand): Sleep some seconds after request failed.
  7180. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  7181. then abort tracker request.
  7182. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7183. * Added the simultaneous download feature.
  7184. * src/main.cc: Print "Exception caught: " when exception is caught.
  7185. Use CUIDCounter instead of BtRuntime::getNewCuid():
  7186. * src/ActivePeerConnectionCommand.cc
  7187. * src/PeerInteractionCommand.cc
  7188. * src/BtRuntime.h
  7189. (cuidCounter): Removed.
  7190. (getNewCuid): Removed.
  7191. * src/DownloadEngineFactory.cc
  7192. * src/PeerListenCommand.cc
  7193. * src/TrackerUpdateCommand.cc
  7194. * src/PeerInitiateConnectionCommand.cc
  7195. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7196. * src/PeerAbstractCommand.cc
  7197. (onAbort): Call PeerStorage::returnPeer()
  7198. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  7199. (incomingPeers): New variable.
  7200. (addIncomingPeer): New function.
  7201. (returnPeer): New function.
  7202. (onErasingPeer): New function.
  7203. (addPeer): push_back -> push_front
  7204. (getActivePeers): Rewritten.
  7205. (calculateStat): Rewritten.
  7206. * src/PeerStorage.h
  7207. (TransferStat::copy): New function.
  7208. (TransferStat::TransferStat): New function.
  7209. (TransferStat::operator=): New function.
  7210. (addIncomingPeer): New function.
  7211. (returnPeer): New function.
  7212. * src/PeerListenCommand.cc
  7213. (execute): Use PeerStorage::addIncomingPeer() instead of
  7214. Peer::addPeer().
  7215. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7216. Connect to a peer actively when download speed is lower than specified
  7217. speed in torrent download:
  7218. * src/ActivePeerConnectionCommand.h: New class.
  7219. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7220. * src/HttpRequest.cc (createRequest): url-encode user-agent
  7221. * src/main.cc: Fixed the bug that prevents download if .netrc
  7222. doesn't exist.
  7223. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7224. To cache resolved hostname:
  7225. * src/AbstractCommand.h, src/AbstractCommand.cc
  7226. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  7227. Added dns cache.
  7228. * src/FtpInitiateConnectionCommand.cc
  7229. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  7230. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  7231. NameResolver working without ares.
  7232. * src/TorrentRequestInfo.cc
  7233. (execute): Don't cache dns in torrent download.
  7234. * src/HttpInitiateConnectionCommand.cc
  7235. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  7236. * src/DNSCache.h: New class.
  7237. * src/UrlRequestInfo.cc
  7238. (execute): Use dns cache.
  7239. In http request, suppress port number in http request header if port
  7240. is 80 or 443:
  7241. * src/HttpRequest.cc (getHostText): Suppress port number in http
  7242. request header if port is 80 or 443.
  7243. (createProxyRequest): Allways send port number.
  7244. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7245. To add the command-line option which disables netrc support:
  7246. * src/OptionHandlerFactory.cc
  7247. (createOptionHandlers): Added PREF_NO_NETRC.
  7248. * src/main.cc: Added -n option.
  7249. * src/prefs.h (PREF_NO_NETRC): New definition.
  7250. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  7251. V_TRUE.
  7252. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  7253. is V_FALSE. This may get configurable in the future release.
  7254. To clear peer's error status by time basis:
  7255. * src/PeerAbstractCommand.cc
  7256. (onAbort): Call Peer::startBadCondition().
  7257. * src/Peer.h, src/Peer.cc
  7258. (error): Removed.
  7259. (_badConditionStartTime): New variable.
  7260. (_badConditionInterval): New variable. Initialized to 10 seconds.
  7261. (startBadCondition): New function.
  7262. (isGood): New function.
  7263. * src/DefaultPeerStorage.cc
  7264. (addPeer): Use Peer::isGood().
  7265. (FindFinePeer): Use Peer::isGood().
  7266. Always include port number in http request header:
  7267. * src/HttpRequest.cc (getHostText): Always include port number in
  7268. http request header.
  7269. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7270. To the ability to read options from a config file:
  7271. * src/main.cc: Command-line parameter validation is delegated to
  7272. OptionHandler class.
  7273. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  7274. * src/Option.h, src/Option.cc (clear): New function.
  7275. * src/OptionParser.h, src/OptionParser.cc: New class.
  7276. * src/OptionHandler.h: New class.
  7277. * src/NameMatchOptionHandler.h: New class.
  7278. * src/OptionHandlerImpl.h: New classes.
  7279. * src/prefs.h: '_' -> '-'
  7280. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  7281. (FTP_PASV): New definition.
  7282. * src/Util.h, src/Util.cc (getRealSize): New function.
  7283. To disable netrc support if .netrc file does not have correct
  7284. permissions:
  7285. * src/File.h, src/File.cc (mode): New function.
  7286. To prevent confidential information to be logged:
  7287. * src/HttpConnection.h, src/HttpConnection.cc
  7288. (eraseConfidentialInfo): New function.
  7289. (sendRequest): Call eraseConfidentialInfo().
  7290. (sendProxyRequest): Call eraseConfidentialInfo().
  7291. * src/main.cc: Validate permissions of .netrc file.
  7292. To add --user-agent command-line option:
  7293. * src/main.cc: Added new command line option: --user-agent
  7294. * src/prefs.h (PREF_USER_AGENT): New definition.
  7295. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  7296. parameter to HttpRequest object.
  7297. * src/AbstractProxyRequestCommand.cc
  7298. (executeInternal): Set user-agent option parameter to HttpRequest
  7299. object.
  7300. Marged the patches from Dan Fandrich.
  7301. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7302. Use filename and size from Metalink file instead of sending HEAD
  7303. request:
  7304. * src/UrlRequestInfo.h
  7305. (_filename): New variable.
  7306. (_totalLength): New variable.
  7307. (setTotalLength): New variable.
  7308. (setFilename): New variable.
  7309. * src/MetalinkRequestInfo.cc
  7310. (execute): Set filename and size to UrlRequestInfo
  7311. * src/UrlRequestInfo.cc
  7312. (execute): Use filename and size from Metalink instead of seding
  7313. HEAD request to servers.
  7314. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7315. To add the ability to resume downloading a partially downloaded file
  7316. which is downloaded from the beginning:
  7317. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  7318. takes this role.
  7319. * src/main.cc: Added -c option.
  7320. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  7321. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  7322. * src/prefs.h (PREF_CONTINUE): New definition.
  7323. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  7324. * src/DefaultDiskWriter.cc
  7325. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  7326. * src/AbstractDiskWriter.h
  7327. (glowFileAllocator): New variable.
  7328. * src/AbstractDiskWriter.cc
  7329. (openExistingFile): Now preallocate file space from the end of the
  7330. existing file if totalLength argument is specified and grater than 0.
  7331. * src/UrlRequestInfo.cc: If -c option is specified and the file
  7332. to download exists in local, continue the download of the file.
  7333. --allow-overwrite=true is assumed in this context.
  7334. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  7335. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  7336. Throw exception if --check-integrity=true is specified but chunk
  7337. checksums are not provided:
  7338. * src/UrlRequestInfo.cc
  7339. Do not print URLs to stdout:
  7340. * src/UrlRequestInfo.cc
  7341. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7342. * src/Request.h: Use AuthResolver to get authentication information.
  7343. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  7344. set to RequestFactory object.
  7345. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  7346. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  7347. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  7348. create Request object.
  7349. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  7350. To integrate Netrc into exsiting classes:
  7351. * src/Request.h
  7352. (_userDefinedAuthConfig): New variable.
  7353. (findNetrcAuthenticator): New function.
  7354. (segment): Removed.
  7355. (setUserDefinedAuthConfig): New function.
  7356. (resolveHttpAuthConfigItem): New function.
  7357. (resolveFtpAuthConfigItem): New function.
  7358. (resolveHttpProxyAuthConfigItem): New function.
  7359. * src/HttpRequest.h
  7360. (authConfig): Removed.
  7361. (proxyAuthConfig): Removed.
  7362. (setAuthConfig): Removed.
  7363. (setProxyAuthConfig): Removed.
  7364. * src/UrlRequest.h
  7365. (getHeadResult): Added a parameter: authConfigHandle
  7366. * src/common.h
  7367. (SingletonHolder.h): New include.
  7368. * src/main.cc
  7369. (Netrc.h): New include.
  7370. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  7371. Added initial value of PREF_NETRC_PATH.
  7372. Added the initialization of netrc.
  7373. * src/AuthConfig.h: New class.
  7374. * src/prefs.h
  7375. (PREF_NETRC_PATH): New definition.
  7376. * src/HttpAuthConfig.h: Removed.
  7377. * src/Netrc.cc
  7378. (getRequiredNextToken): New function.
  7379. (skipMacdef): New function.
  7380. (parse): Rewritten.
  7381. * src/Netrc.h
  7382. (getRequiredNextToken): New function.
  7383. (skipMacdef): New function.
  7384. * src/Util.h, src/Util.cc
  7385. (getHomeDir): New function.
  7386. * src/TrackerWatcherComand.cc
  7387. (createRequestCommand): Use AuthConfig.
  7388. * src/FtpConnection.cc
  7389. (sendUser): Use Request::resolveFtpAuthConfigItem().
  7390. (sendPass): Use Request::resolveFtpAuthConfigItem().
  7391. * src/Request.cc
  7392. (findNetrcAuthenticator): New function.
  7393. (resolveHttpAuthConfigItem): New function.
  7394. (resolveFtpAuthConfigItem): New function.
  7395. (resolveHttpProxyAuthConfigItem): New function.
  7396. * src/UrlRequestInfo.cc: Use AuthConfig.
  7397. * src/HttpRequest.cc
  7398. (createRequest): Use authConfig.
  7399. (getProxyAuthString): Use authConfig.
  7400. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  7401. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  7402. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7403. To reduce overhead to find commands whose socket is either
  7404. readable or writable in the download engine loop:
  7405. * src/Command.h, src/Command.cc
  7406. (STATUS): New enum.
  7407. (status): New variable.
  7408. (statusMatch): New function.
  7409. (setStatusActive): New function.
  7410. (setStatusInactive): New function.
  7411. * src/DownloadEngine.h, src/DownloadEngine.cc
  7412. (executeCommand): New function.
  7413. (run): Simplified.
  7414. (waitData): Call Command::setStatusActive() when command's socket is
  7415. readable or writable.
  7416. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. To handle Segment as SegmentHandle:
  7418. * src/AbstractCommand.cc (execute): Rewritten.
  7419. * src/SegmentMan.h: Segment -> SegmentHandle
  7420. Introducded HttpResponse class, HttpRequest class to improve code
  7421. extensiveness and make it clear:
  7422. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  7423. HttpResponse class.
  7424. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  7425. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  7426. * src/HttpConnection.cc: Contruction of http request were moved to
  7427. HttpRequest class.
  7428. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  7429. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  7430. * src/HttpAuthConfig.h: New class.
  7431. * src/Range.h: New class.
  7432. To make FtpTunnel{Request, Response}Command and
  7433. HttpProxy{Request, Response}Command derived from
  7434. AbstractProxy{Request, Response}Command:
  7435. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  7436. Derived from AbstractProxyRequestCommand class.
  7437. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  7438. Derived from AbstractProxyResponseCommand class.
  7439. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  7440. Derived from AbstractProxyRequestCommand class.
  7441. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  7442. Derived from AbstractProxyResponseCommand class.
  7443. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  7444. : New class.
  7445. * src/AbstractProxyResponseCommand.h,
  7446. src/AbstractProxyResponseCommand.cc: New class.
  7447. To add netrc support:
  7448. * src/Netrc.h, src/Netrc.cc: New class.
  7449. * src/Util.h, src/Util.cc (split): New function.
  7450. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  7451. "Content-Range" header instead of "Range" header.
  7452. * src/HttpHeader.h
  7453. (getStatus): Removed.
  7454. (setStatus): Removed.
  7455. * src/Segment.h
  7456. (getPositionToWrite): New function.
  7457. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7458. * src/HttpHeader.h
  7459. (Range.h): New include.
  7460. (status): New variable.
  7461. (HttpHeader): Initialized status with 0.
  7462. (getStatus): New function.
  7463. (setStatus): New function.
  7464. (getRange): New function.
  7465. (HttpHeaderHandle): New function.
  7466. * src/HttpHeader.cc
  7467. (getRange): New function.
  7468. * src/Request.h
  7469. (RequestWeakHandle): New definition.
  7470. * src/HttpConnection.h
  7471. (HttpConnectionHandle): New type definition.
  7472. * src/HttpConnection.cc
  7473. (receiveResponse): Set HTTP status to headers.
  7474. * src/main.cc
  7475. (showUsage): Fixed typo.
  7476. * src/Segment.h
  7477. (SegmentHandle): New type definition.
  7478. * src/BitfieldMan.h
  7479. (getMissingUnusedLength): New function.
  7480. * src/BitfieldMan.cc
  7481. (getMissingUnusedLength): New function.
  7482. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7483. To fix static initialization order problem:
  7484. * src/BitfieldManFactory.h
  7485. (defaultRandomizer): Removed.
  7486. (factory): New variable.
  7487. (getNewFactory): Removed.
  7488. (getFactoryInstance): New function.
  7489. (setDefaultRandomizer): Rewritten.
  7490. (getDefaultRandomizer): Rewritten.
  7491. * src/BitfieldManFactory.cc
  7492. (defaultRandomizer): Removed.
  7493. (factory): Initialized to 0.
  7494. (BitfieldManFactory): Initialized randomizer to 0.
  7495. * src/DefaultPieceStorage.cc
  7496. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  7497. * src/Peer.cc
  7498. (Peer): getNewFactory() -> getFactoryInstance()
  7499. * src/SegmentMan.cc
  7500. (initBitfield): getNewFactory() -> getFactoryInstance()
  7501. * src/Piece.cc
  7502. (Piece): getNewFactory() -> getFactoryInstance()
  7503. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. To fix the bug that causes crash on Max OS X:
  7505. * src/SimpleRandomizer.h
  7506. (getInstance): Create new instance if the static variable is null.
  7507. * src/SimpleRandomizer.cc
  7508. (randomizer): Initialized to 0.
  7509. * src/BitfieldManFactory.h
  7510. (getNewFactory): Removed the call to setRandomizer().
  7511. To fix the miscalculation of the range of checksum:
  7512. * src/BitfieldMan.h
  7513. (isBitSetOffsetRange): New function.
  7514. * src/BitfieldMan.cc
  7515. (isBitSetOffsetRange): New function.
  7516. * src/SegmentMan.cc
  7517. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  7518. Use bitfield->getBlockLength() instead of segment.segmentLength.
  7519. * Release 0.10.1
  7520. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7521. To lower CPU usage in BitTorrent download when --max-upload-limit
  7522. command-line option specified:
  7523. * src/DefaultBtMessageDispatcher.cc
  7524. (sendMessages): Calculate uploading speed only when current message
  7525. is uploading data and is not sent yet.
  7526. * src/DefaultPeerStorage.h
  7527. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  7528. * src/HttpResponseCommand.cc
  7529. (handleDefaultEncoding): Added the cast to int32_t to itos.
  7530. This fixes compile error in Soralis 10.
  7531. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7532. To fix segfault in Metalink download:
  7533. * src/UrlRequestInfo.h
  7534. (filename): Removed.
  7535. (totalLength): Removed.
  7536. (setTotalLength): Removed.
  7537. (setFilename): Removed.
  7538. * src/MetalinkRequestInfo.cc
  7539. (execute): Do not set filename and totalLength to reqInfo.
  7540. Set chunk checksum to reqInfo if it is not null.
  7541. * src/HttpResponseCommand.cc
  7542. (executeInternal): Fixed filename in log.
  7543. (handleDefaultEncoding): Removed the call to initBitfield() and
  7544. markAllPiecesDone().
  7545. (handleOtherEncoding): Added HEAD method handling.
  7546. * src/FtpNegotiateCommand.cc
  7547. (executeInternal): Added SEQ_HEAD_OK handling.
  7548. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  7549. return false.
  7550. * src/FtpNegotiateCommand.h
  7551. (SEQ_HEAD_OK): New definition.
  7552. * src/SegmentMan.cc
  7553. (initBitfield): Delete bitfield.
  7554. (isChunkChecksumValidationReady): Fixed the condition.
  7555. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  7556. works fine.
  7557. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7558. * src/Xml2MetalinkProcessor.h
  7559. (xpathExists): New function.
  7560. * src/Xml2MetalinkProcessor.cc
  7561. (xpathExists): New function.
  7562. Not to send HEAD request if filename and size are available in Metalink
  7563. file:
  7564. * src/UrlRequestInfo.h
  7565. (filename): New variable.
  7566. (totalLength): New variable.
  7567. (setTotalLength): New function.
  7568. (setFilename): New function.
  7569. * src/MetalinkRequestInfo.cc
  7570. (execute): Set filename and size to UrlRequestInfo.
  7571. * src/MetalinkEntry.cc
  7572. (MetalinkEntry): Initialize size with 0.
  7573. * src/UrlRequestInfo.cc
  7574. (execute): Set filename and size to SegmentMan.
  7575. Not to download rest of the files after selected files are downloaded
  7576. in BitTorrent:
  7577. * src/PieceStorage.h
  7578. (allDownloadFinished): New function.
  7579. * src/DefaultBtAnnounce.cc
  7580. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  7581. downloadFinished.
  7582. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  7583. * src/DefaultPieceStorage.cc
  7584. (completePiece): Use allDownloadFinished instead of downloadFinished.
  7585. Commented out the call to finishSelectiveDownloadingMode().
  7586. (downloadFinished): Call isFilteredAllBitSet() instead of
  7587. isAllBitSet().
  7588. (allDownloadFinished): New function.
  7589. * src/DefaultBtInteractive.cc
  7590. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  7591. downloadFinished().
  7592. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  7593. * src/TorrentDownloadEngine.cc
  7594. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  7595. * src/BitfieldMan.h
  7596. (isFilteredAllBitSet): New function.
  7597. * src/ShareRatioSeedCriteria.h
  7598. (PieceStorage.h): New include.
  7599. (pieceStorage): New variable.
  7600. (evaluate):
  7601. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  7602. * src/BitfieldMan.cc
  7603. (isFilteredAllBitSet): New function.
  7604. (isAllBitSet): Filter is not took into account.
  7605. Rename --force-truncate as --allow-overwrite:
  7606. * src/TorrentRequestInfo.cc
  7607. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  7608. * src/main.cc
  7609. (showUsage): --force-truncate -> --allow-overwrite
  7610. * src/message.h
  7611. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  7612. * src/prefs.h
  7613. (PREF_FORCE_TRUNCATE): Removed.
  7614. (PREF_ALLOW_OVERWRITE): New definition.
  7615. * src/SegmentMan.cc
  7616. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  7617. * src/MetalinkRequestInfo.cc
  7618. (execute): Queueing message are now logged in info level.
  7619. * src/common.h
  7620. (LONG_LONG_MAX): Removed.
  7621. (LONG_LONG_MIN): Removed.
  7622. * src/HttpResponseCommand.cc
  7623. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  7624. * src/FtpNegotiateCommand.cc
  7625. (recvSize): LONG_LONG_MAX -> INT64_MAX
  7626. * src/main.cc
  7627. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  7628. command-line option.
  7629. (main): Added --check-integriy and --realtime-chunk-checksum
  7630. command-line option.
  7631. --force-truncate -> --allow-overwrite
  7632. Set initial value of --check-integrity option to false.
  7633. Don't show usage when error occurs while persing command-line options.
  7634. Removed deprecated --upload-limit option.
  7635. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7636. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  7637. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  7638. * src/BtAllowedFastMessage.cc:
  7639. * src/BtBitfieldMessage.cc
  7640. * src/BtCancelMessage.cc
  7641. * src/BtChokeMessage.cc
  7642. * src/BtHaveAllMessage.cc
  7643. * src/BtHaveMessage.cc
  7644. * src/BtHaveNoneMessage.cc
  7645. * src/BtInterestedMessage.cc
  7646. * src/BtNotInterestedMessage.cc
  7647. * src/BtPieceMessage.cc
  7648. * src/BtPortMessage.cc
  7649. * src/BtRejectMessage.cc
  7650. * src/BtRequestMessage.cc
  7651. * src/BtSuggestPieceMessage.cc
  7652. * src/BtUnchokeMessage.cc
  7653. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  7654. files are affected.
  7655. * src/ChunkChecksumValidator.cc
  7656. * src/SegmentMan.cc
  7657. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7658. To add chunk checksum validation:
  7659. * src/MetalinkEntry.h
  7660. (MetalinkChunkChecksum.h): New include.
  7661. (chunkChecksum): New variable.
  7662. * src/Request.h
  7663. (method): New variable.
  7664. (setMethod): New function.
  7665. (getMethod): New function.
  7666. (METHOD_GET): New static constant.
  7667. (METHOD_HEAD): New static constant.
  7668. * src/Xml2MetalinkProcessor.h
  7669. (getPieceHash): New function.
  7670. * src/PieceStorage.h
  7671. (markAllPiecesDone): New function.
  7672. (checkIntegrity): New function.
  7673. * src/FileAllocator.h
  7674. (NullFileAllocationMonitor.h): New include.
  7675. (FileAllocator): Initialize fileAllocationMonitor with new
  7676. NullFileAllocationMonitor().
  7677. * src/MultiDiskAdaptor.h
  7678. (messageDigest.h): Remove include.
  7679. (ctx): Removed.
  7680. (hashUpdate): Added ctx.
  7681. (MultiDiskAdaptor): Removed ctx.
  7682. (sha1Sum): Renamed as messageDigest.
  7683. (messageDigest): New function.
  7684. * src/UrlRequestInfo.h
  7685. (HeadResult): New class.
  7686. (digestAlgo): New variable.
  7687. (chunkChecksumLength): New variable.
  7688. (chunkChecksums): New variable.
  7689. (getHeadResult): New function.
  7690. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  7691. (setDigestAlgo): New function.
  7692. (setChunkChecksumLength): New function.
  7693. (setChunkChecksums): New function.
  7694. * src/DefaultPieceStorage.cc
  7695. (DiskAdaptorWriter.h): New include.
  7696. (ChunkChecksumValidator.h): New include.
  7697. (markAllPiecesDone): New function.
  7698. (checkIntegrity): New function.
  7699. * src/DefaultBtContext.h
  7700. (getPieceHashes): New function.
  7701. * src/TorrentRequestInfo.cc
  7702. (execute): Try to validate chunk checksum if file already exists and
  7703. .aria2 file doesn't there and user allows aria2 to overwrite it.
  7704. * src/messageDigest.h
  7705. (~MessageDigestContext): Added digestFree().
  7706. * src/MetalinkRequestInfo.cc
  7707. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  7708. * src/DiskAdaptor.h
  7709. (messageDigest.h): New include.
  7710. (sha1Sum): Renamed as messageDigest.
  7711. (messageDigest): New function.
  7712. * src/DownloadCommand.h
  7713. (PeerStat.h): New include.
  7714. (maxDownloadSpeedLimit): New variable.
  7715. (startupIdleTime): New variable.
  7716. (lowestDownloadSpeedLimit): New variable.
  7717. (peerStat): New variable.
  7718. (setMaxDownloadSpeedLimit): New function.
  7719. (setStartupIdleTime): New function.
  7720. (setLowestDownloadSPeedLimit): New function.
  7721. * src/BtContext.h
  7722. (getPieceHashes): New function.
  7723. * src/main.cc
  7724. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  7725. option to true for testing purpose.
  7726. * src/BtPieceMessage.cc
  7727. (checkPieceHash): Use messageDigest
  7728. * src/DownloadEngine.cc
  7729. (SetDescriptor): Removed.
  7730. (AccumulateActiveCommand): Removed.
  7731. (waitData): Rewritten.
  7732. (updateFdSet): Rewritten.
  7733. * src/MultiDiskAdaptor.cc
  7734. (hashUpdate): Added ctx.
  7735. (sha1Sum): Renamed as messageDigest.
  7736. (messageDigest): New function.
  7737. * src/BitfieldMan.h
  7738. (isBitRangeSet): New function.
  7739. (unsetBitRange): New function.
  7740. * src/ByteArrayDiskWriter.h
  7741. (sha1Sum): Renamed as messageDigest.
  7742. (messageDigest): New function.
  7743. * src/ConsoleDownloadEngine.cc
  7744. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  7745. * src/DiskWriter.h
  7746. (messageDigest.h): New include.
  7747. (sha1Sum): Renamed as messageDigest.
  7748. (messageDigest): New function.
  7749. * src/ChunkChecksumValidator.h: New class.
  7750. * src/DiskAdaptorWriter.h: New class.
  7751. * src/prefs.h
  7752. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  7753. (PREF_CHECK_INTEGRITY): New definition.
  7754. * src/HttpResponseCommand.cc
  7755. (handleDefaultEncoding): Added method "HEAD" handling.
  7756. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7757. (handleOtherEncoding):
  7758. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  7759. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  7760. startupIdleTime, lowestDownloadSpeedLimit to command.
  7761. * src/SegmentMan.h
  7762. (getSegmentEntryByIndex): New function.
  7763. (getSegmentEntryByCuid): New function.
  7764. (getSegmentEntryIteratorByCuid): New function.
  7765. (diskWriter): DiskWriter -> DiskWriterHandle
  7766. (pieceHashes): New variable.
  7767. (chunkHashLength): New variable.
  7768. (digestAlgo): New variable.
  7769. (FindPeerStat): Removed.
  7770. (getPeerStat): Rewritten.
  7771. (markAllPiecesDone): New function.
  7772. (checkIntegrity): New function.
  7773. (tryChunkChecksumValidation): New function.
  7774. (isChunkChecksumValidationReady): New function.
  7775. * src/BitfieldMan.cc
  7776. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  7777. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  7778. blocks to 0.
  7779. (isBitRangeSet): New function.
  7780. (unsetBitRange): New function.
  7781. * src/FtpNegotiateCommand.cc
  7782. (executeInternal): Set maxDownloadSpeedLimit,
  7783. startupIdleTime, lowestDownloadSpeedLimit to command.
  7784. (recvSize): Added method "HEAD" handling.
  7785. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  7786. * src/AbstractSingleDiskAdaptor.cc
  7787. (sha1Sum): Renamed as messageDigest.
  7788. (messageDigest): New function.
  7789. * src/AbstractSingleDiskAdaptor.h
  7790. (sha1Sum): Renamed as messageDigest.
  7791. (messageDigest): New function.
  7792. * src/Util.h
  7793. (indexRange): New function.
  7794. * src/MetalinkEntry.cc
  7795. (MetalinkEntry): Initialized chunkChecksum to 0.
  7796. * src/ShaVisitor.cc
  7797. (~ShaVisitor): Removed the call to ctx.digestFree().
  7798. * src/SegmentMan.cc
  7799. (ChunkChecksumValidator.h): New include.
  7800. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  7801. to DIGEST_ALGO_SHA1.
  7802. (~SegmentMan): Removed diskWriter.
  7803. (FindSegmentEntryByIndex): Removed.
  7804. (FindSegmentEntryByCuid): Removed.
  7805. (checkoutSegment): Rewritten.
  7806. (findSlowerSegmentEntry): Rewritten.
  7807. (getSegment): Rewritten.
  7808. (updateSegment): Rewritten.
  7809. (completeSegment): Rewritten.
  7810. (markAllPiecesDone): New function.
  7811. (checkIntegrity): New function.
  7812. (isChunkChecksumValidationReady): New function.
  7813. (tryChunkChecksumValidation): New function.
  7814. * src/Xml2MetalinkProcessor.cc
  7815. (getEntry): Get size and set it to entry.
  7816. Get chunk checksum and set it to entry.
  7817. (getPieceHash): New function.
  7818. * src/Util.cc
  7819. (sha1Sum): Removed ctx.digestFree()
  7820. (fileChecksum): Removed ctx.digestFree()
  7821. (indexRange): New function.
  7822. * src/Request.cc
  7823. (METHOD_GET): New variable.
  7824. (METHOD_HEAD): New variable.
  7825. (Request): Added method.
  7826. * src/UrlRequestInfo.cc
  7827. (FatalException.h): New include.
  7828. (message.h): New include.
  7829. (operator<<): Added operator<< for class HeadResult.
  7830. (getHeadResult): New function.
  7831. (execute): Get filename and size in separate download engine.
  7832. * src/ChunkChecksumValidator.cc: New class.
  7833. * src/DownloadCommand.cc:
  7834. (DownloadCommand): Added peerStat.
  7835. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  7836. the value from Option.
  7837. The buffer size is now 16KB.
  7838. Use peerStat member instead of getting it from SegmentMan.
  7839. Use startupIdleTime member instead of gettingit from Option.
  7840. Added chunk checksum validation.
  7841. * src/AbstractDiskWriter.cc
  7842. (AbstractDiskWriter): Removed ctx.
  7843. (~AbstractDiskWriter): Removed ctx.digestFree()
  7844. (writeDataInternal): Returns the return value of write.
  7845. (readDataInternal): Returns the return value of read.
  7846. (sha1Sum): Renamed as messageDigest
  7847. (messageDigest): New function.
  7848. * src/AbstractDiwkWriter.h
  7849. (messageDigest.h): Removed include.
  7850. (ctx): Removed.
  7851. (sha1Sum): Renamed as messageDigest
  7852. (messageDigest): New function.
  7853. * src/DefaultPieceStorage.h
  7854. (markAllPiecesDone): New function.
  7855. (checkIntegrity): New function.
  7856. * src/NullFileAllocationMonitor.h: New class.
  7857. * src/MetalinkChunkChecksum.h: New class.
  7858. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7859. To decrease CPU usage in bittorrent download, calculation results in
  7860. BitfieldMan were cached and realtime fetching PeerObject was removed
  7861. with WeakHandle introduced. Option values are set to the objects
  7862. by setter before download begins.
  7863. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  7864. * src/DefaultBtRequestFactory.h
  7865. (dispatcher): BtMessageDispatcherHandle ->
  7866. BtMessageDispatcherWeakHandle.
  7867. (messageFactory): New variable.
  7868. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  7869. BtMessageDispatcherWeakHandle.
  7870. (setBtMessageFactory): New function.
  7871. * src/DefaultBtMessageDispatcher.cc:
  7872. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  7873. from Option.
  7874. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  7875. feating the value from Option.
  7876. Use messageFactory member.
  7877. * src/PeerInteractionCommand.cc
  7878. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  7879. Add reverse dependencies to factory object.
  7880. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  7881. dispatcher.
  7882. Set messageFactory to receiver.
  7883. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  7884. btInteractive.
  7885. Set receiver to peerObject.
  7886. Set maxDownloadSpeedLimit to this.
  7887. (executeInternal): Use maxDownloadSpeedLimit member.
  7888. * src/BtChokeMessage.cc
  7889. (doReceivedAction): Use dispatcher, requestFactory member.
  7890. (onSendComplete): Use dispatcher member.
  7891. * src/PeerInteractionCommand.h
  7892. (maxDownloadSpeedLimit): New variable.
  7893. * src/DefaultBtMessageReceiver.h
  7894. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7895. (dispatcher):
  7896. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7897. (messageFactory): New variable.
  7898. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7899. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  7900. (setDispatcher):
  7901. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  7902. (setBtMessageFactory): New function.
  7903. * src/DefaultBtInteractive.cc
  7904. (initiateHandshake): Use messageFactory member.
  7905. (addBitfieldMessageToQueue): Use messageFactory member.
  7906. (addAllowedFastMessageToQueue): Use messageFactory member.
  7907. (decideChoking): Use messageFactory member.
  7908. (checkHave): Use messageFactory member.
  7909. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  7910. (receiveMessages): Use maxDownloadSpeedLimit member.
  7911. (decideInterest): Use messageFactory member.
  7912. * src/BtRequestMessage.cc
  7913. (doReceivedAction): Use messageFactory, dispatcher member.
  7914. (onQueued): Use dispatcher member.
  7915. * src/BtPieceMessage.cc
  7916. (doReceivedAction): Use dispatcher member.
  7917. (send): Use peerConnection member.
  7918. (onWrongPiece): Use requestFactory member.
  7919. (handleChokingEvent): Use messageFactory, dispatcher member.
  7920. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  7921. * src/BtMessageDispatcher.h
  7922. (BtMessageDispatcherWeakHandle): New type definition.
  7923. * src/SimpleBtMessage.cc
  7924. (send): Use peerConnection member.
  7925. * src/BtRejectMessage.cc
  7926. (doReceivedAction): Use dispatcher member.
  7927. * src/DefaultBtMessageDispatcher.h
  7928. (Option.h): Removed include.
  7929. (messageFactory): New variable.
  7930. (option): Removed.
  7931. (maxUploadSpeedLimit): New variable.
  7932. (requestTimeout): New variable.
  7933. (DefaultBtMessageDispatcher): Removed option.
  7934. Added maxUploadSpeedLimit, requestTimeout.
  7935. (setOption): Removed.
  7936. (getOption): Removed.
  7937. (setMaxUploadSpeedLimit): New function.
  7938. (setRequestTimeout): New function.
  7939. (setBtMessageFactory): New function.
  7940. * src/DefaultBtInteractive.h
  7941. (btMessageReceiver):
  7942. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7943. (dispatcher):
  7944. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7945. (btRequestFactory):
  7946. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7947. (peerConnection):
  7948. PeerConnectionHandle -> PeerConnectionWeakHandle
  7949. (messageFactory): New variable.
  7950. (option): Removed.
  7951. (keepAliveInterval): New variable.
  7952. (maxDownloadSpeedLimit): New variable.
  7953. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  7954. (setBtMessageReceiver):
  7955. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  7956. (setDispatcher):
  7957. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  7958. (setBtRequestFactory):
  7959. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  7960. (setPeerConnection):
  7961. PeerConnectionHandle -> PeerConnectionWeakHandle
  7962. (setOption): Removed.
  7963. (setKeepAliveInterval): New function.
  7964. (setMaxDownloadSpeedLimit): New function.
  7965. (setBtMessageFactory): New function.
  7966. * src/BitfieldMan.h
  7967. (cachedNumMissingBlock): New variable.
  7968. (cachedNumFilteredBlock): New variable.
  7969. (cachedCompletedLength): New variable.
  7970. (cachedFilteredComletedLength): New variable.
  7971. (cachedFilteredTotalLength): New variable.
  7972. (countMissingBlockNow): New function.
  7973. (countFilteredBlockNow): New function.
  7974. (getFilteredTotalLengthNow): New function.
  7975. (getCompletedLengthNow): New function.
  7976. (getFilteredCompletedLengthNow): New function.
  7977. (updateCache): New function.
  7978. * src/AbstractBtMessage.h
  7979. (BtMessageDispatcher.h): New include.
  7980. (PeerConnection.h): New include.
  7981. (BtRequestFactory.h): New include
  7982. (BtMessageFactory.h): New include.
  7983. (dispatcher): New variable.
  7984. (messageFactory): New variable.
  7985. (peerConnection: New variable.
  7986. (setBtMessageDispatcher): New function.
  7987. (setPeerConnection): New function.
  7988. (setBtMessageFactory): New function.
  7989. (setBtRequestFactory): New function.
  7990. * src/DefaultBtMessageFactory.cc
  7991. (setCommonProperty): Set dispatcher, requestFactory, this,
  7992. peerConnection to msg.
  7993. * src/BtRegistry.h
  7994. (BT_MESSAGE_RECEIVER): New macro.
  7995. * src/PeerConnection.h
  7996. (PeerConnectionWeakHandle): New type definition.
  7997. * src/BtMessageFactory.h
  7998. (BtMessageFactoryWeakHandle): New type definition.
  7999. * src/BitfieldMan.cc
  8000. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  8001. cachedCompletedLength, cachedFilteredComletedLength,
  8002. cachedFilteredTotalLength.
  8003. Call updateCache().
  8004. (countMissingBlock): Return cachedNumMissingBlock.
  8005. (countMissingBlockNow): New function.
  8006. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  8007. (countFilteredBlockNow): New function.
  8008. (setBit): Call updateCache().
  8009. (unsetBit): Call updateCache().
  8010. (setBitfield): Call updateCache().
  8011. (clearAllBit): Call updateCache().
  8012. (setAllBit): Use setBitInternal instead of setBit.
  8013. Call updateCache().
  8014. (addFilter): Call updateCache().
  8015. (enableFilter): Call updateCache().
  8016. (disableFilter): Call updateCache().
  8017. (clearFilter): Call updateCache().
  8018. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  8019. (getFilteredTotalLengthNow): New function.
  8020. (getCompletedLength): Return cachedCompletedLength.
  8021. (getCompletedLengthNow): New function.
  8022. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  8023. (getFilteredCompletedLengthNow): New function.
  8024. (updateCache): New function.
  8025. * src/BtMessageReceiver.h
  8026. (BtMessageReceiverWeakHandle): New type definition.
  8027. * src/DefaultBtMessageReceiver.cc
  8028. (receiveHandshake): Use messageFactory member.
  8029. (sendHandshake): Use messageFactory member.
  8030. (receiveMessage): Use messageFactory member.
  8031. * src/DefaultBtMessageFactory.h
  8032. (dispatcher): New variable.
  8033. (requestFactory): New variable.
  8034. (peerConnection): New variablle.
  8035. (setBtMessageDispatcher): New function.
  8036. (setBtRequestFactory): New function.
  8037. (setPeerConnection): New function.
  8038. * src/SharedHandle.h
  8039. (RefCount): New class.
  8040. (WeakHandle): New class.
  8041. * src/PeerObject.h
  8042. (BtMessageReceiver.h): New include.
  8043. (PeerObject): Added btMessageReceiver.
  8044. (btMessageReceiver): New variable.
  8045. * src/Util.cc
  8046. (countBit): Simplified.
  8047. * src/BtCancelMessage.cc
  8048. (doReceivedAction): Use dispatcher member.
  8049. * src/BtRequestFactory.h
  8050. (BtRequestFactoryWeakHandle): New type definition.
  8051. * src/PeerStorage.h
  8052. (downloadSpeed): int -> uint32_t
  8053. (uploadSpeed): int -> uint32_t
  8054. (sessionDownloadLength): long long int -> uint64_t
  8055. (sessionUploadLength): long long int -> uint64_t
  8056. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8057. To add RecoverableException, FatalException:
  8058. * src/AbstractCommand.cc
  8059. (onAbort): Exception -> RecoverableException
  8060. * src/PeerAbstractCommand.h
  8061. (RecoverableException.h): New include.
  8062. (onAbort): Exception -> RecoverableException.
  8063. * src/PeerInteractionCommand.cc
  8064. (onAbort): Exception -> RecoverableException.
  8065. * src/PeerAbstractCommand.cc
  8066. (execute): Exception -> RecoverableException.
  8067. (onAbort): Exception -> RecoverableException.
  8068. * src/TorrentRequestInfo.cc
  8069. (execute): Exception -> RecoverableException.
  8070. * src/MetalinkRequestInfo.cc
  8071. (execute): Exception -> RecoverableException.
  8072. * src/MetaFileUtil.cc: RecoverableException.
  8073. * src/AbstractCommand.h
  8074. (onAbort): Exception -> RecoverableException.
  8075. * src/DlRetryEx.h: Exception -> RecoverableException.
  8076. * src/DlAbortEx.h: Exception -> RecoverableException.
  8077. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  8078. * src/Util.cc: Exception -> RecoverableException.
  8079. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  8080. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  8081. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  8082. To make ID static const int
  8083. * src/BtInterestedMessage.h
  8084. (ID_t): Removed.
  8085. (ID): New variable.
  8086. (getId): Made non-const.
  8087. * src/BtPieceMessage.h
  8088. (ID_t): Removed.
  8089. (ID): New variable.
  8090. (getId): Made non-const.
  8091. * src/BtChokeMessage.h
  8092. (ID_t): Removed.
  8093. (ID): New variable.
  8094. (getId): Made non-const.
  8095. * src/BtHaveAllMessage.h
  8096. (ID_t): Removed.
  8097. (ID): New variable.
  8098. (getId): Made non-const.
  8099. * src/BtKeepAliveMessage.h
  8100. (ID_t): Removed.
  8101. (ID): New variable.
  8102. (getId): Made non-const.
  8103. * src/BtHandshakeMessage.h
  8104. (ID): New variable.
  8105. (getId): Made non-const.
  8106. * src/BtSuggestPieceMessage.h
  8107. (ID_t): Removed.
  8108. (ID): New variable.
  8109. (getId): Made non-const.
  8110. * src/BtPortMessage.h
  8111. (ID_t): Removed.
  8112. (ID): New variable.
  8113. (getId): Made non-const.
  8114. * src/AbstractBtMessage.h
  8115. (id): Removed.
  8116. (AbstractBtMessage): Removed id.
  8117. (getId): Removed.
  8118. * src/BtHaveMessage.h
  8119. (ID_t): Removed.
  8120. (ID): New variable.
  8121. (getId): Made non-const.
  8122. * src/BtAllowedFastMessage.h
  8123. (ID_t): Removed.
  8124. (ID): New variable.
  8125. (getId): Made non-const.
  8126. * src/BtCancelMessage.h
  8127. (ID_t): Removed.
  8128. (ID): New variable.
  8129. (getId): Made non-const.
  8130. * src/BtNotInterestedMessage.h
  8131. (ID_t): Removed.
  8132. (ID): New variable.
  8133. (getId): Made non-const.
  8134. * src/BtChokeMessage.h
  8135. (ID_t): Removed.
  8136. (ID): New variable.
  8137. (getId): Made non-const.
  8138. * src/BtRejectMessage.h
  8139. (ID_t): Removed.
  8140. (ID): New variable.
  8141. (getId): Made non-const.
  8142. * src/BtBitfieldMessage.h
  8143. (ID_t): Removed.
  8144. (ID): New variable.
  8145. (getId): Made non-const.
  8146. * src/BtUnchokeMessage.h
  8147. (ID_t): Removed.
  8148. (ID): New variable.
  8149. (getId): Made non-const.
  8150. * src/BtRequestMessage.h
  8151. (ID_t): Removed.
  8152. (ID): New variable.
  8153. (getId): Made non-const.
  8154. * src/BtHaveMessage.h
  8155. (ID_t): Removed.
  8156. (ID): New variable.
  8157. (getId): Made non-const.
  8158. To add --force-truncate command-line option and a check whether
  8159. the file already exists:
  8160. * src/DirectDiskAdaptor.h
  8161. (getFilePath): Made virtual public.
  8162. * src/MultiDiskAdaptor.h
  8163. (File.h): New include.
  8164. (DiskWriterEntry::fileEntry): Made private.
  8165. (DiskWriterEntry::fileExists): New function.
  8166. (DiskWriterEntry::getFileEntry): New function.
  8167. (fileExists): New function.
  8168. (getFilePath): New function.
  8169. * src/TorrentRequestInfo.cc
  8170. (FatalException.h): New include.
  8171. (message.h): New include.
  8172. (RecoverableException.h): New include.
  8173. (execute): Added a check whether file is already exists or not.
  8174. * src/DiskAdaptor.h
  8175. (fileExists): New function.
  8176. (getFilePath): New function.
  8177. * src/main.cc
  8178. (showUsage): Added an explanation of --force-truncate command-line
  8179. option.
  8180. (main): Added --force-truncate command-line option.
  8181. * src/Exception.h
  8182. (setMsg): buf[256] -> buf[1024]
  8183. * src/CopyDiskWriter.h
  8184. (getFilePath): Made public virtual.
  8185. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  8186. (fileExists): New function.
  8187. * src/DownloadEngineFactory.cc
  8188. (newTorrentConsoleEngine): Don't open file here.
  8189. * src/message.h
  8190. (EX_FILE_ALREADY_EXISTS): New definition.
  8191. * src/prefs.h
  8192. (PREF_FOECE_TRUNCATE): New definition.
  8193. * src/HttpResponseCommand.cc
  8194. (handleDefaultEncoding): Added a check whether the file already exists.
  8195. * src/SegmentMan.h
  8196. (fileExists): New function.
  8197. (shouldCancelDownloadForSafety): New function.
  8198. * src/FtpNegotiateCommand.cc
  8199. (recvSize): Added a check whether the file already exists.
  8200. * src/AbstractSingleDiskAdaptor.cc
  8201. (File.h): New include.
  8202. (fileExists): New function.
  8203. * src/AbstractSingleDiskAdaptor.h
  8204. (getFilePath): Removed.
  8205. (fileExists): New function.
  8206. * src/SegmentMan.cc
  8207. (fileExists): New function.
  8208. (shouldCancelDownloadForSafety): New function.
  8209. To fix regression bug in torrent downloading:
  8210. * src/DefaultBtRequestFactory.cc
  8211. (doChokedAction): New function.
  8212. * src/DefaultBtRequestFactory.h
  8213. (doChokedAction): New function.
  8214. * src/DefaultBtMessageDispatcher.cc
  8215. (doChokedAction): Do not delete request if its target is in allowed
  8216. fast set.
  8217. * src/DefaultBtInteractive.cc
  8218. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  8219. (sendKeepAlive): Send keep alive message even if the outgoing message
  8220. queue is not empty.
  8221. (decideInterest): Simplified the code.
  8222. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  8223. it is already called when BtChokeMessage is received from a peer.
  8224. * src/BtRequestFactory.h
  8225. (doChokedAction): New function.
  8226. To clean up code:
  8227. * src/PeerInteractionCommand.h
  8228. (executeInternal): Added virtual keyword explicitly.
  8229. (prepareForRetry): Added virtual keyword explicitly.
  8230. (prepareForNextPeer): Added virtual keyword explicitly.
  8231. (onAbort): Added virtual keyword explicitly.
  8232. * src/RequestSlot.cc
  8233. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  8234. * src/BtPieceMessage.cc
  8235. (doReceivedAction): Added a debug log of piece's bitfield.
  8236. * src/Piece.h
  8237. (getBitfieldLength): New function.
  8238. * src/ByteArrayDiskWriter.cc
  8239. (clear): Added buf = 0 to avoid double free corruption.
  8240. * src/FileAllocator.cc
  8241. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  8242. Added cp.reset().
  8243. * src/BitfieldMan.h
  8244. (operator=): Rewritten.
  8245. * src/BitfieldMan.cc
  8246. (BitfieldMan): Initialized bitfield, useBitfield.
  8247. * src/PeerConnection.cc
  8248. (receiveMessage): Added a call to socket->readable() after getting
  8249. message length to avoid possible EOF.
  8250. * src/Util.cc
  8251. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  8252. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8253. To add an ability to pre-allocate file space:
  8254. * src/DirectDiskAdaptor.h: Rewritten.
  8255. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  8256. * src/MultiDiskAdaptor.h: Rewritten.
  8257. * src/DefaultPieceStorage.cc
  8258. (MultiDiskWriter.h): Removed include.
  8259. (PreAllocationDiskWriter.h): Removed include.
  8260. (FileAllocationMonitor.h): New include.
  8261. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  8262. (initStorage): Rewritten.
  8263. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8264. * src/FileAllocator.h: New class.
  8265. * src/FileAllocator.cc: New class.
  8266. * src/FileAllocationMonitor.h: New class.
  8267. * src/FileAllocationMonitor.cc: New class.
  8268. * src/ConsoleFileAllocationMonitor.h: New class.
  8269. * src/ConsoleFileAllocationMonitor.cc: New class.
  8270. * src/AbstractSingleDiskAdaptor.h: New class.
  8271. * src/AbstractSingleDiskAdaptor.cc: New class.
  8272. * src/DiskAdaptor.h
  8273. (Directory.h): Removed include.
  8274. (DiskWriter.h): Removed include.
  8275. (FileEntry.h): Removed include.
  8276. (diskWriter): Removed.
  8277. (DiskAdaptor): Removed diskWriter.
  8278. (openFile): Made pure virtual.
  8279. (closeFile): Made pure virtual.
  8280. (openExistingFile): Made pure virtual.
  8281. (initAndOpenFile): Made pure virtual.
  8282. (writeData): Made pure virtual.
  8283. (readData): Made pure virtual.
  8284. (sha1Sum): Made pure virtual.
  8285. (getStoreDir): Returns const reference of storeDir.
  8286. (DiskAdaptorHandle): New type definition.
  8287. * src/main.cc
  8288. (ConsoleFileAllocationMonitor.h): New include.
  8289. (showUsage): Added default value description of -s option.
  8290. Added the description of --file-allocation option.
  8291. (main): Set default value of --file-allocation option to 'none'.
  8292. Added --file-allocation command-line option.
  8293. Setup FileAllocationMonitorFactory.
  8294. * src/FtpInitiateConnectionCommand.cc
  8295. (executeInternal): Removed diskWriter related processing, which was
  8296. moved to FtpNegotiationCommand.cc.
  8297. * src/DirectDiskAdaptor.cc
  8298. (getFilePath): Made non-const.
  8299. * src/CopyDiskAdaptor.h
  8300. (DiskAdaptor.h): Removed include.
  8301. (DiskWriter.h): Removed include.
  8302. (AbstractSingleDiskAdaptor.h): New include.
  8303. (getFilePath): Made non-const. Added virtual keyword.
  8304. (CopyDiskAdaptor): Removed diskWriter.
  8305. (getTempFile): Returns const reference.
  8306. (CopyDiskAdaptorHandle): New type definition.
  8307. * src/ByteArrayDiskWriter.cc
  8308. (clear): Simplified.
  8309. (initAndOpenFile): Rewritten.
  8310. (openFile): Call initAndOpenFile()
  8311. * src/MultiDiskAdaptor.cc: Rewritten.
  8312. * src/DownloadEngineFactory.cc
  8313. (FileAllocator.h): New include.
  8314. (FileAllocationMonitor.h): New include.
  8315. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  8316. create DefaultDiskWriter with file allocator.
  8317. * src/DiskWriter.h
  8318. (initAndOpenFile): Added totalLength argument.
  8319. (openFile): Added totalLength argument.
  8320. * src/prefs.h
  8321. (PREF_FILE_ALLOCATION): New definition.
  8322. (V_PREALLOC): New definition.
  8323. (V_NONE): New definition.
  8324. * src/HttpResponseCommand.cc
  8325. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  8326. size.
  8327. * src/FtpNegotiateCommand.cc
  8328. (Util.h): New include.
  8329. (recvSize): Open file here.
  8330. * src/Util.h
  8331. (ullitos): New function.
  8332. * src/CopyDiskWriter.h
  8333. (getFilePath): Made non-const.
  8334. * src/DefaultDiskWriter.h
  8335. (Option.h): New include.
  8336. (totalLength): Removed.
  8337. (DefaultDiskWriter): Removed totalLength.
  8338. (initAndOpenFile): Added totalLength argument.
  8339. (DefaultDiskWriterHandle): New type definition.
  8340. (createNewDiskWriter): New function.
  8341. * src/Util.cc
  8342. (ullitos): New function.
  8343. * src/DefaultDiskWriter.cc
  8344. (message.h): New include.
  8345. (FileAllocator.h): New include.
  8346. (prefs.h): New include.
  8347. (Util.h): New include.
  8348. (DefaultDiskWriter): Removed totalLength.
  8349. (initAndOpenFile): Added file allocation.
  8350. (createNewDiskWriter): New function. Just for temporary solution.
  8351. It will be rewritten later.
  8352. * src/DiskAdaptor.cc
  8353. (DiskAdaptor): Removed diskWriter.
  8354. * src/AbstractDiskWriter.cc
  8355. (LogFactory.h): New include.
  8356. (AbstractDiskWriter): Added fileAllocator, logger.
  8357. (openFile): Added totalLength argument.
  8358. * src/AbstractDiskWriter.h
  8359. (FileAllocator.h): New include.
  8360. (Logger.h): New include.
  8361. (fileAllocator): New variable.
  8362. (logger): New variable.
  8363. (openFile): Added totalLength argument. Added virtual keyword
  8364. explicitly.
  8365. (openExistingFile): Added totalLength argument. Added virtual keyword
  8366. explicitly.
  8367. (closeFile): Added virtual keyword explicitly.
  8368. (sha1Sum): Added virtual keyword explicitly.
  8369. (writeData): Added virtual keyword explicitly.
  8370. (readData): Added virtual keyword explicitly.
  8371. (setFileAllocator): New function.
  8372. * src/DefaultPieceStorage.h
  8373. (FileAllocator.h): New include.
  8374. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8375. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  8376. * src/FileProgressMonitor.h: New class.
  8377. To compile aria2 on PC-BSD:
  8378. * src/DefaultBtContext.cc
  8379. (libgen.h): New include.
  8380. To fix memory leak:
  8381. * src/Exception.h
  8382. (~Exception): Delete cause. Fixed memory leak.
  8383. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8384. Rewritten a portion of bittorrent implementation:
  8385. * src/BtMessageValidator.h: New class.
  8386. * src/BtBitfieldMessageValidator.h: New class.
  8387. * src/BtHandshakeMessageValidator.h: New class.
  8388. * src/BtRequestMessageValidator.h: New class.
  8389. * src/BtSuggestPieceMessageValidator.h: New class.
  8390. * src/BtAllowedFastMessageValidator.h: New class.
  8391. * src/BtRejectMessageValidator.h: New class.
  8392. * src/BtCancelMessageValidator.h: New class.
  8393. * src/BtPieceMessageValidator.h: New class.
  8394. * src/BtHaveMessageValidator.h: New class.
  8395. * src/BtEventListener.h: New class.
  8396. * src/AbstractBtEventListener.h: New class.
  8397. * src/BtEvent.h: New class.
  8398. * src/BtChokingEvent.h: New class.
  8399. * src/BtChokedEvent.h: New class.
  8400. * src/BtCancelSendingPieceEvent.h: New class.
  8401. * src/BtAbortOutstandingRequestEvent.h: New class.
  8402. * src/Randomizer.h: New class.
  8403. * src/SimpleRandomizer.h: New class.
  8404. * src/BtMessage.h: New class.
  8405. * src/AbstractBtMessage.h: New class.
  8406. * src/SimpleBtMessage.h: New class.
  8407. * src/BtHaveMessage.h: New class.
  8408. * src/BtInterestedMessage.h: New class.
  8409. * src/BtAllowedFastMessage.h: New class.
  8410. * src/BtUnchokeMessage.h: New class.
  8411. * src/BtCancelMessage.h: New class.
  8412. * src/BtNotInterestedMessage.h: New class.
  8413. * src/BtChokeMessage.h: New class.
  8414. * src/BtHaveNoneMessage.h: New class.
  8415. * src/BtHandshakeMessage.h: New class.
  8416. * src/BtSuggestPieceMessage.h: New class.
  8417. * src/BtHaveMessage.h: New class.
  8418. * src/BtPieceMessage.h: New class.
  8419. * src/BtHaveAllMessage.h: New class.
  8420. * src/BtKeepAliveMessage.h: New class.
  8421. * src/BtPortMessage.h: New class.
  8422. * src/BtRejectMessage.h: New class.
  8423. * src/BtBitfieldMessage.h: New class.
  8424. * src/BtRequestMessage.h: New class.
  8425. * src/DefaultBtRequestFactory.h: New class.
  8426. * src/DefaultBtMessageReceiver.h: New class.
  8427. * src/BtInteractive.h: New class.
  8428. * src/BtMessageDispatcher.h: New class.
  8429. * src/DefaultBtMessageDispatcher.h: New class.
  8430. * src/DefaultBtInteractive.h: New class.
  8431. * src/BitfieldManFactory.h: New class.
  8432. * src/HandleRegistry.h: New class.
  8433. * src/BtMessageFactory.h: New class.
  8434. * src/BtMessageReceiver.h: New class.
  8435. * src/DefaultBtMessageFactory.h: New class.
  8436. * src/PeerObject.h: New class.
  8437. * src/BtRequestFactory.h: New class.
  8438. * src/SuggestPieceMessage.h: Removed.
  8439. * src/PortMessage.h: Removed.
  8440. * src/SuggestPieceMessage.h: Removed.
  8441. * src/KeepAliveMessage.h: Removed.
  8442. * src/HandshakeMessage.h: Removed.
  8443. * src/PeerInteraction.h: Removed.
  8444. * src/UnchokeMessage.h: Removed.
  8445. * src/PieceMessage.h: Removed.
  8446. * src/RequestMessage.h: Removed.
  8447. * src/InterestedMessage.h: Removed.
  8448. * src/HaveMessage.h: Removed.
  8449. * src/CancelMessage.h: Removed.
  8450. * src/RejectMessage.h: Removed.
  8451. * src/AllowedFastMessage.h: Removed.
  8452. * src/HaveNoneMessage.h: Removed.
  8453. * src/SimplePeerMessage.h: Removed.
  8454. * src/HaveAllMessage.h: Removed.
  8455. * src/BitfieldMessage.h: Removed.
  8456. * src/PeerMessageFactory.h: Removed.
  8457. * src/NotInterestedMessage.h: Removed.
  8458. * src/ChokeMessage.h: Removed.
  8459. * src/PeerMessage.h: Removed.
  8460. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8461. To know root cause of exception:
  8462. * src/Exception.h
  8463. (cause): New variable.
  8464. (Exception): Added a parameter.
  8465. (getMsg): Return const reference to msg.
  8466. (getCause): New function.
  8467. * src/DlRetryEx.h
  8468. (DlRetryEx): Added a parameter 'cause'.
  8469. Added an overloaded constructor.
  8470. (DlAbortEx): Added a parameter 'cause'.
  8471. Added an overloaded constructor.
  8472. * src/SimpleLogger.cc
  8473. (writeLog): Log nested exception messages recursively.
  8474. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8475. * src/DefaultBtProgressInfoFile.cc
  8476. (load): Fixed memory leak when the infohash doesn't match.
  8477. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8478. * src/DefaultPeerStorage.cc
  8479. (calculateStat): Simplified the code by combining 2 loops into 1.
  8480. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8481. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  8482. for BitTorrent download:
  8483. * src/PeerAbstractCommand.cc
  8484. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  8485. * src/main.cc:
  8486. (timeoutSpecified): Removed.
  8487. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  8488. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  8489. * src/TorrentRequestInfo.cc
  8490. (timeoutSpecified): Removed.
  8491. (torrentHandler): Removed timeoutSpecified and the adjustment of
  8492. timeout value.
  8493. * src/prefs.h
  8494. (PREF_BT_TIMEOUT): New definition.
  8495. Delete unused variables:
  8496. * src/TorrentRequestInfo.cc
  8497. (requestInfo): Removed.
  8498. Move setSignalHander to Util::setGlobalSignalHandler:
  8499. * src/TorrentRequestInfo.cc:
  8500. setSignalHander -> Util::setGlobalSignalHandler
  8501. * src/main.cc
  8502. (setSignalHander): Removed.
  8503. (main): setSignalHander -> Util::setGlobalSignalHandler
  8504. * src/Util.h
  8505. (setGlobalSignalHandler): New function.
  8506. * src/Util.cc
  8507. (setGlobalSignalHandler): New function.
  8508. * src/UrlRequestInfo.cc:
  8509. setSignalHander -> Util::setGlobalSignalHandler
  8510. Reset peer status in order to exit gracefully:
  8511. * src/PeerAbstractCommand.cc
  8512. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  8513. To fix the bug that causes the number of bytes uploaded is not saved
  8514. to .aria2 file:
  8515. * src/DefaultPeerStorage.h
  8516. (removedPeerSessionDownloadLength): New variable.
  8517. (removedPeerSessionUploadLength): New variable.
  8518. * src/DefaultPeerStorage.cc
  8519. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  8520. removedPeerSessionUploadLength(0).
  8521. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  8522. through all peers, and then add removedPeerSessionDownloadLength(
  8523. removedPeerSessionUploadLength) to it.
  8524. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  8525. (to) the peer to removedPeerSessionDownloadLength
  8526. (removedPeerSessionUploadLength).
  8527. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8528. To add Metalink location option:
  8529. * src/MetalinkRequestInfo.cc
  8530. (execute): Call MetalinkEntry::setLocationPreference()
  8531. * src/main.cc
  8532. (showUsage): Added the help message for --metalink-location option.
  8533. (main): Added --metalink-location option.
  8534. * src/prefs.h
  8535. (PREF_METALINK_LOCATION): New definition.
  8536. * src/MetalinkEntry.cc
  8537. (AddLocationPreference): New function object.
  8538. (setLocationPreference): New function.
  8539. * src/Xml2MetalinkProcessor.cc
  8540. (getResource): Set location attribute to MetalinkResource
  8541. To show URLs to download
  8542. * src/UrlRequestInfo.h
  8543. (printUrls): New function.
  8544. To add multiple <file> Metalink support:
  8545. * src/MetalinkEntry.h
  8546. (MetalinkResources): Removed.
  8547. (setLocationPreference): New function.
  8548. (MetalinkEntryHandle): New type definition.
  8549. (MetalinkEntries): New type definition.
  8550. * src/Xml2MetalinkProcessor.h
  8551. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8552. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8553. (parseFile): Metalinker* -> MetalinkerHandle
  8554. * src/UrlRequestInfo.h
  8555. (execute): RequestInfo* -> RequestInfos
  8556. * src/MetalinkRequestInfo.cc
  8557. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  8558. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  8559. (execute): RequestInfo* -> RequestInfos
  8560. Added multiple <file> support. Print filename when it is queued.
  8561. * src/MetalinkRequestInfo.h
  8562. (execute): RequestInfo* -> RequestInfos
  8563. (getDownloadEngine): Removed.
  8564. * src/RequestInfo.h
  8565. (RequestInfoHandle): New type definition.
  8566. (RequestInfos): New type definition.
  8567. (execute): RequestInfo* -> RequestInfos
  8568. (getDownloadEngine): Removed.
  8569. * src/MetalinkResource.h
  8570. (MetalinkResourceHandle): New type definition.
  8571. (MetalinkResources): New type definition.
  8572. * src/MetalinkEntry.cc
  8573. (~MetalinkEntry): Removed the deletion of the elements of resources,
  8574. because the element is now of type MetalinkResourceHandle.
  8575. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  8576. (Supported): MetalinkResource* -> MetalinkResourceHandle
  8577. (dropUnsupportedResource): Removed the deletion of the elements of
  8578. resources because the element is now of type MetalinkResourceHandle.
  8579. * src/Xml2MetalinkProcessor.cc
  8580. (parseFile): Metalinker* -> MetalinkerHandle
  8581. MetalinkEntry* -> MetalinkEntryHandle
  8582. Removed try-catch block.
  8583. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  8584. MetalinkResource* -> MetalinkResourceHandle
  8585. Removed try-catch block.
  8586. (getResource): MetalinkResource* -> MetalinkResourceHandle
  8587. Free result by using xmlXPathFreeObject()
  8588. * src/Metalinker.cc
  8589. (~Metalinker): Removed the deletion of entries.
  8590. MetalinkEntry* -> MetalinkEntryHandle
  8591. (queryEntry): Add multiple <file> Metalink support.
  8592. * src/Metalinker.h
  8593. (MetalinkEntries): Removed.
  8594. (queryEntry): MetalinkEntry* -> MetalinkEntries
  8595. * src/MetalinkProcessor.h
  8596. (parseFile): Metalinker* -> MetalinkerHandle
  8597. Bug fixes:
  8598. * src/PeerChokeCommand.cc
  8599. (execute): cat01->cat02
  8600. * src/DefaultPieceStorage.cc
  8601. (DefaultPieceStorage): Added diskAdaptor(0)
  8602. * src/TrackerWatcherComand.cc:
  8603. (execute): Use btAnnounce->noMoreAnnounce()
  8604. to determin whether the function returns true or not.
  8605. * src/TrackerUpdateCommand.cc:
  8606. (execute): Use btAnnounce->noMoreAnnounce()
  8607. to determin whether the function returns true or not.
  8608. * src/FtpConnection.cc
  8609. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  8610. This is the fix of the busy loop bug.
  8611. * src/DownloadCommand.cc
  8612. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  8613. cached PeerStat.
  8614. The value of "name" entry in torrent file is now set by
  8615. *DiskAdaptor::setTopDir(...) methods.
  8616. * src/MultiDiskAdaptor.h
  8617. (topDir): New variable.
  8618. (setTopDir): New function.
  8619. (getTopDir): New function.
  8620. * src/MultiDiskAdaptor.cc
  8621. (getFilePath): Concat storDir, "/" and topDir.
  8622. (mkdir): Use getFilePath() to get the directory path for output.
  8623. * src/DefaultPieceStorage.cc
  8624. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  8625. CopyDiskAdaptor.
  8626. * src/CopyDiskAdaptor.h
  8627. (topDir): New variable.
  8628. (setTopDir): New function.
  8629. (getTopDir): New function.
  8630. * src/CopyDiskAdaptor.cc
  8631. (fixFilename): Updated.
  8632. Misc
  8633. * src/UrlRequestInfo.h
  8634. (e): Removed.
  8635. (UrlRequestInfo): Removed e.
  8636. (getDownloadEngine): Removed.
  8637. * src/UrlRequestInfo.cc
  8638. (handler): Rewritten.
  8639. (printUrls): New function.
  8640. (execute): Call printUrls().
  8641. * src/HandshakeMessage.cc
  8642. (check): peerinteraction->getBtContext() -> btContext
  8643. * src/PeerInteraction.h
  8644. (getBtContext): Removed.
  8645. * src/TorrentRequestInfo.h
  8646. (execute): RequestInfo* -> RequestInfos
  8647. (getDownloadEngine): Removed.
  8648. * src/TorrentRequestInfo.cc
  8649. (haltRequested): Removed.
  8650. (btHaltRequested): New variable.
  8651. (torrentHandler): haltRequested -> btHaltRequested
  8652. (execute): RequestInfo* -> RequestInfos
  8653. * src/TorrentConsoleDownloadEngine.cc
  8654. (afterEachIteration): haltRequested -> btHaltRequested.
  8655. * src/ConsoleDownloadEngine.h
  8656. (initStatistics): Added virtual.
  8657. (calculateStatistics): Added virtual.
  8658. (onEndOfRun): Added virtual.
  8659. (afterEachIteration): Added virtual.
  8660. * src/ConsoleDownloadEngine.cc
  8661. (haltRequested): New variable.
  8662. (afterEachIteration): New function.
  8663. * src/main.cc
  8664. (requestInfo): Removed.
  8665. * src/SegmentMan.cc
  8666. (findSlowerSegmentEntry): Refactored.
  8667. * Release 0.9.0
  8668. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8669. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  8670. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  8671. * src/TorrentMan.h: Removed.
  8672. * src/TorrentMan.cc: Removed.
  8673. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  8674. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  8675. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  8676. * src/PeerAbstractCommand.cc: Use btRuntime.
  8677. * src/BtContextAwareCommand.h: New class.
  8678. * src/FileEntry.h: Added accessor methods for following variables.
  8679. (path): Made private.
  8680. (length): Made private.
  8681. (offset): Made private.
  8682. (extracted): Made private.
  8683. (requested): Made private.
  8684. (FileEntries): New definition.
  8685. (FileEntryHandle): New definition.
  8686. * src/FileEntry.cc: New file.
  8687. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  8688. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  8689. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  8690. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  8691. * src/PieceStorage.h: New file.
  8692. * src/PeerInteractionCommand.h: Use btContext.
  8693. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  8694. btRuntime.
  8695. * src/DefaultBtProgressInfoFile.h: New file.
  8696. * src/DefaultBtProgressInfoFile.cc: New file.
  8697. * src/File.cc
  8698. (Util.h): New include.
  8699. (mkdirs): New function.
  8700. * src/MultiDiskAdaptor.h
  8701. (mkdir): New function.
  8702. * src/PeerListProcessor.h
  8703. (Peers): Removed.
  8704. * src/PeerInteraction.h
  8705. (torrentMan): Removed.
  8706. (btContext): New variable.
  8707. (peerStorage): New variable.
  8708. (pieceStorage): New variable.
  8709. (btAnnounce): New variable.
  8710. (getTorrentMan): Removed.
  8711. (getBtContext): New function.
  8712. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  8713. btAnnounce.
  8714. * src/HandshakeMessage.h
  8715. (TorrentMan.h): Removed.
  8716. * src/HandshakeMessage.cc: Use btContext.
  8717. * src/DefaultBtAnnounce.cc: New file.
  8718. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  8719. * src/DefaultPieceStorage.cc: New file.
  8720. * src/DefaultBtContext.h: New file.
  8721. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  8722. Use the accessor methods of FileEntry.
  8723. * src/CookieBox.cc: Updated to use Util::slice().
  8724. * src/PieceMessage.cc: Use btContext, pieceStorage.
  8725. * src/common.h (SharedHandle.h): New include.
  8726. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  8727. pieceStorage.
  8728. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  8729. * src/DiskAdaptor.h
  8730. (topDir): Removed.
  8731. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  8732. (setTopDir): Removed.
  8733. (getTopDir): Removed.
  8734. * src/BtContext.h: New file.
  8735. * src/DefaultPeerStorage.h: New file.
  8736. * src/PieceMessage.h (TorrentMan.h): Removed.
  8737. * src/RequestMessage.h (TorrentMan.h): Removed.
  8738. * src/TorrentDownloadEngine.h
  8739. (uploadLength): New variable.
  8740. (btContext): New variable.
  8741. (btRuntime): New variable.
  8742. (pieceStorage): New variable.
  8743. (peerStorage): New variable.
  8744. (btAnnounce): New variable.
  8745. (btProgressInfoFile): New variable.
  8746. (torrentMan): Removed.
  8747. (setBtContext): New function.
  8748. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  8749. peerStorage, btAnnounce, btProgressInfoFile.
  8750. * src/Piece.h
  8751. (toString): New function.
  8752. (Pieces): New type definition.
  8753. * src/Peer.h
  8754. (active): New variable.
  8755. (Peer): Added active.
  8756. (activate): Set active to true.
  8757. (deactivate): Set active to false.
  8758. (isActive): New function.
  8759. (Peers): New type definition.
  8760. * src/DirectDiskAdaptor.cc
  8761. (getFilePath): Use the accessor methods of FileEntry.
  8762. * src/TorrentConsoleDownloadEngine.h
  8763. (afterEachIteration): New function.
  8764. * src/TorrentConsoleDownloadEngine.cc
  8765. (haltRequested): New variable.
  8766. (sendStatistics): Use pieceStorage, btRuntime.
  8767. (afterEachIteration): New function.
  8768. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  8769. * src/Directry.h
  8770. (Directory): New function.
  8771. (DirectoryHandle): New type definition.
  8772. * src/BtProgressInfoFile.h: New file.
  8773. * src/RequestMessage.cc: Use pieceStorage.
  8774. * src/BtRuntime.h: New file.
  8775. * src/DefaultBtContext.cc: New file.
  8776. * src/BitfieldMan.h
  8777. (getCompletedLength): New function(private).
  8778. (getCompletedLength): New function.
  8779. (getFilteredCompletedLength): New function.
  8780. * src/BitfieldMan.h
  8781. (getCompletedLength): New function(private).
  8782. (getCompletedLength): New function.
  8783. (getFilteredCompletedLength): New function.
  8784. * src/MultiDiskAdaptor.cc
  8785. (mkdir): New function.
  8786. (openFile): Call mkdir().
  8787. (initAndOpenFile): Call mkdir().
  8788. * src/CancelMessage.h
  8789. (TorrentMan.h): Removed.
  8790. * src/RejectMessage.h
  8791. (TorrentMan.h): Removed.
  8792. * src/DownloadEngineFactory.cc
  8793. (DefaultPieceStorage.h): New include.
  8794. (DefaultPeerStorage.h): New include.
  8795. (DefaultBtAnnounce.h): New include.
  8796. (DefaultBtProgressInfoFile.h): New include.
  8797. (newTorrentConsoleEngine): Rewritten.
  8798. * src/ShareRatioSeedCriteria.h
  8799. (torrentMan): Removed.
  8800. (btContext): New variable.
  8801. (peerStorage): New variable.
  8802. (btRuntime): New variable.
  8803. (evaluate): Use btContext, btRuntime, peerStorage.
  8804. * src/AnnounceTier.h: New file.
  8805. * src/BtAnnounce.h: New file.
  8806. * src/BtRegistry.h: New file.
  8807. * src/PeerInitiateConnectionCommand.h: Added btContext.
  8808. * src/PeerConnection.h (TorrentMan.h): Removed.
  8809. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  8810. * src/Util.h
  8811. (slice): Added an argument.
  8812. * src/Util.cc
  8813. (slice): Added an argument to control whether trim is made or not.
  8814. * src/PeerStorage.h: New file.
  8815. * src/BtRegistry.cc: New file.
  8816. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  8817. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  8818. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  8819. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  8820. * src/TorrentRequestInfo.h
  8821. (e): Removed.
  8822. (showFileEntry): Added an argument.
  8823. (getDownloadEngine): Return 0.
  8824. * src/DefaultBtAnnounce.h: New file.
  8825. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  8826. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  8827. * src/PeerMessageFactory.h
  8828. (btContext): New variable.
  8829. (pieceStorage): New variable.
  8830. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  8831. btAnnounce.
  8832. * src/DiskAdaptor.cc
  8833. (DiskAdaptor): Removed topDir.
  8834. (~DiskAdaptor): Removed topDir.
  8835. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  8836. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  8837. * src/File.h (mkdirs): New function.
  8838. * src/DefaultPeerStorage): New file.
  8839. * src/DownloadEngineFactory.h
  8840. (newTorrentConsoleEngine): Use btContext.
  8841. * src/BtContextAwareCommand.cc: New file.
  8842. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  8843. * src/PeerMessage.h
  8844. (btContext): New variable.
  8845. (peerStorage): New variable.
  8846. (pieceStorage): New variable.
  8847. (setBtContext): New function.
  8848. * src/Directry.cc
  8849. (Directory): New function.
  8850. (createDir): Do nothing if name.size() == 0.
  8851. * src/AnnounceList.h
  8852. (AnnounceTier): Removed.
  8853. (AnnounceTiers): Removed.
  8854. * src/DefaultPieceStorage.h: New file.
  8855. * src/Piece.cc (toString): New function.
  8856. To fix typo:
  8857. * src/main.cc (showVersion): Fixed typo.
  8858. To fix compile warning:
  8859. * src/DelegatingPeerListProcessor.cc
  8860. (canHandle): Added "return false".
  8861. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8862. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  8863. make the process of announce request testable.
  8864. * src/TrackerWatcherCommand.h
  8865. (TimeA2.h): Removed.
  8866. (interval): Removed.
  8867. (checkPoint): Removed.
  8868. (createRequestCommand): Added an argument 'url'.
  8869. (TrackerWatherCommand): Removed interval.
  8870. (createCommand): New function.
  8871. * src/DownloadEngineFactory.cc
  8872. (newTorrentConsoleEngine): Updated according to the changes in
  8873. TrackerWatherCommand.
  8874. * src/TorrentMan.cc
  8875. (DelegatingPeerListProcessor.h): New includes.
  8876. (TorrentMan): Added the initialization of announceInterval.
  8877. (isStoppedAnnounceReady): New function.
  8878. (isCompletedAnnounceReady): New function.
  8879. (isDefaultAnnounceReady): New function.
  8880. (isAnnounceReady): New function.
  8881. (getAnnounceUrl): New function.
  8882. (announceStart): New function.
  8883. (announceFailure): New function.
  8884. (announceSuccess): New function.
  8885. (isAllAnnounceFailed): New function.
  8886. (resetAnnounce): New function.
  8887. (processAnnounceResponse): New function.
  8888. (needMorePeerConnection): New function.
  8889. (noMoreAnnounce): New function.
  8890. * src/TrackerUpdateCommand.h
  8891. (getTrackerResponse): int->size_t
  8892. * src/TorrentMan.h
  8893. (isStoppedAnnounceReady): New function.
  8894. (isCompletedAnnounceReady): New function.
  8895. (isDefaultAnnounceReady): New function.
  8896. (announceInterval): New variable.
  8897. (isAnnounceReady): New function.
  8898. (getAnnounceUrl): New function.
  8899. (announceStart): New function.
  8900. (announceFailure): New function.
  8901. (announceSuccess): New function.
  8902. (isAllAnnounceFailed): New function.
  8903. (resetAnnounce): New function.
  8904. (processAnnounceResponse): New function.
  8905. (needMorePeerConnection): New function.
  8906. (noMoreAnnounce): New function.
  8907. * src/TrackerWatcherCommand.cc
  8908. (TrackerWatherCommand): Removed interval and checkPoint.
  8909. (execute): Rewritten.
  8910. (createCommand): New function.
  8911. (createRequestCommand): Rewritten.
  8912. * src/TrackerUpdateCommand.cc
  8913. (MetaFileUtil.h): Removed.
  8914. (DelegatingPeerListProcessor.h): Removed.
  8915. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  8916. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8917. Request -> RequestHandle:
  8918. * src/HttpResponseCommand.h: Request->RequestHandle
  8919. * src/AbstractCommand.cc: Request->RequestHandle
  8920. * src/HttpDownloadCommand.cc: Request->RequestHandle
  8921. * src/HttpRequestCommand.cc: Request->RequestHandle
  8922. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  8923. * src/AbstractCommand.h: Request->RequestHandle
  8924. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  8925. * src/HttpResponseCommand.cc: Request->RequestHandle
  8926. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  8927. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  8928. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  8929. * src/HttpConnection.h: Request->RequestHandle
  8930. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  8931. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  8932. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8933. * src/DownloadCommand.h: Request->RequestHandle
  8934. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  8935. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  8936. * src/HttpRequestCommand.h: Request->RequestHandle
  8937. * src/FtpNegotiateCommand.h: Request->RequestHandle
  8938. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  8939. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  8940. * src/HttpDownloadCommand.h: Request->RequestHandle
  8941. * src/FtpConnection.cc: Request->RequestHandle
  8942. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  8943. * src/UrlRequestInfo.cc: Request->RequestHandle
  8944. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  8945. * src/HttpConnection.h: Request->RequestHandle
  8946. * src/DownloadCommand.cc: Request->RequestHandle
  8947. * src/FtpConnection.h: Request->RequestHandle
  8948. * src/FtpDowndloadCommand.h: Request->RequestHandle
  8949. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  8950. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  8951. * src/Request.h
  8952. (SharedHandle.h): New include.
  8953. (RequestHandle): New type definition.
  8954. (Requests): Redefined.
  8955. To add MULTITRACKER support:
  8956. * src/TrackerWatcherCommand.h
  8957. (createRequestCommand): New function.
  8958. * src/DownloadEngineFactory.cc
  8959. (newTorrentConsoleEngine): Removed req.
  8960. * src/prefs.h
  8961. (PREF_TRACKER_MAX_TRIES): New definition.
  8962. * src/TorrentMan.cc
  8963. (TorrentMan): Removed req. Added trackerNumTry.
  8964. (~TorrentMan): Removed req.
  8965. (setupInternal1): Added announceList.
  8966. * src/TorrentRequestInfo.cc
  8967. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  8968. announces is now specified by PREF_TRACKER_MAX_TRIES.
  8969. * src/main.cc
  8970. (main): Added PREF_TRACKER_MAX_TRIES.
  8971. * src/TorrentMan.h
  8972. (Request.h): Removed.
  8973. (AnnounceList.h): New include.
  8974. (trackerNumTry): New variable.
  8975. (req): Removed.
  8976. (announceList): New variable.
  8977. * src/TrackerWatcherCommand.cc
  8978. (execute): Rewritten.
  8979. (createRequestCommand): New function.
  8980. * src/TrackerUpdateCommand.cc
  8981. (execute): Updated with the use of AnnounceList.
  8982. * src/AnnounceList.cc: New class.
  8983. * src/AnnounceList.h: New class.
  8984. To fix typo:
  8985. * src/prefs.h
  8986. (PREF_MAX_TRIES): max_try->max_tries
  8987. To not to decode "+" as space in URL decode:
  8988. * src/Util.cc
  8989. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  8990. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8991. To add timeout to async name resolution:
  8992. * src/AbstractCommand.h
  8993. (nameResolveFinished): New function. This is not elegant way. It needs
  8994. to be more refined.
  8995. (nameResolverCheck): New variable.
  8996. * src/AbstractCommand.cc
  8997. (AbstractCommand): Added nameResolverCheck.
  8998. (execute): Added the check whether the name resolution has finished.
  8999. (setNameResolverCheck): Set nameResolverCheck to true.
  9000. (disableNameResolverCheck): Set nameResolverCheck to false.
  9001. (nameResolverFinished): New function.
  9002. * src/FtpInitiateConnectionCommand.h
  9003. (nameResolverFinished): New function.
  9004. * src/FtpInitiateConnectionCommand.cc
  9005. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9006. * src/HttpInitiateConnectionCommand.h
  9007. (nameResolverFinished): New function.
  9008. * src/HttpInitiateConnectionCommand.cc
  9009. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  9010. * src/prefs.h
  9011. (PREF_DNS_TIMEOUT): New definition.
  9012. * src/main.cc
  9013. (main): Added PREF_DNS_TIMEOUT.
  9014. To add the support for a non-compact response from a tracker:
  9015. * src/PeerListProcessor.h: New class.
  9016. * src/DefaultPeerListProcessor.h: New class.
  9017. * src/DefaultPeerListProcessor.cc: New class.
  9018. * src/CompactPeerListProcessor.h: New class.
  9019. * src/CompactPeerListProcessor.cc: New class.
  9020. * src/DelegatingPeerListProcessor.h: New class.
  9021. * src/DelegatingPeerListProcessor.cc: New class.
  9022. * src/TorrentMan.cc
  9023. (addPeer): New function(overload).
  9024. (addPeer): Delete unused peers only when new peer is added.
  9025. * src/TorrentMan.h
  9026. (PeerListProcessor.h): Included.
  9027. (Peers): Removed.
  9028. (addPeer): New function(overload).
  9029. * src/TrackerUpdateCommand.cc
  9030. (netinet/in.h): Removed.
  9031. (DelegatingPeerListProcessor.h): Included.
  9032. (execute): Updated to use DelegatingPeerListProcessor.
  9033. To fix the memory leak in TorrentMan::peers:
  9034. * src/PeerAbstractCommand.cc
  9035. (onAbort): Added peer->resetStatus().
  9036. * src/Peer.h
  9037. (resetStatus): Made public.
  9038. To improve the precision of the speed calculation:
  9039. * src/SpeedCalc.h
  9040. (nextInterval): New variable.
  9041. * src/SpeedCalc.cc
  9042. (reset): Added nextInterval.
  9043. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  9044. (changeSw): Set nextInterval to 15 seconds relative to the current
  9045. instant time.
  9046. * src/main.cc
  9047. (showVersion): Updated.
  9048. (showUsage): Updated.
  9049. * Release 0.8.1
  9050. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9051. * src/main.cc
  9052. (showUsage): Commented out --min-segment-size option.
  9053. (main): Commented out --min-segment-size option.
  9054. * Release 0.8.0
  9055. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9056. * src/*.{h,cc}:
  9057. Added an exception to the license which allows linking with OpenSSL.
  9058. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9059. * src/AbstractCommand.cc
  9060. (execute): Check whether the download has finished before checking
  9061. socket status.
  9062. Return true if peerStat->getStatus() == REQUEST_IDLE.
  9063. Do not exit even if no segment is available.
  9064. * src/prefs.h
  9065. (PREF_STARTUP_IDLE_TIME): New definition.
  9066. * src/PeerInteractionCommand.cc
  9067. (executeInternal): Removed max speed limit. Because it performs bad.
  9068. (receiveMessages): Added max speed limit. This was better than above,
  9069. but still a little bit to be desired. Sometimes the download speed
  9070. became much faster than I specified.
  9071. * src/SpeedCalc.h
  9072. (start): New variable.
  9073. (accumulatedLength): New variable.
  9074. (getAvgSpeed): New function.
  9075. * src/SpeedCalc.cc
  9076. (reset): Added start, accumulatedLength.
  9077. (update): Added calculation of an average speed.
  9078. (getAvgSpeed): New function.
  9079. * src/DownloadCommand.h
  9080. (sw): Removed.
  9081. * src/main.cc
  9082. (main): Added PREF_STARTUP_IDLE_TIME.
  9083. * src/PeerStat.h
  9084. (STATUS): Added REQUEST_IDLE.
  9085. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  9086. (getAvgDownloadSpeed): New function
  9087. (requestIdle): New function.
  9088. * src/SegmentMan.h
  9089. (SegmentEntryHandle): New type definition.
  9090. (SegmentEntries): Now holds SegmentEntryHandle.
  9091. (findSlowerSegmentEntry): New funtion.
  9092. * src/SegmentMan.cc
  9093. (save): Updated according to the changes in SegmentEntries.
  9094. (read): Updated according to the changes in SegmentEntries.
  9095. (FindSegmentEntryByIndex): Updated according to the changes in
  9096. SegmentEntries.
  9097. (FindSegmentEntryByCuid): Updated according to the changes in
  9098. SegmentEntries.
  9099. (checkoutSegment): Updated according to the changes in SegmentEntries.
  9100. (onNullBitfield): Updated according to the changes in SegmentEntries.
  9101. Renamed uitr as itr.
  9102. (findSlowerSegmentEntry): New function.
  9103. (getSegment): Updated according to the changes in SegmentEntries.
  9104. Added the feature that cancels the segment with slow server and fast
  9105. one takes it over.
  9106. (cancelSegment): Updated according to the changes in SegmentEntries.
  9107. (getDownloadLength): Updated according to the changes in
  9108. SegmentEntries.
  9109. (init): Assigned 0 to bitfield after deleting it.
  9110. * src/DownloadCommand.cc
  9111. (STARTUP_IDLE_TIME): Removed.
  9112. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  9113. * src/PeerChokeCommand.cc
  9114. (optUnchokingPeer): Updated according to the changes in Peer.
  9115. (ResetDelta): Removed.
  9116. (UploadFaster): Updated according to the changes in Peer.
  9117. (DownloadFaster): Updated according to the changes in Peer.
  9118. (execute): I clarify the meaning of "upload" and "download" here.
  9119. "upload" means the transfer from localhost to remote host.
  9120. "download" means the transfer from remote host to localhost.
  9121. Based on this rule, I swapped orderByUploadRate and
  9122. orderByDownloadRate.
  9123. * src/PeerInteractionCommand.cc
  9124. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  9125. (executeInternal): Removed the argument of
  9126. peerInteraction->sendMessages().
  9127. (receiveMessages): Rewritten download speed limit.
  9128. (sendKeepAlive): Removed peerInteraction->sendMessages().
  9129. * src/HttpResponseCommand.cc
  9130. (handleDefaultEncoding): If file size is unknown in torrent request,
  9131. do not call segmentMan->initBitfield() here.
  9132. Disabled persistent connection feature in torrent request.
  9133. * src/UrlRequestInfo.h
  9134. (UrlRequestInfo): Removed const qualifier from option.
  9135. * src/TorrentMan.h
  9136. (TransferStat): New class.
  9137. (deltaDownloadLength): Removed.
  9138. (deltaUploadLength): Removed.
  9139. (addDeltaDownloadLength): Removed.
  9140. (getDeltaDownloadLength): Removed.
  9141. (resetDeltaDownloadLength): Removed.
  9142. (addDeltaUploadLength): Removed.
  9143. (getDeltaUploadLength): Removed.
  9144. (resetDeltaUploadLength): Removed.
  9145. (addActivePeer): Added peer->activate().
  9146. (deleteActivePeer): Added peer->deactivate().
  9147. (calculateStat): New function.
  9148. * src/TorrentMan.cc
  9149. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  9150. (calculateStat): New function.
  9151. * src/PeerInteraction.h
  9152. (uploadLimit): Removed.
  9153. (option): New variable.
  9154. (setUploadLimit): Removed.
  9155. (getUploadSpeed): Removed.
  9156. (sendMessages): Removed the argument "currentUploadSpeed".
  9157. * src/PeerInteraction.cc
  9158. (prefs.h): Included.
  9159. (PeerInteraction): Removed uploadLimit. Added option.
  9160. (sendMessages): Rewritten upload speed limit.
  9161. (sendHandshake): Removed the argument from sendMessages().
  9162. (sendBitfield): Removed the argument from sendMessages().
  9163. * src/PeerAbstractCommand.cc
  9164. (execute): Commented out the portion of upload limit.
  9165. (onAbort): Removed peer->resetStatus().
  9166. * src/TorrentRequestInfo.cc
  9167. (timeoutSpecified): Declared extern.
  9168. (execute): Set timeout to 180 if timeout is not specified by.
  9169. command-line.
  9170. * src/PieceMessage.cc
  9171. (receivedAction): Added peer->updateDownloadLength().
  9172. Removed peer->addPeerUpload().
  9173. Removed torrentMan->addDeltaDownloadLength().
  9174. (send): Added peer->updateUploadLength().
  9175. Removed peer->addPeerDownload().
  9176. Removed torrentMan->addDeltaUploadLength().
  9177. * src/main.cc
  9178. (timeoutSpecified): New variable.
  9179. (main): Set timeoutSpecified to false.
  9180. If the command-line option "--upload-limit" is specified, then
  9181. timeoutSpecified is set to true. This option will remain in the next
  9182. release, but be deprecated in the future release.
  9183. * src/TorrentRequestInfo.h
  9184. (TorrentRequestInfo): Removed const qualifier from op.
  9185. * src/PeerStat.h
  9186. (uploadSpeed): New variable.
  9187. (PeerStat): Added default value to cuid.
  9188. (calculateUploadSpeed): New function.
  9189. (updateUploadLength): New function.
  9190. (getMaxUploadSpeed): New function.
  9191. (getAvgUploadSpeed): New function.
  9192. (reset): Added uploadSpeed. Set status to IDLE.
  9193. * src/TorrentDownloadEngine.h
  9194. (cp): Declared as Time.
  9195. (sessionDownloadLengthArray): Removed.
  9196. (sessionUploadLengthArray): Removed.
  9197. (currentCp): Removed.
  9198. (lastCalcStat): New variable
  9199. (lastElapsed): Removed.
  9200. (sessionDownloadLength): Removed.
  9201. (calculateStat): New function.
  9202. * src/TorrentDownloadEngine.cc
  9203. (initStatistics): Removed lastElapsed, cp[],
  9204. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  9205. currentCp, sessionDownloadLength.
  9206. Added cp.reset() and lastCalcStat.reset().
  9207. (calculateSpeed): Changed the name of the argument.
  9208. (calculateStatistics): Rewritten.
  9209. (calculateStat): New function.
  9210. * src/Peer.h
  9211. (PeerStat.h): Included.
  9212. (peerUpload): Removed.
  9213. (peerDownload): Removed.
  9214. (peerStat): New variable.
  9215. (sessionUploadLength): New variable.
  9216. (sessionDownloadLength): New variable.
  9217. (deltaUpload): Removed.
  9218. (deltaDownload): Removed.
  9219. (resetStatus): Made private.
  9220. (Peer): Added sessionUploadLength, sessionDownloadLength.
  9221. Removed peerUpload, peerDownload.
  9222. (updateUploadLength): New function.
  9223. (addDeltaUpload): Removed.
  9224. (updateDownloadLength): New function.
  9225. (resetDeltaUpload): Removed.
  9226. (getDeltaUpload): Removed.
  9227. (addDeltaDownload): Removed.
  9228. (calculateUploadSpeed): New function.
  9229. (resetDeltaDownload): Removed.
  9230. (getDeltaDownload): Removed.
  9231. (calculateDownloadSpeed): New function.
  9232. (getSessionUploadLength): New function.
  9233. (getSessionDownloadLength): New function.
  9234. (activate): New function.
  9235. (deactivate): New function.
  9236. (addPeerUpload): Removed.
  9237. (setPeerUpload): Removed.
  9238. (getPeerUpload): Removed.
  9239. (addPeerDownload): Removed.
  9240. (setPeerDownload): Removed.
  9241. (getPeerDownload): Removed.
  9242. * src/Peer.cc
  9243. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  9244. * src/MetalinkRequestInfo.h
  9245. (MetalinkRequestInfo): Removed const qualifier from op.
  9246. * src/RequestInfo.h
  9247. (op): Removed const qualifier.
  9248. (RequestInfo): Removed const qualifier from op.
  9249. * src/prefs.h
  9250. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  9251. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  9252. * src/PeerInteractionCommand.cc
  9253. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  9254. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  9255. * src/PeerInteraction.cc
  9256. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  9257. * src/main.cc
  9258. (showUsage): Updated the description of "--lowest-speed-limit" option.
  9259. Added the description of "--max-download-limit" option.
  9260. Removed the description of "--upload-limit" option.
  9261. Added the description of "--max-upload-limit" option.
  9262. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  9263. Added "--max-download-limit" option and "--max-upload-limit" option.
  9264. Added the warning message if "--upload-limit" option is used.
  9265. * src/DownloadCommand.cc
  9266. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  9267. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9268. To rewrite segment download mechanism for HTTP/FTP download.
  9269. Use BitfieldMan to manage segment download.
  9270. * src/HttpResponseCommand.h
  9271. (executeInternal): Pass the reference of segment.
  9272. * src/AbstractCommand.cc
  9273. (prepareForRetry): Call segmentMan->cancelSegment here.
  9274. (onAbort): Call segmentMan->cancelSegment here.
  9275. * src/HttpDownloadCommand.cc
  9276. (prepareForNextSegment): New function.
  9277. * src/DownloadEngineFactory.cc
  9278. (newConsoleEngine): Removed splitter.
  9279. (newTorrentConsoleEngine): Removed splitter.
  9280. * src/Request.h
  9281. (segment): Renamed from seg.
  9282. * src/FtpInitiateConnectionCommand.h
  9283. (executeInternal): Pass the reference of segment.
  9284. * src/AbstractCommand.h
  9285. (executeInternal): Pass the reference of segment.
  9286. * src/pref.h
  9287. (PREF_SEGMENT_SIZE): New definition.
  9288. * src/HttpProxyRequestCommand.h
  9289. (executeInternal): Pass the reference of segment.
  9290. * src/HttpResponseCommand.cc
  9291. (checkResponse): Allowed status 206 when a request range starts 0.
  9292. (handleDefaultEncoding): Rewritten the code related to Segment.
  9293. (handleOtherEncoding): Rewritten the code related to Segment.
  9294. * src/SegmentMan.h
  9295. (SegmentEntry): New class.
  9296. (SegmentEntries): New type definition.
  9297. (bitfield): New variable.
  9298. (usedSegmentEntries): New variable.
  9299. (onNullBitfield): New function.
  9300. (checkoutSegment): New function.
  9301. (segments): Removed.
  9302. (splitter): Removed.
  9303. (unregisterId): Removed.
  9304. (getSegment): New function(overload)
  9305. (getDownloadedSize): Removed.
  9306. (cancelSegment): New function.
  9307. (completeSegment): New function.
  9308. (initBitfield): New function.
  9309. (hasSegment): New function.
  9310. (getDownloadLength): New function.
  9311. * src/BitfieldMan.h
  9312. (getStartIndex): New function.
  9313. (getEndIndex): New function.
  9314. (getMissingUnusedIndex): New function(overload).
  9315. (getSparseMissingUnusedIndex): New function.
  9316. * src/BitfieldMan.cc
  9317. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  9318. (getMissingUnusedIndex): New function(overload).
  9319. (Range): New class.
  9320. (getStartIndex): New function.
  9321. (getEndIndex): New function.
  9322. (getSparseMissingUnusedIndex): New function.
  9323. (isBitSetInternal): Return false if the given index is less than 0.
  9324. * src/HttpInitiateConnectionCommand.h
  9325. (executeInternal): Pass the reference of segment.
  9326. * src/FtpNegotiateCommand.h
  9327. (executeInternal): Pass the reference of segment.
  9328. * src/FtpNegotiateCommand.cc
  9329. (recvSize): Initialize bitfield here.
  9330. * src/FtpTunnelResponseCommand.h
  9331. (executeInternal): Pass the reference of segment.
  9332. * src/HttpConnection.cc
  9333. (createRequest): Rewritten range header processing.
  9334. * src/DownloadCommand.h
  9335. (executeInternal): Pass the reference of segment.
  9336. (prepareForRetry): Removed.
  9337. (prepareForNextSegment): Added an argument segment. Made it a virtual
  9338. function.
  9339. * src/main.cc
  9340. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  9341. * src/SegmentMan.cc
  9342. (SegmentMan): Added bitfield. Removed splitter.
  9343. (~SegmentMan): Added bitfield. Removed splitter.
  9344. (unregisterId): Removed.
  9345. (getSegment): Rewritten.
  9346. (updateSegment): Rewritten.
  9347. (save): Rewritten.
  9348. (read): Rewritten.
  9349. (finished): Rewritten.
  9350. (getDownloadedSize): Removed.
  9351. (initBitfield): New function.
  9352. (FindSegmentEntryByIndex): New function object.
  9353. (FindSegmentEntryByCuid): New function object.
  9354. (checkoutSegment): New function.
  9355. (onNullBitfield): New function.
  9356. (getSegment): New function(overload).
  9357. (CancelSegment): New function object.
  9358. (cancelSegment): New function.
  9359. (completeSegment): New function.
  9360. (hasSegment): New function.
  9361. (getDownloadLength): New function.
  9362. * src/FtpInitiateConnectionCommand.cc
  9363. (executeInternal): Load .aria2 file after hostname resolution finishes.
  9364. * src/Segment.h: Rewritten.
  9365. * src/Segment.cc (operator<<): New function.
  9366. * src/HttpDownloadCommand.h
  9367. (prepareForNextSegment): New function.
  9368. * src/Request.cc
  9369. (resetUrl): Made segment null.
  9370. * src/DownloadEngine.cc
  9371. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  9372. * src/HttpProxyRequestCommand.h
  9373. (executeInternal): Pass the reference of segment.
  9374. * src/DownloadCommand.cc
  9375. (executeInternal): Rewritten the code related to Segment.
  9376. (prepareForRetry): Removed.
  9377. (prepareForNextSegment): Rewritten.
  9378. * src/FtpTunnelResponseCommand.h
  9379. (executeInternal): Pass the reference of segment.
  9380. To add HTTP 1.1 persistent connection support(experimental)
  9381. * src/HttpRequestCommand.cc
  9382. (executeInternal): Disable keep alive if it is disabled by
  9383. configuration.
  9384. * src/Request.h
  9385. (keepAlive): New variable.
  9386. (isKeepAlive): New function.
  9387. (setKeepAlive): New function.
  9388. * src/pref.h
  9389. (PREF_HTTP_KEEP_ALIVE): New definition.
  9390. * src/HttpResponseCommand.cc
  9391. (executeInternal): Check the remote server supports keep alive.
  9392. * src/HttpConnection.cc
  9393. (createRequest): Send "Connection: close" only if keep alive is
  9394. disabled.
  9395. * src/main.cc
  9396. (main):
  9397. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  9398. To add max download speed limit:
  9399. * src/pref.h
  9400. (PREF_MAX_SPEED_LIMIT): New definition.
  9401. * src/PeerInteractionCommand.cc
  9402. (executeInternal): Added max download speed limit. Not tested yet.
  9403. * src/SegmentMan.h
  9404. (PeerStats): New type definition.
  9405. (peerStats): New variable.
  9406. (registerPeerStat): New function.
  9407. (FindPeerStat): New function object.
  9408. (getPeerStat): New function.
  9409. (calculateDownloadSpeed): New function.
  9410. * src/SpeedCalc.h: New class.
  9411. * src/SpeedCalc.cc: New class.
  9412. * src/main.cc
  9413. (main):
  9414. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  9415. download speed is not restricted).
  9416. * src/PeerStat.h: New class.
  9417. * src/SegmentMan.cc
  9418. (registerPeerStat): New function.
  9419. (calculateDownloadSpeed): New function.
  9420. * src/DownloadCommand.cc
  9421. (STARTUP_IDLE_TIME): New definition.
  9422. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  9423. downloadStart.
  9424. (~DownloadCommand): Call peerStat->downloadStop.
  9425. (executeInternal): Added download speed limitter. Rewritten lowest
  9426. speed limitter.
  9427. * src/HttpConnection.cc
  9428. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  9429. * src/AbstractCommand.cc
  9430. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  9431. Added hostname to the error message.
  9432. * src/ConsoleDownloadEngine.cc
  9433. (calculateStatistics): Initialize psize with dlSize.
  9434. * src/PieceMessage.cc
  9435. (receivedAction): Do not call peerInteraction->abortPiece here.
  9436. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  9437. * src/BitfieldMan.h
  9438. (clearAllUseBit): New function.
  9439. (setAllUseBit): New function.
  9440. * src/BitfieldMan.cc
  9441. (clearAllBit): Do not clear useBitfield here.
  9442. (clearAllUseBit): New function.
  9443. (setAllUseBit): New function.
  9444. * src/Piece.cc
  9445. (clearAllBlock): Call bitfield->clearAllUseBit().
  9446. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9447. To make filename URL-decoded:
  9448. * src/HttpResponseCommand.h: Updated doc.
  9449. * src/HttpResponseCommand.cc
  9450. (determinFilename): Made filename URL-decoded.
  9451. * src/FtpInitiateConnectionCommand.cc
  9452. (executeInternal): Made filename URL-decoded.
  9453. * src/Util.h (urldecode): New function.
  9454. * src/Util.cc (urldecode): New function.
  9455. To fix a bug that caused assertion failure in ares_strerror:
  9456. * src/NameResolver.cc (callback): Fixed the bug.
  9457. * Release 0.7.3
  9458. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9459. To add --seed-time and --seed-ratio command-line option:
  9460. * src/Option.h (getAsDouble): New function.
  9461. * src/Option.cc (getAsDouble): New function.
  9462. * src/SeedCheckCommand.h: New class.
  9463. * src/SeedCheckCommand.cc: New class.
  9464. * src/DownloadEngineFactory.cc
  9465. (SeedCheckCommand.h): Included.
  9466. (UnionSeedCriteria.h): Included.
  9467. (TimeSeedCriteria.h): Included.
  9468. (ShareRatioSeedCriteria.h): Included.
  9469. (newTorrentConsoleEngine): Added the processing of seed option.
  9470. * src/SeedCriteria.h: New class.
  9471. * src/ShareRatioSeedCriteria.h: New class.
  9472. * src/TimeSeedCriteria.h: New class.
  9473. * src/UnionSeedCriteria.h: New class.
  9474. * src/prefs.h
  9475. (PREF_SEED_TIME): New definition.
  9476. (PREF_SEED_RATIO): New definition.
  9477. * src/main.cc
  9478. (showUsage): Added --seed-time and --seed-ratio option.
  9479. (main): Added --seed-time and --seed-ratio option.
  9480. Made default log file name "/dev/null".
  9481. * src/SharedHandle.h
  9482. (SharedHandle): Copy constructor. Made it assignable from the
  9483. SharedHandle of the subclasses.
  9484. (operator=): Made it assignable from the SharedHandle of the
  9485. subclasses.
  9486. (getRefCount): New function.
  9487. To add notice log level and the switch to write log to stdout. This
  9488. switch is configurable per log level.
  9489. * src/Logger.h
  9490. (notice): New function.
  9491. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  9492. constant.
  9493. * src/LogFactory.cc
  9494. (getInstance): The use of NullLogger was removed. A log message with
  9495. notice log level was made written to stdout along with log file.
  9496. * src/NullLogger.h
  9497. (notice): New function.
  9498. * src/SimpleLogger.h
  9499. (writeHeader): Added the 'file' argument.
  9500. (writeLog): Added the 'file' argument.
  9501. (writeFile): New function.
  9502. (stdoutField): New variable.
  9503. (SimpleLogger): Removed the default constructor.
  9504. (SimpleLogger): Made the default value of logfile 0.
  9505. (debug): Added 'virtual' keyword.
  9506. (info): Added 'virtual' keyword.
  9507. (warn): Added 'virtual' keyword.
  9508. (error): Added 'virtual' keyword.
  9509. (notice): New function.
  9510. (setStdout): New function.
  9511. * src/SimpleLogger.cc
  9512. (WRITE_LOG): Replaced writeLog with writeFile.
  9513. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  9514. (SimpleLogger): Removed the default constructor.
  9515. (setStdout): New function.
  9516. (writeLog): Added the handling of NOTICE log level.
  9517. (writeFile): New function.
  9518. (notice): New function.
  9519. * src/TorrentMan.h: Updated doc.
  9520. * src/BitfieldMan.h: Updated doc.
  9521. * src/TrackerWatcherCommand.cc
  9522. (execute): Return true if error occurred in the request to the tracker
  9523. and halt is requested.
  9524. * src/TrackerUpdateCommand.cc
  9525. (execute): Return true if error occurred in the request to the tracker
  9526. and halt is requested.
  9527. To call onDownloadComplete from TorrentMan::completePiece(), not from
  9528. DownloadEngine:
  9529. * src/TorrentConsoleDownloadEngine.h
  9530. (onSelectiveDownloadingCompletes): Removed.
  9531. * src/TorrentConsoleDownloadEngine.cc
  9532. (onSelectiveDownloadingCompletes): Removed.
  9533. * src/TorrentDownloadEngine.h
  9534. (onEndOfRun): Added 'virtual' keyword.
  9535. (afterEachIteration): Removed.
  9536. (onSelectiveDownloadingCompletes): Removed.
  9537. * src/TorrentDownloadEngine.cc
  9538. (onEndOfRun): Removed filenameFixed.
  9539. (afterEachIteration): Removed.
  9540. * src/TorrentMan.cc
  9541. (completePiece): Call onDownloadComplete here.
  9542. (onDownloadComplete): Added 2 log messages.
  9543. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9544. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  9545. * src/NameResolver.h: Added the prototype declaration of callback().
  9546. To support c-ares library:
  9547. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9548. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9549. * src/FtpInitiateConnectionCommand.h:
  9550. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9551. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9552. * src/HttpInitiateConnectionCommand.h:
  9553. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9554. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  9555. Added thes upport of c-ares's ares_strerror(the idea came from patch
  9556. #1542285 by tizianomueller)
  9557. * src/HttpInitiateConnectionCommand.cc:
  9558. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9559. * src/FtpInitiateConnectionCommand.cc:
  9560. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9561. * src/DownloadEngine.h:
  9562. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9563. * src/DownloadEngine.cc:
  9564. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  9565. To fix the bug that causes compilation failure with metalink-support
  9566. disabled(bug#1543587):
  9567. * src/main.cc: Fixed with the patch by tizianomueller.
  9568. * Release 0.7.2
  9569. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9570. * src/main.cc
  9571. (main): Added a message to inform users that aria2 is starting to
  9572. verify checksum.
  9573. * src/RequestInfo.cc
  9574. (printDownloadAbortMessage): Added a message to inform users that
  9575. transfer can be resumed.
  9576. * src/FeatureConfig.cc
  9577. (FEATURE_ASYNC_DNS): New definition.
  9578. (FeatureConfig): Added aysnc DNS entry.
  9579. To replace CommandUuid with Command* in SocketEntry and
  9580. NameResolverEntry:
  9581. * src/DownloadEngine.h
  9582. (CommandUuids): Removed.
  9583. (SocketEntry::commandUuid): Removed.
  9584. (SocketEntry::command): New variable.
  9585. (SocketEntry::SocketEntry): Updated.
  9586. (SocketEntry::operator==): Updated.
  9587. (NameResolverEntry::commandUuid): Removed.
  9588. (NameResolverEntry::command): New variable.
  9589. (NameResolverEntry::NameResolverEntry): Updated.
  9590. (NameResolverEntry::operator==): Updated.
  9591. (waitData): Changed the argument type.
  9592. (addSocketForReadCheck): Changed the argument type.
  9593. (deleteSocketForReadCheck): Changed the argument type.
  9594. (addSocketForWriteCheck): Changed the argument type.
  9595. (deleteSocketForWriteCheck): Changed the argument type.
  9596. (addNameResolverCheck): Changed the argument type.
  9597. (deleteNameResolverCheck): Changed the argument type.
  9598. * src/DownloadEngine.cc
  9599. (FindCommand): Removed.
  9600. (run): Removed activeUuid. Added activeCommands instead.
  9601. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  9602. (AccumulateActiveCommand): New function object.
  9603. (waitData): Use AccumulateActiveCommand.
  9604. (addSocketForReadCheck): Use Command instead of CommandUuid.
  9605. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  9606. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  9607. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  9608. (addNameResolverCheck): Use Command instead of CommandUuid.
  9609. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  9610. * src/AbstractCommand.cc
  9611. (disableReadCheckSocket): Updated according to the changes in
  9612. DownloadEngine.
  9613. (setReadCheckSocket): Updated according to the changes in
  9614. DownloadEngine.
  9615. (disableWriteCheckSocket): Updated according to the changes in
  9616. DownloadEngine.
  9617. (setWriteCheckSocket): Updated according to the changes in
  9618. DownloadEngine.
  9619. (setNameResolverCheck): Updated according to the changes in
  9620. DownloadEngine.
  9621. (disableNameResolverCheck): Updated according to the changes in
  9622. DownloadEngine.
  9623. * src/AbstractCommand.cc
  9624. (disableReadCheckSocket): Updated according to the changes in
  9625. DownloadEngine.
  9626. (setReadCheckSocket): Updated according to the changes in
  9627. DownloadEngine.
  9628. (disableWriteCheckSocket): Updated according to the changes in
  9629. DownloadEngine.
  9630. (setWriteCheckSocket): Updated according to the changes in
  9631. DownloadEngine.
  9632. * release 0.7.1
  9633. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9634. To handle the case where some BitTorrent tracker requires all letters
  9635. except for [A-Za-z0-9] is URL encoded.
  9636. * src/Util.h
  9637. (torrentUrlencode): New function.
  9638. * src/Util.cc
  9639. (ctype.h): Included.
  9640. (torrentUrlencode): New function.
  9641. * src/TrackerWatcherCommand.cc
  9642. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  9643. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9644. To add asynchronous DNS support(libares):
  9645. * src/AbstractCommand.h
  9646. (setNameResolverCheck): New function.
  9647. (disableNameResolverCheck): New function
  9648. (resolveHostname): New function.
  9649. * src/AbstractCommand.cc
  9650. (setNameResolverCheck): New function.
  9651. (disableNameResolverCheck): New function
  9652. (resolveHostname): New function.
  9653. * src/FtpInitiateConnectionCommand.h
  9654. (nameResolver): New function.
  9655. * src/FtpInitiateConnectionCommand.cc
  9656. (Util.h): Included.
  9657. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  9658. disableWriteCheckSocket.
  9659. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  9660. (executeInternal): Added async DNS support.
  9661. * src/HttpInitiateConnectionCommand.h
  9662. (nameResolver): New function.
  9663. * src/HttpInitiateConnectionCommand.cc
  9664. (DlRetryEx.h): Included.
  9665. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  9666. disableWriteCheckSocket.
  9667. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  9668. (executeInternal): Added async DNS support.
  9669. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  9670. by extern "C" declaration.
  9671. * src/NameResolver.cc: New class.
  9672. * src/Util.h:
  9673. (isNumberAndDotsNotation): New function
  9674. * src/Util.cc
  9675. (isNumberAndDotsNotation): New function.
  9676. * src/DownloadEngine.h
  9677. (NameResolver.h): Included.
  9678. (NameResolverEntry): New class.
  9679. (NameResolverEntries): New type definition.
  9680. (addNameResolverCheck): New function.
  9681. (deleteNameResolverCheck): New function.
  9682. * src/DownloadEngine.cc
  9683. (run): Initialize cp with 0.
  9684. (SetDescriptor::operator()): Added for NameResolverEntry.
  9685. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  9686. (waitData): Check nameResolver entries.
  9687. (updateFdSet): Update fds in nameResolver entries.
  9688. (addNameResolverCheck): New function.
  9689. (deleteNameResolverCheck): new function.
  9690. * src/PeerInteractionCommand.cc
  9691. (executeInternal): Fixed wrong socket handling.
  9692. * src/main.cc
  9693. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  9694. * src/Util.cc
  9695. (fileChecksum): Removed the call to ctx.digestReset().
  9696. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9697. * po/ru.po: Azamat sent me Russian translation.
  9698. * src/FtpNegotiateCommand.cc
  9699. (recvGreeting): Call disableWriteCheckSocket just after
  9700. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  9701. (recvRetr): Recognized status code 125 as a acceptable response code.
  9702. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  9703. case-insesitive filesystem(BUG#1531057).
  9704. * src/Time.h: Renamed as TimeA2.h.
  9705. * src/Time.cc: Renamed as TimeA2.cc.
  9706. * src/TimeA2.h: New class.
  9707. * src/TimeA2.cc: New class.
  9708. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  9709. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  9710. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  9711. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  9712. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  9713. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9714. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  9715. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  9716. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  9717. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  9718. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  9719. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  9720. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  9721. * release 0.7.0
  9722. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9723. * src/PeerChokeCommand.h
  9724. (PeerChokeCommand): Rearranged the arguments.
  9725. * src/PeerChokeCommand.cc
  9726. (PeerChokeCommand): Rearranged the arguments.
  9727. * src/MetalinkEntry.h
  9728. (Checksum.h): Included.
  9729. (md5): Removed.
  9730. (sha1): Removed.
  9731. (checksum): New variable.
  9732. (operator=): Updated.
  9733. (check): Removed.
  9734. * src/prefs.h
  9735. (PREF_LOWEST_SPEED_LIMIT): New definition.
  9736. (PREF_FOLLOW_TORRENT): New definition.
  9737. (PREF_SELECT_FILE): New definition.
  9738. (PREF_FOLLOW_METALINK): New definition.
  9739. * src/MetalinkResource.h
  9740. (TYPE_HTTPS): Added to enum TYPE.
  9741. * src/TorrentMan.cc
  9742. (~TorrentMan): Rewritten.
  9743. * src/MultiDiskWriter.cc
  9744. (MultiDiskAdaptor): Updated according to the changes in
  9745. MessageDigestContext.
  9746. (~MultiDiskAdaptor): Updated according to the changes in
  9747. MessageDigestContext.
  9748. (hashUpdate): Updated according to the changes in MessageDigestContext.
  9749. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9750. * src/Util.h
  9751. (fileChecksum): Updated according to the changes in
  9752. MessageDigestContext.
  9753. * src/Util.cc
  9754. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9755. (fileChecksum): Updated according to the changes in
  9756. MessageDigestContext.
  9757. * src/messageDigest.h: Rewritten.
  9758. * src/MetalinkEntry.cc
  9759. (check): Removed.
  9760. (Supported): Updated.
  9761. (dropUnsupportedResource): Fixed a memory leak.
  9762. * src/ShaVisitor.cc
  9763. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  9764. (~ShaVisitor): Updated according to the changes in
  9765. MessageDigestContext.
  9766. (visit): Updated according to the changes in MessageDigestContext.
  9767. * src/main.cc
  9768. (main): Rewritten the portion of download loop. --lowest-speed-limit
  9769. command-line option added.
  9770. * src/DownloadEngine.h
  9771. (SocketEntry): New class.
  9772. (SocketEntries): New definition.
  9773. (PairFind): Removed.
  9774. (SockCmdMap): Removed.
  9775. * src/DownloadEngine.cc
  9776. (DownloadEngine): Rewritten.
  9777. (~DownloadEngine): Rewritten.
  9778. (run): Renamed activeCommandUuids as activeUuids.
  9779. (SetDescriptor): Rewritten.
  9780. (AccumulateActiveCommandUuid): Removed.
  9781. (AccumulateActiveUuid): New function object.
  9782. (waitData): Rewritten.
  9783. (updateFdSet): Rewritten.
  9784. (addSocket): Rewritten.
  9785. (deleteSocket): Rewritten.
  9786. (addSocketForReadCheck): Rewritten.
  9787. (deleteSocketForReadCheck): Rewritten.
  9788. (addSocketForWriteCheck): Rewritten.
  9789. (deleteSocketForWriteCheck): Rewritten.
  9790. * src/Xml2MetalinkProcessor.cc
  9791. (getEntry): Rewritten the portion of MetalinkEntry creation.
  9792. * src/DownloadCommand.cc
  9793. (executeInternal): Added the check routine for lowest speed limit.
  9794. * src/AbstractDiskWriter.cc
  9795. (AbstractDiskWriter): Updated according to the changes in
  9796. MessageDigestContext.
  9797. (~AbstractDiskWriter): Updated according to the changes in
  9798. MessageDigestContext.
  9799. (sha1Sum): Updated according to the changes in MessageDigestContext.
  9800. * src/RequestInfo.h: New class.
  9801. * src/UrlRequestInfo.h: New class.
  9802. * src/UrlRequestInfo.cc: New class.
  9803. * src/TorrentRequestInfo.h: New class.
  9804. * src/TorrentRequestInfo.cc: New class.
  9805. * src/MetalinkRequestInfo.h: New class.
  9806. * src/MetalinkRequestInfo.cc: New class.
  9807. * src/Checksum.h: New class.
  9808. * src/DownloadEngineFactory.h: New class.
  9809. * src/DownloadEngineFactory.cc: New class.
  9810. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9811. * src/Option.h
  9812. (getAsBool): New function.
  9813. * src/Option.cc
  9814. (prefs.h): Included.
  9815. (defined): 0-length value is now recognized as undefined.
  9816. (getAsInt): Rewritten.
  9817. (getAsLLInt): Rewritten.
  9818. (getAsBool): New function.
  9819. * src/FeatureConfig.h: Rewritten.
  9820. * src/FeatureConfig.cc: Rewritten.
  9821. * src/prefs.h
  9822. (PREF_STDOUT_LOG): New definition.
  9823. (PREF_LOG): New definition.
  9824. (PREF_DIR): New definition.
  9825. (PREF_OUT): New definition.
  9826. (PREF_SPLIT): New definition.
  9827. (PREF_DAEMON): New definition.
  9828. (PREF_REFERER): New definition.
  9829. (PREF_TORRENT_FILE): New definition.
  9830. (PREF_LISTEN_PORT): New definition.
  9831. (PREF_METALINK_FILE): New definition.
  9832. (PREF_METALINK_VERSION): New definition.
  9833. (PREF_METALINK_LANGUAGE): New definition.
  9834. (PREF_METALINK_OS): New definition.
  9835. (PREF_METALINK_SERVERS): New definition.
  9836. * src/main.cc
  9837. (main): Following command-line parameters are now put into Option
  9838. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  9839. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  9840. metalinkLanguage, metalinkOs, metalinkServers
  9841. To fix the bug that aria2 can not handle http response header properly.
  9842. * src/HttpHeader.cc
  9843. (put): Made name lowercased.
  9844. (defined): Made name lowercased.
  9845. (getFirst): Made name lowercased.
  9846. (get): Made name lowercased.
  9847. (getFirstAsInt): Rewritten.
  9848. (getFirstAsLLInt): Rewritten.
  9849. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9850. * src/TorrentMan.h:
  9851. (advertisePiece): Updated doc.
  9852. (getAdvertisedPieceIndexes): Updated doc.
  9853. (removeAdvertisedPiece); New function.
  9854. * src/TorrentMan.cc
  9855. (FindElapsedHave): New function object.
  9856. (removeAdvertisedPiece): New function.
  9857. * src/HaveEraseCommand.h: New class.
  9858. * src/HaveEraseCommand.cc: New class.
  9859. * src/FeatureConfig.h: New class.
  9860. * src/FeatureConfig.cc: New class.
  9861. * src/Request.h
  9862. (defaultPorts): Removed.
  9863. * src/Request.cc
  9864. (FeatureConfig.h): Included.
  9865. (Request): Removed the statements related to defaultPorts.
  9866. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  9867. A default port number is now retrieved from FeatureConfig.
  9868. * src/main.cc
  9869. (HaveEraseCommand.h): Included.
  9870. (showVersion): Added the output of feature list.
  9871. (main): Added HaveEraseCommand to command queue in BitTorrent
  9872. downloading.
  9873. * src/PeerInteractionCommand.h
  9874. (chokeCheckPoint): Commented out.
  9875. (periodicExecPoint): New variable.
  9876. * src/PeerInteractionCommand.cc
  9877. (executeInternal): Following methods are now called in at least every
  9878. 0.5 seconds to reduce CPU usage:
  9879. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  9880. checkHave(), sendKeepAlive().
  9881. (checkLongTimePeerChoking): Commented out.
  9882. * src/BitfieldMan.h
  9883. (getNthBitIndex): Changed the method signature.
  9884. (getMissingIndexRandomly): Changed the method signature.
  9885. * src/BitfieldMan.cc
  9886. (getNthBitIndex): Rewritten
  9887. (getMissingIndexRandomly): Rewritten.
  9888. (hasMissingPiece): Rewritten.
  9889. (getMissingIndex): Refactored.
  9890. (getMissingUnusedIndex); Refactored.
  9891. (getMissingIndex): Refactored.
  9892. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9893. * src/PeerMessage.h
  9894. (Piece.h): Included.
  9895. (SharedHandle.h): Included.
  9896. (invalidate): New variable.
  9897. (uploading): New variable.
  9898. (isInvalidate): New function.
  9899. (isUploading): New function.
  9900. (onPush): New function.
  9901. (onChoked): New function.
  9902. (onCanceled): New function.
  9903. (onAbortPiece): New function.
  9904. (PeerMessageHandle): New type definition.
  9905. * src/PeerMessage.cc
  9906. (PeerMessage): Added the initialization for invalidate and uploading.
  9907. * src/CancelMessage.h
  9908. (CancelMessage): Rewritten.
  9909. * src/RejectMessage.h
  9910. (RejectMessage): Rewritten.
  9911. * src/Metalinker.h
  9912. (operator=): Defined.
  9913. * src/MetaEntry.h
  9914. (operator=): Defined.
  9915. * src/MetalinkResource.h
  9916. (operator=): Defined.
  9917. * src/AllowedFastMessage.h
  9918. (AllowedFastMessage): Rewritten.
  9919. * src/HandshakeMessage.h
  9920. (HandshakeMessage): New function(overload).
  9921. * src/HandshakeMessage.cc
  9922. (HandshakeMessage): Rewritten.
  9923. (init): New function.
  9924. * src/HaveMessage.h
  9925. (HaveMessage): Rewritten.
  9926. * src/Time.h
  9927. (operator=): Defined the function body here.
  9928. * src/Time.cc
  9929. (operator=): Removed.
  9930. * src/SocketCore.h
  9931. (operator==): Defined here.
  9932. (operator!=): Defined here.
  9933. (operator<): Defined here.
  9934. * src/SocketCore.cc
  9935. (operator==): Removed.
  9936. (operator<): Removed.
  9937. * src/BitfieldMan.h
  9938. (operator=): Defined the function body here.
  9939. * src/BitfieldMan.cc
  9940. (operator=): Removed.
  9941. * src/TorrentMan.h
  9942. (deleteErrorPeer): Removed.
  9943. (deleteUnusedPeer); New function.
  9944. * src/TorrentMan.cc
  9945. (addPeer): Call deleteUnusedPeer.
  9946. (deleteErrorPeer): Removed.
  9947. (deleteUnusedPeer): New function.
  9948. * src/PeerAbstractCommand.h
  9949. (setNoCheck): New function.
  9950. (noCheck): New variable.
  9951. * src/PeerAbstractCommand.cc
  9952. (PeerAbstractCommand): Added the initialization of noCheck.
  9953. (execute): Added a check for noCheck.
  9954. (setNoCheck): New function.
  9955. * src/Util.h
  9956. (stdio.h): Included.
  9957. * src/Util.cc
  9958. (unistd.h): Included.
  9959. * src/DefaultDiskWriter.cc
  9960. (unistd.h): Included.
  9961. * src/Peer.h
  9962. (operator==): Defined the function body here.
  9963. (operator!=): Defined the function body here.
  9964. * src/Peer.cc
  9965. (operator==): Removed.
  9966. (operator!=): Removed.
  9967. * src/Piece.h
  9968. (Piece): Defined the function body here(copy constructor).
  9969. (operator=): Defined the function body here.
  9970. (operator==): Defined the function body here.
  9971. * src/Piece.cc
  9972. (Piece): Removed(copy constructor).
  9973. (operator=): Removed.
  9974. (operator==): Removed.
  9975. * src/PeerMessageUtil.h
  9976. (ChokeMessage.h): Removed.
  9977. (UnchokeMessage.h): Removed.
  9978. (InterestedMessage.h): Removed.
  9979. (NotInterestedMessage.h): Removed.
  9980. (HaveMessage.h): Removed.
  9981. (BitfieldMessage.h): Removed.
  9982. (RequestMessage.h): Removed.
  9983. (CancelMessage.h): Removed.
  9984. (PieceMessage.h): Removed.
  9985. (HandshakeMessage.h): Removed.
  9986. (KeepAliveMessage.h): Removed.
  9987. (PortMessage.h): Removed.
  9988. (HaveAllMessage.h): Removed.
  9989. (HaveNoneMessage.h): Removed.
  9990. (PeerConnection.h): Removed.
  9991. (HandshakeMessage.h): Included.
  9992. * src/BitfieldMessage.h
  9993. (init): New function.
  9994. (BitfieldMessage): Rewritten.
  9995. (BitfieldMessage): New function(overload).
  9996. * src/RequestSlot.h
  9997. (operator=): Defined the function body here.
  9998. (operator==): Defined the function body here.
  9999. * src/RequestSlot.cc
  10000. (operator=): Removed.
  10001. (operator==): Removed.
  10002. To remove the dependency on the PeerMessage subclass from
  10003. PeerInteraction:
  10004. * src/PeerMessageFactory.h: New class.
  10005. * src/PeerMessageFactory.cc: New class.
  10006. * src/SimplePeerMessage.cc
  10007. (send): If invalidate is true then do nothing.
  10008. * src/PeerInteractionCommand.cc
  10009. (HandshakeMessage.h): Included.
  10010. (KeepAliveMessage.h): Included.
  10011. (ChokeMessage.h): Included.
  10012. (UnchokeMessage.h): Included.
  10013. (HaveMessage.h): Included.
  10014. (executeInternal): Call setNoCheck().
  10015. Removed setWriteCheckSocket(socket).
  10016. * src/PeerInteraction.h
  10017. (ChokeMessage.h): Removed.
  10018. (UnchokeMessage.h): Removed.
  10019. (InterestedMessage.h): Removed.
  10020. (NotInterestedMessage.h): Removed.
  10021. (HaveMessage.h): Removed.
  10022. (BitfieldMessage.h): Removed.
  10023. (RequestMessage.h): Removed.
  10024. (CancelMessage.h): Removed.
  10025. (PieceMessage.h): Removed.
  10026. (HandshakeMessage.h): Removed.
  10027. (KeepAliveMessage.h): Removed.
  10028. (PortMessage.h): Removed.
  10029. (HaveAllMessage.h): Removed.
  10030. (HaveNoneMessage.h): Removed.
  10031. (RejectMessage.h): Removed.
  10032. (AllowedFastMessage.h): Removed.
  10033. (SuggestPieceMessage.h): Removed.
  10034. (PeerMessageFactory.h): Included.
  10035. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  10036. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  10037. (PeerMessageFactory): New variable.
  10038. (createPeerMessage): Removed.
  10039. (createHandshakeMessage): Removed.
  10040. (setPeerMessageCommonProperty): Removed.
  10041. (addRequestSlot): New function.
  10042. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10043. (getPeerMessageFactory): New function.
  10044. (createRequestMessage): Removed.
  10045. (createCancelMessage): Removed.
  10046. (createPieceMessage): Removed.
  10047. (createHaveMessage): Removed.
  10048. (createChokeMessage): Removed.
  10049. (createUnchokeMessage): Removed.
  10050. (createInterestedMessage): Removed.
  10051. (createNotInterestedMessage): Removed.
  10052. (createBitfieldMessage): Removed.
  10053. (createKeepAliveMessage): Removed.
  10054. (createHaveAllMessage): Removed.
  10055. (createHaveNoneMessage): Removed.
  10056. (createRejectMessage): Removed.
  10057. (createAllowedFastMessage): Removed.
  10058. * src/PeerInteraction.cc
  10059. (PeerInteraction): Allocate PeerMessageFactory here.
  10060. (~PeerInteraction): Deallocate PeerMessageFactory here.
  10061. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  10062. PieceMessage::ID.
  10063. (addMessage): Simplified by using PeerMessage::onPush().
  10064. (addRequestSlot): New function.
  10065. (rejectAllPieceMessageInQueue): Simplified by using
  10066. PeerMessage::onChoked().
  10067. (rejectPieceMessageInQueue): Simplified by using
  10068. PeerMessage::onCanceled().
  10069. (abortPiece): Simplified by using PeerMessage::abortPiece().
  10070. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  10071. (createHandshakeMessage): Removed.
  10072. (createPeerMessage): Removed.
  10073. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  10074. (setPeerMessageCommonProperty): Removed.
  10075. (createRequestMessage): Removed.
  10076. (createCancelMessage): Removed.
  10077. (createPieceMessage): Removed.
  10078. (createHaveMessage): Removed.
  10079. (createChokeMessage): Removed.
  10080. (createUnchokeMessage): Removed.
  10081. (createInterestedMessage): Removed.
  10082. (createNotInterestedMessage): Removed.
  10083. (createBitfieldMessage): Removed.
  10084. (createKeepAliveMessage): Removed.
  10085. (createHaveAllMessage): Removed.
  10086. (createHaveNoneMessage): Removed.
  10087. (createRejectMessage): Removed.
  10088. (createAllowedFastMessage): Removed.
  10089. * src/PieceMessage.h
  10090. (createRejectMessage): New function.
  10091. (PieceMessage): Rewritten.
  10092. (onChoked): New function.
  10093. (onCanceled): New function.
  10094. * src/PieceMessage.cc
  10095. (send): If invalidate is true then do nothing, just return.
  10096. (createRejectMessage): New function.
  10097. (onChoked): New function.
  10098. (onCanceled): New function.
  10099. * src/RequestMessage.h
  10100. (RequestMessage): Rewritten.
  10101. (onPush): New function.
  10102. (onAbortPiece): New function.
  10103. * src/RequestMessage.cc
  10104. (onPush): New function.
  10105. (onAbortPiece): New function.
  10106. Update fd_set when a socket is added or deleted in order to improve
  10107. performance:
  10108. * src/DownloadEngine.h
  10109. (rfdset): New variable.
  10110. (wfdset): New variable.
  10111. (updateFdSet): New function.
  10112. * src/DownloadEngine.cc
  10113. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  10114. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  10115. (waitData): Copy rfdset and wfdset.
  10116. (updateFdSet): New function.
  10117. (addSocket): Call updateFdSet.
  10118. (deleteSocket): Call updateFdSet.
  10119. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10120. To add the support for Metalink3.0 backward compatible links:
  10121. * src/Request.h
  10122. (SAFE_CHARS): Added '#'.
  10123. (METALINK_MARK): New definition.
  10124. * src/Request.cc
  10125. (parseUrl): Added the support for Metalink3.0 backward compatible
  10126. links.
  10127. etc
  10128. * src/PeerInteraction.cc
  10129. (MsgPushBack): Removed.
  10130. (sendMessages): Use STL copy and back_inserter.
  10131. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  10132. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  10133. * src/TorrentMan.h
  10134. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  10135. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10136. * src/SharedHandle.h: New class.
  10137. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  10138. * src/HttpResponseCommand.h
  10139. (HttpResponseCommand): Wrapped Socket.
  10140. * src/SocketCore.h
  10141. (operator==): New function.
  10142. (operator!=): New function.
  10143. (operator<): New function.
  10144. (getSockfd): New function.
  10145. (isOpen): New function.
  10146. (writeData): New function.
  10147. * src/SocketCore.cc
  10148. (operator==): New function.
  10149. (operator!=): New function.
  10150. (operator<): New function.
  10151. * src/AbstractCommand.h
  10152. (socket): Changed its type to SocketHandle.
  10153. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10154. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10155. (disableReadCheckSocket): New function.
  10156. (disableWriteCheckSocket): New function.
  10157. (readCheckTarget): Changed its type to SocketHandle.
  10158. (writeCheckTarget): Changed its type to SocketHandle.
  10159. (AbstractCommand): Replaced Socket with SocketHandle.
  10160. * src/AbstractCommand.cc
  10161. (AbstractCommand): Replaced Socket with SocketHandle.
  10162. (~AbstractCommand): Removed the deallocation for Socket object.
  10163. (disableReadCheckSocket): New function.
  10164. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10165. (disableWriteCheckSocket): New function.
  10166. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10167. * src/HttpDownloadCommand.cc
  10168. (DownloadCommand): Replaced Socket with SocketHandle.
  10169. * src/PeerAbstractCommand.h
  10170. (socket): Changed its type to SocketHandle.
  10171. (peer): Changed its type to PeerHandle.
  10172. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10173. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10174. (disableReadCheckSocket): New function.
  10175. (disableWriteCheckSocket): New function.
  10176. (readCheckTarget): Changed its type to SocketHandle.
  10177. (writeCheckTarget): Changed its type to SocketHandle.
  10178. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10179. Replaced Peer with PeerHandle.
  10180. * src/HttpRequestCommand.cc
  10181. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10182. Use disableReadCheckSocket.
  10183. * src/PeerInitiateConnectionCommand.h
  10184. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10185. * src/PeerChokeCommand.cc
  10186. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  10187. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  10188. (execute): Use PeerHandle.
  10189. * src/PeerConnection.h
  10190. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  10191. (socket): Changed its type to SocketHandle.
  10192. (PeerConnection): Replaced Socket with SocketHandle.
  10193. * src/PeerConnection.cc
  10194. (PeerConnection): Replaced Socket with SocketHandle.
  10195. * src/PeerInteractionCommand.h
  10196. (PeerInteractionCommand): Replaced socket with SocketHandle.
  10197. Replaced Peer with PeerHandle.
  10198. * src/PeerInteractionCommand.cc
  10199. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  10200. Replaced Peer with PeerHandle.
  10201. (executeInternal): Use disableWriteCheckSocket.
  10202. Use HandshakeMessageHandle.
  10203. (receiveMessages): Use PeerMessageHandle.
  10204. (prepareForNextPeer): Use PeerHandle.
  10205. * src/HttpProxyRequestCommand.h
  10206. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10207. * src/HttpResponseCommand.cc
  10208. (HttpResponseCommand): Replaced Socket with SocketHandle.
  10209. * src/TorrentMan.cc
  10210. (nullPeer): Added external reference.
  10211. (~TorrentMan): Removed the deallocation of the elements of peers.
  10212. (addPeer): Rewritten.
  10213. (isPeerAvailable): Use nullPeer.
  10214. (deleteOldpeers): Replaced with deleteErrorPeer.
  10215. (deleteErrorPeer): New function.
  10216. (getPeer): Use PeerHandle and nullPeer.
  10217. (hasMissingPiece): Replaced Peer with PeerHandle.
  10218. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10219. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10220. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10221. (getMissingPiece): Replaced Peer with PeerHandle.
  10222. * src/FtpNegotiateCommand.cc
  10223. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  10224. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  10225. (recvGreeting): Use disableWriteCheckSocket.
  10226. (recvPasv): Removed the allocation of Socket.
  10227. Use disableReadCheckSocket.
  10228. (sendRestPasv): Use disableWriteCheckSocket.
  10229. (recvRetr): Changed assertion.
  10230. * src/PeerInteraction.h
  10231. (SharedHandle.h): Included SharedHandle.h.
  10232. (PeerMessageHandle): New type definition.
  10233. (HandshakeMessageHandle): New type definition.
  10234. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  10235. (peer): Changed its type to PeerHandle.
  10236. (createHandshakeMessage): Replaced HandshakeMessage with
  10237. HandshakeMessageHandle.
  10238. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  10239. (PeerInteraction): Replaced Peer with PeerHandle.
  10240. Replaced Socket with SocketHandle.
  10241. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10242. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10243. (receiveHandshake): Replaced HandshakeMessage with
  10244. HandshakeMessageHandle.
  10245. * src/PeerInteraction.cc
  10246. (PeerInteraction): Replaced Peer with PeerHandle.
  10247. Replaced Socket with SocketHandle.
  10248. (~PeerInteraction): Removed the deallocation of the elements of
  10249. messageQueue.
  10250. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  10251. (isSendingMessageInProgress): Replaced PeerMessage with
  10252. PeerMessageHandle.
  10253. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  10254. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  10255. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  10256. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  10257. (abortPiece): Use PeerMessageHandle.
  10258. (receiveHandshake): Replaced HandshakeMessage with
  10259. HandshakeMessageHandle. Removed try-catch block.
  10260. (createHandshakeMessage): Replaced HandshakeMessage with
  10261. HandshakeMessageHandle.
  10262. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  10263. Removed try-catch block.
  10264. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  10265. * src/HttpProxyResponseCommand.cc
  10266. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10267. * src/FtpTunnelResponseCommand.h
  10268. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10269. * src/HttpConnection.cc
  10270. (HttpConnection): Replaced Socket with SocketHandle.
  10271. * src/PeerAbstractCommand.cc
  10272. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  10273. (~PeerAbstractCommand): Removed the deallocation of socket.
  10274. Use disableReadCheckSocket, disableWriteCheckSocket.
  10275. (disableReadCheckSocket): New function.
  10276. (setReadCheckSocket): Replaced Socket with SocketHandle.
  10277. (disableWriteCheckSocket): New function.
  10278. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  10279. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  10280. * src/FtpTunnelRequestCommand.cc
  10281. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10282. (~FtpTunnelRequestCommand): Corrected indentation.
  10283. * src/DownloadCommand.h
  10284. (DownloadCommand): Replaced Socket with SocketHandle.
  10285. * src/PeerListenCommand.cc
  10286. (PeerListenCommand): Removed the initialization of socket.
  10287. (~PeerListenCommand): Removed the deallocation of socket.
  10288. (bindPort): Use SocketHandle.
  10289. (execute): Use SocketHandle and PeerHandle.
  10290. * src/FtpDowndloadCommand.cc
  10291. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10292. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  10293. * src/main.cc
  10294. (main): Corrected indentation.
  10295. * src/HttpInitiateConnectionCommand.cc
  10296. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  10297. (executeInternal): Removed the allocation of socket.
  10298. * src/HttpRequestCommand.h
  10299. (HttpRequestCommand): Replaced Socket with SocketHandle.
  10300. * src/FtpNegotiationCommand.h
  10301. (dataSocket): Changed its type to SocketHandle.
  10302. (serverSocket): Changed its type to SocketHandle.
  10303. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  10304. * src/TorrentMan.h
  10305. (MAX_PEER_UPDATE): Removed.
  10306. (MAX_PEERS): New definition.
  10307. (Peers): The element is now of type PeerHandle.
  10308. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  10309. (getPeer): Replaced Peer with PeerHandle.
  10310. (deleteOldErrorPeers): Removed.
  10311. (deleteErrorPeer): New function.
  10312. (hasMissingPiece): Replaced Peer with PeerHandle.
  10313. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  10314. (getMissingPiece): Replaced Peer with PeerHandle.
  10315. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  10316. (getMissingFastPiece): Replaced Peer with PeerHandle.
  10317. (addActivePeer): Replaced Peer with PeerHandle.
  10318. (deleteActivePeer): Replaced Peer with PeerHandle.
  10319. Added a check for the return value of find.
  10320. * src/FtpTunnelResponseCommand.cc
  10321. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  10322. * src/FtpInitiateConnectionCommand.cc
  10323. (executeInternal): Removed the allocation of socket.
  10324. * src/DownloadEngine.h
  10325. (Sockets): An element is now of type SocketHandle.
  10326. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  10327. (CommandUuids): New type definition.
  10328. (rsockets): Changed its type to SockCmdMap.
  10329. (wsockets): Changed its type to SockCmdMap.
  10330. (addSocket): Rewritten.
  10331. (deleteSocket): Rewritten.
  10332. (addSocketForReadCheck): Rewritten.
  10333. (deleteSocketForReadCheck): Rewritten.
  10334. (addSocketForWriteCheck): Rewritten.
  10335. (deleteSocketForWriteCheck): Rewritten.
  10336. (PairFind): New template class.
  10337. * src/HttpDownloadCommand.h
  10338. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  10339. * src/FtpConnection.cc
  10340. (FtpConnection): Replaced Socket with SocketHandle.
  10341. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  10342. block.
  10343. * src/InitiateConnectionCommandFactory.cc
  10344. (DlAbortEx.h): Included DlAbortEx.h.
  10345. (createInitiateConnectionCommand): Throw exception if the protocol of
  10346. requested URI is not supported.
  10347. * src/Peer.cc
  10348. (nullPeer): Changed its type to PeerHandle.
  10349. (operator==): New function.
  10350. (operator!=): New function.
  10351. * src/Peer.h
  10352. (SharedHandle.h): Included SharedHandle.h.
  10353. (operator==): New function.
  10354. (operator!=): New function.
  10355. (Peer): Added the default constructor.
  10356. Use resetStatus() to initialize member variables.
  10357. (nullPeer): Removed.
  10358. * src/TrackerUpdateCommand.cc
  10359. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  10360. with MIN_PEERS.
  10361. * src/PeerListenCommand.h
  10362. (socket): Changed its type to SocketHandle.
  10363. * src/Command.h
  10364. (CommandUuid): New type definition.
  10365. (uuid): New variable.
  10366. (uuidGen): New variable.
  10367. (Command): Added the initialization of uuid.
  10368. (getUuid): New function.
  10369. * src/Socket.h
  10370. (Socket): Removed.
  10371. (SocketHandle): New type definition.
  10372. * src/DownloadEngine.h
  10373. (FindCommand): New function object.
  10374. (run): The portion of socket check was rewritten.
  10375. (SetDescriptor): New function object.
  10376. (AccumulateActiveCommandUuid): New function object.
  10377. (waitData): Rewritten.
  10378. (addSocket): Rewritten.
  10379. (deleteSocket): Rewritten.
  10380. (addSocketForReadCheck): Rewritten.
  10381. (addSocketForWriteCheck): Rewritten.
  10382. (deleteSocketForReadCheck): Rewritten.
  10383. (deleteSocketForWriteCheck): Rewritten.
  10384. * src/HttpProxyResponseCommand.h
  10385. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  10386. * src/HttpConnection.h
  10387. (socket): Changed its type to SocketHandle.
  10388. (HttpConnection): Replaced Socket with SocketHandle.
  10389. * src/PeerInitiateConnectionCommand.cc
  10390. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  10391. (executeInternal): Removed the allocation of socket.
  10392. (prepareForNextPeer): Use PeerHandle.
  10393. * src/PeerMessage.h
  10394. (peer): Changed its type to PeerHandle.
  10395. (getPeer): Replaced Peer with PeerHandle.
  10396. (setPeer): Replaced Peer with PeerHandle.
  10397. * src/DownloadCommand.cc
  10398. (DownloadCommand): Replaced Socket with SocketHandle.
  10399. * src/FtpConnection.h
  10400. (socket): Changed its type to SocketHandle.
  10401. (FtpConnection): Replaced Socket with SocketHandle.
  10402. (sendPort); Replaced Socket with SocketHandle.
  10403. * src/FtpDowndloadCommand.h
  10404. (ctrlSocket): Changed its type to SocketHandle.
  10405. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  10406. * src/HttpProxyRequestCommand.cc
  10407. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  10408. * src/FtpTunnelRequestCommand.h
  10409. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  10410. etc
  10411. * src/PeerChokeCommand.h
  10412. (setAllPeerChoked): Removed.
  10413. (setAllPeerResetDelta): Removed.
  10414. * src/PeerChokeCommand.cc
  10415. (setAllPeerChoked): Removed.
  10416. (ChokePeer): New function object.
  10417. (setAllPeerResetDelta): Removed.
  10418. (ResetDelta): New function object.
  10419. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  10420. (execute): Show download speed when the local node is a seeder.
  10421. setAllPeerChoked and setAllPeerResetDelta were rewritten
  10422. using STL.
  10423. * src/TrackerWatcherCommand.h
  10424. (MIN_PEERS): Removed.
  10425. * src/TorrentMan.cc
  10426. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  10427. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10428. To fix the bug that .aria2 file is not saved if downloading is stopped
  10429. by the errors:it results that aria2 can not resume downloading:
  10430. * src/main.cc
  10431. (normalDownload): Added the call to save().
  10432. (main): Added the deletion of the elements in 'reserved'.
  10433. To fix log:
  10434. * src/PeerInteraction.cc
  10435. (receiveHandshake): Fixed log.
  10436. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10437. To improve download performance in BitTorrent:
  10438. * src/TorrentMan.cc
  10439. (getPeer): Check the number of connections. Return nullPeer if
  10440. it is greater than MAX_PEER_UPDATE.
  10441. This code was originally here, but was removed in 0.5.1.
  10442. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10443. To improve the conditional compilation:
  10444. * src/MultiDiskWriter.h:
  10445. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10446. * src/MultiDiskWriter.cc:
  10447. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10448. * src/Util.h:
  10449. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10450. Added ENABLE_BITTORRENT around computeFastSet().
  10451. * src/Util.cc:
  10452. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10453. Added ENABLE_BITTORRENT around computeFastSet().
  10454. * src/messageDigest.h:
  10455. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  10456. * src/ShaVisitor.h:
  10457. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10458. * src/ShaVisitor.cc:
  10459. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10460. * src/main.cc:
  10461. Added ENABLE_BITTORRENT around includes and blocks related to
  10462. BitTorrent.
  10463. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  10464. digest support is not available.
  10465. * src/AbstractDiskWriter.h:
  10466. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10467. * src/AbstractDiskWriter.cc:
  10468. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  10469. * src/MetalinkEntry.cc
  10470. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  10471. support is not available.
  10472. To add command-line options for Metalink:
  10473. * src/main.cc:
  10474. Added metalink-version, metalink-language, metalink-os,
  10475. follow-metalink.
  10476. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  10477. * src/main.cc: Use these definition.
  10478. * Release 0.6.0
  10479. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10480. To add Metalink support(http/ftp only):
  10481. * src/AbstractCommand.h
  10482. (tryReserved): New function.
  10483. * src/AbstractCommand.cc
  10484. (execute): Call tryReserved().
  10485. (tryReserved): New function.
  10486. * src/Request.h
  10487. (Requests): New type definition.
  10488. * src/SegmentMan.h
  10489. (reserved): New variable.
  10490. * src/Util.h
  10491. (fileChecksum): New function.
  10492. (toUpper): New function.
  10493. (toLower): New function.
  10494. * src/Util.cc
  10495. (messageDigest.h): Included.
  10496. (trim): Trim \r\n\t.
  10497. (fileChecksum): New function.
  10498. (toUpper): New function.
  10499. (toLower): New function.
  10500. * src/main.cc
  10501. (normalDownload): New function.
  10502. (main): Added 2 command-line options: metalink-file,
  10503. metalink-connection. Their usage has not been written yet.
  10504. * src/MetalinkProcessor.h: New class.
  10505. * src/Xml2MetalinkProcessor.h: New class.
  10506. * src/Xml2MetalinkProcessor.cc: New class.
  10507. * src/MetalinkEntry.h: New class.
  10508. * src/MetalinkEntry.cc: New class.
  10509. * src/MetalinkResource.h: New class.
  10510. * src/MetalinkResource.cc: New class.
  10511. To add md5 message digest checking:
  10512. * src/messageDigest.h: Rewritten.
  10513. * src/MultiDiskWriter.cc: Updated according to the changes in
  10514. messageDigest.h.
  10515. * src/ShaVisitor.cc: Updated according to the changes in
  10516. messageDigest.h.
  10517. * src/Util.cc: Updated according to the changes in messageDigest.h.
  10518. * src/AbstractDiskWriter.cc: Updated according to the changes in
  10519. messageDigest.h.
  10520. To fix a bug that causes segfault when the payload length in peer
  10521. message is less than 0:
  10522. * src/PeerConnection.cc:
  10523. (receiveMessage): Fixed the bug.
  10524. * src/PeerMessageUtil.cc
  10525. (checkLength): Throw an exception if length is less than or equals to
  10526. 0.
  10527. To add new interfaces to Base64 encoding/decoding:
  10528. * src/Base64.h
  10529. (part_encode): Changed the method signature.
  10530. (encode): New function(overload).
  10531. (decode): New function(overload).
  10532. * src/Base64.cc
  10533. (part_encode): Rewritten.
  10534. (encode): Rewritten.
  10535. (encode): New function(overload).
  10536. To prevent a peer to download same piece if there is an error in
  10537. checksum:
  10538. * src/PieceMessage.cc
  10539. (receivedAction): Call peerInteraction->abortPiece().
  10540. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10541. To fix the bug that causes same have message is sent many times to
  10542. a single peer.
  10543. * src/Time.cc
  10544. (isNewer): Use Util::difftv().
  10545. * src/Util.cc
  10546. (difftv): Added a cast to (long long int).
  10547. * src/TorrentMan.cc
  10548. (advertisePiece): Use push_front.
  10549. (getAdvertisedPieceIndexes): A performance improvement was made.
  10550. To fix the bug that sends tracker requests without a sleep interval
  10551. when the number of connections is less than 15.
  10552. * src/TrackerWatcherCommand.cc
  10553. (execute): Now the number of connections is not a factor to decide
  10554. whether or not a tracker request should be sent or not.
  10555. * src/Time.h
  10556. (setTimeInSec): New function.
  10557. * src/Time.cc
  10558. (setTimeInSec): New function.
  10559. etc.
  10560. * src/ChokeMessage.cc
  10561. (receivedAction): Removed peer->snubbing = false
  10562. * src/PeerConnection.h
  10563. (receiveHandshake): Updated doc.
  10564. * src/TorrentMan.h
  10565. (getAdvertisedPieceIndexes): Updated the method signature.
  10566. * src/TorrentMan.cc
  10567. (getAdvertisedPieceIndexes): Updated the method signature.
  10568. * src/Time.h
  10569. (getTimeInMicros): Added a cast to (long long int).
  10570. (getTimeInMillis): Added a cast to (long long int).
  10571. * Release 0.5.2
  10572. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10573. To make a listening socket non-block:
  10574. * src/SocketCore.h
  10575. (setNonBlockingMode): New function.
  10576. * src/SocketCore.cc
  10577. (setNonBlockingMode): New function.
  10578. (beginListen): Added a call to setNonBlockingMode().
  10579. (acceptConnection): Call setNonBlockingMode().
  10580. (setBlockingMode): Updated.
  10581. To handle tracker's NAT-checking:
  10582. * src/PeerConnection.cc
  10583. (receiveHandshake): 'msg' param is filled with received data and
  10584. its length is assigned to 'length' param, even if all handshake
  10585. message is not yet received.
  10586. * src/PeerInteractionCommand.cc
  10587. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  10588. a new peer connects to localhost.
  10589. A call to peerInteraction->sendHandshake() was removed because
  10590. it is called from peerInteraction->receiveHandshake(true).
  10591. * src/PeerInteraction.h
  10592. (quickReplied): New variable.
  10593. (receiveHandshake): Added an argument.
  10594. * src/PeerInteraction.cc
  10595. (PeerInteraction): Added the initialization of quickReplied.
  10596. (receiveHandshake): Send handshake message as soon as the info hash
  10597. in a handshake message from a peer is correct.
  10598. To change the random part of peer id and key parameter:
  10599. * src/TorrentMan.h
  10600. (key): New variable.
  10601. * src/TorrentMan.cc
  10602. (setupInternal1): Use Util::randomAlpha() to generate random part
  10603. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  10604. key is also generated by Util::randomAlpha() and it is now 8 character
  10605. long.
  10606. * src/Util.h
  10607. (randomAlpha): New function.
  10608. * src/Util.cc
  10609. (randomAlpha): New function.
  10610. * src/TrackerWatcherCommand.cc
  10611. (execute): In a tracker request: Use torrentMan->key as key parameter.
  10612. Added no_peer_id=1.
  10613. Set snubbing flag to false when a choke message is received from a
  10614. snubbed peer.
  10615. * src/ChokeMessage.cc
  10616. (receivedAction): Set snubbing flag to false.
  10617. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10618. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  10619. * src/SimpleLogger.h (writeHeader): New function.
  10620. * src/SimpleLogger.cc (writeHeader): New function.
  10621. (writeLog): Fixed the bug that causes segfaults if exception message
  10622. contains an unescaped "%" character.
  10623. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  10624. when a tracker request fails.
  10625. * src/Request.cc (parseUrl): Query string is now handled properly.
  10626. * Release 0.5.1
  10627. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10628. To add Time class which represents a specific instant in time and
  10629. its precision is microseconds. Time checking procedures were rewritten
  10630. using this object.
  10631. * src/Time.h: New class.
  10632. * src/Time.cc: New class.
  10633. * src/AbstractCommand.h
  10634. (updateCheckPoint): Removed.
  10635. (isTimeoutDetected): Removed.
  10636. (checkPoint): Changed the type to Time.
  10637. (timeout): New variable.
  10638. (setTimeout): New function.
  10639. * src/AbstractCommand.cc
  10640. (AbstractCommand): Removed the initialization of checkPoint.
  10641. Added the initialization of timeout.
  10642. (updateCheckPoint): Removed.
  10643. (isTimeoutDetected): Removed.
  10644. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10645. * src/PeerChokeCommand.h
  10646. (checkPoint): Changed the type to Time.
  10647. * src/PeerChokeCommand.cc
  10648. (PeerChokeCommand): Removed the initialization of checkPoint.
  10649. (execute): Rewritten using Time object.
  10650. * src/TrackerWatcherCommand.h
  10651. (checkPoint): Changed the type to Time.
  10652. * src/TrackerWatcherCommand.cc
  10653. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  10654. (execute): Rewritten.
  10655. * src/ConsoleDownloadEngine.h
  10656. (cp): Changed the type to Time.
  10657. (startup): Changed the type to Time.
  10658. * src/ConsoleDownloadEngine.cc
  10659. (initStatistics): Use cp.reset(), startup.reset().
  10660. (calculateStatistics): Rewritten using Time object.
  10661. * src/PeerAbstractCommand.h
  10662. (updateCheckPoint): Removed.
  10663. (isTimeoutDetected): Removed.
  10664. (checkPoint): Changed the type to Time.
  10665. * src/PeerAbstractCommand.cc
  10666. (PeerAbstractCommand): Removed the initialization of checkPoint.
  10667. (updateCheckPoint): Removed.
  10668. (isTimeoutDetected): Removed.
  10669. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  10670. * src/PeerInteractionCommand.cc
  10671. (PeerInteractionCommand): Removed the initializations of struct
  10672. timeval variables.
  10673. * src/PeerInteractionCommand.h
  10674. (keepAliveCheckPoint): Changed the type to Time.
  10675. (chokeCheckPoint): Changed the type to Time.
  10676. (freqCheckPoint): Changed the type to Time.
  10677. (haveCheckTime): Changed the type to Time.
  10678. * src/PeerInteractionCommand.cc
  10679. (executeInternal): Rewritten using Time object.
  10680. (detectMessageFlooding): Rewritten using Time object.
  10681. (checkLongTimePeerChoking): Rewritten using Time object.
  10682. (sendKeepAlive): Rewritten using Time object.
  10683. (checkHave): Rewritten using Time object.
  10684. * src/SleepCommand.h
  10685. (checkPoint): Changed the type to Time.
  10686. * src/SleepCommand.cc
  10687. (SleepCommand): Removed the initialization of checkPoint.
  10688. (execute): Rewritten using Time object.
  10689. * src/TorrentAutoSaveCommand.h
  10690. (checkPoint): Changed the type to Time.
  10691. * src/TorrentAutoSaveCommand.cc
  10692. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  10693. (execute): Rewritten.
  10694. * src/DownloadCommand.h
  10695. (sw): Changed the type to Time.
  10696. * src/DownloadCommand.cc
  10697. (DownloadCommand): Removed the initialization of sw.
  10698. (executeInternal): Rewritten.
  10699. * src/RequestSlot.h
  10700. (dispatchedTime): Changed the type to Time.
  10701. * src/RequestSlot.cc
  10702. (RequestSlot): Removed the call to setDispatchedTime().
  10703. (setDispatchedTime): Rewirtten.
  10704. (isTimeout): Rewritten.
  10705. (getLatencyInMillis): Rewritten.
  10706. * src/TorrentDownloadEngine.h
  10707. (cp): Changed the type to Time[2].
  10708. (startup): Changed the type to Time.
  10709. * src/TorrentDownloadEngine.cc
  10710. (initStatistics): Rewritten.
  10711. (calculateStatistics): Rewritten.
  10712. * src/DownloadEngine.cc
  10713. (run): Rewritten.
  10714. To detect all attempts to connect to the tracker are failed:
  10715. * src/AbstractCommand.cc
  10716. (execute): Increment e->segmentMan->errors if a command aborted.
  10717. * src/SegmentMan.h
  10718. (errors): New variable.
  10719. * src/SegmentMan.cc
  10720. (SegmentMan): Added the initialization of errors.
  10721. (init): Added the initialization of errors.
  10722. * src/TrackerWatcherCommand.cc
  10723. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  10724. request was failed.
  10725. To handle snubbed peers:
  10726. * src/PeerChokeCommand.cc
  10727. (optUnchokingPeer): Snubbed peers don't get unchoked.
  10728. (execute): Snubbed peers don't get unchoked.
  10729. * src/PeerInteraction.h
  10730. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  10731. * src/PeerInteraction.cc
  10732. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  10733. back the requested 16k block in 60 seconds.
  10734. * src/PieceMessage.cc
  10735. (receivedAction): A peer's snubbed state is cleard if it sends
  10736. the requested 16k block in 60 seconds.
  10737. * src/Peer.h
  10738. (snubbing): New variable.
  10739. * src/Peer.cc
  10740. (resetStatus): Added snubbed = false.
  10741. To fix the bug that causes have message is not sent:
  10742. * src/PeerInteractionCommand.cc
  10743. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  10744. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  10745. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  10746. * src/TorrentMan.h
  10747. (HaveEntry): New class.
  10748. (advertisePiece): Rewritten.
  10749. (getAdvertisedPieceIndexes): Rewritten.
  10750. (Haves): Changed the type.
  10751. (getAdvertisedPieceIndexes): Added an argument.
  10752. Others:
  10753. * src/TorrentMan.h
  10754. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  10755. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  10756. * src/TorrentMan.cc
  10757. (getPeer): Don't check the number of connections here.
  10758. (setupInternal1): Changed peerId.
  10759. * src/PeerInteractionCommand.h
  10760. (KEEP_ALIVE_INTERVAL): New definition.
  10761. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  10762. * src/main.cc
  10763. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  10764. * src/DownloadEngine.h: Removed unnecessary header includes.
  10765. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10766. To fix the bug that causes segfaults if a tracker returns a zero-length
  10767. list as "peers":
  10768. * src/TrackerUpdateCommand.cc
  10769. (execute): Added a check to see wether the type of peers is Data*.
  10770. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10771. * Release 0.5.0
  10772. To fix compile issue with gcc3:
  10773. * src/CancelMessage.h
  10774. (ID): Renamed as ID_t
  10775. (ID_t): New enum.
  10776. * src/RejectMessage.h
  10777. (ID): Renamed as ID_t
  10778. (ID_t): New enum.
  10779. * src/SuggestPieceMessage.h
  10780. (ID): Renamed as ID_t
  10781. (ID_t): New enum.
  10782. * src/AllowedFastMessage.h
  10783. (ID): Renamed as ID_t
  10784. (ID_t): New enum.
  10785. * src/PortMessage.h
  10786. (ID): Renamed as ID_t
  10787. (ID_t): New enum.
  10788. * src/HaveNoneMessage.h
  10789. (ID): Renamed as ID_t
  10790. (ID_t): New enum.
  10791. * src/KeepAliveMessage.h
  10792. (ID): Renamed as ID_t
  10793. (ID_t): New enum.
  10794. * src/HaveAllMessage.h
  10795. (ID): Renamed as ID_t
  10796. (ID_t): New enum.
  10797. * src/UnchokeMessage.h
  10798. (ID): Renamed as ID_t
  10799. (ID_t): New enum.
  10800. * src/BitfieldMessage.h
  10801. (ID): Renamed as ID_t
  10802. (ID_t): New enum.
  10803. * src/PieceMessage.h
  10804. (ID): Renamed as ID_t
  10805. (ID_t): New enum.
  10806. * src/RequestMessage.h
  10807. (ID): Renamed as ID_t
  10808. (ID_t): New enum.
  10809. * src/NotInterestedMessage.h
  10810. (ID): Renamed as ID_t
  10811. (ID_t): New enum.
  10812. * src/ChokeMessage.h
  10813. (ID): Renamed as ID_t
  10814. (ID_t): New enum.
  10815. * src/InterestedMessage.h
  10816. (ID): Renamed as ID_t
  10817. (ID_t): New enum.
  10818. * src/HaveMessage.h
  10819. (ID): Renamed as ID_t
  10820. (ID_t): New enum.
  10821. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10822. * src/PeerAbstractCommand.h
  10823. (beforeSocketCheck): Removed.
  10824. * src/PeerAbstractCommand.cc
  10825. Modified in order to call executeInternal() even if socket check
  10826. and upload limit check fail.
  10827. * src/PeerInteractionCommand.h
  10828. (keepAlive): Removed.
  10829. (sendKeepAlive): New function.
  10830. (checkHave): New function.
  10831. (beforeSocketCheck): Removed.
  10832. * src/PeerInteractionCommand.cc
  10833. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  10834. calls to checkHave() and sendKeepAlive().
  10835. (keepAlive): Renamed to sendKeepAlive().
  10836. (sendKeepAlive): New function.
  10837. (beforeSocketCheck): Removed.
  10838. (checkHave): New function.
  10839. * src/BitfieldMan.cc
  10840. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  10841. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  10842. 0.
  10843. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  10844. * src/TorrentMan.h
  10845. (UsedPieces): Removed.
  10846. (Pieces): New type definition.
  10847. * src/Piece.h: Updated doc.
  10848. * src/Peer.h
  10849. (totalLength): Removed.
  10850. * src/Peer.cc
  10851. (updateLatency): Fixed the latency calculation.
  10852. * src/TorrentMan.cc
  10853. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  10854. than or equal to MAX_PEER_LIST_SIZE.
  10855. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  10856. then return false.
  10857. (deleteOldErrorPeers): Rewritten.
  10858. (deleteUsedPiece): Fixed the miss use of STL remove.
  10859. * src/PeerInteraction.h
  10860. (Pieces): Removed.
  10861. (deleteTimeoutRequestSlot): Removed.
  10862. (deleteCompletedRequestSlot): Removed.
  10863. (checkRequestSlot): New function.
  10864. * src/PeerInteraction.cc
  10865. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  10866. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  10867. (checkRequestSlot): New function.
  10868. * src/DownloadEngine.cc
  10869. (run): Clear activeSockets before calling waitData().
  10870. (waitData): Removed a call to activeSockets.clear().
  10871. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10872. To attempt to handle EINTR:
  10873. * src/SocketCore.cc
  10874. (isReadable): Added EINTR handling.
  10875. (isWritable): Added EINTR handling.
  10876. To improve the performance:
  10877. * src/AbstractCommand.cc
  10878. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10879. * src/PeerInteractionCommand.h
  10880. (receiveMessage): Renamed as receiveMessages().
  10881. (receiveMessages): New function.
  10882. * src/PeerInteractionCommand.cc
  10883. (executeInternal): receiveMessage loop is moved to new receiveMessages
  10884. () function. detectMessageFlooding() is moved here.
  10885. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  10886. (). The flooding detection for have message is comment out.
  10887. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  10888. Util::difftv().
  10889. (receiveMessage): Renamed as receiveMessages().
  10890. (receiveMessages): New function.
  10891. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  10892. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  10893. * src/SleepCommand.cc
  10894. (execute): Use Util::difftvsec() instead of Util::difftv().
  10895. * src/BitfieldMan.h
  10896. (getNthBitIndex): New function.
  10897. (hasMissingPiece): New function.
  10898. (getAllMissingIndexes): New function.
  10899. * src/BitfieldMan.cc
  10900. (countSetBit): Rewritten.
  10901. (getNthBitIndex): New function.
  10902. (getMissingIndexRandomly): Rewritten.
  10903. (hasMissingPiece): New function.
  10904. (getAllMissingIndexes): New function.
  10905. * src/TorrentMan.cc
  10906. (hasMissingPiece): New function.
  10907. (deleteUsedPiece): Rewritten using STL.
  10908. * src/PeerInteraction.cc
  10909. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  10910. is a little bit faster then TorrentMan::getMissingPieceIndex().
  10911. (addRequests): Updated the number of pending requests.
  10912. * src/PeerAbstractCommand.cc
  10913. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  10914. (execute): Returns true if TorrentMan::isHalt() is true.
  10915. Corrected the condition of upload limit checking.
  10916. * src/Util.h
  10917. (countBit): New function.
  10918. * src/Util.cc
  10919. (nbits): New variable.
  10920. (countBit): New function.
  10921. * src/DownloadEngine.h
  10922. (SockCmdMap): New type definition.
  10923. (waitData): Added an argument.
  10924. (addSocket): Added an argument.
  10925. (addSocketForReadCheck): Added an argument.
  10926. (addSocketForWriteCheck): Added an argument.
  10927. * src/DownloadEngine.cc
  10928. (run): Executes only commands whose sockets are ready to read or write.
  10929. All commands are executed in every 1 second.
  10930. (waitData): Calls select() again if it returned
  10931. EINTR.
  10932. (addSocket): Saves socket and command object pair to the map.
  10933. (deleteSocket): Deletes socket and command object pair from the map.
  10934. (addSocketForReadCheck): Added an argument.
  10935. (addSocketForWriteCheck): Added an argument.
  10936. * src/DownloadCommand.cc
  10937. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  10938. To send "event=stopped" to the tracker when the application finishes:
  10939. * src/PeerChokeCommand.h
  10940. (checkPoint): New variable.
  10941. * src/PeerChokeCommand.cc
  10942. (PeerChokeCommand): Added the initialization of checkPoint.
  10943. (execute): The interval check is now done by checkPoint, not
  10944. SleepCommand. Return true if TorrentMan::isHalt() is true.
  10945. * src/TorrentMan.h
  10946. (halt): New function.
  10947. (hasMissingPiece): New function.
  10948. (isHalt): New function.
  10949. (setHalt): New function.
  10950. * src/TorrentMan.cc
  10951. (TorrentMan): Added the initialization of halt.
  10952. * src/TorrentAutoSaveCommand.h
  10953. (checkPoint): New variable.
  10954. * src/PeerListenCommand.cc
  10955. (execute): Returns true if TorrentMan::isHalt() is true.
  10956. * src/main.cc
  10957. (setSignalHander): Added flags argument.
  10958. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  10959. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  10960. Removed printDownloadAbortMessage() after torrent downloading loop.
  10961. * src/TorrentAutoSaveCommand.cc
  10962. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  10963. (execute): Returns true if TorrentMan::isHalt() is true.
  10964. The interval check is now done by checkPoint, not SleepCommand.
  10965. * src/TrackerWatcherCommand.cc
  10966. (execute): If TorrentMan::isHalt(), then create a tracker request with
  10967. event=stopped.
  10968. * src/TrackerUpdateCommand.cc
  10969. (prepareForRetry): Do not use SleepCommand here.
  10970. (execute): Returns true if TorrentMan::isHalt() is true.
  10971. Others:
  10972. * src/TorrentMan.cc
  10973. (getMissingPieceIndex): Updated log message.
  10974. * src/PeerInteraction.cc
  10975. (createPeerMessag): Updated log message.
  10976. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10977. To add the ability to download several pieces in mix in a command and
  10978. increase the number of request slots according to request-cancel
  10979. latency:
  10980. * src/PeerInteractionCommand.cc
  10981. (executeInternal): The number of messages to be received at a time
  10982. is increased from 10 to 50.
  10983. * src/LogFactory
  10984. (getInstance): Added NullLogger.
  10985. * src/NullLogger.h: New class.
  10986. * src/BitfieldMan.h
  10987. (getMissingIndex): New function.
  10988. * src/BitfieldMan.cc
  10989. (getMissingIndex): New function.
  10990. * src/TorrentMan.h
  10991. (checkOutPiece): New function.
  10992. (getMissingPieceIndex): New function.
  10993. (getMissingFastPieceIndex): New function.
  10994. (getMissingFastPiece): New function.
  10995. * src/TorrentMan.cc
  10996. (updatePiece): Rewritten using STL.
  10997. (syncPiece): Rewritten using STL.
  10998. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  10999. checkOutPiece().
  11000. (getMissingPieceIndex): New function.
  11001. (getMissingFastPieceIndex): New function.
  11002. (getMissingFastPiece): New function.
  11003. (checkOutPiece): New function.
  11004. * src/PeerInteraction.h
  11005. (Pieces): New type definition.
  11006. (piece): Removed.
  11007. (pieces): New variable.
  11008. (getNewPieceAndSendInterest): Added the "piece" argument.
  11009. (abortPiece): Added the "piece" argument.
  11010. (abortAllPieces): New function.
  11011. (isInRequestSlot): New function.
  11012. (hasDownloadPiece): Added the "index" argument.
  11013. (setDownloadPiece): Removed.
  11014. (getDownloadPiece): Added the "index" argument.
  11015. (updatePiece): New function.
  11016. (createRequestMessage): Added the "index" argument.
  11017. * src/PeerInteraction.cc
  11018. (onChoked): Rewritten.
  11019. (abortPiece): Rewirtten.
  11020. (abortAllPieces): New function.
  11021. (deleteTimeoutRequestSlot): Rewritten.
  11022. Clarified code a little bit.
  11023. (deleteCompletedRequestSlot): Rewritten.
  11024. (isInRequestSlot): New function.
  11025. (syncPiece): Rewritten.
  11026. (updatePiece): New function.
  11027. (getNewPieceAndSendInterest): Rewritten.
  11028. (addRequests): Rewritten.
  11029. (getDownloadPiece): Rewritten.
  11030. (hasDownloadPiece): Rewritten.
  11031. (createRequestMessage): Added the "index" argument.
  11032. * src/common.h
  11033. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  11034. (DIV_FLOOR): New definition.
  11035. * src/PieceMessage.cc
  11036. (receivedAction): Update request-piece latency here.
  11037. * src/RequestSlot.h
  11038. (getLatencyInMillis): New function.
  11039. * src/RequestSlot.cc
  11040. (isTimeout): Rewritten using getLatencyInMillis.
  11041. (getLatencyInMillis): New function.
  11042. * src/Piece.h
  11043. (operator==): New function.
  11044. (getMissingBlockIndex): New function.
  11045. * src/Piece.cc
  11046. (operator==): New function.
  11047. (getMissingBlockIndex): New function.
  11048. * src/Peer.h
  11049. (DEFAULT_LATENCY): New definition.
  11050. (latency): New variable.
  11051. (updateLatency): New function.
  11052. (getLatency): New function.
  11053. * src/Peer.cc
  11054. (resetStatus): Reset latecy.
  11055. (updateLatency): New function.
  11056. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11057. * src/SocketCore.cc
  11058. (isReadable): Added secure to the condition.
  11059. * src/HttpConnection.cc
  11060. (receiveResponse): Fixed a bug that causes no response header
  11061. exception.
  11062. * src/Peer.h
  11063. (getFastSet): Fixed the return value type.
  11064. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11065. To remove a wait from download loop:
  11066. * src/DownloadEngine.cc
  11067. (run): Comment out shortSleep.
  11068. To rewrite the message handling:
  11069. * src/SimplePeerMessage.h: New class.
  11070. * src/SimplePeerMessage.cc: New class.
  11071. * src/CancelMessage.h: Derived from SimplePeerMessage.
  11072. (msg): New variable.
  11073. (create): New function.
  11074. (send): Removed.
  11075. (getMessage): New function.
  11076. (getMessageLength): New function.
  11077. * src/CancelMessage.cc
  11078. (create): New function.
  11079. (receivedAction): Replaced deleteRequestMessageInQueue with
  11080. rejectPieceMessageInQueue.
  11081. (send): Removed.
  11082. (getMessage): New function.
  11083. (getMessageLength): New function.
  11084. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  11085. (msg): New variable.
  11086. (msgLength): New variable.
  11087. (~BitfieldMessage): Deleted msg.
  11088. (send): Removed.
  11089. (getMessage): New function.
  11090. (getMessageLength): New function.
  11091. * src/BitfieldMessage.cc
  11092. (create): New function.
  11093. (send): Removed.
  11094. (getMessage): New function.
  11095. (getMessageLength): New function.
  11096. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  11097. (msg): New variable.
  11098. (sendPredicate): New function.
  11099. (onSendComplete): New function.
  11100. (send): Removed.
  11101. (getMessage): New function.
  11102. (getMessageLength): New function.
  11103. (create): New function.
  11104. * src/ChokeMessage.cc
  11105. (create): New function.
  11106. (send): Removed.
  11107. (sendPredicate): New function.
  11108. (getMessage): New function.
  11109. (getMessageLength): New function.
  11110. (onSendComplete): New function.
  11111. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  11112. (msg): New variable.
  11113. (send): Removed.
  11114. (getMessage): New function.
  11115. (getMessageLength): New function.
  11116. * src/KeepAliveMessage.cc
  11117. (send): Removed.
  11118. (getMessage): New function.
  11119. (getMessageLength): New function.
  11120. * src/PortMessage.h
  11121. (create): New function.
  11122. (receivedAction): Updated log message.
  11123. * src/PortMessage.cc: New file.
  11124. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  11125. (msg): New variable.
  11126. (sendPredicate): New function.
  11127. (onSendComplete): New function.
  11128. (create): New function.
  11129. (send): Removed.
  11130. (getMessage): New function.
  11131. (getMessageLength): New function.
  11132. * src/UnchokeMessage.cc
  11133. (create): New function.
  11134. (send): Removed.
  11135. (sendPredicate): New function.
  11136. (getMessage): New function.
  11137. (getMessageLength): New function.
  11138. (onSendComplete): New function.
  11139. * src/PieceMessage.h
  11140. (leftPieceDataLength): Removed.
  11141. (leftDataLength): New variable.
  11142. (headerSend): New variable.
  11143. (pendingCount): New variable.
  11144. (msgHeader): New variable.
  11145. (sendPieceData): New function.
  11146. (incrementPendingCount): New function.
  11147. (isPendingCountMax): New function.
  11148. (create): New function.
  11149. (getMessageHeader): New function.
  11150. (getMessageHeaderLength): New function.
  11151. * src/PieceMessage.cc
  11152. (create): New function.
  11153. (getMessageHeader): New function.
  11154. (getMessageHeaderLength): New function.
  11155. (send): Rewritten.
  11156. (sendPieceData): New function.
  11157. * src/HaveMessage.h: Derived from SimplePeerMessage.
  11158. (msg): New variable.
  11159. (create): New function.
  11160. (getMessage): New function.
  11161. (getMessageLength): New function.
  11162. * src/HaveMessage.cc
  11163. (create): New function.
  11164. (send): Removed.
  11165. (sendPieceData): New function.
  11166. (getMessage): New function.
  11167. (getMessageLength): New function.
  11168. * src/RequestMessage.h: Derived from SimplePeerMessage.
  11169. (msg): New variable.
  11170. (create): New function.
  11171. (send): Removed.
  11172. (getMessage): New function.
  11173. (getMessageLength): New function.
  11174. * src/RequestMessage.cc
  11175. (create): New function.
  11176. (receivedAction): Added the handling of fast extension.
  11177. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  11178. (send): Removed.
  11179. (getMessage): New function.
  11180. (getMessageLength): New function.
  11181. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  11182. (msg): New variable.
  11183. (sendPredicate): New function.
  11184. (onSendComplete): New function.
  11185. (create): New function.
  11186. (getMessage): New function.
  11187. (getMessageLength): New function.
  11188. * src/InterestedMessage.cc
  11189. (create): New function.
  11190. (send): Removed.
  11191. (sendPieceData): New function.
  11192. (getMessage): New function.
  11193. (getMessageLength): New function.
  11194. (onSendComplete): New function.
  11195. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  11196. (msg): New variable.
  11197. (sendPieceData): New function.
  11198. (onSendComplete): New function.
  11199. (create): New function.
  11200. (send): Removed.
  11201. (getMessage): New function.
  11202. (getMessageLength): New function.
  11203. * src/NotInterestedMessage.cc
  11204. (create): New function.
  11205. (send): Removed.
  11206. (sendPredicate): New function.
  11207. (getMessage): New function.
  11208. (getMessageLength): New function.
  11209. (onSendComplete): New function.
  11210. * src/AllowedFastMessage.h: New class.
  11211. * src/AllowedFastMessage.cc: New class.
  11212. * src/RejectMessage.h: New class.
  11213. * src/RejectMessage.cc: New class.
  11214. * src/SuggestPieceMessage.h: New class.
  11215. * src/SuggestPieceMessage.cc: New class.
  11216. * src/HaveAllMessage.h: New class.
  11217. * src/HaveAllMessage.cc: New class.
  11218. * src/HaveNoneMessage.h: New class.
  11219. * src/HaveNoneMessage.cc: New class.
  11220. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  11221. (msg): New variable.
  11222. (reserved): New variable.
  11223. (create): New function.
  11224. (getId): New function.
  11225. (receivedAction): New function.
  11226. (getMessage): New function.
  11227. (getMessageLength): New function.
  11228. (isFastExtensionSupported): New function.
  11229. * src/HandshakeMessage.cc
  11230. (HandshakeMessage): Moved here from HandshakeMessage.h.
  11231. (create): New function.
  11232. (getMessage): New function.
  11233. (getMessageLength): New function.
  11234. (toString): Added the output of reserved field.
  11235. (check): Added const qualifier.
  11236. (isFastExtensionSupported): New function.
  11237. * src/PeerMessageUtil.h
  11238. (createChokeMessage): Removed.
  11239. (createUnchokeMessage): Removed.
  11240. (createInterestedMessage): Removed.
  11241. (createNotInterestedMessage): Removed.
  11242. (createHaveMessage): Removed.
  11243. (createBitfieldMessage): Removed.
  11244. (createRequestMessage): Removed.
  11245. (createCancelMessage): Removed.
  11246. (createPieceMessage): Removed.
  11247. (createPortMessage): Removed.
  11248. (createChokeMessage): Removed.
  11249. (createUnchokeMessage): Removed.
  11250. (createInterestedMessage): Removed.
  11251. (createNotInterestedMessage): Removed.
  11252. (createHaveMessage): Removed.
  11253. (createBitfieldMessage): Removed.
  11254. (createRequestMessage): Removed.
  11255. (createCancelMessage): Removed.
  11256. (createPieceMessage): Removed.
  11257. (createKeepAliveMessage): Removed.
  11258. (createHandshakeMessage): Removed.
  11259. (setIntParam): New function.
  11260. (createPeerMessageString): New function.
  11261. * src/PeerMessageUtil.cc
  11262. (createChokeMessage): Removed.
  11263. (createUnchokeMessage): Removed.
  11264. (createInterestedMessage): Removed.
  11265. (createNotInterestedMessage): Removed.
  11266. (createHaveMessage): Removed.
  11267. (createBitfieldMessage): Removed.
  11268. (createRequestMessage): Removed.
  11269. (createCancelMessage): Removed.
  11270. (createPieceMessage): Removed.
  11271. (createPortMessage): Removed.
  11272. (createRequestMessage): Removed.
  11273. (createCancelMessage): Removed.
  11274. (createPieceMessage): Removed.
  11275. (createHaveMessage): Removed.
  11276. (createChokeMessage): Removed.
  11277. (createUnchokeMessage): Removed.
  11278. (createInterestedMessage): Removed.
  11279. (createNotInterestedMessage): Removed.
  11280. (createBitfieldMessage): Removed.
  11281. (createKeepAliveMessage): Removed.
  11282. (createHandshakeMessage): Removed.
  11283. (setIntParam): New function.
  11284. (createPeerMessageString): New function.
  11285. * src/PeerConnection.h
  11286. (peer): Removed.
  11287. (torrentMan): Removed.
  11288. (createNLengthMessage): Removed.
  11289. (setIntParam): Removed.
  11290. (writeOutgoingMessageLog): Removed all overloaded functions.
  11291. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11292. (sendMessage): New function.
  11293. (sendHandshake): Removed.
  11294. (sendKeepAlive): Removed.
  11295. (sendChoke): Removed.
  11296. (sendUnchoke): Removed.
  11297. (sendInterested): Removed.
  11298. (sendNotInterested): Removed.
  11299. (sendHave): Removed.
  11300. (sendBitfield): Removed.
  11301. (sendRequest): Removed.
  11302. (sendPiece): Removed.
  11303. (sendPieceHeader): Removed.
  11304. (sendPieceData): Removed.
  11305. (sendCancel): Removed.
  11306. (getPeer): Removed.
  11307. * src/PeerConnection.cc
  11308. (PeerConnection): Deleted peer and torrentMan from its arguments.
  11309. (sendHandshake): Removed.
  11310. (sendKeepAlive): Removed.
  11311. (createNLengthMessage): Removed.
  11312. (setIntParam): Removed.
  11313. (writeOutgoingMessageLog): Removed all overloaded functions.
  11314. (sendChoke): Removed.
  11315. (sendUnchoke): Removed.
  11316. (sendInterested): Removed.
  11317. (sendNotInterested): Removed.
  11318. (sendHave): Removed.
  11319. (sendBitfield): Removed.
  11320. (sendRequest): Removed.
  11321. (sendPiece): Removed.
  11322. (sendPieceHeader): Removed.
  11323. (sendPieceData): Removed.
  11324. (sendMessage): New function.
  11325. (sendCancel): Removed.
  11326. * src/PeerInteractionCommand.cc
  11327. (PeerInteractionCommand): Call setUploadLimit.
  11328. (executeInternal): Call setUploadLimit.
  11329. Added the handling of "inProgress" state of handshake message.
  11330. Call sendBitfield() or sendAllowdFast() instead of deprecated
  11331. sendNow().
  11332. (keepAlive): Call addMessage and sendMessage instead of deprecated
  11333. sendNow().
  11334. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  11335. * src/TorrentMan.h
  11336. (PEER_ID_LENGTH): New definition.
  11337. (hasAllPieces): New function.
  11338. * src/TorrentMan.cc
  11339. (getMissingPiece): Added the handling of fast extension.
  11340. (cancelPiece): Call updatePiece().
  11341. (hasAllPieces): New function.
  11342. * src/PeerInteraction.h
  11343. (fastSet): New variable.
  11344. (getNewPieceAndSendInterest): Changed the return type to void.
  11345. (send): Renamed as sendMessages.
  11346. (deleteAllRequestSlot): Removed.
  11347. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11348. (cancelAllRequest): Removed all overloaded functions.
  11349. (deleteAllRequestSlot): Removed.
  11350. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11351. (rejectPieceMessageInQueue): New function.
  11352. (rejectAllPieceMessageInQueue): New function.
  11353. (onChoked): New function.
  11354. (isSendingMessageInProgress): New function.
  11355. (getCorrespondingRequestSlot): Changed its arguments.
  11356. (isInFastSet): New function.
  11357. (addFastSetIndex): New function.
  11358. (addRequests): New function.
  11359. (sendNow): Removed.
  11360. (trySendNow): Removed.
  11361. (sendBitfield): New function.
  11362. (sendAllowdFast): New function.
  11363. (createHaveAllMessage): New function.
  11364. (createHaveNoneMessage): New function.
  11365. (createRejectMessage): New function.
  11366. (createAllowedFastMessage): New function.
  11367. * src/PeerInteraction.cc
  11368. (send): Renamed as sendMessages.
  11369. (sendMessages): New function.
  11370. (MsgPushBack): New class.
  11371. (isSendingMessageInProgress): New function.
  11372. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  11373. (rejectAllPieceMessageInQueue): New function.
  11374. Added the handling of fast extension.
  11375. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  11376. (rejectPieceMessageInQueue): New function.
  11377. Added the handling of fast extension.
  11378. (deleteRequestSlot): Replaced for loop with std::find.
  11379. (onChoked): New function.
  11380. (deleteAllRequestSlot): Removed.
  11381. (abortPiece): Rewirtten.
  11382. (deleteTimeoutRequestSlot): Updated log messages.
  11383. (getCorrespondingRequestSlot): Changed its arguments.
  11384. (cancelAllRequest): Removed all overloaded functions.
  11385. (receiveHandshake): Added the check to see whether an incoming peer
  11386. supports fast extension.
  11387. (createHandshakeMessage): Use HandshakeMessage::create instead of
  11388. PeerMessageUtil.
  11389. (createPeerMessage): Use create() of each message class instead of
  11390. PeerMessageUtil.
  11391. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  11392. AllowedFastMessage were added.
  11393. (getNewPieceAndSendInterest): Changed its return value type to void.
  11394. Added the handling of fast extension.
  11395. (addRequests): New function.
  11396. (sendNow): Removed.
  11397. (sendHandshake): Rewritten.
  11398. (trySendNow): Removed.
  11399. (sendBitfield): New function.
  11400. (sendAllowdFast): New function.
  11401. (isInFastSet): New function.
  11402. (addFastSetIndex): New function.
  11403. (createRequestMessage): Use RequestMessage::create instead of
  11404. PeerMessageUtil.
  11405. (createCancelMessage): Use CancelMessage::create instead of
  11406. PeerMessageUtil.
  11407. (createPieceMessage): Use PieceMessage::create instead of
  11408. PeerMessageUtil.
  11409. (createHaveMessage): Use HaveMessage::create instead of
  11410. PeerMessageUtil.
  11411. (createChokeMessage): Use ChokeMessage::create instead of
  11412. PeerMessageUtil.
  11413. (createUnchokeMessage): Use UnchokeMessage::create instead of
  11414. PeerMessageUtil.
  11415. (createInterestedMessage): Use InterestedMessage::create instead of
  11416. PeerMessageUtil.
  11417. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  11418. of PeerMessageUtil.
  11419. (createBitfieldMessage): Use BitfieldMessage::create instead of
  11420. PeerMessageUtil.
  11421. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  11422. PeerMessageUtil.
  11423. (createHaveAllMessage): New function.
  11424. (createHaveNoneMessage): New function.
  11425. (createRejectMessage): New function.
  11426. (createAllowedFastMessage: New function.
  11427. * src/Util.h
  11428. (sha1Sum): New function.
  11429. (computeFastSet): New function.
  11430. * src/Util.cc
  11431. (sha1Sum): New function.
  11432. (computeFastSet): New function.
  11433. * src/Peer.h
  11434. (fastExtensionEnabled): New variable.
  11435. (fastSet): New variable.
  11436. (setAllBitfield): New function.
  11437. (setFastExtensionEnabled): New function.
  11438. (isFastExtensionEnabled): New function.
  11439. (addFastSetIndex): New function.
  11440. (getFastSet): New function.
  11441. (isInFastSet): New function.
  11442. (countFastSet): New function.
  11443. * src/Peer.cc
  11444. (isInFastSet): New function.
  11445. (addFastSetIndex): New function.
  11446. (setAllBitfield): New function.
  11447. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  11448. sockets.
  11449. * src/PeerAbstractCommand.cc
  11450. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  11451. and uploadLimit.
  11452. (execute): Changed the procedure of checking sockets. The upload speed
  11453. checking were added.
  11454. (setUploadLimit): New function.
  11455. (setUploadLimitCheck): New function.
  11456. * src/PeerAbstractCommand.h
  11457. (setUploadLimit): New function.
  11458. (setUploadLimitCheck): New function.
  11459. (uploadLimit): New variable.
  11460. (uploadLimitCheck): New variable.
  11461. To contact a tracker regularly:
  11462. * src/TrackerWatcherCommand.h (interval): New variable.
  11463. (checkPoint): New variable.
  11464. (TrackerWatcherCommand): Added interval argument.
  11465. * src/TrackerWatcherCommand.cc
  11466. (TrackerWatcherCommand): Initialized checkPoint.
  11467. (execute): Now a tracker is contacted in every specified period.
  11468. If peer list is not needed, send request with numwant=0.
  11469. * src/TrackerUpdateCommand.cc
  11470. (execute): Updated log messages.
  11471. * src/DownloadEngine.cc
  11472. (~DownloadEngine): Removed two asserts.
  11473. (waitData): Uncommented wfds. May be a bug fix.
  11474. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11475. * src/PeerInteractionCommand.h
  11476. (checkInactiveConnection): Removed.
  11477. * src/PeerInteractionCommand.cc
  11478. (executeInternal): Removed following function calls:
  11479. detectMessageFlooding(), checkLongTimePeerChoking and
  11480. checkInactiveConnection().
  11481. (checkInactiveConnection): Removed.
  11482. (detectMessageFlooding): Removed function call to
  11483. checkInactiveConnection().
  11484. * src/PeerMessageUtil.h
  11485. (createChokeMessage): New function. Overload.
  11486. (createUnchokeMessage): New function. Overload.
  11487. (createInterestedMessage): New function. Overload.
  11488. (createNotInterestedMessage): New function. Overload.
  11489. (createHaveMessage): New function. Overload.
  11490. (createBitfieldMessage): New function. Overload.
  11491. (createRequestMessage): New function. Overload.
  11492. (createCancelMessage): New function. Overload.
  11493. (createPieceMessage): New function. Overload.
  11494. (createKeepAliveMessage): New function. Overload.
  11495. * src/PeerMessageUtil.cc
  11496. (createChokeMessage): New function. Overload.
  11497. (createUnchokeMessage): New function. Overload.
  11498. (createInterestedMessage): New function. Overload.
  11499. (createNotInterestedMessage): New function. Overload.
  11500. (createHaveMessage): New function. Overload.
  11501. (createBitfieldMessage): New function. Overload.
  11502. (createRequestMessage): New function. Overload.
  11503. (createCancelMessage): New function. Overload.
  11504. (createPieceMessage): New function. Overload.
  11505. (createKeepAliveMessage): New function. Overload.
  11506. * src/SendMessageQueue.cc
  11507. (createRequestMessage): Use PeerMessageUtil.
  11508. (createCancelMessage): Use PeerMessageUtil.
  11509. (createPieceMessage): Use PeerMessageUtil.
  11510. (createHaveMessage): Use PeerMessageUtil.
  11511. (createChokeMessage): Use PeerMessageUtil.
  11512. (createUnchokeMessage): Use PeerMessageUtil.
  11513. (createInterestedMessage): Use PeerMessageUtil.
  11514. (createNotInterestedMessage): Use PeerMessageUtil.
  11515. (createBitfieldMessage): Use PeerMessageUtil.
  11516. (createKeepAliveMessage): Use PeerMessageUtil.
  11517. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  11518. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  11519. * src/PeerInteraction.h: New class.
  11520. * src/PeerInteraction.cc: New class.
  11521. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11522. Each peer message has its own class.
  11523. * src/PendingMessages.h: Removed.
  11524. * src/PendingMessages.cc: Removed. The sending process was moved to
  11525. each message class.
  11526. * src/RequestSlotMan.h: Removed.
  11527. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  11528. SendMessageQueue.
  11529. * src/RequestMessage.h: New class.
  11530. * src/RequestMessage.cc: New class.
  11531. * src/CancelMessage.h: New class.
  11532. * src/CancelMessage.cc: New class.
  11533. * src/BitfieldMessage.h: New class.
  11534. * src/BitfieldMessage.cc: New class.
  11535. * src/ChokeMessage.h: New class.
  11536. * src/ChokeMessage.cc: New class.
  11537. * src/KeepAliveMessage.h: New class.
  11538. * src/KeepAliveMessage.cc: New class.
  11539. * src/PortMessage.h: New class.
  11540. * src/UnchokeMessage.h: New class.
  11541. * src/UnchokeMessage.cc: New class.
  11542. * src/PieceMessage.h: New class.
  11543. * src/PieceMessage.cc: New class.
  11544. * src/HaveMessage.h: New class.
  11545. * src/HaveMessage.cc: New class.
  11546. * src/BitfieldMessage.h: New class.
  11547. * src/BitfieldMessage.cc: New class.
  11548. * src/NotInterestedMessage.h: New class.
  11549. * src/NotInterestedMessage.cc: New class.
  11550. * src/InterestedMessage.h: New class.
  11551. * src/InterestedMessage.cc: New class.
  11552. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  11553. (getSendMessageQueue): New function.
  11554. (setSendMessageQueue): New function.
  11555. * src/HandshakeMessage.cc: New class.
  11556. * src/PeerConnection.h (receiveMessage): Changed return value and
  11557. arguments.
  11558. (receiveHandshake): Changed return value and arguments.
  11559. * src/PeerConnection.cc (receiveMessage): Do not create message class
  11560. here.
  11561. (receiveHandshake): Do not create handshake class here.
  11562. * src/PeerInteractionCommand.h (peerConnection): Removed.
  11563. (piece): Removed.
  11564. (syncPiece): Removed.
  11565. (sendInterest): Removed.
  11566. (sendMessages): Removed.
  11567. (createRequestPendingMessage): Removed.
  11568. (checkPieceHash): Removed.
  11569. (erasePieceOnDisk): Removed.
  11570. (getNewPieceAndSendInterest): Removed.
  11571. (onGotNewPice): Removed.
  11572. (onGotWrongPiece): Removed.
  11573. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  11574. Removed peerConnection, piece.
  11575. (~PeerInteractionCommand): Removed peerConnection.
  11576. (executeInternal): Use sendMessageQueue instead of peerConnection.
  11577. (syncPiece): Moved to SendMessageQueue.
  11578. (decideChoking): Removed PendingMessage.
  11579. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  11580. The action after receiving peer message was moved to each message
  11581. class.
  11582. (onGotNewPice): Moved to SendMessageQueue.
  11583. (onGotWrongPiece): Moved to SendMessageQueue.
  11584. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  11585. (sendInterest): Moved to SendMessageQueue.
  11586. (createRequestPendingMessage): Removed.
  11587. (sendMessages): Moved to SendMessageQueue.
  11588. (onAbort): Use SendMessageQueue::abortPiece()
  11589. (keepAlive): Use sendMessageQueue instead of peerConnection.
  11590. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  11591. (checkPieceHash): Moved to SendMessageQueue.
  11592. (erasePieceOnDisk): Moved to SendMessageQueue.
  11593. * src/PeerMessageUtil.h
  11594. (createBitfieldMessage): Removed.
  11595. (createHaveMessage): Changed return value and arguments.
  11596. (createBitfieldMessage): Changed return value and arguments.
  11597. (createRequestCancelMessage): Removed.
  11598. (createPieceMessage): Changed return value and arguments.
  11599. (getShortIntParam): New function.
  11600. (checkIndex): Changed arguments.
  11601. (checkBegin): Changed arguments.
  11602. (checkLength): Changed arguments.
  11603. (checkPieceOffset): Removed.
  11604. (checkRange): New function.
  11605. (checkBitfield): Changed arguments.
  11606. (createPeerMessage): Removed.
  11607. (checkIntegrity): Removed.
  11608. (createHandshakeMessage): Changed arguments.
  11609. (createChokeMessage): New function.
  11610. (createUnchokeMessage): New function.
  11611. (createInterestedMessage): New function.
  11612. (createNotInterestedMessage): New function.
  11613. (createRequestMessage): New function.
  11614. (createCancelMessage): New function.
  11615. (createPortMessage): New function.
  11616. * src/PeerMessageUtil.cc
  11617. (createBitfieldMessage): Removed.
  11618. (createHaveMessage): Changed return value and arguments.
  11619. (createBitfieldMessage): Changed return value and arguments.
  11620. (createRequestCancelMessage): Removed.
  11621. (createPieceMessage): Changed return value and arguments.
  11622. (getShortIntParam): New function.
  11623. (checkIndex): Changed arguments.
  11624. (checkBegin): Changed arguments.
  11625. (checkLength): Changed arguments.
  11626. (checkPieceOffset): Removed.
  11627. (checkRange): New function.
  11628. (checkBitfield): Changed arguments.
  11629. (createPeerMessage): Removed.
  11630. (checkIntegrity): Removed.
  11631. (createHandshakeMessage): Changed arguments.
  11632. (createChokeMessage): New function.
  11633. (createUnchokeMessage): New function.
  11634. (createInterestedMessage): New function.
  11635. (createNotInterestedMessage): New function.
  11636. (createRequestMessage): New function.
  11637. (createCancelMessage): New function.
  11638. (createPortMessage): New function.
  11639. * src/PeerMessage.h
  11640. (id): Removed.
  11641. (index): Removed.
  11642. (begin): Removed.
  11643. (length): Removed.
  11644. (bitfield): Removed.
  11645. (bitfieldLength): Removed.
  11646. (block): Removed.
  11647. (blockLength): Removed.
  11648. (inProgress): New variable.
  11649. (cuid): New variable.
  11650. (peer): New variable.
  11651. (sendMessageQueue): New variable.
  11652. (logger): New variable.
  11653. (setBitfield): Removed.
  11654. (getBitfield): Removed.
  11655. (setBlock): Removed.
  11656. (getBlock): Removed.
  11657. (getBitfieldLength): Removed.
  11658. (getBlockLength): Removed.
  11659. (isInProgress): New function.
  11660. (toString): Made pure virtual.
  11661. (check): New function.
  11662. (send): New function.
  11663. (receivedAction): New function.
  11664. (getId): Made pure virtual.
  11665. (setId): Removed.
  11666. (getIndex): Removed.
  11667. (setIndex): Removed.
  11668. (getBegin): Removed.
  11669. (setBegin): Removed.
  11670. (getLength): Removed.
  11671. (setLength): Removed.
  11672. (getCuid): New function.
  11673. (setCuid): New function.
  11674. (getPeer): New function.
  11675. (setPeer): New function.
  11676. (getSendMessageQueue): New function.
  11677. (setSendMessageQueue): New function.
  11678. (ID): Removed.
  11679. * src/PeerMessage.cc
  11680. (setBitfield): Removed.
  11681. (setBlock): Removed.
  11682. (toString): Removed.
  11683. * src/TorrentMan.h
  11684. (getPieceLength): New function.
  11685. (getPieceLength): New function.
  11686. * src/SendMessageQueue.h
  11687. (REQUEST_TIME_OUT): New definition.
  11688. (RequestSlots): New definition.
  11689. (MessageQueue): New definition.
  11690. (requestSlotMan): Removed.
  11691. (pendingMessages): Removed.
  11692. (requestSlots): New variable.
  11693. (messageQueue): New variable.
  11694. (torrentMan): New variable.
  11695. (peerConnection): New variable.
  11696. (peer): New variable.
  11697. (piece): New variable.
  11698. (getNewPieceAndSendInterest): New function.
  11699. (createPeerMessage): New function.
  11700. (createHandshakeMessage): New function.
  11701. (send): Made private.
  11702. (setPeerMessageCommonProperty): New function.
  11703. (deleteAllRequestSlot): New function.
  11704. (deleteRequestMessageInQueue): New function.
  11705. (cancelAllRequest): Made private.
  11706. (cancelAllRequest): Made private.
  11707. (countRequestSlot): Made private.
  11708. (addPendingMessage): Removed.
  11709. (deletePendingPieceMessage): Removed.
  11710. (deletePendingRequestMessage): Removed.
  11711. (addMessage): New function.
  11712. (deletePieceMessageInQueue): New function.
  11713. (deleteTimeoutRequestSlot): Changed argument.
  11714. (deleteCompletedRequestSlot): Changed argument.
  11715. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  11716. (getCorrespondingRequestSlot): New function.
  11717. (countPendingMessage): Removed.
  11718. (countMessageInQueue): New function.
  11719. (getTorrentMan): New function.
  11720. (getPeerConnection): New function.
  11721. (hasDownloadPiece): New function.
  11722. (getDownloadPiece): New function.
  11723. (setDownloadPiece): New function.
  11724. (syncPiece): New function.
  11725. (sendMessages): New function.
  11726. (sendNow): New function.
  11727. (trySendNow): New function.
  11728. (abortPiece): New function.
  11729. (sendHandshake): New function.
  11730. (receiveMessage): New function.
  11731. (receiveHandshake): New function.
  11732. (createRequestMessage): New function.
  11733. (createCancelMessage): New function.
  11734. (createPieceMessage): New function.
  11735. (createHaveMessage): New function.
  11736. (createChokeMessage): New function.
  11737. (createUnchokeMessage): New function.
  11738. (createInterestedMessage): New function.
  11739. (createNotInterestedMessage): New function.
  11740. (createBitfieldMessage): New function.
  11741. (createKeepAliveMessage): New function.
  11742. * src/SendMessageQueue.cc
  11743. (SendMessageQueue): Removed requestSlotMan.
  11744. Instantiated peerConnection here.
  11745. (~SendMessageQueue): Removed requestSlotMan.
  11746. Added deletion of peerConnection and the contents of messageQueue.
  11747. (send): Updated according to the change of messageQueue.
  11748. (addPendingMessage): Renamed to addMessage.
  11749. (addMessage): New function.
  11750. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  11751. (deletePieceMessageInQueue): New function.
  11752. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  11753. (deleteRequestMessageInQueue): New function.
  11754. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  11755. here.
  11756. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  11757. (...) was moved here.
  11758. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  11759. moved here.
  11760. (deleteCompletedRequestSlot):
  11761. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  11762. (getCorrespondingRequestSlot):
  11763. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  11764. And renamed to getCorrespondingRequestSlot, correcting a typo.
  11765. (countPendingMessage): Renamed to countMessageInQueue.
  11766. (countMessageInQueue): New function.
  11767. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  11768. (receiveHandshake): New function.
  11769. (createHandshakeMessage): New function.
  11770. (receiveMessage): New function.
  11771. (createPeerMessage): New function.
  11772. (syncPiece): New function.
  11773. (getNewPieceAndSendInterest): New function.
  11774. (sendMessages): New function.
  11775. (sendNow): New function.
  11776. (trySendNow): New function.
  11777. (sendHandshake): New function.
  11778. (abortPiece): New function.
  11779. (getDownloadPiece): New function.
  11780. (getPeerMessageCommonProperty): New function.
  11781. (createRequestMessage): New function.
  11782. (createCancelMessage): New function.
  11783. (createPieceMessage): New function.
  11784. (createHaveMessage): New function.
  11785. (createChokeMessage): New function.
  11786. (createUnchokeMessage): New function.
  11787. (createInterestedMessage): New function.
  11788. (createNotInterestedMessage): New function.
  11789. (createBitfieldMessage): New function.
  11790. (createKeepAliveMessage): New function.
  11791. To add simple Content-Disposition support:
  11792. * src/HttpResponseCommand.h (determinFilename): New function.
  11793. * src/HttpResponseCommand.cc (executeInternal):
  11794. Use determinFilename(headers) instead of req->getFile() when comparing
  11795. filename.
  11796. (determinFilename): New function.
  11797. (handleDefaultEncoding): Use determinFilename(headers) instead of
  11798. req->getFile().
  11799. (handleOtherEncoding): Use determinFilename(headers) instead of
  11800. req->getFile().
  11801. * src/Util.h (getContentDispositionFilename): New function.
  11802. * src/Util.cc (getContentDispositionFilename): New function.
  11803. * src/LogFactory.h (release): New function.
  11804. * src/LogFactory.cc (release): New function.
  11805. To fix a bug that causes out-of-bound exception when HTTP status
  11806. line is wrong:
  11807. * src/HttpConnection.cc (receiveResponse): Added a check for header
  11808. size.
  11809. * src/common.h (Deleter): New class.
  11810. * src/SegmentMan.cc
  11811. (~SegmentMan): Added deletion of splitter and diskWriter.
  11812. * src/DownloadEngine.h
  11813. (Commands): Use deque.
  11814. (clearQueue): New function.
  11815. * src/DownloadEngine.cc
  11816. (~DownloadEngine): Added deletion of segmentMan.
  11817. (cleanQueue): New function.
  11818. * src/TorrentDownloadEngine.h
  11819. (TorrentDownloadEngine): The implementation was moved to
  11820. TorrentDownloadEngine.cc.
  11821. (~TorrentDownloadEngine): The implementation was moved to
  11822. TorrentDownloadEngine.cc.
  11823. * src/TorrentDownloadEngine.cc
  11824. (~TorrentDownloadEngine): Added deletion of torrentMan.
  11825. * src/main.cc
  11826. (clearRequest): Removed.
  11827. (handler): Added deletion of e.
  11828. (torrentHandler): Added deletion of te.
  11829. (main): Do not share splitter.
  11830. Use Deleter instead of clearRequest.
  11831. Deletion of classes were updated.
  11832. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11833. * src/main.cc (main): Fixed typo.
  11834. * src/message.h: Fixed typo.
  11835. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  11836. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11837. To add --select-file command-line option:
  11838. * src/Util.cc
  11839. (unfoldRange): New function.
  11840. (getNum): New function.
  11841. (unfoldSubRange): New function
  11842. * src/main.cc
  11843. (showUsage): Added help message.
  11844. (main): Added --select-file command-line option. Updated the layout of
  11845. file listing.
  11846. * src/common.h
  11847. (Integers): New definition.
  11848. * src/SocketCore.cc
  11849. (writeData): Removed timeout argument.
  11850. (readData): Removed timeout argument.
  11851. (peekData): Removed timeout argument.
  11852. * src/Socket.cc
  11853. (writeData): Removed timeout argument.
  11854. (readData): Removed timeout argument.
  11855. (peekData): Removed timeout argument.
  11856. * Release 0.4.1
  11857. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11858. To deploy upload rate based choking algorithm:
  11859. * src/PeerInteractionCommand.cc
  11860. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  11861. peer currently used.
  11862. (decideChoking): Deleted the choke/unchoke decision algorithm when
  11863. download completes. Simplified.
  11864. (receiveMessage): Updated.
  11865. * src/TorrentMan.h
  11866. (activePeers): New variable.
  11867. (addActivePeer): New function.
  11868. (getActivePeers): New function.
  11869. (deleteActivePeer): New function.
  11870. * src/TorrentMan.cc
  11871. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  11872. * src/PeerAbstractCommand.cc
  11873. (onAbort): Use peer->resetStatus().
  11874. * src/main.cc
  11875. (PeerChokeCommand.h): Included.
  11876. (main): Added the instance of ChokingCommand to the command queue.
  11877. * src/Peer.h
  11878. (amChoking): Renamed from amChocking
  11879. (chokingRequired): New variable.
  11880. (optUnchoking): New variable.
  11881. (deltaUpload): New variable.
  11882. (deltaDownload): New variable.
  11883. (addDeltaUpload): New function.
  11884. (resetDeltaUpload): New function.
  11885. (addDeltaDownload): New function.
  11886. (resetDeltaDownload): New function.
  11887. (addPeerUpload): Added a call to addDeltaUpload.
  11888. (addPeerDownload): Added a call to addDeltaDownload.
  11889. * src/Peer.cc
  11890. (shouldBeChoking): Renamed from shouldChoke.
  11891. (resetStatus): New function.
  11892. * src/PeerChokeCommand.h: New class.
  11893. * src/PeerChokeCommand.cc: New class.
  11894. To add lazy upload speed limiter:
  11895. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  11896. statistics calculation to TorrentDownloadEngine.
  11897. * src/TorrentConsoleDownloadEngine.cc
  11898. (sendStatistics): Renamed from printStatistics.
  11899. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  11900. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  11901. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  11902. * src/TorrentDownloadEngine.h: Added the variables for statistics
  11903. calculation.
  11904. (sendStatistics): New function as pure virtual function.
  11905. (getUploadSpeed): New function.
  11906. * src/TorrentDownloadEngine.cc
  11907. (initStatistics): New function.
  11908. (calculateSpeed): New function.
  11909. (calculateStatistics): New function.
  11910. * src/SendMessageQueue.h
  11911. (uploadLength): New variable.
  11912. (send): Added an argument.
  11913. (setUploadLimit): New function.
  11914. (getUploadLimit): New function.
  11915. * src/SendMessageQueue.cc
  11916. (send): Added upload speed limiter.
  11917. * src/prefs.h
  11918. (PREF_UPLOAD_LIMIT): New definition.
  11919. * src/PeerInteractionCommand.cc
  11920. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  11921. * src/main.cc
  11922. (main): Added --upload-limit option
  11923. For bug fixes:
  11924. * src/main.cc
  11925. (showUsage): Corrected --listen-port help
  11926. Other changes:
  11927. * src/TorrentMan.cc
  11928. (getPeer): Return nullPeer if connection is grather than
  11929. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  11930. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11931. To add some useful information to the exception message:
  11932. * src/SocketCore.cc : Updated messages.
  11933. * src/SegmentMan.cc :
  11934. * src/TorrentMan.cc : Updated messages.
  11935. * src/MultiDiskWriter.cc : Updated messages.
  11936. * src/Util.cc : Updated messages.
  11937. * src/AbstractDiskWriter.cc : Updated messages.
  11938. * src/PreAllocationDiskWriter.cc : Updated messages.
  11939. * src/message.cc : Added new messages. Updated some messages.
  11940. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  11941. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  11942. Updated threshold from 30 to 15.
  11943. * src/AbstractDiskWriter.h (filename): New variable.
  11944. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  11945. (createFile): Assigned filename.
  11946. * src/main.cc: Updated the help message for http-auth-scheme.
  11947. * Release 0.4.0
  11948. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11949. To add TrackerUpdateCommand with which replaces
  11950. CompactTrackerResponseProcessor:
  11951. * src/TrackerWatcherCommand.h (req): Removed.
  11952. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  11953. if the number of peer connections are less than 30.
  11954. * src/ByteArrayDiskWriter.h (readData): Implemented.
  11955. * src/SegmentMan.h (diskWriter): New function.
  11956. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  11957. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  11958. (main): Use TrackerUpdateCommand.
  11959. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  11960. (req): New variable.
  11961. (setTrackerResponseProcessor): Removed.
  11962. (getTrackerResponseProcessor): Removed.
  11963. (processTrackerResponse): Removed.
  11964. * src/DownloadEngine.h (diskWriter): Removed.
  11965. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  11966. to torrentMan->processTrackerResponse().
  11967. To add Util::expandBuffer:
  11968. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  11969. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  11970. * src/Util.h (expandBuffer): New function.
  11971. To fix the bug that causes segmentation fault when "-l ." is specified
  11972. in command-line option:
  11973. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  11974. (openFile): New function.
  11975. (closeFile): New function.
  11976. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  11977. (~SimpleLogger): Call closeFile();
  11978. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  11979. * src/main.cc (main): Added a check to see logger is configured
  11980. properly.
  11981. To enable HTTP authentication without specifying "--http-auth-scheme"
  11982. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  11983. * src/HttpConnection.cc (createRequest): Send Authorization header
  11984. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  11985. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  11986. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  11987. * src/Peer.cc (shouldChoke): Updated algorithm.
  11988. * src/message.h (EX_AUTH_FAILED): New definition.
  11989. (EX_FILE_OPEN): New definition.
  11990. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  11991. if status == 401.
  11992. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  11993. if req->isTorrent == true.
  11994. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  11995. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  11996. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  11997. (createFile): Updated message.
  11998. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11999. To add a readout of estimated remaining time to normal HTTP/FTP
  12000. downloads:
  12001. * src/ConsoleDownloadEngine.h (startup): New variable.
  12002. (startupLength): New variable.
  12003. (isStartupLengthSet): New variable.
  12004. (avgSpeed): New variable.
  12005. (eta): New variable.
  12006. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  12007. estimated remaining time.
  12008. (initStatistics): Initialized newly added variables.
  12009. (calculateStatistics): Calculate average speed and estimated remaining
  12010. time.
  12011. To decouple TorrentDownloadEngine from HttpResponseCommand:
  12012. * src/TrackerDownloadCommand.h: Removed.
  12013. * src/TrackerDownloadCommand.cc: Removed.
  12014. * src/TrackerInitCommand.h: Removed.
  12015. * src/TrackerInitCommand.cc: Removed.
  12016. * src/TrackerUpdateCommand.h: Removed.
  12017. * src/TrackerUpdateCommand.cc: Removed.
  12018. * src/TrackerWatcherCommand.cc (execute): The construction of request
  12019. url written in TrackerInitCommand was moved here. Do not create
  12020. tracker request command if torrentMan->trackers != 0.
  12021. * src/CompactTrackerResponseProcessor.h: New class.
  12022. * src/CompactTrackerResponseProcessor.cc: New class.
  12023. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  12024. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  12025. Decoupled TorrentDownloadEngine from this.
  12026. * src/SegmentMan.h (init): New function.
  12027. * src/SegmentMan.cc (init): New function.
  12028. * src/TorrentMan.h (responseProcessor): New variable.
  12029. (trackers): New variable.
  12030. (setTrackerResponseProcessor): New function.
  12031. (getTrackerResponseProcessor): New function.
  12032. (processTrackerResponse): New function.
  12033. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  12034. (processTrackerResponse): New function.
  12035. * src/main.cc (main): Use ByteArrayDiskWriter and
  12036. CompactTrackerResponseProcessor.
  12037. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  12038. processTrackerResponse().
  12039. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  12040. readout.
  12041. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  12042. which indicates download has completed.
  12043. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  12044. (closeFile): fd >= 0, not fd > 0
  12045. * src/main.cc (main): Added short cut for show-files.
  12046. Added short cut for torrent-file.
  12047. Added new command-line option listen-port.
  12048. Updated i18n messages.
  12049. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12050. To add LogFactory which creates singleton logger:
  12051. * src/LogFactory.h: New class.
  12052. * src/LogFactory.cc: New class.
  12053. * src/Command.h (logger): New variable.
  12054. (Constructor): Use LogFactory.
  12055. * src/AbstractCommand.cc: Use Command::logger
  12056. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  12057. Use LogFactory.
  12058. * src/SegmentSplitter.h : Made logger protected.
  12059. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  12060. * src/SegmentMan.cc (Constructor): Use LogFactory.
  12061. * src/DownloadEngine.h : Made logger protected.
  12062. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  12063. * src/PeerInteractionCommand.cc : Use Command::logger.
  12064. * src/HttpResponseCommand.cc : Use Command::logger.
  12065. * src/SegmentMan.h : Made logger private.
  12066. * src/TorrentMan.h : Made logger private.
  12067. * src/TorrentMan.cc : Use LogFactory.
  12068. * src/FtpNegotiateCommand.cc : Use Command::logger.
  12069. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  12070. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  12071. Use LogFactory.
  12072. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  12073. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  12074. Use LogFactory.
  12075. * src/DownloadCommand.cc : Use Command::logger.
  12076. * src/PeerAbstractCommand.cc : Use Command::logger.
  12077. * src/PeerListenCommand.cc : Use Command::logger.
  12078. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  12079. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  12080. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  12081. * src/TrackerWatcherCommand.cc : Use Command::logger.
  12082. * src/TrackerUpdateCommand.cc : Use Command::logger.
  12083. * src/TrackerDownloadCommand.cc : Use Command::logger.
  12084. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  12085. Use LogFactory.
  12086. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  12087. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  12088. Use LogFactory.
  12089. * src/main.cc (main): Use LogFactory.
  12090. * src/DiskAdaptor.h (logger): New variable.
  12091. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  12092. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  12093. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12094. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  12095. parameter to a tracker request.
  12096. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  12097. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  12098. * src/main.cc (setSignalHander): New function.
  12099. (main): Added a handler for SIGTERM.
  12100. (handler): Updated message.
  12101. (torrentHandler): Updated message.
  12102. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12103. * src/TorrentConsoleDownloadEngine.cc
  12104. (onPartialDownloadingCompletes): Renamed as
  12105. onSelectiveDownloadingCompletes.
  12106. (onSelectiveDownloadingCompletes): Updated message.
  12107. To add DiskAdaptor which abstract DiskWriter family:
  12108. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  12109. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  12110. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  12111. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  12112. MultiDiskAdaptor.h.
  12113. (readFileEntry): Changed its arguments.
  12114. (setup): setupDiskWriter is merged into this function.
  12115. (setupDiskWriter): Removed.
  12116. (setFileFilter): New function.
  12117. (readFileEntryFromMetaInfoFile): Updated according to the changes
  12118. made in readFileEntry.
  12119. (getFilePath): Removed.
  12120. (getTempFilePath): Removed.
  12121. (getSegmentFilePath): Updated due to the removal of getFilePath.
  12122. (fixFilename): Removed.
  12123. (copySingleFile): Removed.
  12124. (splitMultiFile): Removed.
  12125. (deleteTempFile): Removed.
  12126. (setFileEntriesToDownload): Removed.
  12127. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  12128. (isSelectiveDownloadingMode): New function.
  12129. (setAllMultiFileRequestedState): Removed.
  12130. (finishPartialDownloadingMode): Renamed as
  12131. finishSelectiveDownloadingMode.
  12132. (finishSelectiveDownloadingMode): New function.
  12133. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  12134. (getSelectedTotalLength): New function.
  12135. (onDownloadComplete): Use diskAdaptor.
  12136. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  12137. (Range): Removed.
  12138. (setMultiFileEntries): Renamed as setFileEntries.
  12139. (setFileEntries): New function.
  12140. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  12141. (pieceLength): New variable.
  12142. * src/main.cc (printDownloadCompeleteMessage): New function.
  12143. (torrentHandler): Use diskAdaptor instead of diskWriter.
  12144. (main): Renamed torrent-show-files to show-files.
  12145. Rewritten file contents listing.
  12146. * src/TorrentMan.h (FileEntry): Removed.
  12147. (multiFileTopDir): Removed.
  12148. (multiFileEntries): Removed.
  12149. (diskWriter): Removed.
  12150. (diskAdaptor): New variable.
  12151. * src/DefaultDiskWriter.h (totalLength): New variable.
  12152. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  12153. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  12154. diskWriter.
  12155. * src/TorrentConsoleDownloadEngine.h
  12156. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  12157. (partialTotalLength): Renamed as selectedTotalLength.
  12158. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  12159. openExistingFile, otherwise call initAndOpenFile.
  12160. (closeFile): fd > 0, not fd != 0.
  12161. * src/DirectDiskAdaptor.h: New class.
  12162. * src/DirectDiskAdaptor.cc: New class.
  12163. * src/MultiDiskAdaptor.h: New class.
  12164. * src/MultiDiskAdaptor.cc: New class.
  12165. * src/CopyDiskAdaptor.h: New class.
  12166. * src/CopyDiskAdaptor.cc: New class.
  12167. * src/DiskAdaptor.h: New class.
  12168. * src/DiskAdaptor.cc: New class.
  12169. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  12170. (PREF_SHOW_FILES): New definition.
  12171. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12172. To add the ability to download multi torrent into respective files
  12173. directly:
  12174. * src/DiskWriter.h (openFile): New function.
  12175. (seek): Removed.
  12176. * src/MultiDiskWriter.h: New class.
  12177. * src/MultiDiskWriter.cc: New class.
  12178. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  12179. protected.
  12180. (openFile): New function.
  12181. * src/AbstractDiskWriter.cc (openFile): New function.
  12182. * src/prefs.h (V_FALSE): New definition.
  12183. (PREF_DIRECT_FILE_MAPPING): New definition.
  12184. * src/TorrentMan.h (setupDiskWriter): New function.
  12185. (setAllMultiFileRequestedState): New function.
  12186. (onDownloadComplete): New function.
  12187. * src/TorrentMan.cc : Included MultiDiskWriter.h
  12188. (setupDiskWriter): New function.
  12189. (getFilePath): Updated.
  12190. (getTempFilePath): Updated.
  12191. (getSegmentFilePath): Updated.
  12192. (fixFilename): Updated.
  12193. (deleteTempFile): Updated.
  12194. (setAllMultiFileRequestedState): New function.
  12195. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  12196. (finishPartialDownloadingMode): Reset requested flags.
  12197. (onDownloadComplete): New function.
  12198. * src/main.cc: Added --direct-file-mapping option.
  12199. Use TorrentMan::setupDiskWriter().
  12200. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  12201. onDownloadComplete().
  12202. To fix ETA bug:
  12203. * src/Util.h (difftvsec): New function.
  12204. * src/Util.cc (difftvsec): New function.
  12205. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  12206. type of "elapsed" instead of long long int.
  12207. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  12208. The updates of statistics takes place every 1 seconds.
  12209. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  12210. (calculateSpeed): Changed its argument signature.
  12211. * src/PeerMessage.cc (toString): Fixed message.
  12212. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12213. To print ETA:
  12214. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  12215. completion handling when dealing with
  12216. TorrentMan::isPartialDownloadingMode() == true.
  12217. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  12218. New function.
  12219. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  12220. (sessionDownloadLength): New variable.
  12221. (avgSpeed): New variable.
  12222. (eta): New variable.
  12223. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  12224. new variables: eta, avgSpeed, startup.
  12225. (calculateSpeed): Calculate average speed and ETA.
  12226. (printStatistics): Added ETA.
  12227. * src/Util.h (secfmt): New function.
  12228. * src/Util.cc (secfmt): New function.
  12229. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12230. To detect "keep alive" flooding:
  12231. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  12232. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  12233. variable: keepAliveCount.
  12234. (detectMessageFlooding): Added "keep alive" flooding detection.
  12235. (receiveMessage): Increase keepAliveCount when "keep alive" message
  12236. received.
  12237. To add the ability to download only specified files in multi-file
  12238. torrent:
  12239. * src/BitfieldMan.h (filterBitfield): New variable.
  12240. (filterEnabled): New variable.
  12241. (setFilterBit): New function.
  12242. (enableFilter): New function.
  12243. (disableFilter): New function.
  12244. (isFilterEnabled): New function.
  12245. (getFilteredTotalLength): New function.
  12246. (getCompletedLength): New function.
  12247. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  12248. filterBitfield, filterEnabled.
  12249. (CopyConstructor): Added filterBitfield and filterEnabled.
  12250. (operator==): Added filterBitfield and filterEnabled.
  12251. (Destructor): Added filterBitfield.
  12252. (getMissingIndex): Use filterBitfield.
  12253. (getMissingUnusedIndex): Use filterBitfield.
  12254. (getFirstMissingUnusedIndex): Use filterBitfield.
  12255. (getFirstMissingUnusedIndex): Use filterBitfield.
  12256. (getAllMissingIndexes): Use filterBitfield.
  12257. (countMissingBlock): Use filterBitfield.
  12258. (countBlock): Use filterBitfield.
  12259. (setBitInternal): Added new argument on.
  12260. (setUseBit): Use setBitInternal.
  12261. (unsetUseBit): Use setBitInternal.
  12262. (setBit): Use setBitInternal.
  12263. (unsetBit): Use setBitInternal.
  12264. (isAllBitSet): Use filterBitfield.
  12265. (setFilterBit): New function.
  12266. (addFilter): New function.
  12267. (enableFilter): New function.
  12268. (disableFilter): New function.
  12269. (clearFilter): New function.
  12270. (isFilterEnabled): New function.
  12271. (getFilteredTotalLength): New function.
  12272. (getCompletedLength): New function.
  12273. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  12274. Initalized newly added variables.
  12275. [FileEntry](offset): New variable.
  12276. [FileEntry](extracted): New variable.
  12277. [FileEntry](requested): New variable.
  12278. (readFileEntry): New function.
  12279. (option): New variable.
  12280. (splitMultiFile): Removed const qualifier.
  12281. (fixFilename): Removed const qualifier.
  12282. (readFileEntryFromMetaInfoFile): New function.
  12283. (finishPartialDownloadingMode): New function.
  12284. (isPartialDownloadingMode): New function.
  12285. (setFileEntriesToDownload): New function.
  12286. (getCompletedLength): New function.
  12287. (getPartialTotalLength): New function.
  12288. * src/TorrentMan.cc (readFileEntry): New function.
  12289. (setup): Use readFileEntry. If no-preallocation option is specified,
  12290. use DefaultDiskWriter.
  12291. (readFileEntryFromMetaInfoFile): New function.
  12292. (fixFilename): Removed const qualifier.
  12293. (splitMultiFile): Removed const qualifier.
  12294. (setFileEntriesToDownload): New function.
  12295. (isPartialDownloadingMode): New function.
  12296. (finishPartialDownloadingMode): New function.
  12297. (getCompletedLength): New function.
  12298. (getPartialTotalLength): New function.
  12299. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  12300. New variable.
  12301. (partialTotalLength): New variable.
  12302. (downloadLength): New variable.
  12303. (totalLength): New variable.
  12304. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  12305. Added log.
  12306. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  12307. partialTotalLength, downloadLength, totalLength.
  12308. (calculate): Calculate downloadLength and totalLength.
  12309. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  12310. * src/main.cc (addCommand): Changed argument signature.
  12311. (main): Added new variable: args. Added new option "torrent-show-files"
  12312. "no-preallocation". Usage is not updated yet.
  12313. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12314. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  12315. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12316. Attempt to add the ability to listing file entries in a .torrent file.
  12317. This feature is not yet complete.
  12318. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  12319. * src/TorrentMan.cc (getMultiFileEntries): New function.
  12320. (getName): New function.
  12321. * src/TorrentMan.h (getMultiFileEntries): New function.
  12322. (getName): New function.
  12323. * src/main.cc (main): Use above 2 funtion.
  12324. * Release 0.3.2
  12325. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12326. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  12327. (detectMessageFlooding): Updated threshold value.
  12328. (checkLongTimePeerChoking): Updated timeout value.
  12329. (getNewPieceAndSendInterest): Added debug log.
  12330. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  12331. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  12332. (getPeer): Updated.
  12333. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  12334. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  12335. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  12336. is localhost.
  12337. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  12338. * src/PendingMessage.cc (processMessage): Not to send piece message
  12339. if peer is not interested in the pieces localhost has.
  12340. * src/Peer.cc (shouldChoke): Updated.
  12341. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  12342. * src/Util.cc (isPowerOf): New function.
  12343. * src/Util.h (isPowerOf): New function.
  12344. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  12345. whether or not it is power of 2.
  12346. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12347. Added new class SendMessageQueue that includes PendingMessages and
  12348. RequestSlotMan.
  12349. * src/SendMessageQueue.h: New class.
  12350. * src/SendMessageQueue.cc: New class.
  12351. * src/PendingMessage.h: Added new member variable blockIndex and its
  12352. accessors.
  12353. (createRequestMessage): Updated.
  12354. * src/PendingMessage.cc (createRequestMessage): Updated.
  12355. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  12356. SendMessageQueue.
  12357. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  12358. (receiveMessage): Updated with SendMessageQueue.
  12359. (deletePendingPieceMessage): Removed.
  12360. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  12361. (sendInterest): Updated with SendMessageQueue.
  12362. (createRequestPendingMessage): Updated with SendMessageQueue.
  12363. (sendMessages): Updated with SendMessageQueue.
  12364. (onAbort): Updated with SendMessageQueue.
  12365. (keepAlive): Updated with SendMessageQueue.
  12366. (beforeSocketCheck): Updated SendMessageQueue.
  12367. * src/PeerInteractionCommand (sendMessages): Shuffle
  12368. missingBLockIndexes before using it.
  12369. Added its own timeout for peer connection.
  12370. * src/PeerAbstractCommand.h: Added member variable timeout and its
  12371. setter.
  12372. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  12373. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  12374. Added setTimeout() call.
  12375. (executeInternal): Added setTimeout() call.
  12376. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  12377. Added timeout.
  12378. (isTimeoutDetected): Updated.
  12379. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  12380. option.
  12381. Added *simple* message flooding checker.
  12382. * src/PeerInteractionCommand.cc (executeInternal):
  12383. Added detectMessageFlooding() call.
  12384. (detectMessageFlooding): New function.
  12385. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  12386. (beforeSocketCheck): Added detectMessageFlooding() call.
  12387. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  12388. chokeUnchokeCount, haveCount, detectMessageFlooding().
  12389. Removed deletePendingPieceMessage(), getRequestSlot(),
  12390. deleteRequestSlot(), deleteAllRequestSlot().
  12391. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  12392. Added checkLongTimePeerChoking() call.
  12393. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  12394. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  12395. if duplicate == false.
  12396. The parameter "uploaded" and "downloaded" in the tracker request are
  12397. the size since the client sent the "started" event to the tracker.
  12398. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  12399. uploaded size to preDownloadedSize, preUploadedSize respectively.
  12400. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  12401. getSessionDownloadedSize(), getSessionUploadedSize().
  12402. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  12403. getSessionUploadedSize() instead of getDownloadedSize(),
  12404. getUploadedSize().
  12405. * src/PendingMessage.cc (processMessage): Do not send request message
  12406. if the peer is choking the client.
  12407. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  12408. less than interval.
  12409. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12410. * configure.in: Added gnutls support. Added several CPP macros.
  12411. * m4/openssl.m4: Added.
  12412. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  12413. readData(), peekData(). Added gnutls support.
  12414. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  12415. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  12416. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  12417. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  12418. Instead, added a check for whether setup method has executed
  12419. successfully.
  12420. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  12421. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  12422. * src/Makefile.am: Updated.
  12423. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  12424. using whether OpenSSL or gcrypt, depending on the result of configure
  12425. script.
  12426. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  12427. messageDigest.h.
  12428. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  12429. * src/PeerListenCommand.cc: Added log about port binded successfully.
  12430. Fixed memory leak.
  12431. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  12432. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  12433. Removed instantiation of TrackerInitCommand. Instead,
  12434. TrackerWatcherCommand is instantiated and pushed to the command queue.
  12435. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  12436. ENABLE_SSL.
  12437. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  12438. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  12439. If a piece is already acquired by another command, delete the request
  12440. slots for the piece.
  12441. * src/TrackerUpdateCommand.cc (execute):
  12442. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  12443. Added a check whether peer list is null.
  12444. Fixed the bug that causes sending completed event to the tracker
  12445. several times.
  12446. * src/TrackerInitCommand.cc (execute):
  12447. Fixed the bug that causes sending completed event to the tracker
  12448. several times.
  12449. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  12450. by using messageDigest.h.
  12451. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12452. * PeerConnection.cc: Replaced log message "keep-alive" with
  12453. "keep alive".
  12454. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  12455. localhost long time.
  12456. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  12457. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  12458. at most 100 failure entry from the list. If with duplicate = false,
  12459. MAX_PEER_LIST is not checked.
  12460. * PeerListenCommand.cc: Fixed the argument order of log message.
  12461. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12462. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  12463. Added warn().
  12464. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  12465. Implemented warn().
  12466. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  12467. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12468. * Request.h: Added AFTER_COMPLETED event.
  12469. * TorrentDownloadEngine.cc: Prints "Download complete" message
  12470. instead of downloaded size and progress(%) after download completes.
  12471. * PeerInteractionCommand.cc: After download completes, sends unchoke
  12472. message to the peer if it is interested in what localhost has
  12473. downloaded.
  12474. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  12475. destination instead of just renaming it.
  12476. * TorrentMan.cc: Added deleteTempFile().
  12477. * PeerAbstractCommand.cc: do not stop execution after download
  12478. completes. This makes localhost a seeder.
  12479. * Util.{h,cc}: Added fileCopy().
  12480. * PeerListenCommand.cc: do not stop execution after download completes.
  12481. This makes localhost a seeder.
  12482. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  12483. Added TorrentMan::deleteTempFile() to torrentHandler.
  12484. Initialized the variable dir as ".".
  12485. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  12486. Deleted renameSingleFile().
  12487. Added copySingleFile(), deleteTempFile().
  12488. * DownloadEngine.h: Added virtual function afterEachIteration().
  12489. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  12490. in onEndOfRun() to afterEachIteration().
  12491. In onEndOfRun(), changed if condition to check whether filenameFixed is
  12492. true.
  12493. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  12494. In rangedFileCopy(), added try-catch block to properly close file
  12495. descriptors.
  12496. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  12497. Added afterEachIteration(), isFilenameFixed().
  12498. * Peer.cc: Changed choking strategy.
  12499. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  12500. * TrackerInitCommand.cc: Send completed event only once.
  12501. * DownloadEngine.cc: Added a call to afterEachIteration().
  12502. * TrackerUpdateCommand.cc: Do not stop execution after download
  12503. completes.
  12504. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  12505. connect the peers at most MAX_PEER_UPDATE when a peer list is
  12506. received from a tracker.
  12507. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  12508. Decreased the number of failure peers to delete to 0(just comment out
  12509. the line).
  12510. * Release 0.3.1
  12511. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12512. * PeerInteractionCommand.cc: added a call to
  12513. TorrentMan::unadvertisePiece in Destructor.
  12514. * PeerInteractionCommand.cc: make have message sent immediately
  12515. if the size of pending message queue is zero.
  12516. * TorrentMan.cc: set the maximum size of peer list to 250.
  12517. * TorrentMan.h: changed the container type of Peers and UsedPieces
  12518. to deque.
  12519. * Util.cc: fixed rangedFileCopy.
  12520. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  12521. to Constructor. Also, moved digest cleanup to Destructor.
  12522. * MetaFileUtil.cc: fixed memory leak
  12523. * replaced std::vector with std::deque.
  12524. * AbstractCommand.cc: casted timeout value to long long int.
  12525. * ChunkedEncoding.cc: fixed memory leak.
  12526. * PeerInteractionCommand.cc: casted timeout value to long long int.
  12527. * SleepCommand.cc: casted timeout value to long long int.
  12528. * Data.cc: fixed memory leak.
  12529. * Data.cc: fixed toLLInt().
  12530. * BitfieldMan.cc: fixed memory leak.
  12531. * TorrentMan.cc: initialized storeDir to ".".
  12532. * TorrentMan.cc: fixed memory leak.
  12533. * TorrentMan.cc: corrected file paths of splitted files.
  12534. * PeerAbstractCommand.cc: casted timeout to long long int.
  12535. * main.cc: added delete(req) and delete(te->diskWriter).
  12536. * RequestSlot.cc: casted timeout value to long long int.
  12537. * Request.cc: fixed memory leak.
  12538. * PendingMessage.cc: make HAVE messages sent only when peer does not
  12539. have the piece.
  12540. * Peer.{h,cc}: added hasPiece(int index).
  12541. * main.cc: corrected addCommand.
  12542. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12543. * BitTorrent protocol support added.
  12544. * Release 0.3.0
  12545. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12546. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  12547. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12548. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  12549. decoding did not work properly.
  12550. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12551. * DownloadEngine.h: included sys/time.h
  12552. * DownloadEngine.cc: remove sys/time.h
  12553. * Makefile.am (SUBDIRS): Add intl.
  12554. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  12555. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12556. * main.cc: correct help message for --http-auth-scheme.
  12557. * main.cc: changed e-mail address for bug reports.
  12558. * ja.po: added japanese translation.
  12559. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12560. * SimpleLogger.cc: flush log file instead of stdout.
  12561. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12562. * main.cc: Fixed command-line option: max-tries
  12563. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  12564. does not equal to seg.sp.
  12565. * DownloadCommand.cc: If EOF is got from the server and the total size
  12566. of file is not zero, then throw DlRetryEx.
  12567. * main.cc: Set the minium value of min-segment-size to 1024.
  12568. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  12569. fails because of a regression since 0.2.0 release.
  12570. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12571. * HttpConnection.cc:
  12572. * common.h: defined the user agent name as macro
  12573. * DownloadEngine.{h, cc}:
  12574. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  12575. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  12576. * main.cc: Download complete/abort message is now generated by main.
  12577. * Makefile.am (SUBDIRS): Add m4.
  12578. (ACLOCAL_AMFLAGS): New variable.
  12579. (EXTRA_DIST): New variable.
  12580. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  12581. * gettext: added gettext functionality
  12582. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12583. * AbstractCommand.cc:
  12584. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  12585. unregister its cuid from SegmentMan.
  12586. * DownloadEngine.cc: .aria2 file was written when a downloading
  12587. failed with errors.
  12588. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  12589. Added "User-Agent" header to CONNECT proxy request.
  12590. Fixed "Proxy-Authorization" header. Now proxy authorization works
  12591. properly.
  12592. * Logger.h:
  12593. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  12594. * ChunkedEncoding.cc: Added #include directive for strings.h
  12595. * Release 0.2.1
  12596. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12597. * Util.{h,cc}: added startsWith().
  12598. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  12599. Util::endsWith().
  12600. * SocketCore.cc: struct addrinfo is now zero-initialized.
  12601. * common.h: added #include directive of limit.h.
  12602. * DownloadEngine.cc: added #include directive of sys/time.h and
  12603. algorithm.
  12604. * Exception.h: added #include directive of stdio.h.
  12605. * AbstractCommand.h: added #include directive of sys/time.h.
  12606. * DownloadCommand.h: added #include directive of sys/time.h.
  12607. * *.h: added #include directive of common.h to all base classes.
  12608. subclasses' one was removed.
  12609. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  12610. does not define these macros.
  12611. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12612. * Release 0.2.0
  12613. * main.cc:
  12614. * HttpInitiateConnectionCommand.{h,cc}:
  12615. * prefs.h:
  12616. * HttpConnection.{h,cc}: added --http-proxy-method option.
  12617. We can now use GET command in http proxy.
  12618. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12619. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  12620. that splits slowest segment of SegmentMan::commands vector.
  12621. This is the default split algorithm of aria2.
  12622. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  12623. that splits first segment of SegmentMan::commands vector.
  12624. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  12625. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  12626. * Segment.h:
  12627. * SegmentMan.cc: Added speed field to Segment.h
  12628. * main.cc: -s option now affects all URLs in command-line arguemtns.
  12629. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  12630. * message.h: Change file size related %d to %lld.
  12631. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12632. * FtpInitiateConnectionCommand.{h,cc}:
  12633. * FtpNegotiationCommand.{h,cc}:
  12634. * FtpDownloadCommand.{h,cc}:
  12635. * FtpConnection.{h,cc}: Added FTP support
  12636. * SimpleLogger.cc: Log message now includes time information.
  12637. * main.cc: The value of --http-auth-scheme option is chagned from
  12638. 'BASIC' to 'basic'
  12639. * main.cc: Added --timeout command-line option.
  12640. * main.cc: Added --min-segment-size command-line option.
  12641. * main.cc: Added --max-retries command-line option.
  12642. * prefs.h: option string constants are now defined in prefs.h
  12643. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12644. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  12645. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  12646. with version 0.1.0's one.
  12647. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12648. * configure.in: Added --enable-ssl option to configure script.
  12649. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  12650. cannot permit absoluteURI as Request-URI.
  12651. * HttpConnection.cc: Added Referer support.
  12652. * main.cc: Added referer command-line option.
  12653. * main.cc: Added rety-wait command-line option.
  12654. * Exception.h: Fixed formating bug in Exception::setMsg()
  12655. * SocketCore.{h,cc}:
  12656. * Socket.{h, cc}:
  12657. * Request.cc:
  12658. * InitiateConnectionCommandFactory.cc:
  12659. * HttpRequestCommand.cc: Added HTTPS support.
  12660. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  12661. for SocketCore.
  12662. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  12663. size is wrong
  12664. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  12665. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  12666. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  12667. * Release 0.1.0