ChangeLog 547 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294
  1. 2009-05-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2. Selecting files are now done in
  3. DefaultBtContext::setFileFileter().
  4. PieceStorage::setFileFilter(), DiskAdaptor::addDownloadEntry()
  5. functions are removed because they are no longer used. Creating
  6. filter in BitfieldMan is done in new funtion
  7. PieceStorage::setupFileFilter()
  8. * src/BtContext.cc
  9. * src/BtContext.h
  10. * src/DefaultBtContext.cc
  11. * src/DefaultBtContext.h
  12. * src/DefaultPieceStorage.cc
  13. * src/DefaultPieceStorage.h
  14. * src/DiskAdaptor.cc
  15. * src/DiskAdaptor.h
  16. * src/PieceStorage.h
  17. * src/RequestGroup.cc
  18. * src/UnknownLengthPieceStorage.h
  19. * src/XmlRpcMethodImpl.cc
  20. * test/DefaultBtContextTest.cc
  21. * test/MockBtContext.h
  22. * test/MockPieceStorage.h
  23. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  24. Fixed compile error on Mac OS X
  25. * src/HttpServer.cc
  26. * src/XmlRpcMethod.h
  27. * src/XmlRpcMethodImpl.cc
  28. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  29. Use std::binary_search instead of std::find
  30. * src/DefaultPieceStorage.cc
  31. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  32. Removed unnecessary BDE() call; leave them to implicit conversion.
  33. * src/XmlRpcMethodImpl.cc
  34. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  35. Return connections and gid in string
  36. * src/XmlRpcMethodImpl.cc
  37. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  38. Renamed addURI as addUri
  39. * src/XmlRpcMethodFactory.cc
  40. * src/XmlRpcMethodImpl.cc
  41. * src/XmlRpcMethodImpl.h
  42. * test/XmlRpcMethodTest.cc
  43. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  44. Renamed addTorrentFile as addTorrent
  45. * src/XmlRpcMethodFactory.cc
  46. * src/XmlRpcMethodImpl.cc
  47. * src/XmlRpcMethodImpl.h
  48. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  49. The information for files, URIs, peers are removed from the
  50. reponse of TellaActive, TellStatus command because they tend to be
  51. large. Instead they can be retrieved by the dedicated commands:
  52. getFiles, getUris and getPeers respectively.
  53. * src/XmlRpcMethodFactory.cc
  54. * src/XmlRpcMethodImpl.cc
  55. * src/XmlRpcMethodImpl.h
  56. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  57. Removed --max-overall-upload-limit and
  58. --max-overall-download-limit option from listRequestOptions.
  59. * src/download_helper.cc
  60. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  61. Log incoming host in HttpListenCommand.
  62. * src/HttpListenCommand.cc
  63. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  64. Added BASIC authentication for XML-RPC. Added --xml-rpc-user and
  65. --xml-rpc-passwd option.
  66. * src/HttpServer.cc
  67. * src/HttpServer.h
  68. * src/HttpServerCommand.cc
  69. * src/OptionHandlerFactory.cc
  70. * src/prefs.cc
  71. * src/prefs.h
  72. * src/usage_text.h
  73. 2009-05-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  74. Fixed the bug that SocketCore::isReadable() prevents aria2 from
  75. processing 0 length request.
  76. * src/HttpServerBodyCommand.cc
  77. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  78. Removed --enable-http-server and --http-server-listen-port
  79. options. Added --enable-xml-rpc and --xml-rpc-listen-port
  80. instead. The original feature for --enable-http-server that
  81. reports download progress in HTML was officially removed. Persist
  82. XML-RPC connection if client supports keep-alive.
  83. * src/DownloadEngineFactory.cc
  84. * src/HttpServerCommand.cc
  85. * src/HttpServerResponseCommand.cc
  86. * src/Makefile.am
  87. * src/Makefile.in
  88. * src/OptionHandlerFactory.cc
  89. * src/RequestGroupMan.cc
  90. * src/main.cc
  91. * src/option_processing.cc
  92. * src/prefs.cc
  93. * src/prefs.h
  94. * src/usage_text.h
  95. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  96. Added "uris" key to the response of tellStatus command. Added
  97. "connections" key to the response of tellStatus and tellActive
  98. command.
  99. * src/XmlRpcMethodImpl.cc
  100. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  101. Renamed TellActiveStatusXmlRpcMethod as TellActiveXmlRpcMethod.
  102. Added TellStatusXmlRpcMethod. Remove command can now remove
  103. waiting RequestGroup.
  104. * src/RequestGroupMan.cc
  105. * src/RequestGroupMan.h
  106. * src/XmlRpcMethodFactory.cc
  107. * src/XmlRpcMethodImpl.cc
  108. * src/XmlRpcMethodImpl.h
  109. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  110. Initialized _peerId
  111. * src/Peer.cc
  112. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  113. Return fault structure for error. FailXmlRpcMethod is renamed as
  114. NoSuchMethodXmlRpcMethod. pieceLength and numPieces are returned
  115. in non-torrent download. Return single param value.
  116. * src/XmlRpcMethod.cc
  117. * src/XmlRpcMethodFactory.cc
  118. * src/XmlRpcMethodImpl.cc
  119. * src/XmlRpcMethodImpl.h
  120. * test/XmlRpcMethodTest.cc
  121. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  122. Set DownloadResult::IN_PROGRESS for downloads removed by xml-rpc
  123. command.
  124. * src/RequestGroup.cc
  125. * src/RequestGroup.h
  126. * src/RequestGroupMan.cc
  127. * src/XmlRpcMethodImpl.cc
  128. * test/RequestGroupTest.cc
  129. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  130. Added more options that can be specified in -i list and xml-rpc
  131. add* command.
  132. * src/download_helper.h
  133. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  134. The available options in -i list should be listed in
  135. listRequestOptions().
  136. * src/download_helper.cc
  137. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  138. Added infoHash, pieceLength, numPieces value for tellActiveStatus
  139. command.
  140. * src/XmlRpcMethodImpl.cc
  141. 2009-05-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  142. Now RequestGroup has its own copy of Option object. This will help
  143. to give custom option for each RequestGroup.
  144. addTorrentFile command now takes options.
  145. * src/AbstractCommand.cc
  146. * src/AbstractCommand.h
  147. * src/AbstractProxyRequestCommand.cc
  148. * src/ActivePeerConnectionCommand.cc
  149. * src/ActivePeerConnectionCommand.h
  150. * src/AdaptiveURISelector.cc
  151. * src/BtCheckIntegrityEntry.cc
  152. * src/BtDependency.cc
  153. * src/BtDependency.h
  154. * src/BtFileAllocationEntry.cc
  155. * src/BtPostDownloadHandler.cc
  156. * src/CheckIntegrityEntry.cc
  157. * src/DownloadCommand.cc
  158. * src/FtpDownloadCommand.cc
  159. * src/FtpFinishDownloadCommand.cc
  160. * src/FtpInitiateConnectionCommand.cc
  161. * src/FtpNegotiationCommand.cc
  162. * src/HttpInitiateConnectionCommand.cc
  163. * src/HttpRequestCommand.cc
  164. * src/HttpResponseCommand.cc
  165. * src/HttpSkipResponseCommand.cc
  166. * src/InitiateConnectionCommand.cc
  167. * src/InitiateConnectionCommandFactory.cc
  168. * src/InitiatorMSEHandshakeCommand.cc
  169. * src/InitiatorMSEHandshakeCommand.h
  170. * src/Metalink2RequestGroup.cc
  171. * src/Metalink2RequestGroup.h
  172. * src/MetalinkPostDownloadHandler.cc
  173. * src/MultiUrlRequestInfo.cc
  174. * src/MultiUrlRequestInfo.h
  175. * src/PeerAbstractCommand.cc
  176. * src/PeerInteractionCommand.cc
  177. * src/PeerInteractionCommand.h
  178. * src/PeerReceiveHandshakeCommand.cc
  179. * src/PeerReceiveHandshakeCommand.h
  180. * src/RequestGroup.cc
  181. * src/RequestGroup.h
  182. * src/TrackerWatcherCommand.cc
  183. * src/TrackerWatcherCommand.h
  184. * src/XmlRpcMethod.cc
  185. * src/XmlRpcMethod.h
  186. * src/XmlRpcMethodImpl.cc
  187. * src/download_helper.cc
  188. * src/download_helper.h
  189. * src/main.cc
  190. * test/BtDependencyTest.cc
  191. * test/BtPostDownloadHandlerTest.cc
  192. * test/DefaultBtMessageDispatcherTest.cc
  193. * test/DownloadHandlerFactoryTest.cc
  194. * test/DownloadHelperTest.cc
  195. * test/Metalink2RequestGroupTest.cc
  196. * test/MetalinkPostDownloadHandlerTest.cc
  197. * test/RequestGroupManTest.cc
  198. * test/RequestGroupTest.cc
  199. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  200. Added tellActiveStatus xml-rpc command which reports download
  201. status of active downloads.
  202. * src/XmlRpcMethodFactory.cc
  203. * src/XmlRpcMethodImpl.cc
  204. * src/XmlRpcMethodImpl.h
  205. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  206. Added addTorrentFile xml-rpc command which receives uploaded
  207. torrent file and add download for it.
  208. * src/RequestGroupMan.cc
  209. * src/XmlRpcMethodFactory.cc
  210. * src/XmlRpcMethodImpl.cc
  211. * src/XmlRpcMethodImpl.h
  212. * src/download_helper.cc
  213. * src/download_helper.h
  214. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  215. Added remove xml-rpc command which removes specified download.
  216. There is a known issue: the removed unfinished downloads are
  217. reported ERR when aria2 exits. They should be reported as INPR.
  218. * src/RequestGroupMan.cc
  219. * src/RequestGroupMan.h
  220. * src/XmlRpcMethodFactory.cc
  221. * src/XmlRpcMethodImpl.cc
  222. * src/XmlRpcMethodImpl.h
  223. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  224. If --enable-http-server is enabled, don't stop aria2 when all
  225. download finished and don't quit when no files to download at
  226. start up.
  227. * src/RequestGroupMan.cc
  228. * src/main.cc
  229. * src/option_processing.cc
  230. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  231. Added missing AM_CONDITIONAL
  232. * configure.ac
  233. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  234. Added xml-rpc functionality. Currently only addURI commad is
  235. supported. To enable xml-rpc, run aria2 with
  236. --enable-http-server. This option name is temporal and will be
  237. changed. The feature that reports download progress in html format
  238. is temporarily disabled.
  239. * src/HttpServer.cc
  240. * src/HttpServer.h
  241. * src/HttpServerBodyCommand.cc
  242. * src/HttpServerBodyCommand.h
  243. * src/HttpServerCommand.cc
  244. * src/HttpServerResponseCommand.cc
  245. * src/Makefile.am
  246. * src/OptionParser.cc
  247. * src/OptionParser.h
  248. * src/RequestGroupMan.cc
  249. * src/RequestGroupMan.h
  250. * src/XmlRpcMethod.cc
  251. * src/XmlRpcMethod.h
  252. * src/XmlRpcMethodFactory.cc
  253. * src/XmlRpcMethodFactory.h
  254. * src/XmlRpcMethodImpl.cc
  255. * src/XmlRpcMethodImpl.h
  256. * src/download_helper.cc
  257. * src/download_helper.h
  258. * test/Makefile.am
  259. * test/XmlRpcMethodTest.cc
  260. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  261. Added xml-rpc request parser. The supported value types are:
  262. i4/int, string, double, struct, array, base64. Currently only
  263. libxml2 version is provided.
  264. * src/Xml2XmlRpcRequestProcessor.cc
  265. * src/Xml2XmlRpcRequestProcessor.h
  266. * src/XmlRpcElements.cc
  267. * src/XmlRpcElements.h
  268. * src/XmlRpcRequest.h
  269. * src/XmlRpcRequestParserController.cc
  270. * src/XmlRpcRequestParserController.h
  271. * src/XmlRpcRequestParserState.h
  272. * src/XmlRpcRequestParserStateImpl.cc
  273. * src/XmlRpcRequestParserStateImpl.h
  274. * src/XmlRpcRequestParserStateMachine.cc
  275. * src/XmlRpcRequestParserStateMachine.h
  276. * src/XmlRpcRequestProcessor.h
  277. * test/XmlRpcRequestParserControllerTest.cc
  278. * test/XmlRpcRequestProcessorTest.cc
  279. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  280. * Release 1.3.3
  281. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  282. Fixed compile error since r1202.
  283. * src/ExpatMetalinkProcessor.cc
  284. 2009-05-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  285. Updated Ukrainian, Russian and Simplified Chinese
  286. translations. Thanks to all translators.
  287. * po/ru.po
  288. * po/uk.po
  289. * po/zh_CN.po
  290. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  291. Pass reference of Option object instead of pointer.
  292. * src/download_helper.cc
  293. * src/download_helper.h
  294. * src/main.cc
  295. * test/DownloadHelperTest.cc
  296. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  297. Don't retrieve PREF_MAX_DOWNLOAD_LIMIT and PREF_MAX_UPLOAD_LIMIT
  298. from option directly. Instead, get them from RequestGroup.
  299. * src/ActivePeerConnectionCommand.cc
  300. * src/ActivePeerConnectionCommand.h
  301. * src/PeerReceiveHandshakeCommand.cc
  302. * src/RequestGroup.h
  303. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  304. Removed unused uploadLimitCheck and uploadLimit from
  305. PeerAbstractCommand. Removed unused maxDownloadLimit from
  306. PeerInteractionCommand.
  307. * src/PeerAbstractCommand.cc
  308. * src/PeerAbstractCommand.h
  309. * src/PeerInteractionCommand.cc
  310. * src/PeerInteractionCommand.h
  311. 2009-05-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  312. Fixed broken file renaming feature since r1202.
  313. * src/FtpNegotiationCommand.cc
  314. * src/FtpNegotiationCommand.h
  315. * src/HttpResponseCommand.cc
  316. * src/RequestGroup.cc
  317. * src/RequestGroup.h
  318. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  319. Removed unused debug log
  320. * src/SocketCore.cc
  321. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  322. Generated configure and Makefile.in using autoconf 2.63 and
  323. automake 1.10.2. Removed AC_GNU_SOURCE from configure.ac because
  324. it is subset of AC_USE_SYSTEM_EXTENSIONS and we use latter.
  325. * configure.ac
  326. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  327. Moved piece statistics stuff to new PieceStatMan class.
  328. Refactored PieceSelector interface.
  329. * src/DefaultPieceStorage.cc
  330. * src/DefaultPieceStorage.h
  331. * src/LongestSequencePieceSelector.cc
  332. * src/LongestSequencePieceSelector.h
  333. * src/Makefile.am
  334. * src/PieceSelector.h
  335. * src/PieceStatMan.cc
  336. * src/PieceStatMan.h
  337. * src/RarestPieceSelector.cc
  338. * src/RarestPieceSelector.h
  339. * src/RequestGroup.cc
  340. * test/DefaultPieceStorageTest.cc
  341. * test/InOrderPieceSelector.h
  342. * test/Makefile.am
  343. * test/PieceStatManTest.cc
  344. * test/RarestPieceSelectorTest.cc
  345. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  346. Added static member _protocolFamily to SocketCore. By default,
  347. SocketCore uses AF_UNSPEC for getaddrinfo hints to resolve
  348. address. Sometime SocketCore::bind() and
  349. SocketCore::establishConnection() use difference protocl family
  350. and latter cannot connect to former. To avoid this situation, we
  351. limit protocol family to AF_INET for unit tests.
  352. * src/SocketCore.cc
  353. * src/SocketCore.h
  354. * test/AllTest.cc
  355. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  356. Avoid std::bad_alloc for negative bencode string length.
  357. * src/bencode.cc
  358. 2009-05-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  359. Supported segmented downloading with chunked transfer encoding and
  360. content-length.
  361. * src/DownloadCommand.cc
  362. * src/HttpResponseCommand.cc
  363. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  364. Bump up version number to 1.3.3
  365. * configure.ac
  366. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  367. Applied Pascal Bleser's patch: increases MAX_RECV_BUFFER for ftp
  368. from 4096 to 65536 (for insanely large ftp login banners)
  369. * src/FtpConnection.h
  370. * test/FtpConnectionTest.cc
  371. 2009-05-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  372. In DefaultBtContext::getActualBasePath(), return first
  373. FileEntry::getPath() for single file torrent.
  374. * src/DefaultBtContext.cc
  375. * test/DefaultBtContextTest.cc
  376. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  377. Removed directIOAllowed() from BinaryStream, DiskWriter,
  378. DiskAdaptor. setDirectIOAllowed() was renamed as allowDirectIO().
  379. Removed _directIOAllowed member from DiskWriter.
  380. * src/AbstractDiskWriter.cc
  381. * src/AbstractDiskWriter.h
  382. * src/AbstractSingleDiskAdaptor.cc
  383. * src/AbstractSingleDiskAdaptor.h
  384. * src/BinaryStream.h
  385. * src/ByteArrayDiskWriter.h
  386. * src/DefaultPieceStorage.cc
  387. * src/DiskWriter.h
  388. * src/MultiDiskAdaptor.cc
  389. * src/MultiDiskAdaptor.h
  390. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  391. Now the constructor of AbstractDiskWriter takes filename as an
  392. argument and filename argument is removed from openFile(),
  393. initAndOpenFile(), openExistingFile() interface. storeDir member
  394. and its accessor functions are removed from DiskAdaptor because it
  395. is not used anymore. size() member function of DefaultDiskWriter,
  396. DirectDiskAdaptor and MultiDiskAdaptor now can be called without
  397. opening file.
  398. * src/AbstractDiskWriter.cc
  399. * src/AbstractDiskWriter.h
  400. * src/AbstractSingleDiskAdaptor.cc
  401. * src/AbstractSingleDiskAdaptor.h
  402. * src/ByteArrayDiskWriter.cc
  403. * src/ByteArrayDiskWriter.h
  404. * src/ByteArrayDiskWriterFactory.cc
  405. * src/ByteArrayDiskWriterFactory.h
  406. * src/DefaultDiskWriter.cc
  407. * src/DefaultDiskWriter.h
  408. * src/DefaultDiskWriterFactory.cc
  409. * src/DefaultDiskWriterFactory.h
  410. * src/DefaultPieceStorage.cc
  411. * src/DirectDiskAdaptor.cc
  412. * src/DirectDiskAdaptor.h
  413. * src/DiskAdaptor.h
  414. * src/DiskWriter.h
  415. * src/DiskWriterFactory.h
  416. * src/MessageDigestHelper.cc
  417. * src/MultiDiskAdaptor.cc
  418. * src/RequestGroup.cc
  419. * src/UnknownLengthPieceStorage.cc
  420. * src/Util.cc
  421. * test/DefaultDiskWriterTest.cc
  422. * test/DirectDiskAdaptorTest.cc
  423. * test/FallocFileAllocationIteratorTest.cc
  424. * test/MessageDigestHelperTest.cc
  425. * test/MetalinkProcessorTest.cc
  426. * test/MultiDiskAdaptorTest.cc
  427. * test/MultiFileAllocationIteratorTest.cc
  428. * test/SingleFileAllocationIteratorTest.cc
  429. * test/UtilTest.cc
  430. 2009-05-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  431. Fixed the bug that aria2 aborts when --select-file is used. This
  432. bug was introduced in r1199.
  433. * src/MultiDiskAdaptor.cc
  434. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  435. Code cleanup
  436. * test/MockPieceStorage.cc
  437. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  438. Fixed the bug that read-only file with wrong file size will cause
  439. error because it cannot be truncated to the correct size. Now if
  440. file size is different than the expected one, re-open file in
  441. writable mode.
  442. * src/AbstractSingleDiskAdaptor.cc
  443. * src/AbstractSingleDiskAdaptor.h
  444. * src/BtCheckIntegrityEntry.cc
  445. * src/DiskAdaptor.h
  446. * src/MultiDiskAdaptor.h
  447. * src/RequestGroup.cc
  448. 2009-05-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  449. Fixed the bug that with --check-integrity option aria2 reports
  450. downloaded file size is 0 even if some parts of file is correctly
  451. downloaded. This bug is reproducible for the download that a file
  452. includes last piece is missing. This bug doesn't reveal for
  453. single-torrent with file allocation on.
  454. * src/IteratableChecksumValidator.cc
  455. * test/IteratableChecksumValidatorTest.cc
  456. 2009-05-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  457. Avoid circular reference between RequestGroup and AdaptiveURISelector
  458. * src/RequestGroupMan.cc
  459. * src/AdaptiveURISelector.cc
  460. * src/AdaptiveURISelector.h
  461. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  462. * Release 1.3.2
  463. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  464. Updated README
  465. * README
  466. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  467. Updated Ukrainian translations. Thanks to Alexander10.
  468. * po/uk.po
  469. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  470. Code cleanup
  471. * src/MetalinkParserStateMachine.cc
  472. * src/MetalinkParserStateMachine.h
  473. 2009-04-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  474. Removed MetalinkProcessorFactory. Since we don't use both libxml2
  475. and expat simultaneously, MetalinkProcessor is now not base class
  476. and it is directly implemented in XML2SAXMetalinkProcessor and
  477. ExpatMetalinkProcessor.
  478. * src/ExpatMetalinkProcessor.cc
  479. * src/ExpatMetalinkProcessor.h
  480. * src/Makefile.am
  481. * src/MetalinkHelper.cc
  482. * src/MetalinkProcessor.h
  483. * src/MetalinkProcessorFactory.cc: Removed.
  484. * src/MetalinkProcessorFactory.h: Removed
  485. * src/XML2SAXMetalinkProcessor.cc
  486. * src/XML2SAXMetalinkProcessor.h
  487. * test/MetalinkProcessorTest.cc
  488. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  489. Bump up version number to 1.3.2
  490. * configure.ac
  491. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  492. Added missing file.
  493. * test/Makefile.am
  494. * test/url-list-singleFileEndsWithSlash.torrent
  495. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  496. Put BDE in aria2 namespace. BDE will also be used to store xml-rpc
  497. request.
  498. * src/AnnounceList.cc
  499. * src/AnnounceList.h
  500. * src/BDE.cc: Added
  501. * src/BDE.h: Added
  502. * src/DHTAbstractMessage.cc
  503. * src/DHTAbstractMessage.h
  504. * src/DHTAnnouncePeerMessage.cc
  505. * src/DHTAnnouncePeerMessage.h
  506. * src/DHTAnnouncePeerReplyMessage.cc
  507. * src/DHTAnnouncePeerReplyMessage.h
  508. * src/DHTFindNodeMessage.cc
  509. * src/DHTFindNodeMessage.h
  510. * src/DHTFindNodeReplyMessage.cc
  511. * src/DHTFindNodeReplyMessage.h
  512. * src/DHTGetPeersMessage.cc
  513. * src/DHTGetPeersMessage.h
  514. * src/DHTGetPeersReplyMessage.cc
  515. * src/DHTGetPeersReplyMessage.h
  516. * src/DHTMessageFactory.h
  517. * src/DHTMessageFactoryImpl.cc
  518. * src/DHTMessageFactoryImpl.h
  519. * src/DHTMessageReceiver.cc
  520. * src/DHTMessageTracker.cc
  521. * src/DHTMessageTracker.h
  522. * src/DHTPingMessage.cc
  523. * src/DHTPingMessage.h
  524. * src/DHTPingReplyMessage.cc
  525. * src/DHTPingReplyMessage.h
  526. * src/DHTQueryMessage.cc
  527. * src/DHTQueryMessage.h
  528. * src/DHTResponseMessage.cc
  529. * src/DHTResponseMessage.h
  530. * src/DefaultBtAnnounce.cc
  531. * src/DefaultBtContext.cc
  532. * src/DefaultBtContext.h
  533. * src/HandshakeExtensionMessage.cc
  534. * src/Makefile.am
  535. * src/PeerListProcessor.h
  536. * src/UTPexExtensionMessage.cc
  537. * src/bencode.cc
  538. * src/bencode.h
  539. * test/AnnounceListTest.cc
  540. * test/BDETest.cc: Added
  541. * test/BencodeTest.cc
  542. * test/DHTAnnouncePeerMessageTest.cc
  543. * test/DHTAnnouncePeerReplyMessageTest.cc
  544. * test/DHTFindNodeMessageTest.cc
  545. * test/DHTFindNodeReplyMessageTest.cc
  546. * test/DHTGetPeersMessageTest.cc
  547. * test/DHTGetPeersReplyMessageTest.cc
  548. * test/DHTMessageFactoryImplTest.cc
  549. * test/DHTMessageTrackerTest.cc
  550. * test/DHTPingMessageTest.cc
  551. * test/DHTPingReplyMessageTest.cc
  552. * test/Makefile.am
  553. * test/MockDHTMessageFactory.h
  554. * test/PeerListProcessorTest.cc
  555. 2009-04-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  556. Use url-list (web-seeding) only for single-file torrent. This is
  557. basically the same behavior with Metalink file with torrent and
  558. URIs.
  559. * src/RequestGroup.cc
  560. * src/DefaultBtContext.cc
  561. * test/DefaultBtContextTest.cc
  562. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  563. Rewritten expr
  564. * src/array_fun.h
  565. * test/array_funTest.cc
  566. 2009-04-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  567. Added forEachMemFunSH(). Use it in BitTorrent event dispatch.
  568. * src/DefaultBtMessageDispatcher.cc
  569. * src/a2algo.h
  570. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  571. Removed ExtendedMessagingAware. Instead of using inheritance,
  572. added ExtensionMessageRegistry and it is passed to
  573. DefaultExtensionMessageFactory.
  574. * src/DefaultBtInteractive.cc
  575. * src/DefaultBtInteractive.h
  576. * src/DefaultExtensionMessageFactory.cc
  577. * src/DefaultExtensionMessageFactory.h
  578. * src/ExtendedMessagingAware.h: Removed.
  579. * src/ExtensionMessageFactory.h
  580. * src/ExtensionMessageRegistry.h: Added.
  581. * src/Makefile.am
  582. * src/PeerInteractionCommand.cc
  583. * test/DefaultExtensionMessageFactoryTest.cc
  584. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  585. Fixed typo in log messages
  586. * src/MSEHandshake.cc
  587. 2009-04-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  588. Fixed the bug that prevents torrent download from finishing. The
  589. bug doesn't reveal for all torrents. The torrents affected this
  590. bug satisfies ((N+7)/8)%4 == 0 and N%32 != 0 where N is the number
  591. of pieces.
  592. * src/bitfield.h
  593. * test/bitfieldTest.cc
  594. 2009-04-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  595. Code cleanup
  596. * src/PeerListProcessor.h
  597. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  598. Removed RequestGroupAware
  599. * src/AbstractCommand.cc
  600. * src/AbstractCommand.h
  601. * src/ActivePeerConnectionCommand.cc
  602. * src/ActivePeerConnectionCommand.h
  603. * src/DHTGetPeersCommand.cc
  604. * src/DHTGetPeersCommand.h
  605. * src/InitiatorMSEHandshakeCommand.cc
  606. * src/InitiatorMSEHandshakeCommand.h
  607. * src/Makefile.am
  608. * src/PeerInitiateConnectionCommand.cc
  609. * src/PeerInitiateConnectionCommand.h
  610. * src/PeerInteractionCommand.cc
  611. * src/PeerInteractionCommand.h
  612. * src/RealtimeCommand.cc
  613. * src/RealtimeCommand.h
  614. * src/RequestGroupAware.cc: Removed
  615. * src/RequestGroupAware.h: Removed
  616. * src/SeedCheckCommand.cc
  617. * src/SeedCheckCommand.h
  618. * src/SleepCommand.cc
  619. * src/TrackerWatcherCommand.cc
  620. * src/TrackerWatcherCommand.h
  621. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  622. Rewritten PeerListProcessor
  623. * src/PeerListProcessor.h
  624. * src/CompactPeerListProcessor.h: Removed
  625. * src/CompactPeerListProcessor.cc: Removed
  626. * src/DelegatingPeerListProcessor.cc: Removed.
  627. * src/DefaultBtAnnounce.cc
  628. * src/Makefile.am
  629. * src/UTPexExtensionMessage.cc
  630. * src/DefaultPeerListProcessor.h: Removed.
  631. * src/DefaultPeerListProcessor.cc: Removed.
  632. * src/DelegatingPeerListProcessor.h: Removed.
  633. * test/Makefile.am
  634. * test/PeerListProcessorTest.cc
  635. * test/DefaultPeerListProcessorTest.cc: Removed.
  636. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  637. Rewritten RequestGroupMan::calculateStat()
  638. * src/RequestGroupMan.cc
  639. 2009-04-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  640. Removed unnecessary virtual destructor for Request class.
  641. * src/Request.cc
  642. * src/Request.h
  643. 2009-04-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  644. Avoid dynamic_pointer_cast.
  645. * src/DHTGetPeersCommand.cc
  646. * src/DHTGetPeersCommand.h
  647. 2009-04-21 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  648. Rewritten event dispatch in BtMessage. Removed BtEventListener,
  649. BtEvent.
  650. * src/AbstractBtEventListener.h: Removed.
  651. * src/AbstractBtMessage.cc
  652. * src/AbstractBtMessage.h
  653. * src/BtAbortOutstandingRequestEvent.h
  654. * src/BtCancelSendingPieceEvent.h
  655. * src/BtChokedEvent.h: Removed.
  656. * src/BtChokingEvent.h
  657. * src/BtEvent.h: Removed
  658. * src/BtEventListener.h: Removed.
  659. * src/BtMessage.h
  660. * src/BtPieceMessage.cc
  661. * src/BtPieceMessage.h
  662. * src/BtRequestMessage.cc
  663. * src/BtRequestMessage.h
  664. * src/DefaultBtMessageDispatcher.cc
  665. * src/Makefile.am
  666. * src/a2functional.h
  667. * test/BtPieceMessageTest.cc
  668. * test/BtRequestMessageTest.cc
  669. * test/DefaultBtMessageDispatcherTest.cc
  670. * test/MockBtMessage.h
  671. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  672. Code cleanup
  673. * src/RequestGroupMan.cc
  674. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  675. Code cleanup
  676. * src/DownloadCommand.cc
  677. 2009-04-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  678. Fixed segmentation fault when GZipDecoder::decode() returns 0
  679. byte.
  680. * src/DownloadCommand.cc
  681. * src/bitfield.h
  682. * test/bitfieldTest.cc
  683. Fixed the bug that causes infinite loop if broken web server
  684. returns chunked response without last "0" chunk-size marker and
  685. closes connection.
  686. * src/DownloadCommand.cc
  687. Instantiate properly configured HttpDownloadCommand for
  688. non-resumable downlaods.
  689. * src/HttpResponseCommand.cc
  690. 2009-04-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  691. Rewritten array operation functions.
  692. * src/BitfieldMan.cc
  693. * src/array_fun.h
  694. * test/array_funTest.cc
  695. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  696. Removed unused variable 'query'
  697. * src/Request.cc
  698. 2009-04-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  699. Set conditional HAVE_GETADDRINFO true for mingw32. It was
  700. accidentally set to false in r1162.
  701. * configure.ac
  702. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  703. Code cleanup
  704. * src/BNode.cc
  705. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  706. Increase prefixLength for the bucket which doesn't own local node
  707. ID when splitting bucket.
  708. * src/DHTBucket.cc
  709. * test/DHTBucketTest.cc
  710. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  711. * Release 1.3.1
  712. 2009-04-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  713. Bump up version number to 1.3.1
  714. * configure.ac
  715. 2009-04-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  716. Removed unused variable checkPoint. Also removed include directive
  717. for TimeA2.h.
  718. * src/SeedCheckCommand.h
  719. 2009-04-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  720. Fixed the bug that upload limit exceeds the value specified in
  721. --seed-ratio option depending on the timing of the execution of
  722. SeedCheckCommand.
  723. * src/SeedCheckCommand.cc
  724. 2009-04-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  725. Fixed the bug that removed peer's session upload/download length
  726. are counted twice in _cachedTransferStat before it is
  727. re-calculated. This affected the calculation of shara ratio,
  728. resulting aria2 wrongly determines that specified share ratio is
  729. reached. Also fixed the typo in calculateStatFor function name.
  730. * src/BtSetup.cc
  731. * src/DefaultPeerStorage.cc
  732. * src/ShareRatioSeedCriteria.h
  733. * test/ShareRatioSeedCriteriaTest.cc
  734. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  735. * Release 1.3.0
  736. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  737. Updated Russian, Japanese, Spanish, Ukrainian and Norwegian
  738. Nynorsk translations. Thanks to all translators.
  739. * po/es.po
  740. * po/ja.po
  741. * po/nn.po
  742. * po/ru.po
  743. * po/uk.po
  744. 2009-04-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  745. Rewritten isInRange()
  746. * src/DHTBucket.cc
  747. * test/DHTBucketTest.cc
  748. 2009-03-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  749. Fixed typo
  750. * doc/aria2c.1.txt
  751. 2009-03-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  752. Removed AC_FUNC_MALLOC and AC_FUNC_REALLOC because 0-byte
  753. malloc/realloc is not used.
  754. * src/configure.ac
  755. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  756. BitfieldMan::getMissingIndexes family functions now takes unsigned
  757. char* bitfield instead of stl container for efficiency.
  758. PieceSelector::select now takes this
  759. bitfield. RarestPieceSelector::select now also performs
  760. efficiently for this change. bitfield namespace is introduced and
  761. it has several helper functions to handle basic bitfield
  762. operations such as test, count set bits, etc.
  763. * src/BitfieldMan.cc
  764. * src/BitfieldMan.h
  765. * src/DefaultBtRequestFactory.cc
  766. * src/DefaultPieceStorage.cc
  767. * src/DefaultPieceStorage.h
  768. * src/LongestSequencePieceSelector.cc
  769. * src/LongestSequencePieceSelector.h
  770. * src/Makefile.am
  771. * src/Piece.cc
  772. * src/Piece.h
  773. * src/PieceSelector.h
  774. * src/RarestPieceSelector.cc
  775. * src/RarestPieceSelector.h
  776. * src/Util.cc
  777. * src/Util.h
  778. * src/bitfield.h
  779. * test/BitfieldManTest.cc
  780. * test/LongestSequencePieceSelectorTest.cc
  781. * test/Makefile.am
  782. * test/RarestPieceSelectorTest.cc
  783. * test/UtilTest.cc
  784. * test/bitfieldTest.cc
  785. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  786. Made accepted socket non-block.
  787. * src/FtpNegotiationCommand.cc
  788. * src/HttpListenCommand.cc
  789. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  790. Guarded #ifdef HAVE_POSIX_FALLOCATE
  791. * src/AbstractSingleDiskAdaptor.cc
  792. * src/DefaultPieceStorage.cc
  793. * src/DiskAdaptor.h
  794. * src/DiskAdaptor.h
  795. * src/MultiFileAllocationIterator.cc
  796. 2009-03-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  797. Run
  798. DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing()
  799. in every 1 sec. The timeout of RequestSlot is 60s by default and
  800. it doesn't need to be called every time when
  801. DefaultBtInteractive::doInteractionProcessing() is called.
  802. * src/DefaultBtInteractive.cc
  803. * src/DefaultBtInteractive.h
  804. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  805. Documented 'falloc' in man page.
  806. * doc/aria2c.1.txt
  807. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  808. Updated doc
  809. * src/usage_text.h
  810. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  811. Added 'falloc' parameter for --file-allocation option. 'falloc'
  812. allocation mode uses posix_fallocate() system call to allocate
  813. file on disk. If you are using newer file systems such as ext4
  814. (with extents support), btrfs or xfs, 'falloc' is your best
  815. choice. It allocates large(few GiB) files almost instantly. Don't
  816. use 'falloc' with legacy file systems such as ext3 because it
  817. takes almost same time as 'prealloc' and it blocks aria2 entirely
  818. until allocation finishes. 'falloc' may not be available if your
  819. system doesn't have posix_fallocate() system call.
  820. * configure.ac
  821. * src/AbstractDiskWriter.cc
  822. * src/AbstractDiskWriter.h
  823. * src/AbstractSingleDiskAdaptor.cc
  824. * src/BinaryStream.h
  825. * src/BtCheckIntegrityEntry.cc
  826. * src/ByteArrayDiskWriter.h
  827. * src/CheckIntegrityEntry.cc
  828. * src/CheckIntegrityEntry.h
  829. * src/DefaultPieceStorage.cc
  830. * src/DiskAdaptor.cc
  831. * src/DiskAdaptor.h
  832. * src/DiskWriter.h
  833. * src/FallocFileAllocationIterator.cc
  834. * src/FallocFileAllocationIterator.h
  835. * src/FileAllocationEntry.cc
  836. * src/FileAllocationEntry.h
  837. * src/Makefile.am
  838. * src/MultiFileAllocationIterator.cc
  839. * src/MultiFileAllocationIterator.h
  840. * src/OptionHandlerFactory.cc
  841. * src/RequestGroup.cc
  842. * src/StreamCheckIntegrityEntry.cc
  843. * src/prefs.cc
  844. * src/prefs.h
  845. * src/usage_text.h
  846. * test/FallocFileAllocationIteratorTest.cc
  847. * test/Makefile.am
  848. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  849. Removed duplicate enableDirectIO() call.
  850. * src/MultiFileAllocationIterator.cc
  851. 2009-03-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  852. Replaced std::vector<SharedHandle<PieceStats> _sortedPieceStats
  853. with std::vector<size_t> _sortedPieceStatIndexes to reduce the
  854. cost of std::rotate().
  855. * src/RarestPieceSelector.cc
  856. * src/RarestPieceSelector.h
  857. * test/RarestPieceSelectorTest.cc
  858. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  859. Updated usage doc for --bt-tracker-interval option.
  860. * src/usage_text.h
  861. * doc/aria2c.1.txt
  862. 2009-03-22 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  863. Documented --bt-tracker-interval option in man page.
  864. * doc/aria2c.1.txt
  865. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  866. Added an option to specify the interval between tracker requests.
  867. If non-zero value is specified, aria2 uses it and ignores the
  868. interval value in the response of tracker. If zero is specified,
  869. aria2 determines the inteval value based on the tarcker response
  870. and download progress.
  871. * src/DefaultBtAnnounce.cc
  872. * src/DefaultBtAnnounce.h
  873. * src/OptionHandlerFactory.cc
  874. * src/RequestGroup.cc
  875. * src/prefs.cc
  876. * src/prefs.h
  877. * src/usage_text.h
  878. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  879. Added operator+=, operator-=, operator-
  880. * src/TransferStat.cc
  881. * src/TransferStat.h
  882. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  883. Refactored RarestPieceSelector to reduce CPU load, especially for
  884. addPieceStats.
  885. * src/RarestPieceSelector.cc
  886. * src/RarestPieceSelector.h
  887. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  888. Refactored getMissingIndexRandomly, getFirstMissingIndex,
  889. getAllMissingBlockIndexes to reduce a call to
  890. array_function_base::operator[].
  891. * src/BitfieldMan.cc
  892. 2009-03-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  893. Cached TransferStat/download speed to avoid to sum them up in each
  894. call.
  895. * src/DefaultPeerStorage.cc
  896. * src/DefaultPeerStorage.h
  897. * src/SegmentMan.cc
  898. * src/SegmentMan.h
  899. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  900. Typedefed cuid_t as int32_t in Command.h
  901. * src/CUIDCounter.h
  902. * src/Command.cc
  903. * src/Command.h
  904. * src/DownloadEngine.cc
  905. * src/DownloadEngine.h
  906. * src/PeerStat.h
  907. * src/SegmentMan.cc
  908. * src/SegmentMan.h
  909. 2009-03-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  910. Reduced the number of calls to PeerStorage::calculateStat() and
  911. SegmentMan::calculateDownloadSpeed() to lower CPU usage on higher
  912. transfer rate.
  913. * src/DefaultBtInteractive.cc
  914. * src/DefaultBtMessageDispatcher.cc
  915. * src/DefaultPeerStorage.cc
  916. * src/DefaultPeerStorage.h
  917. * src/DownloadCommand.cc
  918. * src/DownloadEngine.cc
  919. * src/PeerStorage.h
  920. * src/SegmentMan.cc
  921. * src/SegmentMan.h
  922. * test/MockPeerStorage.h
  923. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  924. Prepended _dir+"/" after joining path elements in torrent file.
  925. * src/DefaultBtContext.cc
  926. * test/DefaultBtContextTest.cc
  927. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  928. Added missing IndexBtMessageValidator.h
  929. * src/Makefile.am
  930. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  931. Updated Indonesian, Russian, Italian, Ukrainian and Simplified
  932. Chinese translations. Thank you for contributing our project.
  933. * po/id.po
  934. * po/it.po
  935. * po/ru.po
  936. * po/uk.po
  937. * po/zh_CN.po
  938. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  939. Updated README
  940. * README
  941. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  942. Bump up version number to 1.3.0
  943. * configure.ac
  944. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  945. Updated doc
  946. * src/DefaultBtContext.h
  947. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  948. Slice/joinPath for name of single torrent.
  949. * src/DefaultBtContext.cc
  950. * test/DefaultBtContextTest.cc
  951. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  952. Updated man page: Documented --dry-run and --index-out
  953. options. Changed the default value of --uri-selector and
  954. --http-auth-challenge options. Removed --direct-file-mapping
  955. option. Added example for --index-out
  956. * doc/aria2c.1.txt
  957. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  958. Updated TEXT_DRY_RUN
  959. * src/usage_text.h
  960. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  961. Changed the default value of --uri-selector option from 'inorder'
  962. to 'feedback'
  963. * src/OptionHandlerFactory.cc
  964. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  965. Included current URI in exception message.
  966. * src/AbstractCommand.cc
  967. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  968. Renamed ServerStatURISelector as FeedbackURISelector.
  969. * src/FeedbackURISelector.cc
  970. * src/FeedbackURISelector.h
  971. * src/Makefile.am
  972. * src/RequestGroupMan.cc
  973. * src/ServerStatURISelector.cc
  974. * src/ServerStatURISelector.h
  975. * test/FeedbackURISelectorTest.cc
  976. * test/Makefile.am
  977. * test/ServerStatURISelectorTest.cc
  978. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  979. Fixed the bug that AdaptiveURISelector doesn't select any URI when
  980. all URIs are tested and their timeout is not reached.
  981. * src/AdaptiveURISelector.cc
  982. * src/AdaptiveURISelector.h
  983. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  984. Changed the default value of --http-auth-challenge option to false.
  985. * src/OptionHandlerFactory.cc
  986. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  987. Reuse URIs when all unused URIs run out.
  988. * src/OptionHandlerFactory.cc
  989. * src/RequestGroup.cc
  990. * src/prefs.cc
  991. * src/prefs.h
  992. 2009-03-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  993. Refactored BtMessage subclasses. BtCancelMessage, BtRequestMessage
  994. and BtRejectMessage are derived from RangeBtMessage class.
  995. BtAllowedFastMessage, BtHaveMessage and BtSuggestPieceMessage are
  996. derived from IndexBtMessage class. BtChokeMessage,
  997. BtHaveAllMessage, BtHaveNoneMessage, BtInterestedMessage,
  998. BtNotInterestedMessage and BtUnchokeMessage are derived from
  999. ZeroBtMessage class.
  1000. * src/AbstractBtMessage.cc
  1001. * src/AbstractBtMessage.h
  1002. * src/BtAllowedFastMessage.cc
  1003. * src/BtAllowedFastMessage.h
  1004. * src/BtAllowedFastMessageValidator.h: Removed
  1005. * src/BtBitfieldMessage.cc
  1006. * src/BtBitfieldMessage.h
  1007. * src/BtCancelMessage.cc
  1008. * src/BtCancelMessage.h
  1009. * src/BtCancelMessageValidator.h: Removed
  1010. * src/BtChokeMessage.cc
  1011. * src/BtChokeMessage.h
  1012. * src/BtExtendedMessage.cc
  1013. * src/BtExtendedMessage.h
  1014. * src/BtHandshakeMessage.cc
  1015. * src/BtHandshakeMessage.h
  1016. * src/BtHaveAllMessage.cc
  1017. * src/BtHaveAllMessage.h
  1018. * src/BtHaveMessage.cc
  1019. * src/BtHaveMessage.h
  1020. * src/BtHaveMessageValidator.h: Removed
  1021. * src/BtHaveNoneMessage.cc
  1022. * src/BtHaveNoneMessage.h
  1023. * src/BtInterestedMessage.cc
  1024. * src/BtInterestedMessage.h
  1025. * src/BtKeepAliveMessage.cc
  1026. * src/BtKeepAliveMessage.h
  1027. * src/BtNotInterestedMessage.cc
  1028. * src/BtNotInterestedMessage.h
  1029. * src/BtPieceMessage.cc
  1030. * src/BtPieceMessage.h
  1031. * src/BtPortMessage.cc
  1032. * src/BtPortMessage.h
  1033. * src/BtRejectMessage.cc
  1034. * src/BtRejectMessage.h
  1035. * src/BtRejectMessageValidator.h: Removed
  1036. * src/BtRequestMessage.cc
  1037. * src/BtRequestMessage.h
  1038. * src/BtRequestMessageValidator.h: Removed
  1039. * src/BtSuggestPieceMessage.cc
  1040. * src/BtSuggestPieceMessage.h
  1041. * src/BtSuggestPieceMessageValidator.h: Removed
  1042. * src/BtUnchokeMessage.cc
  1043. * src/BtUnchokeMessage.h
  1044. * src/DefaultBtMessageFactory.cc
  1045. * src/IndexBtMessage.cc
  1046. * src/IndexBtMessage.h
  1047. * src/IndexBtMessageValidator.h
  1048. * src/Makefile.am
  1049. * src/PeerMessageUtil.cc
  1050. * src/PeerMessageUtil.h
  1051. * src/RangeBtMessage.cc
  1052. * src/RangeBtMessage.h
  1053. * src/RangeBtMessageValidator.h
  1054. * src/SimpleBtMessage.cc
  1055. * src/SimpleBtMessage.h
  1056. * src/ZeroBtMessage.cc
  1057. * src/ZeroBtMessage.h
  1058. * test/BtRequestMessageTest.cc
  1059. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1060. Reverted usage_text.h to r1093 to avoid to lose translated
  1061. messages.
  1062. * src/usage_text.h
  1063. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1064. BtMessage now holds _id attribute. MESSAGE_LENGTH that is
  1065. declared as non-const previously is now const and defined in class
  1066. definition.
  1067. * src/AbstractBtMessage.cc
  1068. * src/AbstractBtMessage.h
  1069. * src/BtAllowedFastMessage.cc
  1070. * src/BtAllowedFastMessage.h
  1071. * src/BtBitfieldMessage.h
  1072. * src/BtCancelMessage.cc
  1073. * src/BtCancelMessage.h
  1074. * src/BtChokeMessage.cc
  1075. * src/BtChokeMessage.h
  1076. * src/BtExtendedMessage.cc
  1077. * src/BtExtendedMessage.h
  1078. * src/BtHandshakeMessage.cc
  1079. * src/BtHandshakeMessage.h
  1080. * src/BtHaveAllMessage.cc
  1081. * src/BtHaveAllMessage.h
  1082. * src/BtHaveMessage.cc
  1083. * src/BtHaveMessage.h
  1084. * src/BtHaveNoneMessage.cc
  1085. * src/BtHaveNoneMessage.h
  1086. * src/BtInterestedMessage.cc
  1087. * src/BtInterestedMessage.h
  1088. * src/BtKeepAliveMessage.cc
  1089. * src/BtKeepAliveMessage.h
  1090. * src/BtMessage.h
  1091. * src/BtNotInterestedMessage.cc
  1092. * src/BtNotInterestedMessage.h
  1093. * src/BtPieceMessage.h
  1094. * src/BtPortMessage.cc
  1095. * src/BtPortMessage.h
  1096. * src/BtRejectMessage.cc
  1097. * src/BtRejectMessage.h
  1098. * src/BtRequestMessage.cc
  1099. * src/BtRequestMessage.h
  1100. * src/BtSuggestPieceMessage.cc
  1101. * src/BtSuggestPieceMessage.h
  1102. * src/BtUnchokeMessage.cc
  1103. * src/BtUnchokeMessage.h
  1104. * src/SimpleBtMessage.cc
  1105. * src/SimpleBtMessage.h
  1106. * test/MockBtMessage.h
  1107. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1108. Use FileEntry::exists()
  1109. * src/MultiDiskAdaptor.cc
  1110. 2009-03-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1111. Added exists()
  1112. * src/FileEntry.cc
  1113. * src/FileEntry.h
  1114. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1115. Added missing prefix dir.
  1116. * src/download_helper.cc
  1117. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1118. Removed --direct-file-mapping option and CopyDiskAdaptor.
  1119. * src/CopyDiskAdaptor.cc: Removed
  1120. * src/CopyDiskAdaptor.h: Removed
  1121. * src/DefaultPieceStorage.cc
  1122. * src/Makefile.am
  1123. * src/OptionHandlerFactory.cc
  1124. * src/prefs.cc
  1125. * src/prefs.h
  1126. * src/usage_text.h
  1127. * test/CopyDiskAdaptorTest.cc: Removed
  1128. * test/Makefile.am
  1129. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1130. Rewritten isSameFileBeingDownloaded()
  1131. * src/RequestGroupMan.cc
  1132. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1133. Removed getName() from DownloadContext. getName() is declared in
  1134. BtContext.
  1135. * src/BtContext.h
  1136. * src/DownloadContext.h
  1137. * src/SingleFileDownloadContext.cc
  1138. * src/SingleFileDownloadContext.h
  1139. Removed getFilePath() from DiskAdaptor. getFilePath() is declared
  1140. in AbstractSingleDiskAdaptor.
  1141. * src/AbstractSingleDiskAdaptor.h
  1142. * src/DiskAdaptor.h
  1143. * src/MultiDiskAdaptor.h
  1144. * src/RequestGroup.cc
  1145. Removed setTopDir() and getTopDir() and getTopDirPath() from
  1146. MultiDiskAdaptor.
  1147. * src/DefaultPieceStorage.cc
  1148. * src/MultiDiskAdaptor.cc
  1149. * src/MultiDiskAdaptor.h
  1150. * test/MultiDiskAdaptorTest.cc
  1151. 2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1152. FileEntry::getPath() contains store(top level) directory to
  1153. simplify path handling operation. In the previous implementation,
  1154. store directory is concatenated to FileEntry::getPath() in
  1155. DownloadContext.
  1156. * src/BtDependency.cc
  1157. * src/BtPostDownloadHandler.cc
  1158. * src/CopyDiskAdaptor.cc
  1159. * src/DefaultBtContext.cc
  1160. * src/DirectDiskAdaptor.cc
  1161. * src/FileEntry.cc
  1162. * src/FileEntry.h
  1163. * src/FtpNegotiationCommand.cc
  1164. * src/HttpResponse.cc
  1165. * src/HttpResponseCommand.cc
  1166. * src/Metalink2RequestGroup.cc
  1167. * src/MultiDiskAdaptor.cc
  1168. * src/MultiDiskAdaptor.h
  1169. * src/MultiFileAllocationIterator.cc
  1170. * src/RequestGroup.cc
  1171. * src/SingleFileDownloadContext.cc
  1172. * src/SingleFileDownloadContext.h
  1173. * src/download_helper.cc
  1174. * test/BtDependencyTest.cc
  1175. * test/CopyDiskAdaptorTest.cc
  1176. * test/DefaultBtContextTest.cc
  1177. * test/DefaultBtProgressInfoFileTest.cc
  1178. * test/DirectDiskAdaptorTest.cc
  1179. * test/DownloadHelperTest.cc
  1180. * test/FileEntryTest.cc
  1181. * test/MultiDiskAdaptorTest.cc
  1182. * test/MultiFileAllocationIteratorTest.cc
  1183. * test/RequestGroupTest.cc
  1184. * test/SingleFileDownloadContextTest.cc
  1185. 2009-03-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1186. Fixed compiler warning
  1187. * src/download_helper.cc
  1188. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1189. Throw exception if same infohash torrent is now downloading.
  1190. * src/RequestGroup.cc
  1191. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1192. Added --dry-run option. In this mode, aria2 just checks whether
  1193. the remote file is available and doesn't download data. This
  1194. option has effect on HTTP/FTP downloads and BitTorrent downloads
  1195. are canceled in this mode.
  1196. * src/FtpNegotiationCommand.cc
  1197. * src/HttpResponseCommand.cc
  1198. * src/HttpResponseCommand.h
  1199. * src/OptionHandlerFactory.cc
  1200. * src/RequestGroup.cc
  1201. * src/RequestGroupMan.cc
  1202. * src/prefs.cc
  1203. * src/prefs.h
  1204. * src/usage_text.h
  1205. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1206. Fixed compiler waring
  1207. * test/UriListParserTest.cc
  1208. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1209. Parse options in -i list using OptionParser.
  1210. * src/UriListParser.cc
  1211. * src/UriListParser.h
  1212. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1213. Don't reset URI in retry to avoid additional round trips because
  1214. of redirects.
  1215. * src/AbstractCommand.cc
  1216. * src/OptionHandlerFactory.cc
  1217. * src/prefs.cc
  1218. * src/prefs.h
  1219. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1220. Declared hide() in OptionHandler.
  1221. * src/NameMatchOptionHandler.h
  1222. * src/OptionHandler.h
  1223. * src/OptionHandlerImpl.h
  1224. 2009-03-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1225. Updated doc
  1226. * src/Peer.h
  1227. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1228. Added log message in setStatusInternal()
  1229. * src/ServerStat.cc
  1230. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1231. Call ServerStat::setError() in AbstractCommand::onAbort() to
  1232. effectively exclude failed server.
  1233. * src/AbstractCommand.cc
  1234. 2009-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1235. Added --index-out option to specify each file path for torrent.
  1236. Here index shown in --show-files option is used to specify which
  1237. file path should be altered. For example, to change the file path
  1238. with index=2, use --index-out=2=aria2.tar.bz2. You can use this
  1239. option multiple times: --index-out=1=aria2.tar.bz2
  1240. --index-out=2=aria2-opt.tar.bz2. The short hand form -O is also
  1241. available. This option can be specified in -i list.
  1242. * src/DefaultBtContext.cc
  1243. * src/DefaultBtContext.h
  1244. * src/MultiDiskAdaptor.cc
  1245. * src/MultiDiskAdaptor.h
  1246. * src/MultiFileAllocationIterator.cc
  1247. * src/OptionHandlerFactory.cc
  1248. * src/OptionHandlerImpl.h
  1249. * src/Util.cc
  1250. * src/Util.h
  1251. * src/download_helper.cc
  1252. * src/prefs.cc
  1253. * src/prefs.h
  1254. * src/usage_text.h
  1255. * test/DefaultBtContextTest.cc
  1256. * test/MultiDiskAdaptorTest.cc
  1257. * test/MultiFileAllocationIteratorTest.cc
  1258. * test/UtilTest.cc
  1259. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1260. Use Util::pathJoin()
  1261. * src/MetalinkParserController.cc
  1262. * test/test.xml
  1263. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1264. Use Util::pathJoin()
  1265. * src/DefaultBtContext.cc
  1266. 2009-03-05 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1267. Added Util::pathJoin()
  1268. * src/Util.h
  1269. * test/UtilTest.cc
  1270. 2009-03-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1271. Applied basename function to remove directory element in
  1272. content-disposition value.
  1273. Return empty string if content-disposition value is ".." or ".".
  1274. * src/Util.cc
  1275. * test/UtilTest.cc
  1276. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1277. Added --max-overall-download-limit in man page.
  1278. Updated --max-overall-upload-limit, --max-download-limit option's doc.
  1279. * doc/aria2c.1.txt
  1280. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1281. Added --max-overall-download-limit option. Now --max-upload-limit
  1282. option is not ignored when --max-overall-upload-limit option has
  1283. non-zero value. aria2 checks download(upload) speed in the order:
  1284. first checks overall speed limit and if it is not exceeded, then
  1285. checks speed limit per download. Thus you can specify both
  1286. value. For example, set --max-overall-download-limit=1M and
  1287. --max-download-limit=500K to prevent from one download from eating
  1288. all overall speed limit.
  1289. * src/DefaultBtInteractive.cc
  1290. * src/DefaultBtInteractive.h
  1291. * src/DefaultBtMessageDispatcher.cc
  1292. * src/DefaultBtMessageDispatcher.h
  1293. * src/DownloadCommand.cc
  1294. * src/DownloadCommand.h
  1295. * src/FtpNegotiationCommand.cc
  1296. * src/HttpResponseCommand.cc
  1297. * src/OptionHandlerFactory.cc
  1298. * src/PeerInteractionCommand.cc
  1299. * src/RequestGroup.cc
  1300. * src/RequestGroup.h
  1301. * src/RequestGroupMan.cc
  1302. * src/RequestGroupMan.h
  1303. * src/prefs.cc
  1304. * src/prefs.h
  1305. * src/usage_text.h
  1306. * test/DefaultBtMessageDispatcherTest.cc
  1307. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1308. Documented select-file option in Input File section.
  1309. Documented --http-auth-challenge option.
  1310. * doc/aria2c.1.txt
  1311. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1312. Now select-file can be specified in the uri list(-i list).
  1313. * src/BtContext.cc
  1314. * src/BtContext.h
  1315. * src/RequestGroup.cc
  1316. * src/Sequence.h
  1317. * src/download_helper.cc
  1318. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1319. Made the upper value of --max-concurrent-downloads options unlimited.
  1320. * src/OptionHandlerFactory.cc
  1321. 2009-02-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1322. Fixed the bug that disk writer is not created even if it shares
  1323. same piece with the preceding file if the length of previous file
  1324. is 0.
  1325. * src/MultiDiskAdaptor.cc
  1326. * test/MultiDiskAdaptorTest.cc
  1327. 2009-02-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1328. In BitTorrent, Open files in read-only mode for hash check. After
  1329. that, re-open file in read/write mode only when the download is
  1330. not finished.
  1331. * src/AbstractDiskWriter.cc
  1332. * src/AbstractDiskWriter.h
  1333. * src/AbstractSingleDiskAdaptor.cc
  1334. * src/AbstractSingleDiskAdaptor.h
  1335. * src/BtCheckIntegrityEntry.cc
  1336. * src/DiskAdaptor.h
  1337. * src/DiskWriter.h
  1338. * src/MultiDiskAdaptor.cc
  1339. * src/MultiDiskAdaptor.h
  1340. * src/RequestGroup.cc
  1341. 2009-02-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1342. Added --http-auth-challenge option. If it is set to true(by
  1343. default), aria2 sends HTTP authorization header only when it is
  1344. requested by the server. If false is set, then authorization
  1345. header is always sent to the server. This is useful for servers
  1346. that don't respond 401 code when authentication is required.
  1347. There is an exception: if username and password are embedded in
  1348. URI, authorization header is always sent to the server regardless
  1349. of this option.
  1350. * src/AuthConfigFactory.cc
  1351. * src/HttpSkipResponseCommand.cc
  1352. * src/OptionHandlerFactory.cc
  1353. * src/prefs.cc
  1354. * src/prefs.h
  1355. * src/usage_text.h
  1356. * test/AuthConfigFactoryTest.cc
  1357. * test/HttpRequestTest.cc
  1358. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1359. * Release 1.2.0
  1360. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1361. Updated Spanish, Ukrainian, Russian and Japanese translations.
  1362. Thanks to all translators.
  1363. * po/es.po
  1364. * po/ja.po
  1365. * po/ru.po
  1366. * po/uk.po
  1367. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1368. Call deleteSocketForReadCheck() before socket is closed.
  1369. * src/HttpListenCommand.cc
  1370. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1371. Defined virtual destructor for BObject.
  1372. * src/bencode.h
  1373. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1374. Rewritten BDE to make it efficient.
  1375. * src/bencode.cc
  1376. * src/bencode.h
  1377. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1378. Removed function throw list.
  1379. * src/bencode.cc
  1380. * src/bencode.h
  1381. * test/BencodeTest.cc
  1382. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1383. Enclosed all URLs in double quotes in command-line examples.
  1384. * doc/aria2c.1.txt
  1385. 2009-02-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1386. Updated reference/see also section.
  1387. * README
  1388. * doc/aria2c.1.txt
  1389. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1390. Reorganized man page based on man man-pages.
  1391. * doc/aria2c.1.txt
  1392. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1393. Removed SERVER PERFORMANCE PROFILE and Configuration file section
  1394. because same documents are available in man page. Added
  1395. References section.
  1396. * README
  1397. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1398. Documented sc_avg_speed, mc_avg_speed and counter in SERVER
  1399. PERFORMANCE PROFILE section.
  1400. * doc/aria2c.1.txt
  1401. 2009-02-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1402. Rewritten the section for configuration file.
  1403. * README
  1404. * doc/aria2c.1.txt
  1405. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1406. Fixed the segmentation fault during execution of choking algorithm
  1407. in leecher state because of broken compare operator
  1408. implementation.
  1409. * src/BtLeecherStateChoke.cc
  1410. * src/BtLeecherStateChoke.h
  1411. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1412. Open file in binary mode.
  1413. * src/CookieStorage.cc
  1414. * src/DHTSetup.cc
  1415. * src/DHTUtil.cc
  1416. * src/Netrc.cc
  1417. * src/NsCookieParser.cc
  1418. * src/ProtocolDetector.cc
  1419. * src/RequestGroupMan.cc
  1420. * src/Signature.cc
  1421. * src/bencode.cc
  1422. * src/download_helper.cc
  1423. * src/option_processing.cc
  1424. * test/CookieParserTest.cc
  1425. * test/DefaultBtProgressInfoFileTest.cc
  1426. * test/FileTest.cc
  1427. * test/GZipDecoderTest.cc
  1428. * test/RequestGroupManTest.cc
  1429. * test/SignatureTest.cc
  1430. * test/SingleFileAllocationIteratorTest.cc
  1431. * test/UriListParserTest.cc
  1432. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1433. Removed operator[] because it is ambiguous with built-in []
  1434. operator.
  1435. * src/array_fun.h
  1436. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1437. Fixed compile error
  1438. * src/OptionParser.cc
  1439. 2009-02-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1440. Added missing call to arrayWrapperConst
  1441. * test/array_funTest.cc
  1442. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1443. Use array_wrapper instead of array_ptr.
  1444. * src/DHTRoutingTableDeserializer.cc
  1445. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1446. Removed template<typename S> array_ptr(const array_ptr<S>& s)
  1447. * src/array_fun.h
  1448. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1449. Added array_wrapper template.
  1450. * src/array_fun.h
  1451. * test/array_funTest.cc
  1452. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1453. Use operator T* of array_ptr.
  1454. * src/OptionParser.cc
  1455. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1456. Use localhost instead of 127.0.0.1
  1457. * test/FtpConnectionTest.cc
  1458. * test/MSEHandshakeTest.cc
  1459. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1460. Added operator T*
  1461. * src/array_fun.h
  1462. * test/array_funTest.cc
  1463. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1464. Use dynamically allocated char array to detect memory access
  1465. violation.
  1466. * src/DHTRoutingTableDeserializer.cc
  1467. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1468. Set struct sockaddr_in.sin_len if HAVE_SOCKADDR_IN_SIN_LEN is
  1469. defined.
  1470. * src/PeerMessageUtil.cc
  1471. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1472. Renamed HAVE_SOCKADDR_SIN_LEN as HAVE_SOCKADDR_IN_SIN_LEN
  1473. * configure.ac
  1474. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1475. Added a check to see struct sockaddr_in has sin_len member.
  1476. * configure.ac
  1477. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1478. Fixed buffer overrun.
  1479. * src/DHTRoutingTableDeserializer.cc
  1480. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1481. Added LL for long long int constant.
  1482. * test/FtpConnectionTest.cc
  1483. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1484. Casted to unsigned int to suppress compiler warning on netbsd.
  1485. * src/BtRuntime.h
  1486. 2009-02-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1487. Assign the value of tv.tv_sec to time_t timesec instead of giving
  1488. tv.tv_sec to localtime_r directly because tv.tv_sec may not be of
  1489. type time_t.
  1490. * src/SimpleLogger.cc
  1491. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1492. Added test for FtpConnection::receiveSizeResponse().
  1493. * test/FtpConnectionTest.cc
  1494. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1495. Fix epoll error on the old kernel 2.6.8 or ealier.
  1496. * src/EpollEventPoll.cc
  1497. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1498. Use Util::parseLLInt instead of sscanf for portability. The
  1499. conversion "%Lu" fails in Mac OSX which requires "%llu" instead.
  1500. * src/FtpConnection.cc
  1501. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1502. Fixed the bug that adding 0 length filter to BitfieldMan filters 1
  1503. block. It should not filter anything.
  1504. * src/BitfieldMan.cc
  1505. * src/ConsoleStatCalc.cc
  1506. * test/BitfieldManTest.cc
  1507. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1508. Fixed the bug that the boolean options that don't take arguments
  1509. don't work.
  1510. * src/OptionHandlerImpl.h
  1511. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1512. Fixed broken selected file BitTorrent download.
  1513. * src/MultiDiskAdaptor.cc
  1514. * test/MultiDiskAdaptorTest.cc
  1515. * test/MultiFileAllocationIteratorTest.cc
  1516. 2009-02-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1517. Fixed #define guard for EpollEventPoll
  1518. * src/EpollEventPoll.h
  1519. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1520. Wait 2 seconds. 1 second is sometimes not enough.
  1521. * test/TimeSeedCriteriaTest.cc
  1522. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1523. Use localhost instead of 127.0.0.1.
  1524. * test/DHTConnectionImplTest.cc
  1525. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1526. Suppressed compiler warning.
  1527. * src/AdaptiveURISelector.cc
  1528. * src/DefaultPieceStorage.cc
  1529. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1530. Defined virtual destructor.
  1531. * src/MetalinkParserState.h
  1532. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1533. Give NULL for second argument of getaddrinfo instead of "0".
  1534. * src/NameResolver.cc
  1535. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1536. Don't use Time::parse(buf, "%Y%m%d%H%M%S") because Mac OS X and
  1537. included strptime doesn't parse data for this format.
  1538. * src/FtpConnection.cc
  1539. * test/FtpConnectionTest.cc
  1540. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1541. Removed tests giving -1 for unsigned argument.
  1542. * test/SingleFileDownloadContextTest.cc
  1543. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1544. Don't use sha256 in tests because it might not be supported by the
  1545. SSL library.
  1546. * test/MetalinkProcessorTest.cc
  1547. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1548. Removed tests giving -1 for unsigned argument.
  1549. * test/AlphaNumberDecoratorTest
  1550. * test/BitfieldManTest.cc
  1551. * test/DefaultBtContextTest.cc
  1552. 2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1553. Fixed compile error without libcares when epoll is available.
  1554. * src/EpollEventPoll.cc
  1555. 2009-02-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1556. Included fstream instead of iostream.
  1557. * test/SignatureTest.cc
  1558. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1559. Removed #include <algorithm>
  1560. * test/RequestGroupTest.cc
  1561. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1562. Rewritten AdaptiveURISelector::mayRetryWithIncreasedTimeout()
  1563. using RequestGroup::extractURIResult().
  1564. * src/AdaptiveURISelector.cc
  1565. * src/RequestGroup.cc
  1566. * src/RequestGroup.h
  1567. * test/RequestGroupTest.cc
  1568. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1569. Added tests for array_ptr.
  1570. * test/array_funTest.cc
  1571. 2009-02-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1572. Don't send ip parameter to a tracker if ip parameter is empty
  1573. string.
  1574. * src/DefaultBtAnnounce.cc
  1575. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1576. Adjusted line feed.
  1577. * src/version_usage.cc
  1578. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1579. Print tags, possible values when OptionHandlerException is caught.
  1580. * src/option_processing.cc
  1581. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1582. Changed the message for FatalException.
  1583. * src/OptionParser.cc
  1584. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1585. Documented --bt-external-ip option in man page. Updated man pages
  1586. for --proxy-method option.
  1587. * doc/aria2c.1.txt
  1588. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1589. Use GET method for FTP via HTTP proxy.
  1590. * src/FtpInitiateConnectionCommand.cc
  1591. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1592. Changed the default value of --proxy-method option from 'tunnel'
  1593. to 'get'. Use 'tunnel' for HTTPS regardless of --proxy-method
  1594. option.
  1595. * src/AbstractCommand.cc
  1596. * src/AbstractCommand.h
  1597. * src/FtpInitiateConnectionCommand.cc
  1598. * src/HttpDownloadCommand.cc
  1599. * src/HttpInitiateConnectionCommand.cc
  1600. * src/HttpInitiateConnectionCommand.h
  1601. * src/OptionHandlerFactory.cc
  1602. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1603. Initialized _logger
  1604. * src/SelectEventPoll.cc
  1605. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1606. Defined a copy constructor for the same type.
  1607. * src/SharedHandle.h
  1608. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1609. Added OptionParser::parseArg() which internally uses getopt_long
  1610. to parse command-line options. All command-line options are now
  1611. configured by OptionHandler. No manual editing of struct option*
  1612. is required any more.
  1613. * src/NameMatchOptionHandler.h
  1614. * src/OptionHandler.h
  1615. * src/OptionHandlerFactory.cc
  1616. * src/OptionHandlerImpl.h
  1617. * src/OptionParser.cc
  1618. * src/OptionParser.h
  1619. * src/array_fun.h
  1620. * src/main.cc
  1621. * src/option_processing.cc
  1622. * test/OptionHandlerTest.cc
  1623. * test/OptionParserTest.cc
  1624. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1625. Fixed configure error with --disable-epoll
  1626. * configure.ac
  1627. 2009-02-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1628. Fixed compile error when HAVE_EPOLL is not defined.
  1629. Fixed linker error on bigendian systems.
  1630. * src/SocketCore.cc
  1631. * src/SocketCore.h
  1632. * test/DefaultBtProgressInfoFileTest.cc
  1633. 2009-02-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1634. Added --bt-external-ip option. You can specify the external IP
  1635. address to report to a BitTorrent tracker. Although this function
  1636. is named 'external', it can accept any kind of IP addresses.
  1637. * src/DefaultBtAnnounce.cc
  1638. * src/OptionHandlerFactory.cc
  1639. * src/option_processing.cc
  1640. * src/prefs.cc
  1641. * src/prefs.h
  1642. * src/usage_text.h
  1643. * test/DefaultBtAnnounceTest.cc
  1644. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1645. Extracted the algorithm to find the longest incremental sequence
  1646. as max_sequence template.
  1647. * src/LongestSequencePieceSelector.cc
  1648. * src/a2algo.h
  1649. * test/Makefile.am
  1650. * test/a2algoTest.cc
  1651. 2009-02-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1652. Removed TEXT_HTTP_SERVER_LISTEN_PORT from translation texts.
  1653. * src/usage_text.h
  1654. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1655. Updated doc for --uri-selector, --http-server-listen-port and
  1656. --enable-http-server option. Documented --event-poll option.
  1657. * doc/aria2c.1.txt
  1658. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1659. Updated doc for --enable-http-server.
  1660. * src/usage_text.h
  1661. 2009-02-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1662. Documented --http-server-listen-port and --enable-http-server in
  1663. man page.
  1664. * doc/aria2c.1.txt
  1665. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1666. Updated Spanish, Indonesian, Russian, Ukrainian and Italian
  1667. translations. Thanks to all translators.
  1668. * po/es.po
  1669. * po/id.po
  1670. * po/it.po
  1671. * po/ru.po
  1672. * po/uk.po
  1673. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1674. Bump up version number to 1.2.0
  1675. * configure.ac
  1676. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1677. BtContext::getAnnounceTiers() now returns const reference.
  1678. * src/BtContext.h
  1679. * src/DefaultBtContext.cc
  1680. * src/DefaultBtContext.h
  1681. * test/MockBtContext.h
  1682. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1683. Change the number of retries for tracker request based on the
  1684. number of available tracker in a torrent file.
  1685. * src/TrackerWatcherCommand.cc
  1686. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1687. Added _maxTries property to RequestGroup and assign the option
  1688. value of PREF_MAX_TRIES to it. AbstractCommand now looks up
  1689. RequestGroup::getMaxTries() instead of
  1690. Option::getAsInt(PREF_MAX_TRIES).
  1691. * src/AbstractCommand.cc
  1692. * src/RequestGroup.cc
  1693. * src/RequestGroup.h
  1694. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1695. Applied AdaptiveURISelector-timeout patch from Pascal Rigaux at
  1696. Mandriva. I modified the patch: make RequestGroup have the
  1697. timeout value and AdaptiveURISelector directly modifies that
  1698. value.
  1699. * src/AbstractCommand.cc
  1700. * src/AdaptiveURISelector.cc
  1701. * src/AdaptiveURISelector.h
  1702. * src/FtpNegotiationCommand.cc
  1703. * src/RequestGroup.cc
  1704. * src/RequestGroup.h
  1705. 2009-02-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1706. Fixed compiler warning
  1707. * test/IteratableChecksumValidatorTest.cc
  1708. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1709. Use LongestSequencePieceSelector for HTTP/FTP/BitTorrent
  1710. integrated downloads. This PieceSelector subclass finds the
  1711. longest continuous sequence in the available missing pieces and
  1712. selects the last index of such sequence. This makes HTTP/FTP
  1713. connections less interrupted by the pieces obtained by BitTorrent
  1714. peers.
  1715. * src/DefaultPieceStorage.cc
  1716. * src/DefaultPieceStorage.h
  1717. * src/LongestSequencePieceSelector.cc
  1718. * src/LongestSequencePieceSelector.h
  1719. * src/Makefile.am
  1720. * src/PieceSelector.h
  1721. * src/RarestPieceSelector.h
  1722. * src/RequestGroup.cc
  1723. * test/BtDependencyTest.cc
  1724. * test/DefaultPieceStorageTest.cc
  1725. * test/IteratableChecksumValidatorTest.cc
  1726. * test/LongestSequencePieceSelectorTest.cc
  1727. * test/Makefile.am
  1728. * test/SegmentManTest.cc
  1729. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1730. Fixed the bug that the average speed is wrong in
  1731. http/ftp/BitTorrent integrated download. Only the download bytes
  1732. in BitTorrent were considered.
  1733. * src/RequestGroup.cc
  1734. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1735. Choose port for BitTorrent/DHT randomly from the specified range.
  1736. * src/DHTConnectionImpl.cc
  1737. * src/PeerListenCommand.cc
  1738. 2009-01-31 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1739. Send HTTP Authorization header only if it is requested by the
  1740. server(response 401). There are some exceptions. The authorization
  1741. header for proxy is always sent if it is available without request
  1742. by the server. If username/password is specified in the URI, it
  1743. is immediately sent to the server without request by the server.
  1744. AbstractAuthResolver::_defaultAuthConfig is now initialized as
  1745. SharedHandle<AuthConfig>().
  1746. NetrcAuthResolver::resolveAuthConfig() returns
  1747. SharedHandle<AuthConfig>() if no AuthConfig is available.
  1748. * src/AbstractAuthResolver.cc
  1749. * src/AbstractProxyRequestCommand.cc
  1750. * src/AuthConfigFactory.cc
  1751. * src/AuthConfigFactory.h
  1752. * src/HttpConnection.cc
  1753. * src/HttpRequest.cc
  1754. * src/HttpRequest.h
  1755. * src/HttpResponse.cc
  1756. * src/HttpResponseCommand.cc
  1757. * src/HttpSkipResponseCommand.cc
  1758. * test/AuthConfigFactoryTest.cc
  1759. * test/HttpRequestTest.cc
  1760. * test/HttpResponseTest.cc
  1761. 2009-01-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1762. Remove leading "--" from help keyword and a substring after "="
  1763. from help keyword, so that one can query options by '-h--max-' or
  1764. '-hmax-peers=10'.
  1765. * src/option_processing.cc
  1766. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1767. Rewritten PStringVisitor and its implementation.
  1768. * src/PStringBuildVisitor.cc
  1769. * src/PStringBuildVisitor.h
  1770. * src/PStringDatum.h
  1771. * src/PStringNumLoop.h
  1772. * src/PStringSegment.cc
  1773. * src/PStringSegment.h
  1774. * src/PStringSelect.h
  1775. * src/PStringVisitor.h
  1776. * src/download_helper.cc
  1777. * test/PStringBuildVisitorTest.cc
  1778. * test/ParameterizedStringParserTest.cc
  1779. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1780. Persist connection between the built-in HTTP server and a client
  1781. if a client supports keep-alive. Fixed the bug that aria2 exits
  1782. when the HTTP server receives EOF from a client.
  1783. * src/HttpServer.cc
  1784. * src/HttpServer.h
  1785. * src/HttpServerCommand.cc
  1786. * src/HttpServerCommand.h
  1787. * src/HttpServerResponseCommand.cc
  1788. 2009-01-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1789. Added experimental built-in HTTP server. Currently, when a client
  1790. accesses to the server, it responds with the current download
  1791. progress. By default, it is disabled. To enable the server, give
  1792. --enable-http-server option. To change the default port number
  1793. for the server to listen to, use --http-server-listen-port option.
  1794. The response HTML is very simple and refreshes it self each 1
  1795. second. Because of this refresh, you see flicker in normal web
  1796. browser such as Firefox. I recommend to use console-based browser
  1797. such as elinks, w3m. To connect to the server, run 'elinks
  1798. http://localhost:6800/' while running aria2. Please replace port
  1799. number '6800'(which is default) with your preference.
  1800. * src/DownloadEngineFactory.cc
  1801. * src/HttpHeader.cc
  1802. * src/HttpHeader.h
  1803. * src/HttpHeaderProcessor.cc
  1804. * src/HttpHeaderProcessor.h
  1805. * src/HttpListenCommand.cc
  1806. * src/HttpListenCommand.h
  1807. * src/HttpServer.cc
  1808. * src/HttpServer.h
  1809. * src/HttpServerCommand.cc
  1810. * src/HttpServerCommand.h
  1811. * src/HttpServerResponseCommand.cc
  1812. * src/HttpServerResponseCommand.h
  1813. * src/Makefile.am
  1814. * src/OptionHandlerFactory.cc
  1815. * src/Util.cc
  1816. * src/Util.h
  1817. * src/help_tags.h
  1818. * src/option_processing.cc
  1819. * src/prefs.cc
  1820. * src/prefs.h
  1821. * src/usage_text.h
  1822. * test/HttpHeaderProcessorTest.cc
  1823. * test/UtilTest.cc
  1824. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1825. Removed.
  1826. * src/CheckIntegrityMan.cc
  1827. * src/FileAllocationMan.cc
  1828. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1829. Made (piece) hash check sequential for each RequestGroup because
  1830. simultaneous hash check is slower than sequential execution.
  1831. * src/CheckIntegrityCommand.cc
  1832. * src/CheckIntegrityDispatcherCommand.cc
  1833. * src/CheckIntegrityDispatcherCommand.h
  1834. * src/CheckIntegrityMan.h
  1835. * src/ConsoleStatCalc.cc
  1836. * src/DownloadCommand.cc
  1837. * src/DownloadEngine.cc
  1838. * src/DownloadEngine.h
  1839. * src/DownloadEngineFactory.cc
  1840. * src/Makefile.am
  1841. * src/Makefile.in
  1842. * src/RequestGroup.cc
  1843. * src/StatCalc.h
  1844. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1845. Moved setStatusRealtime() from FileAllocationDispatcherCommand to
  1846. SequentialDispatcherCommand.
  1847. * src/FileAllocationDispatcherCommand.cc
  1848. * src/SequentialDispatcherCommand.h
  1849. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1850. Rewritten FileAllocationDispatcherCommand using brand new
  1851. SequentialDispatcherCommand.
  1852. * src/DownloadEngineFactory.cc
  1853. * src/FileAllocationCommand.cc
  1854. * src/FileAllocationDispatcherCommand.cc
  1855. * src/FileAllocationDispatcherCommand.h
  1856. * src/Makefile.am
  1857. * src/SequentialDispatcherCommand.h
  1858. 2009-01-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1859. Replaced FileAllocationMan with
  1860. SequentialPicker<FileAllocationEntry>.
  1861. * src/BtCheckIntegrityEntry.cc
  1862. * src/ConsoleStatCalc.cc
  1863. * src/DownloadEngine.cc
  1864. * src/DownloadEngine.h
  1865. * src/DownloadEngineFactory.cc
  1866. * src/FileAllocationCommand.cc
  1867. * src/FileAllocationDispatcherCommand.cc
  1868. * src/FileAllocationMan.h
  1869. * src/Makefile.am
  1870. * src/SequentialPicker.h
  1871. * src/StatCalc.h
  1872. * src/StreamCheckIntegrityEntry.cc
  1873. * test/Makefile.am
  1874. * test/SequentialPickerTest.cc
  1875. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1876. Added doc for adaptive URI selector.
  1877. * doc/aria2c.1.txt
  1878. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1879. Added doc for adaptive URI selector.
  1880. * src/usage_text.h
  1881. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1882. Added doc for --bt-max-peers option.
  1883. * doc/aria2c.1.txt
  1884. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1885. Added doc for --bt-hash-check-seed option.
  1886. * doc/aria2c.1.txt
  1887. 2009-01-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1888. Documented exit codes.
  1889. * doc/aria2c.1.txt
  1890. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1891. Added --bt-max-peers option to specify the maximum number of peers
  1892. per torrent. 0 means unlimited number of peers.
  1893. * src/ActivePeerConnectionCommand.cc
  1894. * src/BtRuntime.h
  1895. * src/DefaultPeerStorage.cc
  1896. * src/DefaultPeerStorage.h
  1897. * src/OptionHandlerFactory.cc
  1898. * src/RequestGroup.cc
  1899. * src/option_processing.cc
  1900. * src/prefs.cc
  1901. * src/prefs.h
  1902. * src/usage_text.h
  1903. * test/DefaultPeerStorageTest.cc
  1904. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1905. Added --bt-hash-check-seed option. If true is given to this
  1906. option, after hash check using --check-integrity option and file
  1907. is complete, continue to seed file. If you want to check file and
  1908. download it only when it is damaged or incomplete, set this option
  1909. to false. This option has effect only on BitTorrent download.
  1910. The default value is true(This is the same behavior with the
  1911. previous release).
  1912. * src/BtCheckIntegrityEntry.cc
  1913. * src/OptionHandlerFactory.cc
  1914. * src/option_processing.cc
  1915. * src/prefs.cc
  1916. * src/prefs.h
  1917. * src/usage_text.h
  1918. 2009-01-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1919. Updated copyright year.
  1920. * src/version_usage.cc
  1921. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1922. Rewritten the usage text for --bt-request-peer-speed-limit option.
  1923. * doc/aria2c.1.txt
  1924. * src/usage_text.h
  1925. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1926. Made the max value of split option unlimited.
  1927. * doc/aria2c.1.txt
  1928. * src/OptionHandlerFactory.cc
  1929. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1930. Fixed compile warning/error.
  1931. * src/DownloadResult.h
  1932. * src/HttpDownloadCommand.cc
  1933. * src/ServerStat.cc
  1934. * test/RequestGroupTest.cc
  1935. 2009-01-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1936. Added --event-poll option to select the method for polling events.
  1937. The available methods are "select" and "epoll". "epoll" is
  1938. available on Linux only. The earlier release has the compile
  1939. option to choose from these methods.
  1940. * configure.ac
  1941. * src/RequestGroupMan.cc
  1942. * src/OptionHandlerFactory.cc
  1943. * src/EpollEventPoll.h
  1944. * src/StreamFileAllocationEntry.cc
  1945. * src/a2io.h
  1946. * src/SelectEventPoll.h
  1947. * src/option_processing.cc
  1948. * src/prefs.h
  1949. * src/EpollEventPoll.cc
  1950. * src/EventPoll.h
  1951. * src/SocketCore.h
  1952. * src/Makefile.am
  1953. * src/main.cc
  1954. * src/DownloadEngine.h
  1955. * src/SelectEventPoll.cc
  1956. * src/DownloadEngine.cc
  1957. * src/SocketCore.cc
  1958. * src/DownloadEngineFactory.cc
  1959. * src/Makefile.in
  1960. * src/prefs.cc
  1961. * src/usage_text.h
  1962. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1963. Included RecoverableException.h from main.cc
  1964. * src/main.cc
  1965. 2009-01-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1966. Applied exit-status patch from Pascal Rigaux at Mandriva. aria2
  1967. now returns last error encountered in the HTTP/FTP downloads as a
  1968. exit status value. If all downloads finished successfully, aria2
  1969. returns 0. The error code is defined in src/DownloadResult.h.
  1970. The error occurred in the download currently in progress is not
  1971. reported as a last error. If no error has encountered but there
  1972. are in progress or waiting downloads, aria2 returns 7.
  1973. * src/AbstractCommand.cc
  1974. * src/DlAbortEx.h
  1975. * src/DlRetryEx.h
  1976. * src/DownloadCommand.cc
  1977. * src/DownloadFailureException.h
  1978. * src/DownloadResult.h
  1979. * src/FtpNegotiationCommand.cc
  1980. * src/HttpSkipResponseCommand.cc
  1981. * src/Makefile.am
  1982. * src/MultiUrlRequestInfo.cc
  1983. * src/MultiUrlRequestInfo.h
  1984. * src/RecoverableException.h
  1985. * src/RequestGroup.cc
  1986. * src/RequestGroup.h
  1987. * src/RequestGroupMan.cc
  1988. * src/RequestGroupMan.h
  1989. * src/URIResult.cc
  1990. * src/URIResult.h
  1991. * src/main.cc
  1992. * src/option_processing.cc
  1993. * test/RequestGroupTest.cc
  1994. 2009-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  1995. Applied AdaptiveURISelector patch from Aurelien Lefebvre. This
  1996. patch adds AdaptiveURISelector, which selects one of the bests
  1997. mirrors for first and reserved connections. For supplementary
  1998. ones, it returns mirrors which has not been tested yet, and if
  1999. each of them already tested, returns mirrors which has to be
  2000. tested again. Otherwise, it doesn't return anymore mirrors.
  2001. * src/AdaptiveURISelector.cc
  2002. * src/AdaptiveURISelector.h
  2003. * src/FtpNegotiationCommand.cc
  2004. * src/HttpResponseCommand.cc
  2005. * src/Makefile.am
  2006. * src/Makefile.in
  2007. * src/OptionHandlerFactory.cc
  2008. * src/RequestGroup.cc
  2009. * src/RequestGroup.h
  2010. * src/RequestGroupMan.cc
  2011. * src/ServerStat.cc
  2012. * src/ServerStat.h
  2013. * src/ServerStatMan.cc
  2014. * src/SpeedCalc.cc
  2015. * src/URISelector.h
  2016. * src/prefs.cc
  2017. * src/prefs.h
  2018. * test/RequestGroupManTest.cc
  2019. * test/ServerStatManTest.cc
  2020. * test/ServerStatTest.cc
  2021. 2009-01-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2022. Fixed unit test error.
  2023. * test/HttpResponseTest.cc (HttpResponseTest::testRetrieveCookie)
  2024. 2008-12-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2025. * Release 1.1.2
  2026. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2027. Updated Russian translation. Thanks to the translators.
  2028. * po/ru.po
  2029. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2030. Added the description of --use-head option to man page.
  2031. * doc/aria2c.1.txt
  2032. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2033. Bump up version number to 1.1.2
  2034. * configure.ac
  2035. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2036. Added --use-head option to toggle whether HEAD method should be
  2037. used in the first HTTP request. By default aria2 uses HEAD method
  2038. as the first request. When the server doesn't recognize HEAD, then
  2039. give aria2 --use-head=false to force aria2 to use GET method
  2040. instead.
  2041. * src/OptionHandlerFactory.cc
  2042. * src/RequestGroupMan.cc
  2043. * src/option_processing.cc
  2044. * src/prefs.cc
  2045. * src/prefs.h
  2046. * src/usage_text.h
  2047. 2008-12-29 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2048. Fixed the bug that BitTorrent download doesn't finish when REJECT
  2049. message is received before CHOKE message. The old implementation
  2050. doen't clear the use-bit of the piece when recieved REJECT
  2051. message.
  2052. * src/DefaultBtMessageDispatcher.cc
  2053. * test/DefaultBtMessageDispatcherTest.cc
  2054. 2008-12-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2055. * Release 1.1.1
  2056. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2057. Bump up version number to 1.1.1.
  2058. * configure.ac
  2059. 2008-12-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2060. Fixed the bug that --summary-interval=0 doesn't work. The summary
  2061. is printed repeatedly.
  2062. * src/ConsoleStatCalc.cc
  2063. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2064. * Release 1.1.0
  2065. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2066. Added ifdef clause for conditional compilation.
  2067. * src/main.cc
  2068. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2069. Updated Russian, Simplified Chinese, Ukrainian and Japanese
  2070. translations. Thanks to all translators.
  2071. * po/ja.po
  2072. * po/ru.po
  2073. * po/uk.po
  2074. * po/zh_CN.po
  2075. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2076. Added the preceding ">>> " before the message "Printing the
  2077. contents of file..." to make the output more readable.
  2078. * src/main.cc
  2079. 2008-12-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2080. Added try-catch block in the loop in showFiles() to continue the
  2081. operation even if the exception occurred in one file.
  2082. * src/main.cc (showFiles)
  2083. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2084. Made messages in showFiles() translatable.
  2085. * po/aria2.pot
  2086. * src/main.cc
  2087. * src/message.h
  2088. 2008-12-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2089. Print the contents of Torrent/Metalink files are printed without
  2090. -T/-M options.
  2091. * src/main.cc
  2092. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2093. Escaped '--' with '\--'
  2094. * README
  2095. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2096. Updated "How to build" section in README. Mentioned about
  2097. --with-ca-bundle compile option.
  2098. * README
  2099. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2100. Bump up version number to 1.1.0.
  2101. * configure.ac
  2102. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2103. Added a note for --dht-listen-port option.
  2104. * doc/aria2c.1.txt
  2105. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2106. Update doc for --realtime-chunk-checksum option.
  2107. * doc/aria2c.1.txt
  2108. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2109. Update doc for --realtime-chunk-checksum option.
  2110. * src/usage_text.h
  2111. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2112. Updated French, Japanese, Russian and Ukrainian translations.
  2113. Thanks to all translators.
  2114. * po/fr.po
  2115. * po/ja.po
  2116. * po/ru.po
  2117. * po/uk.po
  2118. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2119. Renamed aria2c.pot to aria2.pot
  2120. * po/aria2.pot
  2121. * po/aria2c.pot: Removed.
  2122. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2123. Removed MetaEntry.h
  2124. * src/Makefile.am
  2125. 2008-12-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2126. Rename file by appending digits if a local file exists and its
  2127. file size is larger than that of remote file with --continue
  2128. option. The old implementation just throws exception in such case.
  2129. * src/RequestGroup.cc
  2130. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2131. Fixed the bug that download progress summary is not printed in the
  2132. interval specified by the option.
  2133. * src/ConsoleStatCalc.cc
  2134. * src/ConsoleStatCalc.h
  2135. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2136. Fixed compiler warning
  2137. * src/Cookie.cc
  2138. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2139. Fixed the cookie implementation based on RFC2965.
  2140. Now if a value in domain field is not started with dot, then
  2141. prepend dot. That means a cookie with domain=sf.net is sent to
  2142. wiki.sf.net.
  2143. * src/Cookie.cc
  2144. * test/CookieParserTest.cc
  2145. * test/CookieStorageTest.cc
  2146. * test/CookieTest.cc
  2147. * test/NsCookieParserTest.cc
  2148. * test/Sqlite3MozCookieParserTest.cc
  2149. 2008-12-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2150. Fixed the bug that causes corrupted downloads if HTTP pipelining
  2151. is enabled and the server doesn't support keep-alive.
  2152. * src/AbstractCommand.cc
  2153. * src/DownloadCommand.cc
  2154. * src/HttpDownloadCommand.cc
  2155. * src/HttpDownloadCommand.h
  2156. * src/HttpResponseCommand.cc
  2157. * src/Request.cc
  2158. * src/Request.h
  2159. * test/RequestTest.cc
  2160. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2161. Removed Dictionary/List/Data and its related classes.
  2162. * src/BencodeVisitor.cc: Removed.
  2163. * src/BencodeVisitor.h: Removed.
  2164. * src/Data.cc: Removed.
  2165. * src/Data.h: Removed.
  2166. * src/Dictionary.cc: Removed.
  2167. * src/Dictionary.h: Removed.
  2168. * src/List.cc: Removed.
  2169. * src/List.h: Removed.
  2170. * src/Makefile.am
  2171. * src/MetaEntry.h: Removed.
  2172. * src/MetaEntryVisitor.h: Removed.
  2173. * src/MetaFileUtil.cc: Removed.
  2174. * src/MetaFileUtil.h: Removed.
  2175. * test/BencodeVisitorTest.cc: Removed.
  2176. * test/DataTest.cc: Removed.
  2177. * test/DictionaryTest.cc: Removed.
  2178. * test/ListTest.cc: Removed.
  2179. * test/Makefile.am
  2180. * test/MetaFileUtilTest.cc: Removed.
  2181. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2182. Removed include of MetaEntry.h
  2183. * test/DHTMessageTrackerEntryTest.cc
  2184. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2185. Use BDE instead of Dictionary/List/Data.
  2186. * src/AnnounceList.cc
  2187. * src/AnnounceList.h
  2188. * test/AnnounceListTest.cc
  2189. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2190. Use BDE instead of Dictionary/List/Data.
  2191. * src/DHTAbstractMessage.cc
  2192. * src/DHTAbstractMessage.h
  2193. * src/DHTAnnouncePeerMessage.cc
  2194. * src/DHTAnnouncePeerMessage.h
  2195. * src/DHTAnnouncePeerReplyMessage.cc
  2196. * src/DHTAnnouncePeerReplyMessage.h
  2197. * src/DHTFindNodeMessage.cc
  2198. * src/DHTFindNodeMessage.h
  2199. * src/DHTFindNodeReplyMessage.cc
  2200. * src/DHTFindNodeReplyMessage.h
  2201. * src/DHTGetPeersMessage.cc
  2202. * src/DHTGetPeersMessage.h
  2203. * src/DHTGetPeersReplyMessage.cc
  2204. * src/DHTGetPeersReplyMessage.h
  2205. * src/DHTMessageFactory.h
  2206. * src/DHTMessageFactoryImpl.cc
  2207. * src/DHTMessageFactoryImpl.h
  2208. * src/DHTMessageReceiver.cc
  2209. * src/DHTMessageTracker.cc
  2210. * src/DHTMessageTracker.h
  2211. * src/DHTPingMessage.cc
  2212. * src/DHTPingMessage.h
  2213. * src/DHTPingReplyMessage.cc
  2214. * src/DHTPingReplyMessage.h
  2215. * src/DHTQueryMessage.cc
  2216. * src/DHTQueryMessage.h
  2217. * src/DHTResponseMessage.cc
  2218. * src/DHTResponseMessage.h
  2219. * test/DHTAnnouncePeerMessageTest.cc
  2220. * test/DHTAnnouncePeerReplyMessageTest.cc
  2221. * test/DHTFindNodeMessageTest.cc
  2222. * test/DHTFindNodeReplyMessageTest.cc
  2223. * test/DHTGetPeersMessageTest.cc
  2224. * test/DHTGetPeersReplyMessageTest.cc
  2225. * test/DHTMessageFactoryImplTest.cc
  2226. * test/DHTMessageTrackerTest.cc
  2227. * test/DHTPingMessageTest.cc
  2228. * test/DHTPingReplyMessageTest.cc
  2229. * test/MockDHTMessageFactory.h
  2230. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2231. Added tests the case where length < 0 is specified.
  2232. * test/BencodeTest.cc
  2233. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2234. Fixed memory leak in decoderawstring()
  2235. * src/bencode.cc
  2236. 2008-12-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2237. Added missing #ifdef guard. Added uc() function for String and
  2238. removeKey() for Dict.
  2239. * src/bencode.cc
  2240. * src/bencode.h
  2241. * test/BencodeTest.cc
  2242. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2243. Use BDE instead of Dictionary/List/Data.
  2244. * src/HandshakeExtensionMessage.cc
  2245. * src/HandshakeExtensionMessage.h
  2246. * test/HandshakeExtensionMessageTest.cc
  2247. 2008-12-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2248. Added --max-overall-upload-limit option. This option limits the
  2249. overall upload speed. Stated in help message that the existing
  2250. --max-upload-limit option limits the upload speed per each
  2251. torrent. Man page is also updated.
  2252. * doc/aria2c.1.txt
  2253. * src/DefaultBtMessageDispatcher.cc
  2254. * src/DefaultBtMessageDispatcher.h
  2255. * src/OptionHandlerFactory.cc
  2256. * src/PeerInteractionCommand.cc
  2257. * src/option_processing.cc
  2258. * src/prefs.cc
  2259. * src/prefs.h
  2260. * src/usage_text.h
  2261. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2262. Use BDE instead of Dictionary/List/Data classes.
  2263. * src/CompactPeerListProcessor.cc
  2264. * src/CompactPeerListProcessor.h
  2265. * src/DefaultBtAnnounce.cc
  2266. * src/DefaultBtContext.cc
  2267. * src/DefaultBtContext.h
  2268. * src/DefaultPeerListProcessor.cc
  2269. * src/DefaultPeerListProcessor.h
  2270. * src/DelegatingPeerListProcessor.cc
  2271. * src/DelegatingPeerListProcessor.h
  2272. * src/PeerListProcessor.h
  2273. * src/UTPexExtensionMessage.cc
  2274. * src/Util.h
  2275. * src/message.h
  2276. * test/DefaultBtContextTest.cc
  2277. * test/DefaultPeerListProcessorTest.cc
  2278. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2279. Added bencode helper functions and BDE class.
  2280. They will replace MetaFileUtil and Dictionary/List/Data classes.
  2281. * src/Makefile.am
  2282. * src/bencode.cc
  2283. * src/bencode.h
  2284. * test/BencodeTest.cc
  2285. * test/Makefile.am
  2286. 2008-12-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2287. Fixed the bug that bad URI is sent to the tracker when the announe
  2288. URI in torrent file includes query.
  2289. * src/DefaultBtAnnounce.cc
  2290. * test/DefaultBtAnnounceTest.cc
  2291. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2292. Added Option::blank().
  2293. Use !Option::blank(name) instead of Option::defined(name) for
  2294. the options that take filename.
  2295. * src/MultiUrlRequestInfo.cc
  2296. * src/Option.cc
  2297. * src/Option.h
  2298. * src/main.cc
  2299. * src/option_processing.cc
  2300. * test/OptionTest.cc
  2301. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2302. Documented the default value of --check-certificate option in man
  2303. page.
  2304. * doc/aria2c.1.txt
  2305. 2008-12-04 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2306. Enabled --check-certificate by default. Added compile
  2307. time(configure) option --with-ca-bundle to specify CA bundle.
  2308. Warn if --check-certificate=true and --ca-certificate is not
  2309. specified or loading CA certificate is failed.
  2310. * configure.ac
  2311. * src/MultiUrlRequestInfo.cc
  2312. * src/OptionHandlerFactory.cc
  2313. * src/message.h
  2314. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2315. Mentioned https tag in help option.
  2316. * doc/aria2c.1.txt
  2317. 2008-12-03 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2318. Added `https' tag to help option category. Added https tag to
  2319. --ca-certificate, --certificate, --check-certificate and
  2320. --private-key option.
  2321. * src/OptionHandlerFactory.cc
  2322. * src/help_tags.h
  2323. * src/option_processing.cc
  2324. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2325. Changed the package name from `aria2c' to `aria2' in order to fix
  2326. the packaging issue in Debian and Fedora. The name of the
  2327. executable is not changed.
  2328. * configure.ac
  2329. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2330. Fixed typos
  2331. * src/usage_text.h
  2332. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2333. Fixed typos and updated doc.
  2334. * README
  2335. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2336. Fixed typos
  2337. * doc/aria2c.1.txt
  2338. 2008-12-02 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2339. Fixed typos
  2340. * src/usage_text.h
  2341. 2008-11-30 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2342. Print a message when no files to download.
  2343. * src/download_helper.cc
  2344. * src/main.cc
  2345. * src/message.h
  2346. 2008-11-28 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2347. RFC3986 complied Percent-Encoding(urlencode).
  2348. Use uppercase hexadecimal digits for encoded text instead of lowercase
  2349. ones.
  2350. * src/Request.cc
  2351. * src/Util.cc
  2352. * src/Util.h
  2353. * test/BtHandshakeMessageTest.cc
  2354. * test/DefaultBtAnnounceTest.cc
  2355. * test/DefaultBtContextTest.cc
  2356. * test/RequestTest.cc
  2357. * test/UtilTest.cc
  2358. 2008-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2359. Fixed the bug that prevents aria2 from downloading 0-length files
  2360. via HTTP/FTP.
  2361. * src/DefaultBtContext.cc
  2362. * src/DefaultBtContext.h
  2363. * src/DownloadContext.h
  2364. * src/FtpNegotiationCommand.cc
  2365. * src/HttpResponseCommand.cc
  2366. * src/HttpResponseCommand.h
  2367. * src/RequestGroup.cc
  2368. * src/SingleFileDownloadContext.cc
  2369. * src/SingleFileDownloadContext.h
  2370. * test/BtPostDownloadHandlerTest.cc
  2371. * test/MetalinkPostDownloadHandlerTest.cc
  2372. * test/MockBtContext.h
  2373. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2374. Fixed the bug that -pfalse and -ptrue are not recognized properly.
  2375. * src/option_processing.cc
  2376. 2008-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2377. Applied aria2-1.0.1-mingw.patch.
  2378. Use SOCKET_ERRNO instead of errno if the code is used both linux and
  2379. mingw.
  2380. Collected 4th and 5th argument types for getsockopt and setsockopt.
  2381. * src/SocketCore.cc
  2382. * src/a2netcompat.h
  2383. * test/SocketCoreTest.cc
  2384. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2385. * Release 1.0.1
  2386. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2387. Updated Ukrainian and Norwegian Nynorsk translations.
  2388. Thanks to all translators.
  2389. * po/nn.po
  2390. * po/uk.po
  2391. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2392. Don't show download result when -S option is used.
  2393. * src/main.cc
  2394. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2395. Bump up version number to 1.0.1
  2396. * configure.ac
  2397. 2008-11-24 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2398. Closed files after the test cases in MultiDiskWriterTest::
  2399. testResetDiskWriterEntries(). This will fix the unit test error
  2400. in mingw32 build.
  2401. * test/MultiDiskWriterTest.cc
  2402. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2403. Use HEAD method to get file size from HTTP server for segmented
  2404. downloading.
  2405. The request to the BitTorrent Tracker always uses GET method because
  2406. the response of the tracker is small and it doesn't need segmented
  2407. download.
  2408. * src/FtpNegotiationCommand.cc
  2409. * src/HttpRequest.cc
  2410. * src/HttpResponseCommand.cc
  2411. * src/HttpSkipResponseCommand.cc
  2412. * src/RequestGroup.cc
  2413. * src/RequestGroup.h
  2414. * src/TrackerWatcherCommand.cc
  2415. * test/HttpRequestTest.cc
  2416. 2008-11-23 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2417. Fixed the bug that causes floating exception when -T option is used and
  2418. no URIs are given.
  2419. * src/download_helper.cc
  2420. * test/DownloadHelperTest.cc
  2421. 2008-11-22 Ross Smith II <aria2spam at smithii dot com>
  2422. Applied aria2-1.0.0-mingw-r5.patch to fix numerous compile/unit test
  2423. errors in MinGW:
  2424. Closed file after saving server stats (RequestGroupMan.cc)
  2425. Fixed time parsing if internal strptime() is missing (FtpConnection.cc)
  2426. Ignored case & handled 2-digit years (strptime.c)
  2427. Added missing suseconds_t definition (a2time.h)
  2428. Fixed socket CLOSE() define (SocketCore.cc)
  2429. Changed EINPROGRESS to A2_EINPROGRESS (SocketCore.cc)
  2430. Changed utime() test values from x000 to x00000 as MinGW failed on
  2431. values less than timezone offset from Unix epoch
  2432. Changed 'struct stat' to 'a2_struct_stat' (FileTest.cc)
  2433. Added waitRead() call prior to reading socket (FtpConnectionTest.cc)
  2434. Changed date from 01-Jan-1960 to 01-Jan-1970 00:00:01 as MinGW can't
  2435. handle negative dates (CookieParserTest.cc)
  2436. * src/a2time.h
  2437. * src/FtpConnection.cc
  2438. * src/RequestGroupMan.cc
  2439. * src/SocketCore.cc
  2440. * src/strptime.c
  2441. * test/CookieParserTest.cc
  2442. * test/CopyDiskAdaptorTest.cc
  2443. * test/FileTest.cc
  2444. * test/FtpConnectionTest.cc
  2445. * test/MultiDiskAdaptorTest.cc
  2446. 2008-11-20 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2447. Fixed typo in "OPTIONS THAT TAKE AN OPTIONAL ARGUMENT" section.
  2448. * doc/aria2c.1.txt
  2449. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2450. * Release 1.0.0
  2451. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2452. Added '~' to reserved characters.
  2453. * src/Util.cc
  2454. 2008-11-19 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2455. Do not urlencode Request::url in setUrl() because we want unmodified
  2456. URL using Request::getUrl()
  2457. * src/Request.cc
  2458. * src/Request.h
  2459. * test/RequestTest.cc
  2460. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2461. Updated Ukrainian, Japanese, Bulgarian, Russian and French translations.
  2462. Thanks to all translators.
  2463. * po/bg.po
  2464. * po/fr.po
  2465. * po/ja.po
  2466. * po/ru.po
  2467. * po/uk.po
  2468. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2469. Bump up version number to 1.0.0
  2470. * configure.ac
  2471. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2472. Added nosqlite3 build to build_test.sh.
  2473. Renamed noxml as expat.
  2474. * build_test.sh
  2475. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2476. Updated INPUT FILE section.
  2477. * doc/aria2c.1.txt
  2478. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2479. Excluded testLoad_compat() and testLoad_nonBt_compat() when compiled
  2480. on big endian systems because test .aria2 files are made for little
  2481. endian systems.
  2482. * test/DefaultBtProgressInfoFileTest.cc
  2483. 2008-11-18 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2484. Dropped ares support.
  2485. * README
  2486. * configure.ac
  2487. * m4/libares.m4: Removed.
  2488. * src/AsyncNameResolver.cc
  2489. * src/Makefile.am
  2490. * test/Makefile.am
  2491. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2492. Rewritten ByteArrayDiskWriter::size() using seekg() and tellg().
  2493. Removed const qualifier from DiskWriter::size().
  2494. * src/AbstractDiskWriter.cc
  2495. * src/AbstractDiskWriter.h
  2496. * src/ByteArrayDiskWriter.cc
  2497. * src/ByteArrayDiskWriter.h
  2498. * src/DiskWriter.h
  2499. * test/ByteArrayDiskWriterTest.cc
  2500. 2008-11-17 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2501. Fixed the bug that causes segmentation fault/bus error during executing
  2502. choking algorithm while seeding. This is caused by improper
  2503. implementation of compare function which returns inconsistent results
  2504. depending on the timing of last unchoke.
  2505. * src/BtSeederStateChoke.cc
  2506. * src/BtSeederStateChoke.h
  2507. * src/DefaultPeerStorage.cc
  2508. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2509. Removed TODO
  2510. * TODO
  2511. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2512. Added a section that explains how to pass argument to options that
  2513. takes optional arguments with its short form.
  2514. * doc/aria2c.1.txt
  2515. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2516. Added -u for the short form of --max-upload-limit option.
  2517. * doc/aria2c.1.txt
  2518. * src/option_processing.cc
  2519. * src/usage_text.h
  2520. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2521. Added -V for the short form of --check-integrity option.
  2522. Now the argument of --check-integrity option is optional:
  2523. if it is omitted, it is evaluated as true.
  2524. * doc/aria2c.1.txt
  2525. * src/option_processing.cc
  2526. * src/usage_text.h
  2527. 2008-11-16 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2528. Made the default value of --ftp-pasv option set to true and it can take
  2529. true/false values.
  2530. * src/OptionHandlerFactory.cc
  2531. * src/option_processing.cc
  2532. * src/usage_text.h
  2533. * doc/aria2c.1.txt
  2534. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2535. Given custom random number generator to std::random_shuffle.
  2536. * src/AnnounceList.cc
  2537. * src/BtLeecherStateChoke.cc
  2538. * src/BtSeederStateChoke.cc
  2539. * src/DefaultBtRequestFactory.cc
  2540. * src/MetalinkEntry.cc
  2541. * src/RarestPieceSelector.cc
  2542. * src/SimpleRandomizer.cc
  2543. * src/SimpleRandomizer.h
  2544. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2545. Now the default value of --enable-direct-io is true.
  2546. * src/OptionHandlerFactory.cc
  2547. * doc/aria2c.1.txt
  2548. 2008-11-15 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2549. Erase peer before executing onReturningPeer and onErasingPeer
  2550. because choking algorithm called from onReturningPeer doesn't
  2551. like erasing peer in the active peer list.
  2552. * src/DefaultPeerStorage.cc
  2553. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2554. Instead of creating special filename in createDownloadResult() if
  2555. inMemoryDownload() is true, now it is done in getFilePath().
  2556. * src/RequestGroup.cc
  2557. * test/RequestGroupTest.cc
  2558. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2559. Print "[MEMORY]" and filename if a file is not saved in disk and just
  2560. processed in memory. This is the fix for previous comment out.
  2561. * src/MemoryBufferPreDownloadHandler.cc
  2562. * src/RequestGroup.cc
  2563. * src/RequestGroup.h
  2564. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2565. Commented out the code which sets virtual directory path "[MEMORY]"
  2566. propagate directory to store to following RequestGroup.
  2567. * src/MemoryBufferPreDownloadHandler.cc
  2568. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2569. Bump up version number to 1.0.0b
  2570. * configure.ac
  2571. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2572. Added input_uris.txt to EXTRA_DIST
  2573. * test/Makefile.am
  2574. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2575. Removed PeerObject.h from Makefile.am
  2576. * src/Makefile.am
  2577. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2578. Avoid slow seeding
  2579. * src/PeerInteractionCommand.cc
  2580. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2581. Updated usage for -i option.
  2582. * src/usage_text.h (TEXT_INPUT_FILE)
  2583. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2584. Added INPUT FILE section to man page.
  2585. Escaped fake URLs.
  2586. * doc/aria2c.1.txt
  2587. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2588. Fixed wrong note position for -o option.
  2589. * doc/aria2c.1.txt
  2590. 2008-11-14 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2591. Fixed compile error without SSL/XML library.
  2592. * src/DefaultBtProgressInfoFile.cc
  2593. * src/DefaultBtProgressInfoFile.h
  2594. * src/FileMetalinkParserState.cc
  2595. * src/RequestGroup.h
  2596. * src/SocketCore.cc
  2597. * src/SocketCore.h
  2598. * src/VerificationMetalinkParserState.cc
  2599. * src/download_helper.h
  2600. * src/main.cc
  2601. * test/DefaultBtProgressInfoFileTest.cc
  2602. * test/DownloadHelperTest.cc
  2603. 2008-11-13 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2604. Rewritten URI handling functions. They are now provided as a testable
  2605. functions.
  2606. * src/Makefile.am
  2607. * src/RequestGroup.cc
  2608. * src/RequestGroup.h
  2609. * src/download_helper.cc
  2610. * src/download_helper.h
  2611. * src/main.cc
  2612. * test/DownloadHelperTest.cc
  2613. * test/Makefile.am
  2614. * test/input_uris.txt
  2615. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2616. Quickly terminate commands when ctrl-c is pressed.
  2617. * src/DownloadEngine.cc
  2618. 2008-11-12 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2619. Quickly terminate idle commands when download finished.
  2620. * src/AbstractCommand.cc
  2621. * src/DownloadCommand.cc
  2622. * src/DownloadEngine.cc
  2623. * src/DownloadEngine.h
  2624. * src/SleepCommand.cc
  2625. * src/SleepCommand.h
  2626. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2627. Added the ability to specify output filename and directory in input
  2628. file.
  2629. Additional parameters are added in the following line of URIs
  2630. with proceeding white space(s), 1 parameter in 1 line.
  2631. The parameter names are the same with the command-line option name
  2632. without proceeding "--". Not all the options are available here:
  2633. at the moment, 'dir' and 'out' options are avialable.
  2634. Please note that out option has no effect against Metalink or BitTorrent
  2635. downloads.
  2636. Example input file:
  2637. http://host/foo-1.1.tar.bz2
  2638. out=foo.tar.bz2
  2639. dir=/tmp/downloads
  2640. http://host/thundermonkey-2.0.tar.bz2
  2641. And then invoke 'aria2c -i url.txt --dir ~/mydownloads'.
  2642. foo-1.1.tar.bz2 is saved as /tmp/downloads/foo.tar.bz2, whereas
  2643. thundermonkey-2.0.tar.bz2 is saved as
  2644. ~/mydownloads/thundermonkey-2.0.tar.bz2.
  2645. * src/BtPostDownloadHandler.cc
  2646. * src/Metalink2RequestGroup.cc
  2647. * src/Metalink2RequestGroup.h
  2648. * src/MetalinkPostDownloadHandler.cc
  2649. * src/UriListParser.cc
  2650. * src/UriListParser.h
  2651. * src/main.cc
  2652. * test/Metalink2RequestGroupTest.cc
  2653. * test/UriListParserTest.cc
  2654. * test/filelist1.txt
  2655. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2656. Fixed error when SSL library is not found.
  2657. * configure.ac
  2658. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2659. Cross referenced among -s, -C and -j options.
  2660. Updated usage of -C and -s options.
  2661. * src/usage_text.h
  2662. * doc/aria2c.1.txt
  2663. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2664. Fixed bad cast in 32bit platforms.
  2665. * test/DefaultPieceStorageTest.cc
  2666. (DefaultPieceStorageTest::testGetCompletedLength)
  2667. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2668. Fixed unit test fails on 32bit platforms.
  2669. * test/CookieParserTest.cc
  2670. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2671. Show an average download speed in Download results.
  2672. * src/BtFileAllocationEntry.cc
  2673. * src/DefaultPieceStorage.cc
  2674. * src/DownloadContext.cc
  2675. * src/DownloadContext.h
  2676. * src/DownloadResult.h
  2677. * src/RequestGroup.cc
  2678. * src/RequestGroupMan.cc
  2679. * src/StreamFileAllocationEntry.cc
  2680. 2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2681. Fixed the bug that metalink file is not processed if Content-Type
  2682. field has a paramter.
  2683. * src/HttpResponse.cc
  2684. * src/HttpResponse.h
  2685. * test/HttpResponseTest.cc
  2686. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2687. Removed unused code.
  2688. * src/DefaultBtAnnounce.cc
  2689. 2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2690. Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
  2691. the value larger than DefaultPieceStorage::getTotalLength() when
  2692. in flight pieces are involved.
  2693. * src/DefaultPieceStorage.cc
  2694. * test/DefaultPieceStorageTest.cc
  2695. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2696. Bump up version number to 1.0.0a.
  2697. * configure.ac
  2698. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2699. Updated configure.ac
  2700. * configure.ac
  2701. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2702. Added usege for proxy.
  2703. * doc/aria2c.1.txt
  2704. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2705. Added usage for --ca-certificate, --certificate, --private-key and
  2706. --check-certificate options.
  2707. * doc/aria2c.1.txt
  2708. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2709. Updated man page
  2710. * doc/aria2c.1.txt
  2711. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2712. Added --no-proxy option. It receives comman separated hostname or
  2713. domains to which proxy should not be used.
  2714. aria2 honors the environment variable no_proxy to override no-proxy
  2715. value in configuration file. The user can override the environment
  2716. variable no_proxy with --no-proxy command-line option.
  2717. * src/AbstractCommand.cc
  2718. * src/OptionHandlerFactory.cc
  2719. * src/option_processing.cc
  2720. * src/prefs.cc
  2721. * src/prefs.h
  2722. * src/usage_text.h
  2723. 2008-11-09 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2724. Added the ability to verify peer in SSL/TLS using given CA certificates.
  2725. The CA certificates are specified in --ca-certificate option.
  2726. By default, the verification is disabled. Use --check-certificate
  2727. option to enable it.
  2728. * src/HttpRequestCommand.cc
  2729. * src/LibgnutlsTLSContext.cc
  2730. * src/LibgnutlsTLSContext.h
  2731. * src/LibsslTLSContext.cc
  2732. * src/LibsslTLSContext.h
  2733. * src/MultiUrlRequestInfo.cc
  2734. * src/OptionHandlerFactory.cc
  2735. * src/SocketCore.cc
  2736. * src/SocketCore.h
  2737. * src/a2functional.h
  2738. * src/message.h
  2739. * src/option_processing.cc
  2740. * src/prefs.cc
  2741. * src/prefs.h
  2742. * src/usage_text.h
  2743. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2744. Added client certificate authentication for SSL/TLS.
  2745. Currently a private key must be decrypted for use with aria2.
  2746. If a user accidentally gives encrypted file to aria2 then following
  2747. thing happens:
  2748. If encrypted private key is given to aria2, it behaves differently
  2749. depending on the ssl library it uses. If aria2 built with openssl then
  2750. openssl prompts the user for password. If aria2 build with gnutls then
  2751. aria2 exists with error at start up.
  2752. * src/DownloadEngineFactory.cc
  2753. * src/MultiUrlRequestInfo.cc
  2754. * src/OptionHandlerFactory.cc
  2755. * src/option_processing.cc
  2756. * src/prefs.cc
  2757. * src/prefs.h
  2758. * src/usage_text.h
  2759. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2760. Introduced TLSContext that holds TLS related data that can be shared
  2761. with multiple SSL connections.
  2762. * src/DownloadEngineFactory.cc
  2763. * src/LibgnutlsTLSContext.cc
  2764. * src/LibgnutlsTLSContext.h
  2765. * src/LibsslTLSContext.cc
  2766. * src/LibsslTLSContext.h
  2767. * src/Makefile.am
  2768. * src/SocketCore.cc
  2769. * src/SocketCore.h
  2770. * src/TLSContext.h
  2771. * src/message.h
  2772. 2008-11-08 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
  2773. Fixed the bug that the DiskWriter of the first FileEntry whose
  2774. `needsFileAllocation' property is false is not created
  2775. even if it shares a piece with next FileEntry which `requested' property
  2776. is true.
  2777. Fixed the bug that zero-length file is not created if pre file
  2778. allocation is not done.
  2779. * src/MultiDiskAdaptor.cc
  2780. * src/MultiDiskAdaptor.h
  2781. * test/MultiDiskAdaptorTest.cc
  2782. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2783. Added the ability to pool proxy connection.
  2784. The conneciton in FTP with proxy-method=GET is not pooled.
  2785. Proxy-Connection header will not be sent when sending CONNECT method.
  2786. * src/DownloadEngine.cc
  2787. * src/DownloadEngine.h
  2788. * src/FtpFinishDownloadCommand.cc
  2789. * src/FtpInitiateConnectionCommand.cc
  2790. * src/FtpNegotiationCommand.cc
  2791. * src/HttpDownloadCommand.cc
  2792. * src/HttpInitiateConnectionCommand.cc
  2793. * src/HttpRequest.cc
  2794. * src/HttpRequest.h
  2795. * src/HttpResponse.cc
  2796. * src/HttpSkipResponseCommand.cc
  2797. * test/HttpRequestTest.cc
  2798. * test/HttpResponseTest.cc
  2799. 2008-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2800. Handle date before epoch.
  2801. To create *bad* Time object, call Time::null().
  2802. * src/CookieParser.cc
  2803. * src/FtpConnection.cc
  2804. * src/FtpConnection.h
  2805. * src/FtpNegotiationCommand.cc
  2806. * src/RequestGroup.cc
  2807. * src/TimeA2.cc
  2808. * src/TimeA2.h
  2809. * test/CookieParserTest.cc
  2810. * test/FtpConnectionTest.cc
  2811. * test/TimeTest.cc
  2812. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2813. Added support for following envrionment variables: http_proxy,
  2814. https_proxy, ftp_proxy and all_proxy.
  2815. Each variable is equivalent to the aria2 option whose name is the
  2816. variable name with '_' replaced with '-'.
  2817. They overrides options specified in aria2.conf file.
  2818. The envrionment variables can be overrode using command-line option.
  2819. * src/option_processing.cc
  2820. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2821. Renamed --http-proxy-method as --proxy-method.
  2822. * src/AbstractCommand.cc
  2823. * src/FtpInitiateConnectionCommand.cc
  2824. * src/HttpInitiateConnectionCommand.cc
  2825. * src/OptionHandlerFactory.cc
  2826. * src/option_processing.cc
  2827. * src/prefs.cc
  2828. * src/prefs.h
  2829. * src/usage_text.h
  2830. 2008-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2831. Deprecated --http-proxy-user and --http-proxy-passwd options.
  2832. Added --https-proxy, --ftp-proxy and --all-proxy options.
  2833. Above 3 options and --http-proxy option can handle proxy in URL format
  2834. like: http://user:passwd@host:port.
  2835. If a proxy requires user/password, they must be specified in a URL.
  2836. Deprecated --ftp-via-http-proxy option. Use --http-proxy-method option
  2837. instead.
  2838. * src/AbstractCommand.cc
  2839. * src/AbstractCommand.h
  2840. * src/AbstractProxyRequestCommand.cc
  2841. * src/AbstractProxyRequestCommand.h
  2842. * src/AuthConfigFactory.cc
  2843. * src/AuthConfigFactory.h
  2844. * src/FtpFinishDownloadCommand.cc
  2845. * src/FtpInitiateConnectionCommand.cc
  2846. * src/FtpInitiateConnectionCommand.h
  2847. * src/FtpNegotiationCommand.cc
  2848. * src/FtpTunnelRequestCommand.cc
  2849. * src/FtpTunnelRequestCommand.h
  2850. * src/HttpDownloadCommand.cc
  2851. * src/HttpInitiateConnectionCommand.cc
  2852. * src/HttpInitiateConnectionCommand.h
  2853. * src/HttpProxyRequestCommand.cc
  2854. * src/HttpProxyRequestCommand.h
  2855. * src/HttpRequest.cc
  2856. * src/HttpRequest.h
  2857. * src/HttpRequestCommand.cc
  2858. * src/HttpRequestCommand.h
  2859. * src/HttpSkipResponseCommand.cc
  2860. * src/InitiateConnectionCommand.cc
  2861. * src/InitiateConnectionCommand.h
  2862. * src/OptionHandlerFactory.cc
  2863. * src/OptionHandlerImpl.h
  2864. * src/Request.cc
  2865. * src/option_processing.cc
  2866. * src/prefs.cc
  2867. * src/prefs.h
  2868. * src/usage_text.h
  2869. * test/AuthConfigFactoryTest.cc
  2870. * test/HttpRequestTest.cc
  2871. * test/OptionHandlerTest.cc
  2872. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2873. Execute choking algorithm when unchoked and interested peer is
  2874. disconected.
  2875. * src/DefaultPeerStorage.cc
  2876. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2877. Added testcase for BtNotInterestedMessage from unchoked peer.
  2878. * test/BtNotInterestedMessageTest.cc
  2879. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2880. Execute choking algorithm when BtInterestedMessage arrives from
  2881. unchoked peer.
  2882. * src/BtInterestedMessage.cc
  2883. * src/BtInterestedMessage.h
  2884. * src/DefaultBtMessageFactory.cc
  2885. * test/BtInterestedMessageTest.cc
  2886. * test/MockPeerStorage.h
  2887. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2888. AuthConfigFactory is now part of DownloadEngine.
  2889. * src/AbstractProxyRequestCommand.cc
  2890. * src/AuthConfigFactory.h
  2891. * src/DownloadEngine.cc
  2892. * src/DownloadEngine.h
  2893. * src/FtpConnection.cc
  2894. * src/FtpConnection.h
  2895. * src/FtpNegotiationCommand.cc
  2896. * src/HttpConnection.cc
  2897. * src/HttpRequest.cc
  2898. * src/HttpRequest.h
  2899. * src/HttpRequestCommand.cc
  2900. * src/HttpResponse.cc
  2901. * src/HttpResponseCommand.cc
  2902. * src/HttpSkipResponseCommand.cc
  2903. * src/MultiUrlRequestInfo.cc
  2904. * src/main.cc
  2905. * test/FtpConnectionTest.cc
  2906. * test/HttpRequestTest.cc
  2907. * test/HttpResponseTest.cc
  2908. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2909. Corrected catched exception type.
  2910. * src/ServerStatMan.cc
  2911. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2912. DNSCache is now part of DownloadEngine.
  2913. * src/DNSCache.h
  2914. * src/DownloadEngine.cc
  2915. * src/DownloadEngine.h
  2916. * src/InitiateConnectionCommand.cc
  2917. * src/MultiUrlRequestInfo.cc
  2918. * test/Makefile.am
  2919. * test/Makefile.in
  2920. * test/SimpleDNSCacheTest.cc
  2921. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2922. Removed SingletonHolder of CUIDCounter. CUIDCounter is now part of
  2923. DownloadEngine.
  2924. * src/ActivePeerConnectionCommand.cc
  2925. * src/BtSetup.cc
  2926. * src/CUIDCounter.h
  2927. * src/DHTSetup.cc
  2928. * src/DownloadCommand.cc
  2929. * src/DownloadEngine.cc
  2930. * src/DownloadEngine.h
  2931. * src/DownloadEngineFactory.cc
  2932. * src/FileAllocationDispatcherCommand.cc
  2933. * src/InitiatorMSEHandshakeCommand.cc
  2934. * src/PeerInitiateConnectionCommand.cc
  2935. * src/PeerInteractionCommand.cc
  2936. * src/PeerListenCommand.cc
  2937. * src/RequestGroup.cc
  2938. * src/StreamFileAllocationEntry.cc
  2939. * src/TrackerWatcherCommand.cc
  2940. * src/main.cc
  2941. * test/RequestGroupManTest.cc
  2942. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2943. Implemented commented code in BtSeederStateChoke
  2944. * src/BtSeederStateChoke.cc
  2945. * src/Peer.cc
  2946. * src/Peer.h
  2947. * src/PeerInteractionCommand.cc
  2948. * src/PeerSessionResource.cc
  2949. * src/PeerSessionResource.h
  2950. * test/MockBtMessageDispatcher.h
  2951. * test/PeerSessionResourceTest.cc
  2952. 2008-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  2953. Made BtRegistry non-static object. Now DownloadEngine has a reference to
  2954. its object.
  2955. * src/AbstractBtMessage.cc
  2956. * src/ActivePeerConnectionCommand.cc
  2957. * src/ActivePeerConnectionCommand.h
  2958. * src/BtContextAwareCommand.cc
  2959. * src/BtContextAwareCommand.h
  2960. * src/BtExtendedMessage.cc
  2961. * src/BtExtendedMessage.h
  2962. * src/BtInterestedMessage.cc
  2963. * src/BtInterestedMessage.h
  2964. * src/BtNotInterestedMessage.cc
  2965. * src/BtNotInterestedMessage.h
  2966. * src/BtRegistry.cc
  2967. * src/BtRegistry.h
  2968. * src/BtSeederStateChoke.cc
  2969. * src/BtSetup.cc
  2970. * src/DHTGetPeersCommand.cc
  2971. * src/DHTGetPeersCommand.h
  2972. * src/DHTPeerAnnounceEntry.cc
  2973. * src/DHTPeerAnnounceEntry.h
  2974. * src/DHTPeerAnnounceStorage.cc
  2975. * src/DHTPeerAnnounceStorage.h
  2976. * src/DHTPeerLookupTask.cc
  2977. * src/DHTPeerLookupTask.h
  2978. * src/DHTSetup.cc
  2979. * src/DHTSetup.h
  2980. * src/DHTTaskFactory.h
  2981. * src/DHTTaskFactoryImpl.cc
  2982. * src/DHTTaskFactoryImpl.h
  2983. * src/DefaultBtAnnounce.cc
  2984. * src/DefaultBtInteractive.cc
  2985. * src/DefaultBtInteractive.h
  2986. * src/DefaultBtMessageDispatcher.cc
  2987. * src/DefaultBtMessageDispatcher.h
  2988. * src/DefaultBtMessageFactory.cc
  2989. * src/DefaultBtMessageFactory.h
  2990. * src/DefaultBtMessageReceiver.cc
  2991. * src/DefaultBtProgressInfoFile.cc
  2992. * src/DefaultBtProgressInfoFile.h
  2993. * src/DefaultBtRequestFactory.cc
  2994. * src/DefaultBtRequestFactory.h
  2995. * src/DefaultExtensionMessageFactory.cc
  2996. * src/DefaultExtensionMessageFactory.h
  2997. * src/DefaultPeerStorage.cc
  2998. * src/DefaultPeerStorage.h
  2999. * src/DownloadEngine.cc
  3000. * src/DownloadEngine.h
  3001. * src/InitiatorMSEHandshakeCommand.cc
  3002. * src/InitiatorMSEHandshakeCommand.h
  3003. * src/MSEHandshake.cc
  3004. * src/MSEHandshake.h
  3005. * src/Makefile.am
  3006. * src/Makefile.in
  3007. * src/PeerChokeCommand.cc
  3008. * src/PeerChokeCommand.h
  3009. * src/PeerInitiateConnectionCommand.cc
  3010. * src/PeerInitiateConnectionCommand.h
  3011. * src/PeerInteractionCommand.cc
  3012. * src/PeerInteractionCommand.h
  3013. * src/PeerObject.h
  3014. * src/PeerReceiveHandshakeCommand.cc
  3015. * src/PeerReceiveHandshakeCommand.h
  3016. * src/ReceiverMSEHandshakeCommand.cc
  3017. * src/RequestGroup.cc
  3018. * src/RequestGroup.h
  3019. * src/RequestGroupMan.cc
  3020. * src/RequestGroupMan.h
  3021. * src/SeedCheckCommand.cc
  3022. * src/SeedCheckCommand.h
  3023. * src/ShareRatioSeedCriteria.h
  3024. * src/SimpleBtMessage.cc
  3025. * src/TrackerWatcherCommand.cc
  3026. * src/TrackerWatcherCommand.h
  3027. * src/UTPexExtensionMessage.cc
  3028. * src/UTPexExtensionMessage.h
  3029. * test/BtCancelMessageTest.cc
  3030. * test/BtChokeMessageTest.cc
  3031. * test/BtExtendedMessageTest.cc
  3032. * test/BtInterestedMessageTest.cc
  3033. * test/BtNotInterestedMessageTest.cc
  3034. * test/BtPieceMessageTest.cc
  3035. * test/BtPortMessageTest.cc
  3036. * test/BtRegistryTest.cc
  3037. * test/BtRejectMessageTest.cc
  3038. * test/BtRequestMessageTest.cc
  3039. * test/DHTPeerAnnounceEntryTest.cc
  3040. * test/DHTPeerAnnounceStorageTest.cc
  3041. * test/DefaultBtMessageDispatcherTest.cc
  3042. * test/DefaultBtMessageFactoryTest.cc
  3043. * test/DefaultBtProgressInfoFileTest.cc
  3044. * test/DefaultBtRequestFactoryTest.cc
  3045. * test/DefaultExtensionMessageFactoryTest.cc
  3046. * test/MSEHandshakeTest.cc
  3047. * test/MockDHTTaskFactory.h
  3048. * test/ShareRatioSeedCriteriaTest.cc
  3049. * test/UTPexExtensionMessageTest.cc
  3050. 2008-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3051. Fixed compiler warning.
  3052. * test/UtilTest.cc
  3053. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3054. Treat Cookie object as session cookie if expiry = 0 is given.
  3055. With this change, you can specify session scoped cookies in an external
  3056. file setting expiry value to 0.
  3057. * src/Cookie.cc
  3058. * src/Cookie.h
  3059. * test/CookieParserTest.cc
  3060. * test/CookieStorageTest.cc
  3061. * test/CookieTest.cc
  3062. 2008-10-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3063. Changed signature of DHTMessageFactory::createResponseMessage().
  3064. Removed unused validateIDMatch.
  3065. * src/DHTMessageFactory.h
  3066. * src/DHTMessageFactoryImpl.cc
  3067. * src/DHTMessageFactoryImpl.h
  3068. * src/DHTMessageTracker.cc
  3069. * test/DHTMessageFactoryImplTest.cc
  3070. * test/MockDHTMessageFactory.h
  3071. Dropped DHT message coming from same ID of localhost.
  3072. * src/DHTMessageReceiver.cc
  3073. Rejected adding node whose ID is the same as localhost's.
  3074. * src/DHTRoutingTable.cc
  3075. * test/BtPortMessageTest.cc
  3076. * test/DHTRoutingTableTest.cc
  3077. 2008-10-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3078. Pool connection when redirection occurs with Content-Length = 0.
  3079. * src/HttpSkipResponseCommand.cc
  3080. * src/HttpSkipResponseCommand.h
  3081. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3082. Fixed the bug that causes time out when redirection occurs with
  3083. content-length 0.
  3084. * src/HttpResponseCommand.cc
  3085. * src/HttpSkipResponseCommand.cc
  3086. * src/HttpSkipResponseCommand.h
  3087. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3088. Now each status legends is shown only when it appears in Download
  3089. Result. If Download Result has no item, then status legend will not
  3090. be printed.
  3091. * src/RequestGroupMan.cc
  3092. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3093. Removed duplicate creation of OptionHandlers.
  3094. * src/option_processing.cc
  3095. 2008-10-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3096. Fixed the bug that causes segmentation fault when accessing files which
  3097. don't exist or are not included in --select-file option while
  3098. validating chunk checksum.
  3099. * src/MultiDiskAdaptor.cc
  3100. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3101. Fixed compiler warning.
  3102. * test/UtilTest.cc
  3103. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3104. Included cstdlib. This fixed the compile error with g++-4.3.2.
  3105. * src/IteratableChecksumValidator.cc
  3106. * src/IteratableChunkChecksumValidator.cc
  3107. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3108. * Release 0.16.2
  3109. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3110. Added Serbian translation. Updated Ukrainian translation.
  3111. Thanks to all translators.
  3112. * po/sr.po
  3113. * po/uk.po
  3114. * po/LINGUAS
  3115. 2008-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3116. Bump up version number to 0.16.2
  3117. * configure.ac
  3118. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3119. Added length equality test to operator== to drop a piece message
  3120. whose length does not match to the requested one.
  3121. * src/RequestSlot.cc
  3122. * test/DefaultBtMessageDispatcherTest.cc
  3123. 2008-10-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3124. Fixed the bug that aria2 aborts when a request larger than 16KiB is
  3125. recieved.
  3126. In this fix, if a request larger than 16KiB length is received, aria2
  3127. disconnects the peer.
  3128. * src/BtConstants.h
  3129. * src/PeerMessageUtil.cc
  3130. * src/PeerMessageUtil.h
  3131. * test/BtRequestMessageTest.cc
  3132. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3133. * Release 0.16.1
  3134. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3135. Replaced '@' with 'at' in AUTHOR and REPORT BUG.
  3136. * doc/aria2c.1.txt
  3137. 2008-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3138. Added Ukrainian, Vietnamese, Traditional Chinese translations.
  3139. Updated French, Simplified Chinese and Japanese translations.
  3140. Thanks to all translators.
  3141. en@quot and en@boldquot are also added.
  3142. * po/LINGUAS
  3143. * po/fr.po
  3144. * po/ja.po
  3145. * po/uk.po
  3146. * po/vi.po
  3147. * po/zh_CN.po
  3148. * po/zh_TW.po
  3149. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3150. Bump up version number to 0.16.1.
  3151. * configure.ac
  3152. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3153. Updated README.
  3154. * README
  3155. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3156. Updated man page. Changed doctype of aria2c.1.html to manpage in order
  3157. not to replace '--' with em dash character.
  3158. * doc/aria2c.1.txt
  3159. * doc/makeman
  3160. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3161. Added --auto-save-interval=SEC option. A control file(*.aria2) is saved
  3162. every SEC seconds.
  3163. * src/DownloadEngineFactory.cc
  3164. * src/OptionHandlerFactory.cc
  3165. * src/option_processing.cc
  3166. * src/usage_text.h
  3167. 2008-10-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3168. Fixed compile warning on linux-amd64
  3169. * src/FtpConnection.cc
  3170. * src/IteratableChunkChecksumValidator.cc
  3171. * src/MultiDiskAdaptor.cc
  3172. Fixed the bug that unit test fails on linux-amd64
  3173. * test/UtilTest.cc
  3174. 2008-10-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3175. Added --dht-file-path option to change the path to dht.dat, which is a
  3176. serialized DHT routing table.
  3177. * src/OptionHandlerFactory.cc
  3178. * src/option_processing.cc
  3179. * src/usage_text.h
  3180. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3181. Fixed possible underflow.
  3182. * src/BitfieldMan.cc (BitfieldMan::getNthBitIndex)
  3183. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3184. Fixed the bug that last character in URI is not encoded.
  3185. * src/Request.cc
  3186. * test/RequestTest.cc
  3187. 2008-10-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3188. Fixed the bug that referer header field contains fragment.
  3189. Now Request class removes fragment part of URI and encodes it
  3190. in Request::setUri() and setReferer().
  3191. * src/Request.h
  3192. * src/Request.cc
  3193. * test/RequestTest.cc
  3194. 2008-10-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3195. Added missing m4 macros.
  3196. * m4/cppunit.m4
  3197. * m4/libgcrypt.m4
  3198. * m4/libgnutls-extra.m4
  3199. * m4/libgnutls.m4
  3200. * m4/libxml2.m4
  3201. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3202. Fixed compile error with gcc-4.4(snapshot)
  3203. * src/File.cc
  3204. * src/FtpConnection.cc
  3205. * src/OptionHandlerImpl.h
  3206. * src/Util.cc
  3207. 2008-10-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3208. Removed assert()
  3209. * src/SocketBuffer.cc (SocketBuffer::send)
  3210. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3211. Changed the type of _numNewConnection to unsigned int.
  3212. * src/ActivePeerConnectionCommand.cc
  3213. * src/ActivePeerConnectionCommand.h
  3214. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3215. * Release 0.16.0
  3216. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3217. Updated doc
  3218. * README
  3219. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3220. Updated French, Simplified Chinese, German, Bulgarian and Japanese
  3221. translations. Thanks to all translators.
  3222. * po/bg.po
  3223. * po/de.po
  3224. * po/fr.po
  3225. * po/ja.po
  3226. * po/zh_CN.po
  3227. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3228. Bump up version number to 0.16.0.
  3229. * configure.ac
  3230. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3231. Casted entry->maxConnections to int32_t for std::min<T> with T =
  3232. int32_t.
  3233. Changed the type of count to int32_t.
  3234. * src/Metalink2RequestGroup.cc
  3235. 2008-10-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3236. Added test for Time::elapsed(time_t).
  3237. * test/TimeTest.cc
  3238. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3239. Fixed the bug in Time::elapsed(): Util::difftvsec() is used where
  3240. Util::difftv() should be used instead.
  3241. * src/TimeA2.cc
  3242. * src/TimeA2.h
  3243. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3244. Made socket for dht connections non-blocking
  3245. * src/DHTAbstractMessage.cc
  3246. * src/DHTAbstractMessage.h
  3247. * src/DHTConnection.h
  3248. * src/DHTConnectionImpl.cc
  3249. * src/DHTConnectionImpl.h
  3250. * src/DHTMessage.h
  3251. * src/DHTMessageDispatcherImpl.cc
  3252. * src/DHTMessageDispatcherImpl.h
  3253. * src/DHTUnknownMessage.cc
  3254. * src/DHTUnknownMessage.h
  3255. * src/SocketCore.cc
  3256. * src/SocketCore.h
  3257. * test/MockDHTMessage.h
  3258. 2008-10-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3259. Changed the type of offset to int.
  3260. * src/ParameterizedStringParser.cc
  3261. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3262. Made getAsInt() return int32_t
  3263. * src/Option.h
  3264. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3265. Check the availability of winsock2.h and ws2tcpip.h only for mingw32
  3266. build.
  3267. * configure.ac
  3268. 2008-10-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3269. Use sqlite3_open if sqlite3_open_v2 is not available.
  3270. * src/Sqlite3MozCookieParser.cc
  3271. * src/Sqlite3MozCookieParser.h
  3272. * m4/sqlite3.m4
  3273. * test/Sqlite3MozCookieParserTest.cc
  3274. 2008-10-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3275. Replaced '%zu' with '%lu' since mingw32 doesn't recognize '%zu'.
  3276. * src/BtPieceMessage.cc
  3277. * src/DHTPeerAnnounceStorage.cc
  3278. * src/DefaultPieceStorage.cc
  3279. * src/DownloadCommand.cc
  3280. * src/DownloadEngine.cc
  3281. * src/FtpConnection.cc
  3282. * src/PeerConnection.cc
  3283. * src/PeerMessageUtil.cc
  3284. * src/RequestGroup.cc
  3285. * src/RequestGroupMan.cc
  3286. * src/SimpleBtMessage.cc
  3287. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3288. Use seek() and SetEndOfFile() for mingw32 build instead of ftruncate(),
  3289. because mingw32's ftruncate() cannot handle more than 2GB-size file.
  3290. * src/AbstractDiskWriter.cc
  3291. 2008-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3292. Don't set Request::supportsPersistentConnection() in HttpConnection
  3293. since this code is also used in AbstractProxyResponseCommand.
  3294. Moved those code to HttpResponse.
  3295. * src/HttpResponse.cc
  3296. * src/HttpResponse.h
  3297. * src/HttpConnection.cc
  3298. * src/HttpConnection.h
  3299. * src/HttpResponseCommand.cc
  3300. * test/HttpResponseTest.cc
  3301. 2008-09-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3302. Fixed compile error with debian mingw32 cross compiler(4.2.1).
  3303. The configuration is minimum: no torrent, no metalink, so there may be
  3304. other compile error on their code.
  3305. * src/a2netcompat.h
  3306. * src/File.cc
  3307. * src/File.h
  3308. * src/SocketCore.cc
  3309. * src/SocketCore.h
  3310. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3311. Made a socket of incoming peer non-blocking.
  3312. * src/PeerListenCommand.cc
  3313. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3314. Fixed the bug that aria2 may send duplicate data to BitTorrent peer if
  3315. whole message data is not sent in one send() call.
  3316. * src/BtPieceMessage.cc
  3317. * src/BtPieceMessage.h
  3318. * src/PeerConnection.cc
  3319. * src/PeerConnection.h
  3320. * src/SimpleBtMessage.cc
  3321. * src/SimpleBtMessage.h
  3322. 2008-09-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3323. Fixed the bug that aria2 downloads faster than max-download-limit when
  3324. downloading file using both HTTP(or FTP) and BitTorrent, because aria2
  3325. evaluates speed separatly(HTTP and BiTorrent) against max-download-limit
  3326. , instead of sum of them.
  3327. * src/ActivePeerConnectionCommand.cc
  3328. * src/DefaultBtInteractive.cc
  3329. * src/DownloadCommand.cc
  3330. * src/PeerInteractionCommand.cc
  3331. * src/PeerReceiveHandshakeCommand.cc
  3332. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3333. Fixed the bug that HTTPS download fails.
  3334. * src/AbstractCommand.cc
  3335. * src/AbstractCommand.h
  3336. * src/DownloadCommand.cc
  3337. * src/FtpConnection.cc
  3338. * src/HttpConnection.cc
  3339. * src/HttpRequestCommand.cc
  3340. * src/HttpResponseCommand.cc
  3341. * src/HttpSkipResponseCommand.cc
  3342. * src/MSEHandshake.cc
  3343. * src/PeerConnection.cc
  3344. * src/SocketCore.cc
  3345. * src/SocketCore.h
  3346. Fixed the bug that aria2 doesn't download whole content body and cannot
  3347. reuse connection if chunked transfer encoding and gzip content encoding
  3348. are set.
  3349. * src/DownloadCommand.cc
  3350. * src/HttpSkipResponseCommand.cc
  3351. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3352. Updated man page.
  3353. * doc/aria2c.1.txt
  3354. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3355. When error occurred while aria2 was parsing an .aria2.conf file, print
  3356. the usage of the option that caused error.
  3357. * src/option_processing.cc
  3358. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3359. Fixed compile error on OptionHandlerException
  3360. * src/Makefile.am
  3361. * src/OptionHandlerException.cc
  3362. * src/OptionHandlerException.h
  3363. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3364. Moved message of the error to OptionHandlerException.h
  3365. * src/NameMatchOptionHandler.h
  3366. * src/OptionHandlerException.h
  3367. 2008-09-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3368. When error occurs while aria2 is parsing an command-line option, print
  3369. the usage of the option.
  3370. * src/Makefile.am
  3371. * src/NameMatchOptionHandler.h
  3372. * src/OptionHandlerException.h
  3373. * src/option_processing.cc
  3374. 2008-09-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3375. Reverted previous change.
  3376. Insert username+'@' to URI(after ftp://) when URI is FTP scheme and
  3377. username is not in URI.
  3378. * src/HttpRequest.cc
  3379. * src/Request.cc
  3380. * test/HttpRequestTest.cc
  3381. * test/RequestTest.cc
  3382. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3383. Now colon is required for username and password in FTP URL, like:
  3384. ftp://username:password@host.
  3385. If colon is not there, aria2 don't parse it as a username. For example,
  3386. aria2 don't retrieve username from ftp://username@host.
  3387. This fix was made in order to login FTP server via non-transparent ftp
  3388. proxy.
  3389. * src/Request.cc
  3390. * test/RequestTest.cc
  3391. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3392. Use netrc for HTTP.
  3393. Now FTP user/password is sent in Authorization header when
  3394. --ftp-via-http-proxy=get is given.
  3395. * src/AuthConfigFactory.cc
  3396. * src/HttpRequest.cc
  3397. * src/HttpRequest.h
  3398. * src/NetrcAuthResolver.cc
  3399. * src/NetrcAuthResolver.h
  3400. * src/OptionHandlerFactory.cc
  3401. * src/option_processing.cc
  3402. * src/prefs.cc
  3403. * src/prefs.h
  3404. * test/AuthConfigFactoryTest.cc
  3405. * test/HttpRequestTest.cc
  3406. * test/NetrcAuthResolverTest.cc
  3407. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3408. Issue PWD command first and get working directory and use it as a prefix
  3409. for CWD command.
  3410. * src/DownloadEngine.cc
  3411. * src/DownloadEngine.h
  3412. * src/FtpConnection.cc
  3413. * src/FtpConnection.h
  3414. * src/FtpFinishDownloadCommand.cc
  3415. * src/FtpInitiateConnectionCommand.cc
  3416. * src/FtpNegotiationCommand.cc
  3417. * src/FtpNegotiationCommand.h
  3418. * test/FtpConnectionTest.cc
  3419. 2008-09-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3420. Removed default user/pass for FTP user/pass, since it should not have
  3421. precedence over netrc configuration by default.
  3422. * src/OptionHandlerFactory.cc
  3423. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3424. Added debug log for socket event.
  3425. * src/AbstractCommand.cc
  3426. * src/PeerAbstractCommand.cc
  3427. 2008-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3428. Log microseconds.
  3429. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  3430. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3431. Replaced HelpItem.cc with OptionHandler.cc.
  3432. * po/POTFILES.in
  3433. Updated po files with 'make update-po'
  3434. * po/aria2c.pot
  3435. * po/*.po
  3436. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3437. Removed possible values from the text.
  3438. * src/usage_text.h (TEXT_METALINK_PREFERRED_PROTOCOL)
  3439. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3440. Removed unused preferences:
  3441. PREF_NO_PREALLOCATION
  3442. PREF_STDOUT_LOG
  3443. PREF_TRACKER_MAX_TRIES
  3444. PREF_DIRECT_DOWNLOAD_TIMEOUT
  3445. PREF_MIN_SEGMENT_SIZE
  3446. * src/option_processing.cc
  3447. * src/prefs.cc
  3448. * src/prefs.h
  3449. 2008-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3450. Integrated HelpItem into OptionParser to ease the workload for adding
  3451. new options. Removed default value from usage text.
  3452. * src/HelpItem.cc: Removed.
  3453. * src/HelpItem.h: Removed.
  3454. * src/HelpItemFactory.cc: Removed.
  3455. * src/HelpItemFactory.h: Removed.
  3456. * src/Makefile.am
  3457. * src/Makefile.in
  3458. * src/NameMatchOptionHandler.h
  3459. * src/OptionHandler.cc
  3460. * src/OptionHandler.h
  3461. * src/OptionHandlerFactory.cc
  3462. * src/OptionHandlerImpl.h
  3463. * src/OptionParser.cc
  3464. * src/OptionParser.h
  3465. * src/TagContainer.cc: Removed.
  3466. * src/TagContainer.h: Removed.
  3467. * src/TaggedItem.cc: Removed.
  3468. * src/TaggedItem.h: Removed.
  3469. * src/main.cc
  3470. * src/option_processing.cc
  3471. * src/usage_text.h
  3472. * src/version_usage.cc
  3473. * test/HelpItemTest.cc: Removed.
  3474. * test/Makefile.am
  3475. * test/Makefile.in
  3476. * test/OptionHandlerTest.cc
  3477. * test/OptionParserTest.cc
  3478. * test/TagContainerTest.cc: Removed.
  3479. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3480. Moved `TransferStat stat = ...' to inside the `if' clause.
  3481. * src/RequestGroup.cc (RequestGroup::reportDownloadFinished)
  3482. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3483. Fixed the bug that a block in a piece is requested when same block is
  3484. already requested to the same peer in end game mode.
  3485. * src/BtRequestFactory.h
  3486. * src/DefaultBtInteractive.cc
  3487. * src/DefaultBtRequestFactory.cc
  3488. * src/DefaultBtRequestFactory.h
  3489. * src/DefaultPieceStorage.cc
  3490. * src/DefaultPieceStorage.h
  3491. * src/PieceStorage.h
  3492. * src/UnknownLengthPieceStorage.cc
  3493. * src/UnknownLengthPieceStorage.h
  3494. * test/DefaultBtRequestFactoryTest.cc
  3495. * test/DefaultPieceStorageTest.cc
  3496. * test/MockBtRequestFactory.h
  3497. * test/MockPieceStorage.h
  3498. 2008-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3499. Removed _uploadLength and _downloadLength from PeerSessionResource
  3500. and use PeerStat::_sessionUploadLength and
  3501. PeerStat::_sessionDownloadLength.
  3502. * src/PeerSessionResource.cc
  3503. * src/PeerSessionResource.h
  3504. 2008-09-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3505. Fixed the bug that prefixLength of split bucket which doesn't include
  3506. local node ID is incremented.
  3507. * src/DHTBucket.cc
  3508. * src/DHTBucket.h
  3509. * test/DHTBucketTest.cc
  3510. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3511. Added cookies.sqlite to EXTRA_DIST
  3512. * test/Makefile.am
  3513. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3514. Added Turkish translation. Updated French, German, Russian and
  3515. Simplified Chinese translations. Thanks to all translators.
  3516. * po/LINGUAS
  3517. * po/de.po
  3518. * po/fr.po
  3519. * po/ru.po
  3520. * po/tr.po
  3521. * po/zh_CN.po
  3522. 2008-09-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3523. Added deliminating text to the beginning of the log so that one can find
  3524. where the log starts easily.
  3525. * src/main.cc
  3526. 2008-09-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3527. Moved isProxyGETRequest function outside #ifdef ENABLE_ASYNC_DNS clause
  3528. to fix compile error when async DNS is not enabled by configuration.
  3529. * src/AbstractCommand.cc
  3530. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3531. If establishing conneciton to a server is failed, then mark error on
  3532. its ServerStat.
  3533. Added the cause of error to log when error event occurred.
  3534. Moved message string to message.h for translation.
  3535. * src/AbstractCommand.cc
  3536. * src/AbstractCommand.h
  3537. * src/FtpNegotiationCommand.cc
  3538. * src/HttpRequestCommand.cc
  3539. * src/PeerAbstractCommand.cc
  3540. * src/message.h
  3541. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3542. Added the function to get error message from socket.
  3543. * src/SocketCore.cc
  3544. * src/SocketCore.h
  3545. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3546. Added convenient method RequestGroupMan::getOrCreateServerStat()
  3547. * src/RequestGroupMan.cc
  3548. * src/RequestGroupMan.h
  3549. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3550. If error event is received in epoll, then abort download immediately.
  3551. * src/AbstractCommand.cc
  3552. * src/Command.cc
  3553. * src/Command.h
  3554. * src/DownloadEngine.cc
  3555. * src/PeerAbstractCommand.cc
  3556. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3557. Added usage message for --uri-selector, --server-stat-of,
  3558. --server-stat-in, --server-stat-timeout options.
  3559. * src/HelpItemFactory.cc
  3560. * src/usage_text.h
  3561. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3562. Added upper limit of FTP response buffer. The current implementation
  3563. uses 4096bytes as a limit.
  3564. * src/FtpConnection.cc
  3565. * src/FtpConnection.h
  3566. * test/FtpConnectionTest.cc
  3567. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3568. Use non-blocking socket for TCP communication to avoid possible
  3569. blocking due to buffer full.
  3570. * src/AbstractProxyRequestCommand.cc
  3571. * src/FtpConnection.cc
  3572. * src/FtpConnection.h
  3573. * src/FtpNegotiationCommand.cc
  3574. * src/FtpNegotiationCommand.h
  3575. * src/HttpConnection.cc
  3576. * src/HttpConnection.h
  3577. * src/HttpRequestCommand.cc
  3578. * src/InitiatorMSEHandshakeCommand.cc
  3579. * src/InitiatorMSEHandshakeCommand.h
  3580. * src/MSEHandshake.cc
  3581. * src/MSEHandshake.h
  3582. * src/Makefile.am
  3583. * src/PeerConnection.cc
  3584. * src/PeerConnection.h
  3585. * src/PeerInteractionCommand.cc
  3586. * src/PeerListenCommand.cc
  3587. * src/ReceiverMSEHandshakeCommand.cc
  3588. * src/ReceiverMSEHandshakeCommand.h
  3589. * src/SocketBuffer.cc
  3590. * src/SocketBuffer.h
  3591. * src/SocketCore.cc
  3592. * src/SocketCore.h
  3593. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3594. Call setStatusRealtime() in constructor.
  3595. * src/RealtimeCommand.cc
  3596. * src/RealtimeCommand.h
  3597. 2008-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3598. Call Download::setNoWait(true) to execute newly created command without
  3599. a pause.
  3600. * src/AbstractCommand.cc
  3601. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3602. Added --max-file-not-found=NUM option. If aria2 receives `file not
  3603. found' error from HTTP/FTP server NUM times without getting single
  3604. bytes of data, then force the download to fail.
  3605. Basically aria2 tris all URIs available. So if long list of URIs are
  3606. specified in Metalink, then aria2 will take a long time to fail
  3607. eventually if all URIs are outdated. This option eases this situation
  3608. to limit the number of servers to try.
  3609. * src/FtpNegotiationCommand.cc
  3610. * src/HelpItemFactory.cc
  3611. * src/HttpResponseCommand.cc
  3612. * src/OptionHandlerFactory.cc
  3613. * src/PeerStat.h
  3614. * src/RequestGroup.cc
  3615. * src/RequestGroup.h
  3616. * src/SegmentMan.cc
  3617. * src/SegmentMan.h
  3618. * src/option_processing.cc
  3619. * src/prefs.cc
  3620. * src/prefs.h
  3621. * src/usage_text.h
  3622. 2008-09-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3623. Fixed the bug that bulkReceiveResponse() reads all received data as a
  3624. response even if more than one response is in it.
  3625. * src/FtpConnection.cc
  3626. * src/FtpConnection.h
  3627. * test/FtpConnectionTest.cc
  3628. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3629. Merged from stable-0.15
  3630. * m4/libcares.m4
  3631. Use pkg-config
  3632. * m4/sqlite3.m4
  3633. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3634. Removed unnecessary if statement.
  3635. * src/DefaultPieceStorage.cc (initPieceStorage)
  3636. 2008-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3637. Added --connect-timeout option to specify connect timeout in seconds.
  3638. This option is in effect for HTTP/FTP/proxy server. The timeout for
  3639. connecting to BitTorrent peer is not controlled by this option.
  3640. * src/AbstractProxyRequestCommand.cc
  3641. * src/FtpNegotiationCommand.cc
  3642. * src/HelpItemFactory.cc
  3643. * src/HttpRequestCommand.cc
  3644. * src/OptionHandlerFactory.cc
  3645. * src/option_processing.cc
  3646. * src/prefs.cc
  3647. * src/prefs.h
  3648. * src/usage_text.h
  3649. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3650. Added help message for -R option.
  3651. * src/HelpItemFactory.cc
  3652. * src/usage_text.h
  3653. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3654. Added the message that the time is in local time zone.
  3655. * src/RequestGroup.cc
  3656. 2008-09-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3657. Implemented the ability to get timestamp from remote FTP server using
  3658. MDTM command described in RFC3659.
  3659. * src/FtpConnection.cc
  3660. * src/FtpConnection.h
  3661. * src/FtpNegotiationCommand.cc
  3662. * src/FtpNegotiationCommand.h
  3663. * test/FtpConnectionTest.cc
  3664. * test/Makefile.am
  3665. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3666. Implemented the ability to get timestamp from remote HTTP server and
  3667. apply it to local file. To enable this feature, --remote-time option
  3668. is added. No usage text has been written yet.
  3669. If several servers returns difference timestamp, then aria2 uses latest
  3670. one.
  3671. * src/CopyDiskAdaptor.cc
  3672. * src/CopyDiskAdaptor.h
  3673. * src/DirectDiskAdaptor.cc
  3674. * src/DirectDiskAdaptor.h
  3675. * src/DiskAdaptor.h
  3676. * src/File.cc
  3677. * src/File.h
  3678. * src/HttpHeader.cc
  3679. * src/HttpHeader.h
  3680. * src/HttpResponse.cc
  3681. * src/HttpResponse.h
  3682. * src/HttpResponseCommand.cc
  3683. * src/HttpResponseCommand.h
  3684. * src/MultiDiskAdaptor.cc
  3685. * src/MultiDiskAdaptor.h
  3686. * src/OptionHandlerFactory.cc
  3687. * src/RequestGroup.cc
  3688. * src/RequestGroup.h
  3689. * src/RequestGroupMan.cc
  3690. * src/option_processing.cc
  3691. * src/prefs.cc
  3692. * src/prefs.h
  3693. * test/CopyDiskAdaptorTest.cc
  3694. * test/FileTest.cc
  3695. * test/Makefile.am
  3696. * test/Makefile.in
  3697. * test/MultiDiskAdaptorTest.cc
  3698. * test/TestUtil.cc
  3699. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3700. Fixed the bug that DiskWriterEntry is not created when its
  3701. FileEntry.isRequested() is false and it doesn't share a piece with
  3702. other FileEntries that are requested. This bug causes segmentation fault
  3703. in the end.
  3704. * src/MultiDiskAdaptor.cc
  3705. * src/MultiDiskAdaptor.h
  3706. * src/MultiFileAllocationIterator.cc
  3707. * test/MultiDiskAdaptorTest.cc
  3708. * test/MultiFileAllocationIteratorTest.cc
  3709. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3710. Fixed the bug that exception is thrown when MultiDiskAdaptor::size() is
  3711. called if the number of file entries are greater than max open files.
  3712. * src/AbstractSingleDiskAdaptor.cc
  3713. * src/AbstractSingleDiskAdaptor.h
  3714. * src/DiskAdaptor.h
  3715. * src/MultiDiskAdaptor.cc
  3716. * src/MultiDiskAdaptor.h
  3717. * test/MultiDiskAdaptorTest.cc
  3718. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3719. Added a constuctor that receives struct timeval.
  3720. Added operator<.
  3721. * src/TimeA2.cc
  3722. * src/TimeA2.h
  3723. * test/TimeTest.cc
  3724. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3725. Parse `expires' of Set-Cookie using Time::parseHTTPDate()
  3726. * src/CookieParser.cc
  3727. * test/CookieParserTest.cc
  3728. * test/HttpResponseTest.cc
  3729. 2008-09-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3730. Implmented the functions to parse date.
  3731. * src/TimeA2.cc
  3732. * src/TimeA2.h
  3733. * test/TimeTest.cc
  3734. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3735. Added "Firefox3 Cookie" feature to FeatureConfig
  3736. * src/FeatureConfig.cc
  3737. * src/FeatureConfig.h
  3738. * test/FeatureConfigTest.cc
  3739. 2008-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3740. Bump up version number to 0.16.0b
  3741. * configure.ac
  3742. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3743. Use pkg-config if is is available.
  3744. * m4/openssl.m4
  3745. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3746. DEFAULT_ANNOUNCE_INTERVAL: unsigned int -> time_t
  3747. * src/BtAnnounce.h
  3748. 2008-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3749. If an error occurred with a URI, remove identical URI from remaining
  3750. URI list because it is likely that same error occurred in the end and it
  3751. is waste of time.
  3752. * src/AbstractCommand.cc
  3753. * src/RequestGroup.cc
  3754. * src/RequestGroup.h
  3755. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3756. Removed wrong comment.
  3757. * src/DefaultPeerStorage.cc
  3758. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3759. Moved implementation to SimpleRandomizer.cc from SimpleRandomizer.h.
  3760. Added return value of getpid() to argument of srand() to achieve more
  3761. randomized value.
  3762. * src/SimpleRandomizer.cc
  3763. * src/SimpleRandomizer.h
  3764. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3765. Contact tracker frequently when the number of connections are 0 and
  3766. download is not finished yet.
  3767. * src/ActivePeerConnectionCommand.cc
  3768. * src/BtAnnounce.h
  3769. * src/DefaultBtAnnounce.cc
  3770. * src/DefaultBtAnnounce.h
  3771. * test/MockBtAnnounce.h
  3772. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3773. Moved threshold values to UTPexExtensionMessage.
  3774. * src/DefaultBtInteractive.cc
  3775. * src/Peer.cc
  3776. * src/Peer.h
  3777. * src/UTPexExtensionMessage.cc
  3778. * src/UTPexExtensionMessage.h
  3779. * test/UTPexExtensionMessageTest.cc
  3780. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3781. Added _incoming member to Peer class and made it true if the peer
  3782. initiated connection. Don't add those peer to UTPex message.
  3783. If extended handshake is received, assign _incoming to false.
  3784. * src/DefaultBtInteractive.cc
  3785. * src/HandshakeExtensionMessage.cc
  3786. * src/Peer.cc
  3787. * src/Peer.h
  3788. * src/PeerListenCommand.cc
  3789. 2008-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3790. Made files whose name ends with ".gz", ".tgz" not inflated by Content
  3791. Encoding Decoder. Removed size threshold for turning off on the fly
  3792. inflation because resulting file may or may not be inflated depending
  3793. on the file size and I think it is not expected by users.
  3794. This change fixes segmentation fault when Metalink file contains gzipped
  3795. file and its filesize is provided.
  3796. * src/HttpResponseCommand.cc
  3797. * src/HttpResponseCommand.h
  3798. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3799. Made Cookie immutable.
  3800. * src/Cookie.cc
  3801. * src/Cookie.h
  3802. * src/CookieParser.cc
  3803. * src/CookieParser.h
  3804. * src/CookieStorage.cc
  3805. * test/CookieParserTest.cc
  3806. * test/CookieStorageTest.cc
  3807. * test/NsCookieParserTest.cc
  3808. * test/Sqlite3MozCookieParserTest.cc
  3809. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3810. Removed CookieBox, CookieBoxFactory.
  3811. * src/CookieBox.cc
  3812. * src/CookieBox.h
  3813. * src/CookieBoxFactory.cc
  3814. * src/CookieBoxFactory.h
  3815. * src/Makefile.am
  3816. 2008-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3817. Use CookieStorage class instead of CookieBox class.
  3818. Now CookieStorage accepts cookies from numeric host such as 192.168.1.1.
  3819. * src/AbstractProxyRequestCommand.cc
  3820. * src/CookieStorage.cc
  3821. * src/DownloadEngine.cc
  3822. * src/DownloadEngine.h
  3823. * src/HttpConnection.cc
  3824. * src/HttpConnection.h
  3825. * src/HttpRequest.cc
  3826. * src/HttpRequest.h
  3827. * src/HttpRequestCommand.cc
  3828. * src/HttpResponse.cc
  3829. * src/HttpResponseCommand.cc
  3830. * src/HttpSkipResponseCommand.cc
  3831. * src/Makefile.am
  3832. * src/MultiUrlRequestInfo.cc
  3833. * src/Request.cc
  3834. * src/Request.h
  3835. * src/main.cc
  3836. * test/AllTest.cc
  3837. * test/CookieStorageTest.cc
  3838. * test/CookieTest.cc
  3839. * test/HttpRequestTest.cc
  3840. * test/HttpResponseTest.cc
  3841. * test/Makefile.am
  3842. * test/NsCookieParserTest.cc
  3843. * test/Sqlite3MozCookieParserTest.cc
  3844. * test/nscookietest.txt
  3845. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3846. Updated
  3847. * test/Cookies.sqlite
  3848. * test/nscookietest.txt
  3849. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3850. Added tests for CookieStorage::load()
  3851. * test/CookieStorageTest.cc
  3852. 2008-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3853. Added CookieStorage class which is based on RFC2109 and manages cookies
  3854. more strictly than CookieBox and CookieBoxFactory class.
  3855. * src/CookieStorage.cc
  3856. * src/CookieStorage.h
  3857. * src/Cookie.cc
  3858. * src/Cookie.h
  3859. * test/CookieStorageTest.cc
  3860. * test/CookieTest.cc
  3861. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3862. Fixed the bug that commands are created more than the number of pieces.
  3863. * src/RequestGroup.cc
  3864. 2008-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3865. Fixed infinite loop bug in FTP when SIZE command failed.
  3866. * src/FtpNegotiationCommand.cc
  3867. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3868. Removed DirectDiskAdaptorTest.h
  3869. * test/Makefile.am
  3870. 2008-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3871. Fixed chunk checksum validation cannot detect trailing garbage data.
  3872. BUG#2074141
  3873. * src/AbstractSingleDiskAdaptor.cc
  3874. * src/AbstractSingleDiskAdaptor.h
  3875. * src/CheckIntegrityEntry.cc
  3876. * src/CheckIntegrityEntry.h
  3877. * src/DiskAdaptor.h
  3878. * src/MultiDiskAdaptor.cc
  3879. * src/MultiDiskAdaptor.h
  3880. * src/RequestGroup.cc
  3881. * test/DirectDiskAdaptorTest.cc
  3882. * test/MultiDiskAdaptorTest.cc
  3883. * test/TestUtil.cc
  3884. * test/TestUtil.h
  3885. 2008-08-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3886. Bump up version number of dht.dat file to 3. In version 3 format, time
  3887. is stored in 64bit, network byte order.
  3888. New build can load old format(version 2) but it saves the file in new
  3889. format. It means once you used new build, your dht.dat becomes
  3890. incompatible with older build.
  3891. * src/DHTRoutingTableDeserializer.cc
  3892. * src/DHTRoutingTableSerializer.cc
  3893. * test/DHTRoutingTableSerializerTest.cc
  3894. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3895. Added load-v0001.aria2 and load-nonBt-v0001.aria2 to EXTRA_DIST.
  3896. * test/Makefile.am
  3897. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3898. Bump up version number of .aria2 control file to 0001.
  3899. New aria2 can still load version 0000 file but it saves the file in
  3900. version 0001 format. It means that new aria2 can resume download
  3901. started by old aria2 but the opposite is not true.
  3902. * src/DefaultBtProgressInfoFile.cc
  3903. * src/DefaultBtProgressInfoFile.h
  3904. * test/DefaultBtProgressInfoFileTest.cc
  3905. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3906. Added ntoh64 and hton64 as inline functions.
  3907. * src/Util.cc
  3908. * test/UtilTest.cc
  3909. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3910. Added sqlite3 depenency and Firefox3 cookie support.
  3911. * README
  3912. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3913. State that firefox3 cookie is supported explicitly in the usage.
  3914. * src/usage_text.h
  3915. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3916. Externalized message.
  3917. * src/RequestGroupMan.cc
  3918. * src/message.h
  3919. 2008-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3920. Save temporary file first and rename to the destination on success.
  3921. Added test cases.
  3922. * src/RequestGroupMan.cc
  3923. * test/RequestGroupManTest.cc
  3924. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3925. Fixed the bug that the number of connected peer is exceeding the limit
  3926. (55 by default) in seeding mode.
  3927. Multiplied 0.8 to _maxUploadSpeedLimit.
  3928. * src/ActivePeerConnectionCommand.cc
  3929. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3930. Clear table item.
  3931. * src/Dictionary.cc
  3932. 2008-08-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3933. Fixed error handling of lseek.
  3934. * src/AbstractDiskWriter.cc
  3935. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3936. Removed "(1.x/2.x)" from TEXT_LOAD_COOKIES since aria2 can load Firefox3
  3937. style cookie file.
  3938. * src/usage_text.h
  3939. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3940. If a cookie whose expire date is later than 2038-01-19 03:14:07 GMT is
  3941. sent from server, its expire date is assumed to 2038-01-19 03:14:07 GMT.
  3942. If Util::httpGMT is failed, then Cookie::onetime is set to true.
  3943. * src/Util.cc
  3944. * src/Util.h
  3945. * src/CookieParser.cc
  3946. * test/UtilTest.cc
  3947. * test/CookieParserTest.cc
  3948. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3949. Separate the implementation to load old mozilla format of cookie to
  3950. NsCookieParser class.
  3951. * src/CookieBoxFactory.cc
  3952. * src/CookieBoxFactory.h
  3953. * src/NsCookieParser.cc
  3954. * src/NsCookieParser.h
  3955. * test/NsCookieParserTest.cc
  3956. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3957. Made parse() const
  3958. * src/Sqlite3MozCookieParser.cc
  3959. * src/Sqlite3MozCookieParser.h
  3960. 2008-08-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3961. Added firefox3 cookie support based on the patch submitted by
  3962. tizianomueller.
  3963. firefox3 cookie is SQLite3 database. libsqlite3 is required to enable
  3964. this functionality.
  3965. * configure.ac
  3966. * m4/sqlite3.m4
  3967. * src/CookieBoxFactory.cc
  3968. * src/CookieBoxFactory.h
  3969. * src/Makefile.am
  3970. * src/Makefile.in
  3971. * src/Sqlite3MozCookieParser.cc
  3972. * src/Sqlite3MozCookieParser.h
  3973. * src/main.cc
  3974. * test/CookieBoxFactoryTest.cc
  3975. * test/Makefile.am
  3976. * test/Makefile.in
  3977. * test/Sqlite3MozCookieParserTest.cc
  3978. * test/badcookies.sqlite
  3979. * test/cookies.sqlite
  3980. 2008-08-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3981. Added Danish and Greek translations.
  3982. Updated Spanish, Catalan, Norwegian Nynorsk translations.
  3983. Great thanks to all translators.
  3984. * po/LINGUAS
  3985. * po/el.po
  3986. * po/da.po
  3987. * po/es.po
  3988. * po/ca.po
  3989. * po/nn.po
  3990. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3991. Fixed man page: --follow-bittorrent should be --follow-torrent
  3992. * doc/aria2c.1.txt
  3993. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3994. Fixed: numCommand is less than the value specified in -C option.
  3995. * src/RequestGroup.cc
  3996. 2008-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  3997. Fixed occasional assertion failure in PieceSegment.
  3998. Calling PieceStorage::getMissingPiece(size_t) was missing after
  3999. canceling segments in SegmentMan::getSegment(int32_t). This resulted in
  4000. creation of duplicate segments and one of the segment was finished then
  4001. assertion failure was caused.
  4002. * src/SegmentMan.cc
  4003. * test/SegmentManTest.cc
  4004. 2008-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4005. Added options to load/save the server's performance/status to a file
  4006. and the timeout to drop their data.
  4007. --server-stat-of=FILE specifies the file to which performance data
  4008. is saved.
  4009. --server-stat-if=FILE specifies the file to read previously saved
  4010. by --server-stat-of option. Might be used with --uri-selector=feedback.
  4011. --server-stat-timeout=TIMEOUT specifies timeout to invalidate the data.
  4012. TIMEOUT is specified in seconds and the default value is 24hours.
  4013. * src/MultiUrlRequestInfo.cc
  4014. * src/OptionHandlerFactory.cc
  4015. * src/RequestGroupMan.cc
  4016. * src/RequestGroupMan.h
  4017. * src/ServerStatMan.cc
  4018. * src/ServerStatMan.h
  4019. * src/option_processing.cc
  4020. * src/prefs.cc
  4021. * src/prefs.h
  4022. * test/ServerStatManTest.cc
  4023. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4024. Implemented ServerStatMan::removeStaleServerStat() and its test case.
  4025. * src/ServerStatMan.cc
  4026. * src/ServerStatMan.h
  4027. * test/ServerStatManTest.cc
  4028. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4029. Implemented ServerStatMan::load(...) function and its test case.
  4030. * src/ServerStat.cc
  4031. * src/ServerStat.h
  4032. * src/ServerStatMan.cc
  4033. * test/ServerStatManTest.cc
  4034. * test/ServerStatTest.cc
  4035. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4036. Use time_t instead of int32_t. Use int64_t where milli second is
  4037. expected.
  4038. * src/TimeA2.cc
  4039. * src/TimeA2.h
  4040. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4041. Implemented ServerStatMan::save(...) function and its test case.
  4042. * src/ServerStat.cc
  4043. * src/ServerStat.h
  4044. * src/ServerStatMan.cc
  4045. * src/ServerStatMan.h
  4046. * test/ServerStatManTest.cc
  4047. 2008-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4048. Now aria2 uses name attribute in Metalink as local filename in
  4049. BitTorrent downloads. BUG#2033999
  4050. * src/BtContext.h
  4051. * src/BtDependency.cc
  4052. * src/DefaultBtContext.cc
  4053. * src/DefaultBtContext.h
  4054. * src/SingleFileDownloadContext.cc
  4055. * src/SingleFileDownloadContext.h
  4056. * test/BtDependencyTest.cc
  4057. * test/DefaultBtContextTest.cc
  4058. * test/MockBtContext.h
  4059. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4060. Added AC_C_BIGENDIAN
  4061. * src/configure.ac
  4062. 2008-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4063. Limited numCommand less than or equal to the number of piece.
  4064. * src/RequestGroup.cc
  4065. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4066. Eliminated randomness from the test case. Removed #ifdef __MINGW32
  4067. directive.
  4068. * test/DefaultPieceStorageTest.cc
  4069. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4070. Fixed memory leak in test code
  4071. * test/AnnounceListTest.cc
  4072. * test/DefaultPeerListProcessorTest.cc
  4073. * test/DefaultPeerStorageTest.cc
  4074. * test/MetaFileUtilTest.cc
  4075. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4076. Fixed wrong argument passing to BitfieldMan::isBitSet()
  4077. * src/DefaultPieceStorage.cc
  4078. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4079. Initialized _directIOAllowed
  4080. * src/MultiDiskAdaptor.cc
  4081. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4082. Fixed memory leak
  4083. * src/GZipDecoder.cc
  4084. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4085. Fixed memory leak
  4086. * src/MetalinkParserStateMachine.cc
  4087. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4088. Fixed memory leak
  4089. * src/Dictionary.cc
  4090. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4091. Fixed memory leak
  4092. * src/IteratableChunkChecksumValidator.h
  4093. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4094. Fixed unmatched malloc/free.
  4095. * src/IteratableChunkChecksumValidator.cc
  4096. * src/IteratableChecksumValidator.cc
  4097. 2008-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4098. Removed max chunk size check. This change fixes BUG#2040169
  4099. * src/ChunkedDecoder.cc
  4100. * src/ChunkedDecoder.h
  4101. * test/ChunkedDecoderTest.cc
  4102. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4103. Implemented download speed based URI selection algorithm.
  4104. Introduced new option --uri-selector.
  4105. If --uri-selector=feedback is given, aria2 uses download speed observed
  4106. in the previous downloads and chooses fastest server in the URI list.
  4107. Currently at most 10 URIs are considered to introduce randomeness for
  4108. finding better servers. The speed is average download speed in the
  4109. downloads.
  4110. On the other hand, if --uri-selector=inorder is given, which is default,
  4111. URI is tried in order in URI list.
  4112. The usage text for the new option has not been written yet.
  4113. * src/AbstractCommand.cc
  4114. * src/DownloadCommand.cc
  4115. * src/DownloadEngine.cc
  4116. * src/DownloadEngineFactory.cc
  4117. * src/InOrderURISelector.cc
  4118. * src/InOrderURISelector.h
  4119. * src/OptionHandlerFactory.cc
  4120. * src/PeerStat.h
  4121. * src/RequestGroup.cc
  4122. * src/RequestGroup.h
  4123. * src/RequestGroupMan.cc
  4124. * src/RequestGroupMan.h
  4125. * src/SegmentMan.cc
  4126. * src/SegmentMan.h
  4127. * src/ServerStat.cc
  4128. * src/ServerStat.h
  4129. * src/ServerStatMan.cc
  4130. * src/ServerStatMan.h
  4131. * src/ServerStatURISelector.cc
  4132. * src/ServerStatURISelector.h
  4133. * src/URISelector.h
  4134. * src/option_processing.cc
  4135. * src/prefs.cc
  4136. * src/prefs.h
  4137. * test/InOrderURISelectorTest.cc
  4138. * test/RequestGroupManTest.cc
  4139. * test/ServerStatManTest.cc
  4140. * test/ServerStatURISelectorTest.cc
  4141. 2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4142. * Release 0.15.1+2
  4143. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4144. Bump up version number to 0.15.1+2
  4145. * configure.ac
  4146. 2008-08-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4147. Fixed the bug that configure --enable-FEATURE actually disables FEATURE.
  4148. * m4/aria2_arg.m4
  4149. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4150. * Release 0.15.1+1
  4151. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4152. Bump up version number to 0.15.1+1
  4153. * configure.ac
  4154. 2008-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4155. Fixed the bug that causes segmentaion fault when resuming download
  4156. using metalink without size tag. Reproducible only using HTTP URI.
  4157. * src/HttpResponseCommand.cc
  4158. * src/FtpNegotiationCommand.cc
  4159. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4160. * Release 0.15.1
  4161. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4162. Updated Bulgarian and French translations, thanks to all translators.
  4163. * po/bg.po
  4164. * po/fr.po
  4165. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4166. Bump up version number to 0.15.1
  4167. * configure.ac
  4168. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4169. Avoid repeated call of gettimeofday() when calculating speed.
  4170. * src/SpeedCalc.cc
  4171. * src/SpeedCalc.h
  4172. 2008-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4173. Removed writable check when socket's send buffer is full in BitTorrent
  4174. downloads to lower CPU usage.
  4175. * src/PeerInteractionCommand.cc
  4176. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4177. Fixed broken gzip inflation.
  4178. Turn off segmented downloading if gzip content is smaller than or equal
  4179. to 1MiB and inflate the data on the fly, because HTTP response header
  4180. doesn't contain the length of inflated file we can't determin where
  4181. the chunk of data should be written.
  4182. On the other hand, if gzip content is larger than 1MB, then turn off
  4183. on the fly inflation, because some servers returns "content-type: gzip"
  4184. for *.tgz, *.gz files.
  4185. * src/DownloadCommand.cc
  4186. * src/HttpResponseCommand.cc
  4187. * src/HttpResponseCommand.h
  4188. 2008-07-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4189. Applied tizianomueller's patch to fix compile error.
  4190. * test/BitfieldManTest.cc
  4191. * test/BtRequestMessageTest.cc
  4192. * test/DefaultBtContextTest.cc
  4193. * test/DefaultDiskWriterTest.cc
  4194. * test/DefaultPieceStorageTest.cc
  4195. * test/HttpHeaderProcessorTest.cc
  4196. * test/HttpResponseTest.cc
  4197. * test/Metalink2RequestGroupTest.cc
  4198. * test/MetalinkParserControllerTest.cc
  4199. * test/MetalinkProcessorTest.cc
  4200. * test/PeerSessionResourceTest.cc
  4201. * test/UtilTest.cc
  4202. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4203. * Release 0.15.0
  4204. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4205. Reordered src files in POTFILES.in so that usage text appears first.
  4206. * po/POTFILES.in
  4207. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4208. Bump up version number to 0.15.0
  4209. * configure.ac
  4210. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4211. Added Bulgarian translation.
  4212. Updated Catalan, Spanish, French and Japanese translations.
  4213. Thanks to all translators.
  4214. * po/LINGUAS
  4215. * po/bg.po
  4216. * po/ca.po
  4217. * po/es.po
  4218. * po/fr.po
  4219. * po/ja.po
  4220. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4221. Updated feature list. Added libz for dependency section.
  4222. Added a description about unit testing using CppUnit.
  4223. * README
  4224. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4225. Added a test for libz. Quoted where it is necessary.
  4226. * build_test.sh
  4227. 2008-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4228. Added GZip to `Enabled Features' list.
  4229. * src/FeatureConfig.cc
  4230. * src/FeatureConfig.h
  4231. * test/FeatureConfigTest.cc
  4232. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4233. Now SegmentMan::findSlowerSegmentEntry() picks up the segment for which
  4234. the transfer has not yet started.
  4235. Rewritten SegmentMan::registerPeerStat() and SegmentMan::getPeerStat().
  4236. * src/SegmentMan.cc
  4237. * src/SegmentMan.h
  4238. * test/SegmentManTest.cc
  4239. 2008-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4240. Cache last calculated average download/upload speed.
  4241. PeerStat::getAvgDownloadSpeed(), PeerStat::getAvgUploadSpeed() return
  4242. cached value.
  4243. Now SpeedCalc::changeSw() is called from SpeedCalc::calculateSpeed()
  4244. * src/PeerStat.h
  4245. * src/SpeedCalc.cc
  4246. * src/SpeedCalc.h
  4247. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4248. Call parseUrl directly.
  4249. * src/Request.cc (resetUrl)
  4250. 2008-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4251. Supported absolute/relative path in Location header field.
  4252. * src/AbstractCommand.cc: Call resetUrl() when DlRetryEx is caught.
  4253. * src/HttpHeader.cc
  4254. * src/HttpHeader.h
  4255. * src/HttpResponse.cc
  4256. * src/HttpSkipResponseCommand.cc
  4257. * src/Request.cc
  4258. * test/HttpHeaderTest.cc
  4259. * test/HttpResponseTest.cc
  4260. * test/RequestTest.cc
  4261. 2008-07-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4262. Changed help text for --load-cookie option.
  4263. * doc/aria2c.1.txt
  4264. * src/usage_text.h
  4265. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4266. Regenerated test/Makefile.in to remove stale ChangeLog.
  4267. * test/Makefile.in
  4268. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4269. Updated po files.
  4270. * po/aria2c.pot
  4271. * po/*.po
  4272. * po/*.gmo
  4273. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4274. Bump up version number to 0.15.0b
  4275. * configure.ac
  4276. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4277. Externalize messages.
  4278. * src/RequestGroupMan.cc
  4279. * src/message.h: Added MSG_SIGNATURE_SAVED, MSG_SIGNATURE_NOT_SAVED.
  4280. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4281. Use File::exists() instead of File::isFile() to allow non-regular file
  4282. such as block special files.
  4283. * src/AbstractDiskWriter.cc
  4284. * src/MultiDiskWriter.cc
  4285. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4286. Supplied missing EAI_SYSTEM. Thanks ggknauf for the patch.
  4287. * src/gai_strerror.h
  4288. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4289. Fixed compile error. Thanks gknauf for the patch.
  4290. * src/asctime_r.c
  4291. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4292. Included asctime_r.h from a2time.h.
  4293. * src/a2time.h
  4294. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4295. Added a message "aria2 doesn't verify signature" to log message when
  4296. signature file is saved.
  4297. * src/RequestGroupMan.cc
  4298. 2008-07-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4299. Added the ability to save signature when download is completed if
  4300. signature is available. The filename of signature file is the path to
  4301. download file followed by ".sig". If it already exists, then signature
  4302. will not be saved.
  4303. * src/RequestGroupMan.cc
  4304. * src/Signature.cc
  4305. * test/SignatureTest.cc
  4306. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4307. Updated the descriptions for --bt-seed-unverified.
  4308. * doc/aria2c.1
  4309. * doc/aria2c.1.html
  4310. * doc/aria2c.1.txt
  4311. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4312. Renamed --bt-seed option as --bt-seed-unverified so that it makes clear
  4313. that this is not going to verify files using piece hashes.
  4314. * src/HelpItemFactory.cc
  4315. * src/OptionHandlerFactory.cc
  4316. * src/RequestGroup.cc
  4317. * src/option_processing.cc
  4318. * src/prefs.cc
  4319. * src/prefs.h
  4320. * src/usage_text.h
  4321. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4322. Added the ability to retrieve signature from Metalink file.
  4323. A retrieved signature is stored in Signature class and it is held by
  4324. DownloadContext class. Note that aria2 doesn't verify signature.
  4325. * src/DownloadContext.cc
  4326. * src/DownloadContext.h
  4327. * src/Makefile.am
  4328. * src/Makefile.in
  4329. * src/Metalink2RequestGroup.cc
  4330. * src/MetalinkEntry.cc
  4331. * src/MetalinkEntry.h
  4332. * src/MetalinkParserController.cc
  4333. * src/MetalinkParserController.h
  4334. * src/MetalinkParserStateMachine.cc
  4335. * src/MetalinkParserStateMachine.h
  4336. * src/Signature.cc
  4337. * src/Signature.h
  4338. * src/SignatureMetalinkParserState.cc
  4339. * src/SignatureMetalinkParserState.h
  4340. * src/VerificationMetalinkParserState.cc
  4341. * src/VerificationMetalinkParserState.h
  4342. * test/Metalink2RequestGroupTest.cc
  4343. * test/MetalinkParserControllerTest.cc
  4344. * test/MetalinkProcessorTest.cc
  4345. * test/test.xml
  4346. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4347. Close DiskAdaptor after renaming file.
  4348. * src/RequestGroup.cc
  4349. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4350. Corrected indentation
  4351. * src/DefaultBtProgressInfoFile.cc
  4352. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4353. Moved the calls of std::ios::exceptions() inside of try-catch block
  4354. because if an error occurred in constructor of std::fstream, then
  4355. exception is thrown immediately when std::ios::exceptions() is called
  4356. which results unhandled exception and aria2c aborts.
  4357. * src/DefaultBtProgressInfoFile.cc
  4358. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4359. Added the test for the previous change in DefaultBtContext.cc
  4360. * test/DefaultBtContextTest.cc
  4361. 2008-07-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4362. Fixed the bug that causes infinite loop when the number of pieces are
  4363. fewer than allowed fast set size which is 10 by default.
  4364. * src/DefaultBtContext.cc
  4365. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4366. Updated the descriptions for -j, -s. Added --bt-seed.
  4367. * doc/aria2c.1
  4368. * doc/aria2c.1.html
  4369. * doc/aria2c.1.txt
  4370. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4371. Added --bt-seed option. If --bt-seed=true is given at the command-line,
  4372. aria2 seeds previously downloaded files without validating piece hashs.
  4373. * src/HelpItemFactory.cc
  4374. * src/OptionHandlerFactory.cc
  4375. * src/RequestGroup.cc
  4376. * src/option_processing.cc
  4377. * src/prefs.cc
  4378. * src/prefs.h
  4379. * src/usage_text.h
  4380. 2008-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4381. Updated DESCRIPTION of man page.
  4382. * doc/aria2c.1
  4383. * doc/aria2c.1.html
  4384. * doc/aria2c.1.txt
  4385. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4386. Fixed the compile error on Nexenta OS(GNU/Solaris OS).
  4387. Don't define `struct addrinfo' when __sun is defined.
  4388. * src/getaddrinfo.h
  4389. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4390. Introduced a2_struct_stat. It is defined as `struct _stati64' if
  4391. __MINGW32__ is defined, because under MinGW32, _stati64 is used and its
  4392. second argument is of type `struct _stati64'. Otherwise it is defined as
  4393. `struct stat'.
  4394. * src/AbstractDiskWriter.cc
  4395. * src/File.cc
  4396. * src/File.h
  4397. * src/a2io.h
  4398. 2008-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4399. Fixed the compile error in hurd-i386
  4400. See the original bug report:
  4401. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488602
  4402. * src/a2io.h
  4403. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4404. Code cleanup.
  4405. * src/PeerAbstractCommand.cc
  4406. * src/PeerAbstractCommand.h
  4407. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4408. Removed TransferEncoding.
  4409. * src/DownloadCommand.cc
  4410. * src/DownloadCommand.h
  4411. * src/HttpResponseCommand.cc
  4412. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4413. Updated po files.
  4414. * po/aria2c.pot
  4415. * po/*.po
  4416. * po/*.gmo
  4417. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4418. Rewritten ChunkedEncoding class as ChunkedDecoder class.
  4419. * src/A2STR.cc
  4420. * src/A2STR.h
  4421. * src/ChunkedDecoder.cc
  4422. * src/ChunkedDecoder.h
  4423. * src/ChunkedEncoding.cc: Removed
  4424. * src/ChunkedEncoding.h: Removed
  4425. * src/DownloadCommand.cc
  4426. * src/DownloadCommand.h
  4427. * src/HttpDownloadCommand.cc
  4428. * src/HttpResponse.cc
  4429. * src/HttpResponse.h
  4430. * src/HttpResponseCommand.cc
  4431. * src/HttpSkipResponseCommand.cc
  4432. * src/HttpSkipResponseCommand.h
  4433. * src/Makefile.am
  4434. * src/TransferEncoding.h: Removed
  4435. * test/ChunkedDecoderTest.cc
  4436. * test/ChunkedEncodingTest.cc: Removed
  4437. * test/HttpResponseTest.cc
  4438. * test/Makefile.am
  4439. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4440. Use append instead of insert.
  4441. * src/GZipDecoder.cc
  4442. 2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4443. Updated doc
  4444. * src/Decoder.h
  4445. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4446. Updated usage text for -s option.
  4447. * src/usage_text.h
  4448. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4449. Fixed the bug that UTF-8 encoded URL is not URL-encoded properly.
  4450. * src/Request.cc
  4451. 2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4452. Cleaned up configure.ac.
  4453. * configure.ac
  4454. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4455. Use ARIA2_ARG_WITH and ARIA2_ARG_ENABLE instead of AC_ARG_WITH and
  4456. AC_ARG_ENABLE.
  4457. * configure.ac
  4458. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4459. Added gzip, deflate decoding support in HTTP using libz. If compiled
  4460. with this feature, aria2 sends "Accept-Encoding: deflate, gzip" header
  4461. to a HTTP server. If a server returns "Content-Encoding: gzip" or
  4462. "Content-Encoding: deflate" then, aria2 decodes the response body on the
  4463. fly and writes decoded data to a local disk.
  4464. * README
  4465. * README.html
  4466. * configure.ac
  4467. * m4/aria2_arg.m4: Added ARIA2_ARG_WITH and ARIA2_ARG_ENABLE, they are
  4468. wrapper function for AC_ARG_WITH and AC_ARG_ENABLE respectively.
  4469. * m4/libz.m4
  4470. * src/Decoder.h
  4471. * src/DownloadCommand.cc
  4472. * src/DownloadCommand.h
  4473. * src/Exception.h
  4474. * src/GZipDecoder.cc
  4475. * src/GZipDecoder.h
  4476. * src/HttpHeader.cc
  4477. * src/HttpHeader.h
  4478. * src/HttpRequest.cc
  4479. * src/HttpRequest.h
  4480. * src/HttpResponse.cc
  4481. * src/HttpResponse.h
  4482. * src/HttpResponseCommand.cc
  4483. * src/Makefile.am
  4484. * test/GZipDecoderTest.cc
  4485. * test/HttpRequestTest.cc
  4486. * test/HttpResponseTest.cc
  4487. * test/Makefile.am
  4488. * test/Makefile.in
  4489. * test/gzip_decode_test.gz
  4490. 2008-06-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4491. Clarified usage of -j option.
  4492. * src/usage_text.h
  4493. 2008-06-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4494. Disabled getting size from the response of RETR.
  4495. If SIZE command failed, then disable resuming and segmented downloading.
  4496. * src/FtpConnection.cc
  4497. * src/FtpConnection.h
  4498. * src/FtpNegotiationCommand.cc
  4499. * src/FtpNegotiationCommand.h
  4500. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4501. Use digits to find first byte of file size, which makes the intention
  4502. of the code clearer.
  4503. * src/FtpConnection.cc
  4504. Don't call validateTotalLength() when size is 0.
  4505. * src/FtpNegotiationCommand.cc
  4506. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4507. Updated po files.
  4508. * po/aria2c.pot
  4509. * po/*.gmo
  4510. * po/*.po
  4511. 2008-06-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4512. Clarified usage text for --split option.
  4513. * src/usage_text.h
  4514. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4515. Bump up version number to 0.15.0dev. "dev" means "development"
  4516. version, which means I started the development of the next release!
  4517. * src/configure.ac
  4518. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4519. If FTP server returns negative response with REST raw command and
  4520. requested range is not 0, throw exception. If requested range is 0,
  4521. continue download a file from 0 byte.
  4522. * src/FtpNegotiationCommand.cc
  4523. * src/FtpNegotiationCommand.h
  4524. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4525. Supported FTP server which don't recognize SIZE raw command.
  4526. If SIZE raw command is failed, aria2 will try to get file size
  4527. from the response of RETR raw command. If both attempts are failed,
  4528. then resuming and segmented downloading are disabled.
  4529. * src/FtpConnection.cc
  4530. * src/FtpConnection.h
  4531. * src/FtpNegotiationCommand.cc
  4532. * src/FtpNegotiationCommand.h
  4533. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4534. * Release 0.14.0+1
  4535. 2008-06-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4536. Bump up version number to 0.14.0+1
  4537. * src/configure.ac
  4538. 2008-06-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4539. Fixed the code that refers static member variable from non-static
  4540. context.
  4541. * src/DefaultPeerStorage.cc
  4542. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4543. * Release 0.14.0
  4544. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4545. Added build test script
  4546. * build_test.sh
  4547. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4548. Updated ja.po
  4549. * src/ja.po
  4550. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4551. Bump up version number to 0.14.0
  4552. * src/configure.ac
  4553. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4554. Updated ja.po and fr.po. Great thanks for french translators and
  4555. Sebastien WILLEMIJNS.
  4556. * po/fr.po
  4557. * po/ja.po
  4558. 2008-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4559. Added configure option to enable/disable epoll support.
  4560. * configure.ac
  4561. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4562. Updated man page.
  4563. * doc/aria2c.1.txt
  4564. * doc/aria2c.1
  4565. * doc/aria2c.1.html
  4566. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4567. Added missing default value '5' to the usage of --split option.
  4568. * src/HelpItemFactory.cc
  4569. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4570. Filled up pieces based on the number of missing blocks, rather than
  4571. simplay the number of piece * block length.
  4572. * src/BtRequestFactory.h
  4573. * src/DefaultBtInteractive.cc
  4574. * src/DefaultBtInteractive.h
  4575. * src/DefaultBtRequestFactory.cc
  4576. * src/DefaultBtRequestFactory.h
  4577. * src/Piece.cc
  4578. * src/Piece.h
  4579. * test/BitfieldManTest.cc
  4580. * test/DefaultBtRequestFactoryTest.cc
  4581. * test/MockBtRequestFactory.h
  4582. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4583. Made _epEvents a member variable.
  4584. * src/DownloadEngine.cc
  4585. * src/DownloadEngine.h
  4586. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4587. Cancel download if http redirect is bounded more than 20 times.
  4588. * src/AbstractCommand.cc
  4589. * src/HttpSkipResponseCommand.cc
  4590. * src/Request.cc
  4591. * src/Request.h
  4592. * test/RequestTest.cc
  4593. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4594. Fixed unhandled exception(removed keyword `new').
  4595. * src/SocketCore.cc (initEPOLL)
  4596. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4597. Removed visit(const MetaEntry*)
  4598. * src/MetaEntryVisitor.h:
  4599. Added visit(const Data*),visit(const Dictionary*),visit(const List*)
  4600. and made them virtual.
  4601. * src/BencodeVisitor.h
  4602. * src/BencodeVisitor.cc
  4603. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4604. Updated po files.
  4605. * po/aria2c.pot
  4606. * po/*.po
  4607. * po/*.gmo
  4608. 2008-06-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4609. Moved the call setWriteCheckSocket inside the previous clause to reduce
  4610. the number of socket to watch out.
  4611. * src/PeerInteractionCommand.cc
  4612. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4613. When there is not enough space in disk when writing a chunk of data,
  4614. aria2 now prints the message to the console to warn user and aborts
  4615. its download. Not all downloads are canceled because some downloads
  4616. may use another disk or partition. BUG#1640332
  4617. * src/AbstractDiskWriter.cc
  4618. * src/PeerAbstractCommand.cc
  4619. * src/PeerAbstractCommand.h: Added onFailure() function for override.
  4620. * src/PeerInteractionCommand.cc: In onFailure(), call RequestGroup::
  4621. setHaltRequested(true) to cancel download.
  4622. * src/PeerInteractionCommand.h
  4623. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4624. Applied Ross's aria2-0.13.2+1-mingw-5.patch, which changes the type of
  4625. socket from int to sock_t as sockets are unsigned in Windows.
  4626. For AsyncNameResolver, DownloadEngine, I did additional modification
  4627. for the portion of the code changed according to epoll support.
  4628. I defined sock_t in a2netcompat.h to use sock_t without including
  4629. SocketCore.h.
  4630. * src/AsyncNameResolver.cc
  4631. * src/AsyncNameResolver.h
  4632. * src/DownloadEngine.cc
  4633. * src/DownloadEngine.h
  4634. * src/SocketCore.cc
  4635. * src/SocketCore.h
  4636. * src/a2netcompat.h
  4637. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4638. Applied Ross's aria2-0.13.2+1-mingw-4.patch. With this change, all
  4639. changes in the patch were applied.
  4640. * test/DHTConnectionImplTest.cc: Fixed unit test error in MinGW.
  4641. * test/DefaultPieceStorageTest.cc: Fixed unit test error in MinGW.
  4642. * test/PeerMessageUtilTest.cc: Fixed unit test error in MinGW.
  4643. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4644. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this change,
  4645. a2io.h and common.h were modified.
  4646. * src/a2io.h: Changed seek/stat/tell calls to use 64 bit versions in
  4647. MinGW.
  4648. * src/common.h: Changed off_t to 64 bit in MinGW.
  4649. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4650. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4651. only a2netcompat.h is modified.
  4652. * src/a2netcompat.h: Removed unused getaddrinfo related #define
  4653. directives.
  4654. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4655. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit,
  4656. only gai_strerror.h is modified.
  4657. * src/gai_strerror.h: Fixed gai_strerror() function to report all
  4658. winsock errors in MinGW.
  4659. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4660. Applied Ross's aria2-0.13.2+1-mingw-4.patch. In this commit, only the
  4661. follow sources are applied.
  4662. * src/Platform.h: I removed HAVE_WINSOCK2_H directive from Platform.h.
  4663. * src/Platform.cc: Moved common setup/teardown code to Platform class.
  4664. I moved #endif // HAVE_WINSOCK2_H to the front of #include "DlAbortEx.h"
  4665. I included locale.h from Platform.cc.
  4666. * src/main.cc: Moved common setup/teardown code to Platform class.
  4667. * test/AllTest.cc: Use Platform class.
  4668. Set locale to C in AllTest.cc to prevent the messages to be localized.
  4669. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4670. Applied Ross's aria2-0.13.2+1-mingw-3.patch.
  4671. * test/HttpHeaderTest.cc: Casted to off_t where it should.
  4672. * test/HttpRequestTest.cc: Casted to off_t where it should.
  4673. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4674. Applied Ross's aria2-0.13.2+1-mingw.patch and
  4675. aria2-0.13.2+1-mingw-2.patch.
  4676. * src/ConsoleStatCalc.cc: Added HAVE_TERMIOUS_H directive for the
  4677. systems which don't have termious.h. I moved the directive inside of
  4678. if(isTTY) { ... clause so that line is wiped out without termious.h.
  4679. I also removed HAVE_ASCTIME_R clause because asctime_r is provided
  4680. anyway.
  4681. * src/asctime_r.h
  4682. * src/asctime_r.c: Added for the systems don't have asctime_r function.
  4683. I added 2nd argument to the prototype declaration.
  4684. * src/StringFormat.cc: Get rid of vasprintf.
  4685. * src/getaddrinfo.h: Fixed constants.
  4686. * configure.ac: Added the check for asctime_r function.
  4687. * src/Makefile.am: Added conditional based on HAVE_ASCTIME_R
  4688. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4689. Added writable test for Socket when the sending message is in progress.
  4690. Usually the sending message is piece message. Without wriable check,
  4691. upload latency is dropped to more than 1sec.
  4692. * src/PeerInteractionCommand.cc
  4693. 2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4694. Create only requested files and files which shares a piece with
  4695. requested file in multi-torrent downloads. Directory structures are
  4696. also created in the same rule.
  4697. MultiDiskAdaptor::fileExists() now uses FileEntry instead of
  4698. DiskWriterEntry as in the previous implementation.
  4699. * src/MultiDiskWriter.cc
  4700. * src/MultiFileAllocationIterator.cc
  4701. * src/MultiFileAllocationIterator.h
  4702. * test/MultiFileAllocationIteratorTest.cc
  4703. 2008-06-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4704. Commented out -lprofiler
  4705. * src/Makefile.am
  4706. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4707. Bump up version number to 0.14.0b.
  4708. * src/configure.ac
  4709. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4710. Actively establish connection to peers in seeding, when peer cache
  4711. is not full and max upload speed limit is not reached.
  4712. * src/ActivePeerConnectionCommand.cc
  4713. * src/ActivePeerConnectionCommand.h
  4714. 2008-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4715. Always remove a peer from cache in DefaultPeerStorage::returnPeer(),
  4716. to make room more fleshy, recently found peers.
  4717. Peer::_badConditionStartTime is not used anymore. Consider to remove
  4718. it.
  4719. * src/DefaultPeerStorage.cc
  4720. * test/DefaultPeerStorageTest.cc
  4721. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4722. Returns cached data only when the previous receiveHandshake() is called
  4723. with peek = true.
  4724. * src/PeerConnection.cc (receiveHandshake)
  4725. * src/PeerConnection.h (receiveHandshake)
  4726. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4727. Changed default value of -s option from 1 to 5.
  4728. Also max value of -s option is changed from 5 to 16.
  4729. * src/HelpItemFactory.cc
  4730. * src/OptionHandlerFactory.cc
  4731. * src/option_processing.cc
  4732. * src/usage_text.h
  4733. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4734. Changed -s options behavior. Now it means the number of connections
  4735. made simultaneously in each http/ftp download.
  4736. If 1 URL is specified, the behavior is the same with old implementation.
  4737. If -s N is given and more than N URLs are specified, first N URLs are
  4738. used and remaining URLs are used for backup. If less than N URLs are
  4739. specified, some of URLs are used more than once so that totally N
  4740. connections are made simultaneously.
  4741. * src/main.cc
  4742. 2008-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4743. Included missing iosfwd or ostream header.
  4744. * src/RequestGroupMan.cc
  4745. * src/TaggedItem.cc
  4746. * src/TaggedItem.h
  4747. * src/Util.cc
  4748. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4749. * src/HttpHeaderProcessor.cc: Rewritten using std::string as a buffer.
  4750. * src/HttpHeaderProcessor.h: Rewritten using std::string as a buffer.
  4751. * src/HttpConnection.cc: Included missing sstream.
  4752. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4753. Added --bt-max-open-files option.
  4754. * src/DefaultPieceStorage.cc
  4755. * src/HelpItemFactory.cc
  4756. * src/MultiDiskAdaptor.cc
  4757. * src/MultiDiskAdaptor.h
  4758. * src/OptionHandlerFactory.cc
  4759. * src/option_processing.cc
  4760. * src/prefs.cc
  4761. * src/prefs.h
  4762. * src/usage_text.h
  4763. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4764. Fixed the bug that aria2 aborts when a path to a directory is given
  4765. in command-line.
  4766. * src/ProtocolDetector.cc
  4767. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4768. Limited the number files opened in each BitTorrent download. The default
  4769. value is 100. The option to change this value will be added.
  4770. * src/MultiDiskAdaptor.cc
  4771. * src/MultiDiskAdaptor.h
  4772. * src/MultiFileAllocationIterator.cc
  4773. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4774. Fixed the bug that HTTP downloads don't start with old libraries.
  4775. * src/HttpHeaderProcessor.cc
  4776. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4777. Use empty() instead of size() > 0.
  4778. * src/HttpConnection.cc
  4779. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4780. Drop connection if the incoming peer ID is the same with localhost's
  4781. one. The previous implementation drops connection when incoming peer's
  4782. IP address is the same with localhost's one.
  4783. * src/PeerListenCommand.cc
  4784. * src/DefaultBtInteractive.cc
  4785. 2008-06-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4786. Returns cached data without checking whether socket is readable
  4787. if the cache is available.
  4788. * src/PeerConnection.cc (receiveHandshake)
  4789. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4790. Included stdint.h
  4791. * src/common.h
  4792. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4793. Removed duplicate HAVE_GETTIMEOFDAY
  4794. * src/Makefile.am
  4795. * src/Makefile.in
  4796. 2008-06-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4797. Use interval as a minInterval when minInterval is not supplied.
  4798. * src/DefaultBtAnnounce.cc
  4799. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4800. Made DEFAULT_ANNOUNCE_INTERVAL 120, so that if first tracker request
  4801. attempt is failed, then 2nd attempt get kicked out more quickly.
  4802. And it is now static const member of DefaultBtAnnounce.
  4803. * src/DefaultBtAnnounce.h
  4804. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4805. Renamed BtRuntime::lessThanMinPeers() and BtRuntime::lessThanEqMinPeers.
  4806. Made MAX_PEERS and MIN_PEERS static const members of BtRuntime.
  4807. * src/ActivePeerConnectionCommand.cc
  4808. * src/BtConstants.h
  4809. * src/BtRuntime.h
  4810. * src/DHTGetPeersCommand.cc
  4811. * src/DefaultBtAnnounce.cc
  4812. * src/DefaultPeerStorage.cc: Calculate maxPeerListSize based on
  4813. BtRuntime::MAX_PEERS.
  4814. * src/DefaultPeerStorage.h
  4815. * src/InitiatorMSEHandshakeCommand.cc
  4816. * src/PeerInitiateConnectionCommand.cc
  4817. * src/PeerInteractionCommand.cc
  4818. * src/PeerReceiveHandshakeCommand.cc
  4819. * src/TrackerWatcherCommand.cc
  4820. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4821. Always Connect to _numNewConnection
  4822. * src/ActivePeerConnectionCommand.cc
  4823. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4824. Made `begin' unsigned int.
  4825. * src/GrowSegment.h
  4826. * src/Piece.cc
  4827. * src/Piece.h
  4828. * src/PiecedSegment.cc
  4829. * src/PiecedSegment.h
  4830. * src/Segment.h
  4831. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4832. Calculate piece hash when data is arrived if the data is arrived in
  4833. order. This removes additional read operation for hash calculation.
  4834. If the data is arrived in out of order, the hash is calucated when the
  4835. piece is completed. This is the same behavior as the old implementation.
  4836. * src/BtPieceMessage.cc
  4837. * src/DefaultBtProgressInfoFile.cc
  4838. * src/DefaultPieceStorage.cc
  4839. * src/DownloadCommand.cc
  4840. * src/DownloadCommand.h
  4841. * src/DownloadEngine.cc
  4842. * src/GrowSegment.cc
  4843. * src/GrowSegment.h
  4844. * src/Piece.cc
  4845. * src/Piece.h
  4846. * src/PiecedSegment.cc
  4847. * src/PiecedSegment.h
  4848. * src/Segment.h
  4849. * test/PieceTest.cc
  4850. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4851. Try to keep the ordering of outgoing piece message.
  4852. * src/DefaultBtMessageDispatcher.cc
  4853. (DefaultBtMessageDispatcher::sendMessages)
  4854. 2008-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4855. Fixed busy loop when error/hup epoll events occur.
  4856. * src/AbstractCommand.cc
  4857. * src/PeerAbstractCommand.cc
  4858. 2008-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4859. Added --bt-request-peer-speed-limit option, which was a constant
  4860. SLOW_SPEED_THRESHOLD.
  4861. * src/ActivePeerConnectionCommand.cc
  4862. * src/ActivePeerConnectionCommand.h
  4863. * src/BtConstants.h
  4864. * src/HelpItemFactory.cc
  4865. * src/OptionHandlerFactory.cc
  4866. * src/PeerReceiveHandshakeCommand.cc
  4867. * src/option_processing.cc
  4868. * src/prefs.cc
  4869. * src/prefs.h
  4870. * src/usage_text.h
  4871. 2008-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4872. Removed repeated call of getTopDirPath(). Instead, call it once and
  4873. cache the result.
  4874. * src/MultiDiskAdaptor.cc
  4875. * src/MultiDiskAdaptor.h
  4876. (mkdir, openFile, initAndOpenFile, openExistingFile)
  4877. 2008-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4878. Fixed compile error on debian etch.
  4879. The libc6 shipped with debian etch doesn't define ULLONG_MAX properly
  4880. even if _GNU_SOURCE is defined. So define ULLONG_MAX in case when
  4881. it is undefined.
  4882. * src/Util.cc (ULLONG_MAX)
  4883. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4884. Added epoll support. Use epoll if it is available. If not, use select.
  4885. When async dns is enabled in compile time, epoll support is enabled
  4886. only when aria2 is built with c-ares. This condition statement is
  4887. defined in a2io.h.
  4888. Currently aria2 supports both c-ares and ares, but ares is maintained
  4889. for quite a while and debian already has c-ares package, ares support
  4890. will be dropped in the future version.
  4891. * configure.ac
  4892. * src/AbstractCommand.cc
  4893. * src/AsyncNameResolver.cc
  4894. * src/AsyncNameResolver.h
  4895. * src/Command.cc
  4896. * src/Command.h
  4897. * src/DownloadEngine.cc
  4898. * src/DownloadEngine.h
  4899. * src/PeerAbstractCommand.cc
  4900. * src/SocketCore.cc
  4901. * src/SocketCore.h
  4902. * src/a2io.h
  4903. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4904. * test/MetalinkEntryTest.cc: Added missing `defined' keyword to #if
  4905. directive.
  4906. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4907. Do not do write operation to /dev/null file.
  4908. * src/LogFactory.cc
  4909. * src/SimpleLogger.cc
  4910. Replaced vasprintf with vsnprintf
  4911. * src/SimpleLogger.cc (SimpleLogger::writeLog)
  4912. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4913. * src/BtRequestMessage.cc
  4914. (BtRequestMessage::onQueue): Given piece to RequestSlot. This is a fix
  4915. for segmentation fault caused by previous commit.
  4916. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4917. Reduced the usage of gettimeofday().
  4918. * src/DefaultBtMessageDispatcher.cc
  4919. (DefaultBtMessageDispatcher::checkRequestSlotAndDoNecessaryThing)
  4920. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4921. * src/RequestSlot.cc
  4922. * src/RequestSlot.h
  4923. (RequestSlot::isTimeout)
  4924. Made RequestSlot have a reference to Piece object to avoid find
  4925. Piece repeatedly.
  4926. * src/DefaultBtMessageDispatcher.cc
  4927. (class FindStaleRequestSlot, class ProcessStaleRequestSlot)
  4928. * src/RequestSlot.cc
  4929. * src/RequestSlot.h
  4930. (RequestSlot::getPiece)
  4931. * test/DefaultBtMessageDispatcherTest.cc
  4932. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4933. * src/TimeA2.cc
  4934. * src/TimeA2.h
  4935. (Time::difference): New function.
  4936. (Time::elapsed): Done optimization.
  4937. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4938. * src/HelpItemFactory.cc: Added missing `defined' keyword to #if
  4939. directive.
  4940. 2008-05-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4941. * src/option_processing.cc: Added missing `defined' keyword to #if
  4942. directive.
  4943. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4944. Bump up version number to 0.13.2+1
  4945. * src/configure.ac
  4946. 2008-05-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4947. Refactored broken outstanding piece handling.
  4948. * src/DefaultPieceStorage.cc
  4949. * src/DefaultPieceStorage.h
  4950. * src/Piece.cc
  4951. * src/Piece.h
  4952. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4953. Fixed compile error on Mac OS X 10.3.9. This error was caused by the
  4954. name collision of static variable and predefined macro.
  4955. * src/BtContext.cc
  4956. * src/BtContext.h
  4957. * src/CookieBoxFactory.cc
  4958. * src/CookieBoxFactory.h
  4959. * src/CookieParser.cc
  4960. * src/CookieParser.h
  4961. * src/DefaultBtContext.cc
  4962. 2008-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4963. * src/RequestGroup.cc
  4964. (RequestGroup::createInitialCommand): Use empty() instead of size().
  4965. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4966. * Release 0.13.2
  4967. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4968. Updated fr.po(thanks to Sebastien) and ja.po. ThanksDone make update-po
  4969. * po/fr.po
  4970. * po/ja.po
  4971. * po/aria2c.pot
  4972. * po/*.po
  4973. * po/*.gmo
  4974. 2008-05-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4975. Bump up version number to 0.13.2
  4976. * src/configure.ac
  4977. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4978. Refactord.
  4979. * src/RequestGroupMan.cc
  4980. (removeStoppedGroup)
  4981. (fillRequestGroupFromReserver)
  4982. 2008-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4983. Fixed compile error on Ubuntu.
  4984. * src/BtPieceMessage.cc
  4985. * src/MessageDigestHelper.cc
  4986. * src/Util.cc
  4987. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4988. Fixed compile error when configured with --disable-bittorrent
  4989. * test/DownloadHandlerFactoryTest.cc
  4990. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4991. Done make update-po
  4992. * po/aria2c.pot
  4993. * po/*.po
  4994. * po/*.gmo
  4995. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4996. Bump up version number to 0.13.2rc.
  4997. * src/configure.ac
  4998. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  4999. Made option name bold. Updated SYNOPSIS to make it more readable.
  5000. * doc/aria2c.1.txt
  5001. * doc/aria2c.1
  5002. * doc/aria2c.1.html
  5003. * src/version_usage.cc
  5004. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5005. Refactored. Use std::string instead of size and char*.
  5006. * Data.cc
  5007. * Data.h
  5008. * test/Data.cc
  5009. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5010. Added trimSelf(). Rewritten trim() to use trimSelf().
  5011. * Util.cc
  5012. * Util.h
  5013. 2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5014. * src/ChunkChecksum.h (getChecksum): Return const reference.
  5015. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5016. Fixed compile error when configured with --disable-metalink.
  5017. Also moved test/DownloadHandlerFactoryTest.cc to SRC in Makefile.am.
  5018. * test/FeatureConfigTest.cc
  5019. * test/DownloadHandlerFactoryTest.cc
  5020. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5021. Fixed compile error when configured with --without-gnutls
  5022. --without-openssl
  5023. * src/main.cc
  5024. * test/DefaultBtProgressInfoFileTest.cc
  5025. * test/SegmentManTest.cc
  5026. 2008-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5027. Fixed compile error with OpenSSL.
  5028. * src/IteratableChunkChecksumValidator.cc
  5029. * src/LibsslDHKeyExchange.h
  5030. * src/MessageDigestHelper.cc
  5031. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5032. Revert the default value of --max-concurrent-downloads to 5.
  5033. Revert the default value of --metalink-servers to 5.
  5034. Man pages was also updated.
  5035. * src/option_processing.cc
  5036. * doc/aria2c.1.txt
  5037. * doc/aria2c.1.html
  5038. * doc/aria2c.1
  5039. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5040. Returns const reference:
  5041. DownloadContext::getPieceHash, DownloadContext::getName,
  5042. DownloadContext::getPieceHashAlgo, DownloadContext::getDir,
  5043. BtContext::getInfoHashAsString,
  5044. * src/BtContext.h
  5045. * src/DefaultBtContext.cc
  5046. * src/DefaultBtContext.h
  5047. * src/DownloadContext.h
  5048. * src/SingleFileDownloadContext.h
  5049. * test/MockBtContext.h
  5050. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5051. * src/RequestGroup.h (getDir): Removed.
  5052. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5053. Returns const reference. The internal urlencode function was optimized
  5054. a little bit.
  5055. * src/Request.cc
  5056. * src/Request.h
  5057. * src/HttpRequest.cc
  5058. * src/HttpRequest.h
  5059. 2008-05-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5060. Defined option name and possible values as std::string to reduce
  5061. temporary string object creation in runtime.
  5062. * src/HelpItemFactory.cc
  5063. * src/LogFactory.cc
  5064. * src/Option.cc
  5065. * src/OptionHandlerFactory.cc
  5066. * src/option_processing.cc
  5067. * src/prefs.cc
  5068. * src/prefs.h
  5069. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5070. Return const reference.
  5071. * src/DownloadHandlerConstants.cc
  5072. * src/DownloadHandlerConstants.h
  5073. (getMetalinkExtensions)
  5074. (getMetalinkContentTypes)
  5075. (getBtExtensions)
  5076. (getBtContentTypes)
  5077. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5078. * src/HttpHeader.cc (get): Rewritten.
  5079. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5080. Make HttpHeader::getFirst(...) return const reference.
  5081. * src/HttpHeader.cc
  5082. * src/HttpHeader.h
  5083. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5084. Use Option::getAsBool(...) instead of Option::get(...) and compare
  5085. it with V_TRUE.
  5086. * src/DefaultPieceStorage.cc
  5087. * src/DownloadCommand.cc
  5088. * src/FtpNegotiationCommand.cc
  5089. * src/HttpRequest.cc
  5090. * src/InitiateConnectionCommand.cc
  5091. * src/RequestGroup.cc
  5092. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5093. Made Option::get(...) return const reference of std::string.
  5094. * src/Option.cc
  5095. * src/Option.h
  5096. 2008-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5097. Replaced std:copy with insert.
  5098. * src/DefaultBtMessageDispatcher.cc
  5099. * src/DefaultPieceStorage.cc
  5100. * src/DownloadEngineFactory.cc
  5101. * src/RequestGroup.cc
  5102. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5103. Included SocketCore.h to fix compiler warning.
  5104. * src/InitiateConnectionCommand.cc
  5105. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5106. Put piece selection strategy algorithm to RarestPieceSelector class,
  5107. Added a switch to choose whether randomized selection so that unit
  5108. tests emit same results in, possibly, win32.
  5109. * src/DefaultPieceStorage.cc
  5110. * src/DefaultPieceStorage.h
  5111. * src/RarestPieceSelector.cc
  5112. * src/RarestPieceSelector.h
  5113. * test/DefaultPieceStorageTest.cc
  5114. * test/RarestPieceSelectorTest.cc
  5115. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5116. Don't pool connection if HTTP proxy is enabled.
  5117. * src/FtpFinishDownloadCommand.cc
  5118. * src/FtpNegotiationCommand.cc
  5119. * src/HttpSkipResponseCommand.cc
  5120. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5121. Don't add closed socket to DownloadEngine::addSocketForReadCheck()
  5122. * src/AbstractCommand.cc
  5123. * src/AbstractCommand.h
  5124. * src/ActivePeerConnectionCommand.cc
  5125. * src/FtpInitiateConnectionCommand.cc
  5126. * src/HttpInitiateConnectionCommand.cc
  5127. * src/InitiateConnectionCommandFactory.cc
  5128. * src/PeerAbstractCommand.cc
  5129. * src/PeerAbstractCommand.h
  5130. * src/PeerInitiateConnectionCommand.cc
  5131. * src/TrackerWatcherCommand.cc
  5132. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5133. Sort RequestSlot in ascending order and manipulate them using
  5134. lower_bound.
  5135. * src/DefaultBtMessageDispatcher.cc
  5136. * src/DefaultBtMessageDispatcher.h
  5137. (getMessageQueue): Added const qualifier.
  5138. (getRequestSlots): Added const qualifier.
  5139. (sendMessages): Use empty() instead of size().
  5140. (doCancelSendingPieceAction): Use HandleEvent object.
  5141. (doAbortOutstandingRequestAction): Rewritten.
  5142. (doChokedAction): Rewritten.
  5143. (checkRequestSlotAndDoNecessaryThing): Rewritten.
  5144. (isOutstandingRequest): Rewritten.
  5145. (getOutstandingRequest): Rewritten.
  5146. (removeOutstandingRequest): Rewritten.
  5147. (addOutstandingRequest): Rewritten.
  5148. * src/RequestSlot.cc
  5149. * src/RequestSlot.h
  5150. (operator=): Rewritten.
  5151. (operator!=): New function.
  5152. (operator<): New function.
  5153. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5154. * src/DefaultBtRequestFactory.cc
  5155. (doChokedAction): Rewritten.
  5156. (removeCompletedPiece): Rewritten.
  5157. (removeTargetPiece): Rewritten.
  5158. (createRequestMessages): Added the debug log.
  5159. (createRequestMessagesOnEndGame: Added the debug log.
  5160. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5161. Added the debug log message.
  5162. * src/BtPieceMessage.cc (doReceivedAction)
  5163. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5164. Sorted DHTPeerAnnounceEntry in a ascending order of info hash and
  5165. used lower_bound to process them rather than linear search.
  5166. * src/DHTPeerAnnounceStorage.cc
  5167. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5168. Call subtractPieceStats from ~PeerInteractionCommand only when the
  5169. peer has at least one completed piece.
  5170. * src/Peer.cc
  5171. * src/Peer.h
  5172. * src/PeerInteractionCommand.cc
  5173. * src/PeerSessionResource.cc
  5174. * src/PeerSessionResource.h
  5175. 2008-05-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5176. Removed unnecessary sorting
  5177. * src/DefaultPieceStorage (DefaultPieceStorage)
  5178. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5179. Rewritten the portion of the code that mangaes allowed fast indexes.
  5180. * src/PeerSessionResource.cc
  5181. * src/PeerSessionResource.h
  5182. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5183. Removed the invalid string including '\r' from ru.po and
  5184. did make update-po.
  5185. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5186. Added --log-level and --summary-interval to man page.
  5187. * doc/aria2c.1.txt
  5188. * doc/aria2c.1.html
  5189. * doc/aria2c.1
  5190. 2008-05-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5191. Added --log-level option to specify log level. Log messages under
  5192. the specified level are not output. Default value is `debug'.
  5193. * src/HelpItemFactory.cc
  5194. * src/LogFactory.cc
  5195. * src/LogFactory.h
  5196. * src/Logger.h
  5197. * src/OptionHandlerFactory.cc
  5198. * src/SimpleLogger.cc
  5199. * src/SimpleLogger.h
  5200. * src/main.cc
  5201. * src/option_processing.cc
  5202. * src/prefs.h
  5203. * src/usage_text.h
  5204. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5205. Print download progress summary of all parallel downloads in specified
  5206. interval, default 60 secs. While aria2 could download several files
  5207. in parallel (see -j option), it displayed just first download progress,
  5208. and the other downloads are hidden from the users. This new feature
  5209. prints all downloads currently in-progress to the console so that you
  5210. can check the status of all downloads. The interval can be adjusted
  5211. by --summary-interval option.
  5212. The progress readout is now cut so that all fits in the one line of
  5213. console.
  5214. * src/ConsoleStatCalc.cc
  5215. * src/ConsoleStatCalc.h
  5216. * src/HelpItemFactory.cc
  5217. * src/OptionHandlerFactory.cc
  5218. * src/RequestGroupMan.cc
  5219. * src/RequestGroupMan.h
  5220. * src/main.cc
  5221. * src/option_processing.cc
  5222. * src/prefs.h
  5223. * src/usage_text.h
  5224. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5225. Call updateFdSet() to initialize rfdset, wfdset fdmax.
  5226. * src/DownloadEngine.cc (DownloadEngine)
  5227. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5228. Use free() to deallocate memory for _buffer if HAVE_POSIX_MEMALIGN is
  5229. defined.
  5230. * src/SingleFileAllocationIterator.cc (~SingleFileAllocationIterator)
  5231. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5232. Use erase+lower_bound+insert instead of sort.
  5233. * src/DefaultPieceStorage.cc (addPieceStats)
  5234. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5235. Use A2STR::SHARP_C and A2STR::EQUAL_C.
  5236. * src/A2STR.cc
  5237. * src/A2STR.h
  5238. * src/OptionParser.cc (parse)
  5239. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5240. Defined fake filename `[tracker.announce]' as static const std::string.
  5241. * src/TrackerWatcherCommand.cc (createRequestGroup)
  5242. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5243. Defined default filename `index.html' as static const std::string
  5244. * src/SingleFileDownloadContext.cc
  5245. * src/SingleFileDownloadContext.h
  5246. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5247. Defined "[MEMORY]" as static const std::string.
  5248. * src/MemoryBufferPreDownloadHandler.cc (execute)
  5249. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5250. Defined control file's version number as static const std::string.
  5251. * src/DefaultBtProgressInfoFile.cc
  5252. * src/DefaultBtProgressInfoFile.h
  5253. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5254. Use Request::METHOD_GET
  5255. * src/RequestGroup.cc (createNextCommandWithAdj)
  5256. 2008-05-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5257. Defined "OK", "ERR", "INPR" as static const std::string
  5258. * src/RequestGroupMan.cc (showDownloadResults)
  5259. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5260. Defined default client used in extended handshake as static const
  5261. std::string
  5262. * src/DefaultBtInteractive.cc (addHandshakeExtendedMessageToQueue)
  5263. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5264. Defined AUTH_HEADER, PROXY_AUTH_HEADER as static const std::string
  5265. * src/HttpConnection.cc (eraseConfidentialInfo)
  5266. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5267. Defined default ftp user and password as static const std::string
  5268. * src/AuthConfigFactory.cc
  5269. * src/AuthConfigFactory.h
  5270. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5271. Defined strings used in netrc as static const std::string
  5272. * src/Netrc.cc
  5273. * src/Netrc.h
  5274. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5275. Defined HTTP status as static const std::string
  5276. * src/AbstractProxyResponseCommand.cc
  5277. * src/HttpHeader.cc
  5278. * src/HttpHeader.h
  5279. * src/HttpResponse.cc
  5280. * src/HttpResponseCommand.cc
  5281. * src/HttpSkipResponseCommand.cc
  5282. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5283. Defined "\r\n", "A", "I" as static const std::string
  5284. * src/A2STR.cc
  5285. * src/A2STR.h
  5286. * src/FtpConnection.cc
  5287. * src/FtpConnection.h
  5288. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5289. Added COLON_C(".") and used it in Request::parseUrl()
  5290. * src/A2STR.cc
  5291. * src/A2STR.h
  5292. * src/Request.cc (parseUrl)
  5293. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5294. Changed the type of padName from `const std::string&' to `const char*'.
  5295. * src/MSEHandshake.cc (verifyPadLength)
  5296. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5297. Defined "sha1" as static const std::string.
  5298. * src/MetalinkParserController.cc
  5299. * src/MetalinkParserController.h
  5300. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5301. Defined message digest algorithm name as static const std::string
  5302. * src/DHTTokenTracker.cc
  5303. * src/DHTUtil.cc
  5304. * src/DefaultBtContext.cc
  5305. * src/MSEHandshake.cc
  5306. * src/MessageDigestHelper.cc
  5307. * src/Peer.cc
  5308. * src/messageDigest.cc
  5309. * src/messageDigest.h
  5310. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5311. Made string literals used in SAX parser static const std::string.
  5312. * src/FileMetalinkParserState.cc
  5313. * src/FileMetalinkParserState.h
  5314. * src/FilesMetalinkParserState.cc
  5315. * src/FilesMetalinkParserState.h
  5316. * src/InitialMetalinkParserState.cc
  5317. * src/InitialMetalinkParserState.h
  5318. * src/MetalinkMetalinkParserState.cc
  5319. * src/MetalinkMetalinkParserState.h
  5320. * src/PiecesMetalinkParserState.cc
  5321. * src/PiecesMetalinkParserState.h
  5322. * src/ResourcesMetalinkParserState.cc
  5323. * src/ResourcesMetalinkParserState.h
  5324. * src/VerificationMetalinkParserState.cc
  5325. * src/VerificationMetalinkParserState.h
  5326. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5327. Use A2STR::SLASH_C, A2STR::DOT_C instead of "/", "." respectively.
  5328. * src/A2STR.cc
  5329. * src/A2STR.h
  5330. * src/File.cc
  5331. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5332. Defined static const std::string IP("ip"), PORT("port") and use them
  5333. instead of string literals.
  5334. * src/DefaultPeerListProcessor.cc
  5335. * src/DefaultPeerListProcessor.h
  5336. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5337. Made string literals for torrent file processing static const
  5338. std::string.
  5339. * src/BtContext.cc
  5340. * src/BtContext.h
  5341. * src/DefaultBtContext.cc
  5342. * src/DefaultBtContext.h
  5343. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5344. Made string literal for tracker response static const std::string
  5345. * src/BtAnnounce.cc
  5346. * src/BtAnnounce.h
  5347. * src/DefaultBtAnnounce.cc
  5348. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5349. Use DHTMessage::T instead of "t".
  5350. * src/DHTMessageTracker.cc (messageArrived)
  5351. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5352. Made keyName static const. Made trimmed charset static const
  5353. std::string.
  5354. * src/Util.cc (getContentDispositionFilename)
  5355. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5356. Made USER_AGENT const. Made "/" static const std::string.
  5357. * src/A2STR.cc
  5358. * src/A2STR.h
  5359. * src/HttpRequest.cc
  5360. * src/HttpRequest.h
  5361. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5362. Made string listeral to static const std::string:
  5363. "Content-Range", "Content-Length"
  5364. * src/HttpHeader.cc
  5365. * src/HttpHeader.h
  5366. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5367. Made string listeral to static const std::string.
  5368. * src/HttpConnection.cc
  5369. * src/HttpHeader.cc
  5370. * src/HttpHeader.h
  5371. * src/HttpResponse.cc
  5372. 2008-05-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5373. Made string listeral to static const std::string.
  5374. * src/A2STR.cc
  5375. * src/A2STR.h
  5376. * src/SimpleLogger.cc
  5377. * src/SimpleLogger.h
  5378. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5379. Made string literal to static const std::string.
  5380. Rewritten CookieParser::setField.
  5381. * src/A2STR.cc
  5382. * src/A2STR.h
  5383. * src/CookieBoxFactory.cc
  5384. * src/CookieBoxFactory.h
  5385. * src/CookieParser.cc
  5386. * src/CookieParser.h
  5387. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5388. Made string literal to static const std::string
  5389. * src/DHTAbstractMessage.cc
  5390. * src/DHTAnnouncePeerMessage.cc
  5391. * src/DHTAnnouncePeerMessage.h
  5392. * src/DHTAnnouncePeerReplyMessage.cc
  5393. * src/DHTAnnouncePeerReplyMessage.h
  5394. * src/DHTFindNodeMessage.cc
  5395. * src/DHTFindNodeMessage.h
  5396. * src/DHTFindNodeReplyMessage.cc
  5397. * src/DHTFindNodeReplyMessage.h
  5398. * src/DHTGetPeersMessage.cc
  5399. * src/DHTGetPeersMessage.h
  5400. * src/DHTGetPeersReplyMessage.cc
  5401. * src/DHTGetPeersReplyMessage.h
  5402. * src/DHTMessage.cc
  5403. * src/DHTMessage.h
  5404. * src/DHTMessageFactoryImpl.cc
  5405. * src/DHTMessageReceiver.cc
  5406. * src/DHTPingMessage.cc
  5407. * src/DHTPingMessage.h
  5408. * src/DHTPingReplyMessage.cc
  5409. * src/DHTPingReplyMessage.h
  5410. * src/DHTQueryMessage.cc
  5411. * src/DHTQueryMessage.h
  5412. * src/DHTResponseMessage.cc
  5413. * src/DHTResponseMessage.h
  5414. * src/DHTUnknownMessage.cc
  5415. * src/DHTUnknownMessage.h
  5416. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5417. Made string literal to static const std::string
  5418. * src/BtChokeMessage.cc (toString)
  5419. * src/BtHaveAllMessage.cc (toString)
  5420. * src/BtHaveNoneMessage.cc (toString)
  5421. * src/BtInterestedMessage.cc (toString)
  5422. * src/BtNotInterestedMessage.cc (toString)
  5423. * src/BtUnchokeMessage.cc (toString)
  5424. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5425. Replaced "" with static const variable A2STR::NIL.
  5426. Replaced string comparison against "" with std::string::empty().
  5427. Added PROTO_* to Request class and use them as a protocol string
  5428. constant.
  5429. Made "started", "stopped", "completed" static const variable in
  5430. AnnounceList class.
  5431. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5432. Updated translations. Great thanks to translators.
  5433. * po/ca.po
  5434. * po/de.po
  5435. * po/fr.po
  5436. * po/it.po
  5437. * po/ja.po
  5438. * po/ru.po
  5439. * po/zh_CN.po
  5440. 2008-05-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5441. Updated man page; categorized options and fixed typo.
  5442. * doc/aria2c.1.txt
  5443. * doc/aria2c.1.html
  5444. * doc/aria2c.1
  5445. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5446. Removed const ref
  5447. * src/MetalinkEntry.cc (AddProtocolPreference)
  5448. * src/RequestGroup.cc (FindServerHostByHostname)
  5449. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5450. Rewritten Accept-Features handling.
  5451. * src/HttpRequestCommand.cc (createHttpRequest)
  5452. * src/a2functional.h
  5453. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5454. Changed method signature:
  5455. DHTAbstractNodeLookupTask::toEntries
  5456. * src/DHTAbstractNodeLookupTask.cc
  5457. * src/DHTAbstractNodeLookupTask.h
  5458. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5459. Changed method signature:
  5460. BtContext::computeFastSet, DefaultBtContext::extractUrlList
  5461. * src/BtContext.h
  5462. * src/DefaultBtContext.cc
  5463. * src/DefaultBtContext.h
  5464. * src/DefaultBtInteractive.cc
  5465. * test/DefaultBtContextTest.cc
  5466. * test/MockBtContext.h
  5467. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5468. Changed method signature:
  5469. MultiFileAllocationIterator::makeDiskWriterEntries
  5470. * src/MultiFileAllocationIterator.cc
  5471. * src/MultiFileAllocationIterator.h
  5472. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5473. Changed method sinature:
  5474. MetalinkEntry::toFileEntry,
  5475. MetalinkHelper::query, MetalinkHelper::parseAndQuery,
  5476. Metalinker::queryEntry
  5477. * src/Metalink2RequestGroup.cc
  5478. * src/MetalinkEntry.cc
  5479. * src/MetalinkEntry.h
  5480. * src/MetalinkHelper.cc
  5481. * src/MetalinkHelper.h
  5482. * src/Metalinker.cc
  5483. * src/Metalinker.h
  5484. * src/main.cc
  5485. * test/MetalinkHelperTest.cc
  5486. * test/MetalinkerTest.cc
  5487. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5488. Changed method sinature:
  5489. RequestGroup::getURIs
  5490. * src/RequestGroup.cc
  5491. * src/RequestGroup.h
  5492. * test/Metalink2RequestGroupTest.cc
  5493. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5494. Changed method signature:
  5495. PeerListProcessor::extractPeer
  5496. * src/CompactPeerListProcessor.cc
  5497. * src/CompactPeerListProcessor.h
  5498. * src/DefaultBtAnnounce.cc
  5499. * src/DefaultPeerListProcessor.cc
  5500. * src/DefaultPeerListProcessor.h
  5501. * src/DelegatingPeerListProcessor.cc
  5502. * src/DelegatingPeerListProcessor.h
  5503. * src/PeerListProcessor.h
  5504. * src/UTPexExtensionMessage.cc
  5505. * test/DefaultPeerListProcessorTest.cc
  5506. 2008-05-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5507. Changed method signature:
  5508. BtRequestFactory::createRequestMessages,
  5509. BtRequestFactory::createRequestMessagesOnEndGame
  5510. * src/BtRequestFactory.h
  5511. * src/DefaultBtInteractive.cc
  5512. * src/DefaultBtRequestFactory.cc
  5513. * src/DefaultBtRequestFactory.h
  5514. * test/DefaultBtRequestFactoryTest.cc
  5515. * test/MockBtRequestFactory.h
  5516. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5517. Changed method signature:
  5518. PieceStorage::getInFlightPieces
  5519. * src/DefaultBtProgressInfoFile.cc
  5520. * src/DefaultPieceStorage.cc
  5521. * src/DefaultPieceStorage.h
  5522. * src/PieceStorage.h
  5523. * src/UnknownLengthPieceStorage.cc
  5524. * src/UnknownLengthPieceStorage.h
  5525. * test/DefaultBtProgressInfoFileTest.cc
  5526. * test/MockPieceStorage.h
  5527. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5528. Changed method signature:
  5529. PostDownloadHandler::getNextRequestGroups
  5530. Metalink2RequestGroup::generate
  5531. RequestGroup::postDownloadProcessing
  5532. * src/BtPostDownloadHandler.cc
  5533. * src/BtPostDownloadHandler.h
  5534. * src/Metalink2RequestGroup.cc
  5535. * src/Metalink2RequestGroup.h
  5536. * src/MetalinkPostDownloadHandler.cc
  5537. * src/MetalinkPostDownloadHandler.h
  5538. * src/PostDownloadHandler.h
  5539. * src/RequestGroup.cc
  5540. * src/RequestGroup.h
  5541. * src/RequestGroupMan.cc
  5542. * src/main.cc
  5543. * test/BtPostDownloadHandlerTest.cc
  5544. * test/Metalink2RequestGroupTest.cc
  5545. * test/MetalinkPostDownloadHandlerTest.cc
  5546. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5547. Rewritten AccRequestGroup
  5548. * src/main.cc
  5549. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5550. Rewritten.
  5551. * src/TaggedItem.cc (toTagString)
  5552. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5553. Rewritten Accept-Features handling.
  5554. * src/HttpRequestCommand.cc (createHttpRequest)
  5555. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5556. Rewritten accept types handling.
  5557. * HttpRequest.cc (createRequest)
  5558. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5559. Rewritten
  5560. * src/FeatureConfig.cc (featureSummary)
  5561. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5562. Changed method signature:
  5563. PeerStorage::getActivePeers
  5564. * src/DHTPeerAnnounceEntry.cc
  5565. * src/DefaultPeerStorage.cc
  5566. * src/DefaultPeerStorage.h
  5567. * src/PeerStorage.h
  5568. * test/DefaultPeerStorageTest.cc
  5569. * test/MockPeerStorage.h
  5570. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5571. Changed method signature:
  5572. DHTPeerAnnounceStorage::getPeers,
  5573. DHTPeerAnnounceEntry::getPeers
  5574. * src/DHTGetPeersMessage.cc
  5575. * src/DHTPeerAnnounceEntry.cc
  5576. * src/DHTPeerAnnounceEntry.h
  5577. * src/DHTPeerAnnounceStorage.cc
  5578. * src/DHTPeerAnnounceStorage.h
  5579. * test/DHTAnnouncePeerMessageTest.cc
  5580. * test/DHTPeerAnnounceEntryTest.cc
  5581. * test/DHTPeerAnnounceStorageTest.cc
  5582. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5583. Changed method signature:
  5584. NameResolver::resolve
  5585. * src/DHTEntryPointNameResolveCommand.cc
  5586. * src/InitiateConnectionCommand.cc
  5587. * src/NameResolver.cc
  5588. * src/NameResolver.h
  5589. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5590. Changed method signature:
  5591. PieceStorage::getAdvertisedPieceIndexes
  5592. * src/DefaultBtInteractive.cc
  5593. * src/DefaultPieceStorage.cc
  5594. * src/DefaultPieceStorage.h
  5595. * src/PieceStorage.h
  5596. * src/UnknownLengthPieceStorage.h
  5597. * test/MockPieceStorage.h
  5598. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5599. Changed method signature:
  5600. SegmentMan::getInFlightSegment
  5601. * src/AbstractCommand.cc
  5602. * src/SegmentMan.cc
  5603. * src/SegmentMan.h
  5604. * test/SegmentManTest.cc
  5605. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5606. Changed method signature:
  5607. DHTAbstractNodeLookupTask::getNodesFromMessage
  5608. * src/DHTAbstractNodeLookupTask.cc
  5609. * src/DHTAbstractNodeLookupTask.h
  5610. * src/DHTNodeLookupTask.cc
  5611. * src/DHTNodeLookupTask.h
  5612. * src/DHTPeerLookupTask.cc
  5613. * src/DHTPeerLookupTask.h
  5614. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5615. Pass std::deque<Command*> by reference to avoid unnecessary coping.
  5616. * src/AbstractCommand.cc
  5617. * src/BtCheckIntegrityEntry.cc
  5618. * src/BtCheckIntegrityEntry.h
  5619. * src/BtFileAllocationEntry.cc
  5620. * src/BtFileAllocationEntry.h
  5621. * src/BtSetup.cc
  5622. * src/BtSetup.h
  5623. * src/CheckIntegrityCommand.cc
  5624. * src/CheckIntegrityEntry.h
  5625. * src/ChecksumCheckIntegrityEntry.cc
  5626. * src/ChecksumCheckIntegrityEntry.h
  5627. * src/DHTSetup.cc
  5628. * src/DHTSetup.h
  5629. * src/DownloadEngine.cc
  5630. * src/FileAllocationCommand.cc
  5631. * src/FileAllocationEntry.h
  5632. * src/RequestGroup.cc
  5633. * src/RequestGroup.h
  5634. * src/RequestGroupMan.cc
  5635. * src/RequestGroupMan.h
  5636. * src/StreamCheckIntegrityEntry.cc
  5637. * src/StreamCheckIntegrityEntry.h
  5638. * src/StreamFileAllocationEntry.cc
  5639. * src/StreamFileAllocationEntry.h
  5640. * src/TrackerWatcherCommand.cc
  5641. * src/a2functional.h
  5642. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5643. Changed method signature:
  5644. BNode::findClosestKNodes, BNode:: enumerateBucket,
  5645. DHTBucket::getGoodNodes,
  5646. DHTRoutingTable::getClosestKNodes, DHTRoutingTable::getBuckets
  5647. * src/BNode.cc
  5648. * src/BNode.h
  5649. * src/DHTAbstractNodeLookupTask.cc
  5650. * src/DHTAutoSaveCommand.cc
  5651. * src/DHTBucket.cc
  5652. * src/DHTBucket.h
  5653. * src/DHTBucketRefreshTask.cc
  5654. * src/DHTFindNodeMessage.cc
  5655. * src/DHTGetPeersMessage.cc
  5656. * src/DHTRoutingTable.cc
  5657. * src/DHTRoutingTable.h
  5658. * test/BNodeTest.cc
  5659. * test/DHTBucketTest.cc
  5660. * test/DHTRoutingTableTest.cc
  5661. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5662. In piece selection functions, Pass std::deque<...> by reference rather
  5663. than returning it.
  5664. * src/BitfieldMan.cc
  5665. * src/BitfieldMan.h
  5666. * src/DefaultBtRequestFactory.cc
  5667. * src/DefaultPieceStorage.cc
  5668. * src/Piece.cc
  5669. * src/Piece.h
  5670. * test/BitfieldManTest.cc
  5671. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5672. Implemented rarest piece first piece selection strategy.
  5673. * src/AbstractBtMessage.cc
  5674. * src/AbstractBtMessage.h
  5675. * src/BitfieldMan.cc
  5676. * src/BitfieldMan.h
  5677. * src/BtBitfieldMessage.cc
  5678. * src/BtHaveAllMessage.cc
  5679. * src/BtHaveMessage.cc
  5680. * src/DefaultPieceStorage.cc
  5681. * src/DefaultPieceStorage.h
  5682. * src/PeerInteractionCommand.cc
  5683. * src/PieceStorage.h
  5684. * src/UnknownLengthPieceStorage.h
  5685. 2008-05-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5686. Rewritten readData and writeData.
  5687. * src/MultiDiskAdaptor.cc
  5688. * src/MultiDiskAdaptor.h
  5689. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5690. Move \n out of the message "Usage: ...".
  5691. * src/version_usage.cc
  5692. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5693. Bump up version number to 0.13.2b.
  5694. * configure.ac
  5695. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5696. Added const qualifier to argument Exception& e.
  5697. * src/Logger.h
  5698. * src/SimpleLogger.cc
  5699. * src/SimpleLogger.h
  5700. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5701. Pool connection when CWD, SIZE command fails.
  5702. * src/FtpNegotiationCommand.cc
  5703. * src/FtpNegotiationCommand.h
  5704. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5705. Renamed HttpNullDownloadCommand as HttpSkipResponseCommand
  5706. * src/HttpResponseCommand.cc
  5707. * src/HttpSkipResponseCommand.cc
  5708. * src/HttpSkipResponseCommand.h
  5709. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5710. Pool connection when a server returns 4xx, 5xx responses.
  5711. * src/HttpNullDownloadCommand.cc
  5712. * src/HttpNullDownloadCommand.h
  5713. * src/HttpResponse.cc
  5714. * src/HttpResponse.h
  5715. * src/HttpResponseCommand.cc
  5716. * src/HttpResponseCommand.h
  5717. * test/HttpResponseTest.cc
  5718. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5719. Print usage when no URL is specifed or bad command-line option is
  5720. specified.
  5721. * src/HelpItemFactory.cc
  5722. * src/help_tags.h
  5723. * src/option_processing.cc
  5724. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5725. Removed duplicate log message.
  5726. * src/AbstractCommand.cc (asyncResolveHostname)
  5727. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5728. Updated man page: --async-dns and --ftp-reuse-connection were added.
  5729. Changed -j option's default value from 5 to 1.
  5730. Added new examples using protocol auto detection feature.
  5731. Removed -T, -M usage where it can be omitted.
  5732. * doc/aria2c.1.txt
  5733. * doc/aria2c.1.html
  5734. * doc/aria2c.1.txt
  5735. 2008-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5736. Updated command-line usage text, so that it tells users that they
  5737. can specify any number of torrent files and metalink files in
  5738. command-line.
  5739. * src/version_usage.cc
  5740. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5741. Changed the default value of -j option to 1.
  5742. * src/HelpItemFactory.cc
  5743. * src/option_processing.cc
  5744. * src/usage_text.h
  5745. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5746. Added the ability to reuse connection in FTP and it is enabled by
  5747. default. It can be disabled by --ftp-reuse-connection=false option.
  5748. * src/Command.cc
  5749. * src/DownloadCommand.cc
  5750. * src/FtpDownloadCommand.cc
  5751. * src/FtpDownloadCommand.h
  5752. * src/FtpFinishDownloadCommand.cc
  5753. * src/FtpFinishDownloadCommand.h
  5754. * src/FtpInitiateConnectionCommand.cc
  5755. * src/FtpNegotiationCommand.cc
  5756. * src/FtpNegotiationCommand.h
  5757. * src/HelpItemFactory.cc
  5758. * src/Makefile.am
  5759. * src/Makefile.in
  5760. * src/OptionHandlerFactory.cc
  5761. * src/option_processing.cc
  5762. * src/prefs.h
  5763. * src/usage_text.h
  5764. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5765. Call Command::transitStatus() before calling Command::execute(),
  5766. so that the status change made in execute() is not cleared.
  5767. * src/DownloadEngine.cc
  5768. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5769. Removed forward declaration of SocketCore class.
  5770. * src/HttpDownloadCommand.h
  5771. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5772. Set Request::setKeepAliveHint() and Request::setPipeliningHint()
  5773. in InitiateConnectionCommandFactory. They should be set only when
  5774. the protocol is HTTP or HTTPS.
  5775. * src/InitiateConnectionCommandFactory.cc
  5776. * src/RequestGroup.cc
  5777. 2008-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5778. Fixed infinite loop in checksum checking.
  5779. * src/IteratableChecksumValidator.cc
  5780. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5781. Set _supportsPersistentConnection to true by default.
  5782. * src/Request.cc
  5783. * src/RequestGroup.cc
  5784. * test/HttpRequestTest.cc
  5785. * test/RequestTest.cc
  5786. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5787. Added timeout to socket pool. The default timeout is 15 seconds,
  5788. which is the same value Apache uses.
  5789. * src/DownloadEngine.cc
  5790. * src/DownloadEngine.h
  5791. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5792. Fixed misuse of multimap::find()
  5793. * src/HttpHeader.cc
  5794. * test/HttpHeaderTest.cc
  5795. 2008-05-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5796. Rewritten name resolver. Now async DNS can be disabled by --async-dns
  5797. option.
  5798. The asynchronous DNS is not capable of IPv6 yet.
  5799. By disabling asynchronous DNS, aria2 is IPv6 enabled application, at
  5800. least for HTTP download.
  5801. * src/AbstractCommand.cc
  5802. * src/AbstractCommand.h
  5803. * src/AsyncNameResolver.cc
  5804. * src/AsyncNameResolver.h
  5805. * src/DHTEntryPointNameResolveCommand.cc
  5806. * src/DHTEntryPointNameResolveCommand.h
  5807. * src/DownloadEngine.cc
  5808. * src/DownloadEngine.h
  5809. * src/FtpInitiateConnectionCommand.cc
  5810. * src/FtpInitiateConnectionCommand.h
  5811. * src/HelpItemFactory.cc
  5812. * src/HttpInitiateConnectionCommand.cc
  5813. * src/HttpInitiateConnectionCommand.h
  5814. * src/InitiateConnectionCommand.cc
  5815. * src/InitiateConnectionCommand.h
  5816. * src/Makefile.am
  5817. * src/Makefile.in
  5818. * src/NameResolver.cc
  5819. * src/NameResolver.h
  5820. * src/OptionHandlerFactory.cc
  5821. * src/SocketCore.cc
  5822. * src/SocketCore.h
  5823. * src/Util.cc
  5824. * src/Util.h
  5825. * src/option_processing.cc
  5826. * src/prefs.h
  5827. * src/usage_text.h
  5828. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5829. Updated man page: --quiet, --header were added.
  5830. --metalink-servers and --enable-http-keep-alive option were updated.
  5831. * doc/aria2c.1
  5832. * doc/aria2c.1.html
  5833. * doc/aria2c.1.txt
  5834. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5835. Enable HTTP keep-alive by default.
  5836. * src/HelpItemFactory.cc
  5837. * src/option_processing.cc
  5838. * src/usage_text.h
  5839. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5840. Disable http keep-alive if the remote server is not HTTP/1.1.
  5841. * src/HttpConnection.cc
  5842. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5843. Receive content body of 302 response so that the connection can be
  5844. reused later when http keep-alive is enabled.
  5845. * src/HttpNullDownloadCommand.cc
  5846. * src/HttpNullDownloadCommand.h
  5847. * src/HttpResponseCommand.cc
  5848. * src/HttpResponseCommand.h
  5849. 2008-05-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5850. const SharedHandle<Request> -> const SharedHandle<Request>&
  5851. * src/FtpDowndloadCommand.cc
  5852. * src/FtpDowndloadCommand.h
  5853. * src/HttpDownloadCommand.cc
  5854. * src/HttpDownloadCommand.h
  5855. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5856. Fixed the bug that the control file(.aria2 file) is not renamed
  5857. according to tryAutoFileRenaming().
  5858. tryAutoFileRenaming() was rewritten so that if both renamed file and
  5859. its control file exist, use them and continue download.
  5860. The old implementation didn't take into account of control file's
  5861. existence, so basically you couldn't continue download of renamed file.
  5862. * src/BtProgressInfoFile.h
  5863. * src/DefaultBtProgressInfoFile.cc
  5864. * src/DefaultBtProgressInfoFile.h
  5865. * src/NullProgressInfoFile.h
  5866. * src/RequestGroup.cc
  5867. * test/DefaultBtProgressInfoFileTest.cc
  5868. * test/MockBtProgressInfoFile.h
  5869. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5870. Change the default value of --metalink-servers option from `5' to `1'.
  5871. * src/HelpItemFactory.cc
  5872. * src/option_processing.cc
  5873. * src/usage_text.h
  5874. 2008-05-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5875. Reimplemented transparent metalink using Accept request header.
  5876. * src/HttpRequest.cc
  5877. * src/HttpRequest.h
  5878. * src/HttpRequestCommand.cc
  5879. * src/Metalink2RequestGroup.cc
  5880. * src/RequestGroup.cc
  5881. * src/RequestGroup.h
  5882. * test/HttpRequestTest.cc
  5883. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5884. Bump up version number to 0.13.2a
  5885. * configure.ac
  5886. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5887. Updated configure.ac using the result of autoscan.
  5888. * configure.ac
  5889. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5890. Fixed compilation error without gcrypt/openssl.
  5891. * src/DownloadCommand.cc
  5892. * src/DownloadCommand.h
  5893. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5894. Reorganized version information so that it can be displayed in a
  5895. standard terminal screen without scrolling.
  5896. Removed http, ftp from Configuration section, because they are always
  5897. enabled.
  5898. * src/FeatureConfig.cc
  5899. * src/FeatureConfig.h
  5900. * src/main.cc
  5901. * src/messageDigest.cc
  5902. * src/messageDigest.h
  5903. * src/version_usage.cc
  5904. * test/FeatureConfigTest.cc
  5905. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5906. Masked user ID in log.
  5907. * src/FtpConnection.cc (sendUser)
  5908. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5909. Removed query part from filename in HTTP download. The query part means
  5910. the substring after "?" in URL. Firefox seems do the same thing.
  5911. A query part is sometimes very long and not suitable to filename,
  5912. so I think it is better to remove it from filename.
  5913. * src/HttpRequest.cc
  5914. * src/HttpRequest.h
  5915. * src/Request.cc
  5916. * src/Request.h
  5917. * test/HttpRequestTest.cc
  5918. * test/RequestTest.cc
  5919. 2008-04-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5920. Rewritten Exception class. Throw exception object, not its pointer and
  5921. catch by reference, so that remove problematic delete operator for
  5922. catched exception.
  5923. * src/Exception.cc
  5924. * src/Exception.h
  5925. * test/ExceptionTest.cc
  5926. * src/*: All files throwing/catching exception.
  5927. * test/*: All files throwing/catching exception.
  5928. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5929. Now auto protocol detection is enabled without -Z option.
  5930. But there is a important difference between with/without -Z optoin.
  5931. For example, if you type:
  5932. aria2c http://host/file file1.torrent file2.metalink http://mirror/file
  5933. then, aria2 interprets there are 3 request groups:
  5934. (1) http://host/file, http://mirror/file <-- multi-source download
  5935. (2) file1.torrent
  5936. (3) file2.metalink
  5937. On the other hand, if you invoke above command with -Z option, it is
  5938. interpreted as 4 request groups:
  5939. (1) http://host/file
  5940. (2) file1.torrent
  5941. (3) file2.metalink
  5942. (4) http://mirror/file
  5943. I think usually user don't mix multi-source URLs and torrent files, so
  5944. there is no big problem here.
  5945. * src/main.cc
  5946. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5947. Fixed the bug that causes segmentaion fault when reading XML containing
  5948. unescapsed character like '&'.
  5949. Also a modification was made which avoids adding unnecessary
  5950. characters stack and appending unused string.
  5951. * src/ExpatMetalinkProcessor.cc
  5952. * src/FileMetalinkParserState.h
  5953. * src/FilesMetalinkParserState.h
  5954. * src/FinMetalinkParserState.h
  5955. * src/HashMetalinkParserState.h
  5956. * src/InitialMetalinkParserState.h
  5957. * src/LanguageMetalinkParserState.h
  5958. * src/MetalinkMetalinkParserState.h
  5959. * src/MetalinkParserState.h
  5960. * src/MetalinkParserStateMachine.cc
  5961. * src/MetalinkParserStateMachine.h
  5962. * src/OSMetalinkParserState.h
  5963. * src/PieceHashMetalinkParserState.h
  5964. * src/PiecesMetalinkParserState.h
  5965. * src/ResourcesMetalinkParserState.h
  5966. * src/SizeMetalinkParserState.h
  5967. * src/SkipTagMetalinkParserState.h
  5968. * src/URLMetalinkParserState.h
  5969. * src/VerificationMetalinkParserState.h
  5970. * src/VersionMetalinkParserState.h
  5971. * src/XML2SAXMetalinkProcessor.cc
  5972. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5973. Added StringFormat class, which internally calls vasprintf.
  5974. operator<< is defined for this class, so it can be used with iostream
  5975. classes nicely. SimpleLogger and following functions are rewritten
  5976. using StringFormat class.
  5977. Besides, now Logger class's methods are non-const, many classes
  5978. that has a const Logger* as a member variable are modified to remove
  5979. const qualifier from the variable declaration.
  5980. * src/HelpItemFactory.cc
  5981. * src/Request.cc
  5982. * src/SimpleLogger.cc
  5983. * src/StringFormat.cc
  5984. * src/StringFormat.h
  5985. * src/Util.cc
  5986. * src/option_processing.cc
  5987. * src/version_usage.cc
  5988. * test/StringFormatTest.cc
  5989. * src/*.h: The classes that has const Logger* as a member variable.
  5990. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5991. Log error in AccRequestGroup when reading BitTorrent/Metalink file is
  5992. failed. Also fixed memory link when exception is thrown there.
  5993. * src/main.cc (AccRequestGroup)
  5994. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  5995. Added build-in "Accept-Features" support. For now only "metalink" is
  5996. used in this header field.
  5997. This "metalink" value is removed from the list when connecting URLs
  5998. fed by metalink file to avoid loop in "transparent" metlaink.
  5999. * src/HttpRequest.cc
  6000. * src/HttpRequest.h: Renamed _userHeaders as _headers. Accept-Features
  6001. header is also held in this variable. Also renamed setUserHeaders as
  6002. addHeader and it was rewritten to add header not just to clear the old
  6003. value.
  6004. * src/HttpRequestCommand.cc
  6005. * src/Metalink2RequestGroup.cc: Added the code to remove "metalink"
  6006. from "Accept-Features" list.
  6007. * src/RequestGroup.cc: Added "metalink" to "Accept-Features" by
  6008. default.
  6009. * src/RequestGroup.h
  6010. * src/TaggedItem.cc: Moved Concat class to a2functional.h.
  6011. * src/a2functional.h: Included <string> because Concat class depends on
  6012. it.
  6013. * test/HttpRequestTest.cc
  6014. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6015. Added comment
  6016. * src/RequestGroup.cc (createNextCommand)
  6017. 2008-04-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6018. Capitalized METHOD_GET and METHOD_HEAD
  6019. * src/Request.cc
  6020. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6021. Added getDownloadResults() method
  6022. * src/RequestGroupMan.cc
  6023. * src/RequestGroupMan.h
  6024. 2008-04-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6025. Fixed the bug that aria2 exits when commands is empty() but
  6026. _routineCommands are not.
  6027. * src/DownloadEngine.cc
  6028. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6029. Use the default value pulled from Option object in HelpItemFactory.
  6030. except options whose defualt value is embedded in a usage text.
  6031. * src/HelpItemFactory.cc
  6032. * src/HelpItemFactory.h
  6033. * src/option_processing.cc
  6034. * src/version_usage.cc
  6035. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6036. Added --quiet option to make aria2 quiet (no console output).
  6037. --quiet option is tagged with ADVANCED.
  6038. * src/HelpItemFactory.cc
  6039. * src/LogFactory.cc
  6040. * src/LogFactory.h
  6041. * src/MultiUrlRequestInfo.cc
  6042. * src/MultiUrlRequestInfo.h
  6043. * src/NullStatCalc.h: New class. This class prints nothing.
  6044. * src/OptionHandlerFactory.cc
  6045. * src/main.cc
  6046. * src/option_processing.cc
  6047. * src/prefs.h
  6048. * src/usage_text.h
  6049. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6050. Add HTTP tag to --header option. Removed ADVANCED tag instead.
  6051. * src/HelpItemFactory.cc (createHelpItems):
  6052. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6053. Fixed compilation error in ExpatMetalinkProcessor.cc
  6054. * src/ExpatMetalinkProcessor.cc
  6055. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6056. Reuse socket if the origin server supports HTTP keep-alive and
  6057. --enable-http-keep-alive or --enable-http-pipelining is given.
  6058. The current implementation doesn't reuse the connections established
  6059. against proxy server.
  6060. * src/AbstractCommand.cc
  6061. * src/DownloadEngine.cc
  6062. * src/DownloadEngine.h
  6063. * src/HttpDownloadCommand.cc
  6064. * src/HttpInitiateConnectionCommand.cc
  6065. * src/HttpResponseCommand.cc
  6066. 2008-04-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6067. Rewritten HTTP keep-alive and pipelining routine.
  6068. * src/AbstractCommand.cc
  6069. * src/HttpConnection.cc
  6070. * src/HttpDownloadCommand.cc
  6071. * src/HttpRequest.cc
  6072. * src/HttpRequestCommand.cc
  6073. * src/HttpResponseCommand.cc
  6074. * src/Request.cc
  6075. * src/Request.h
  6076. * src/RequestGroup.cc
  6077. * test/HttpRequestTest.cc
  6078. * test/HttpResponseTest.cc
  6079. * test/RequestTest.cc
  6080. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6081. Added missing setUserHeaders call
  6082. * src/HttpRequestCommand.cc
  6083. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6084. Call FileAllocationMan::nextFileAllocationEntryExists() first.
  6085. Calling FileAllocationMan::isFileAllocationBeingExecuted() is somwhat
  6086. waste of time because it is more likey false.
  6087. * src/FileAllocationDispatcherCommand.cc (execute)
  6088. 2008-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6089. Now HTTP status and version are a member variable of HttpHeader.
  6090. HTTP status is processed as a string, not integer.
  6091. * src/AbstractProxyResponseCommand.cc
  6092. * src/HttpConnection.cc
  6093. * src/HttpHeader.cc
  6094. * src/HttpHeader.h
  6095. * src/HttpHeaderProcessor.cc
  6096. * src/HttpHeaderProcessor.h
  6097. * src/HttpResponse.cc
  6098. * src/HttpResponse.h
  6099. * test/HttpHeaderProcessorTest.cc
  6100. * test/HttpResponseTest.cc
  6101. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6102. Added --header option. You can specify any number of additional HTTP headers
  6103. like:
  6104. aria2 --header="X-A: 300" --header="X-B: 900" http://host/file
  6105. Unlike other commad-line option, you can use --header option multiple times.
  6106. * src/HelpItemFactory.cc
  6107. * src/HttpRequest.{cc, h}
  6108. * src/HttpRequestCommand.cc
  6109. * src/OptionHandlerFactory.cc
  6110. * src/OptionHandlerImpl.h
  6111. * src/option_processing.cc
  6112. * src/prefs.h
  6113. * src/usage_text.h
  6114. * test/HttpRequestTest.cc (testUserHeaders)
  6115. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6116. Eliminates the time lag between sequential downloads and commands in
  6117. the same RequestGroup.
  6118. In old implementation, aria2 occasionally waits 1 seconds before
  6119. executing next command or RequestGroup.
  6120. This is really a waste of time, and new implementation eliminates
  6121. this unnecessary time lag.
  6122. * src/AbstractCommand.cc
  6123. * src/AutoSaveCommand.cc
  6124. * src/CheckIntegrityCommand.cc
  6125. * src/Command.{cc, h}
  6126. * src/DownloadEngine.{cc, h}
  6127. * src/DownloadEngineFactory.cc
  6128. * src/FileAllocationCommand.cc
  6129. * src/FileAllocationDispatcherCommand.cc
  6130. * src/FillRequestGroupCommand.cc
  6131. * src/FtpInitiateConnectionCommand.cc
  6132. * src/HaveEraseCommand.cc
  6133. * src/HttpInitiateConnectionCommand.cc
  6134. * src/HttpResponseCommand.cc
  6135. * src/RealtimeCommand.cc
  6136. * src/RequestGroup.cc
  6137. * src/RequestGroupMan.cc
  6138. * src/StreamFileAllocationEntry.cc
  6139. * src/TimeBasedCommand.{cc, h}
  6140. * src/TimedHaltCommand.cc
  6141. 2008-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6142. Rewritten SharedHandle. Now copy constructor taking raw pointer has
  6143. keyword explicit and SharedHandle's default constructor initializes
  6144. its internal obj to null, old implementation initializes it using
  6145. obj's default constructor.
  6146. To assign null, write SharedHandle<T> x(...); x.reset();
  6147. TODO: test/SharedHandleTest.cc needs more tests.
  6148. * src/SharedHandle.h
  6149. 2008-04-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6150. Fixed type in man page.
  6151. * doc/aria2c.1.txt
  6152. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6153. Merged Ross's 0.13.1+1 Cygwin compile fix patch.
  6154. * src/SimpleLogger.{cc, h}
  6155. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6156. Implemented auto protocol detection.
  6157. Now you can do:
  6158. aria2c -Z http://host/file file1.torrent file2.metalink
  6159. (Note: -Z option is required for auto protcol detection.)
  6160. Then aria2c downloads 3 files simultaneously:
  6161. 1. http://host/file
  6162. 2. file1.torrent <-- read local torrent file
  6163. 3. file2.metalink <-- read local Metalink file.
  6164. Same thing goes with -i option. Assume your uris.txt contans:
  6165. http://host/file
  6166. file1.torrent
  6167. file2.metalink
  6168. Then you can do: aria2c -i uris.txt
  6169. (Note: -Z option is not needed if -i option is given.)
  6170. * src/main.cc
  6171. * src/ProtocolDetector.{cc, h}
  6172. * test/ProtocolDetectorTest.cc
  6173. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6174. Fixed compile error without gnutls/libgcrypt/libgpg-error and openSSL
  6175. installed
  6176. * src/ARC4Encryptor.h
  6177. * src/ARC4Decryptor.h
  6178. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6179. Renamed argument from 'errno' to 'err', since errno is confused with
  6180. errno defined in errno.h.
  6181. * src/LibgcryptARC4Decryptor.h
  6182. * src/LibgcryptARC4Context.h
  6183. * src/LibgcryptDHKeyExchange.h
  6184. * src/LibgcryptARC4Encryptor.h
  6185. 2008-04-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6186. Rewritten choking algorithm.
  6187. * src/PeerChokeCommand.{cc, h}
  6188. * src/BtInterestedMessage.cc
  6189. * src/PeerSessionResource.{cc, h}
  6190. * src/DefaultPeerStorage.{cc, h}
  6191. * src/BtNotInterestedMessage.cc
  6192. * src/DefaultBtMessageDispatcher.{cc, h}
  6193. * src/BtMessageDispatcher.h
  6194. * src/Peer.{cc, h}
  6195. * src/BtLeecherStateChoke.{cc, h}
  6196. * src/BtSetup.cc
  6197. * src/BtSeederStateChoke.{cc, h}
  6198. * src/PeerStorage.h
  6199. * test/MockPeerStorage.h
  6200. * test/MockBtMessageDispatcher.h
  6201. 2008-04-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6202. Fixed compilation error on x84-64 platform.
  6203. * src/AuthConfig.cc: Included ostream.
  6204. 2008-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6205. Rewritten getBasename() and getDirname(), without standard library
  6206. basename(), dirname().
  6207. * src/File.cc
  6208. * test/FileTest.cc
  6209. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6210. Added Simplified Chinese translation. Also updated the following
  6211. translations: Polish, Dutch, German. Great thanks to all translators.
  6212. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6213. Suppress content-range error when 'Content-Range' response header
  6214. doesn't contains bytes-unit specifier 'bytes'
  6215. * src/HttpHeader.cc (getRange)
  6216. * test/HttpHeaderTest.cc
  6217. 2008-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6218. Fixed compilation error with g++-4.3
  6219. 2008-03-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6220. Added missing include files for MinGW
  6221. * test/HttpHeaderProcessorTest.cc
  6222. * test/DHTRoutingTableSerializerTest.cc
  6223. * test/DHTRoutingTableDeserializerTest.cc
  6224. * test/UriListParserTest.cc
  6225. 2008-03-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6226. Now download line is printed nicely with no garbage at the end of
  6227. line. I use ioctl to get the columns of terminal.
  6228. If stdout is redirected to another device, instead of carriage return,
  6229. end of line '\n' character is used. This is feature request#1909659
  6230. * src/ConsoleStatCalc.cc (calculateStat)
  6231. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6232. Included a2time.h
  6233. * src/DHTMessageDispatcher.h
  6234. * src/DHTMessageEntry.h
  6235. * src/DHTReplaceNodeTask.h
  6236. * src/DHTMessageTracker.h
  6237. * src/Util.h
  6238. * src/CookieBox.h
  6239. * src/SocketCore.h
  6240. * src/DefaultBtMessageDispatcher.h
  6241. * src/SocketCore.cc
  6242. * src/Util.cc
  6243. * src/DHTPingTask.h
  6244. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6245. Fixed high memory footprint when DHT is enabled.
  6246. This is not a memory leak, but DHTReplaceNodeTask is more frequently
  6247. queued than it is processed and the queue is getting longer. As a
  6248. consequence, momory usage is increased.
  6249. As for a fix, instead of issuing DHTReplaceNodeTask, I've implemented
  6250. replacement cache in DHTBucket which is described in Kademlia paper.
  6251. * src/DHTRoutingTable.cc (addNode): Removed the issuing of
  6252. DHTReplaceNodeTask.
  6253. * src/DHTBucket.{h, cc}
  6254. (cacheNode): New function.
  6255. (getCachedNodes): New function.
  6256. (dropNode): Push back cached node to _nodes.
  6257. * test/DHTBucketTest.cc
  6258. (testCacheNode): New test
  6259. (testDropNode): New test
  6260. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6261. Allocate memory for peekBuf in initiateSecureConnection() to avoid
  6262. the unused 4KB memory when ssl is not used.
  6263. * src/SocketCore.cc
  6264. 2008-03-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6265. Added summary log for peer announce storage.
  6266. * src/DHTPeerAnnounceStorage.cc (handleTimeout)
  6267. Removed cast
  6268. * src/DefaultPeerStorage.cc (addPeer)
  6269. Log exception message
  6270. * src/DHTMessageTracker.cc (handleTimeout)
  6271. Fixed casting
  6272. * test/HttpRequestTest.cc
  6273. * test/MetalinkProcessorTest.cc
  6274. * test/PieceTest.cc
  6275. * test/MetalinkEntryTest.cc
  6276. * test/SequenceTest.cc
  6277. 2008-03-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6278. * src/ParameterizedStringParser.cc (createLoop):
  6279. Removed unused variable sstep.
  6280. * src/AlphaNumberDecorator.h (decode): Rewritten.
  6281. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6282. * src/Util.{h, cc}
  6283. (parseUInt): New function.
  6284. (alphaToNum): Now returns unsigned int and 0 when overflow detected.
  6285. The actual range is uint32_t.
  6286. * test/UtilTest.cc
  6287. * src/ParameterizedStringParser.cc:
  6288. Use Util::parseUInt() for loop variables.
  6289. * test/ParameterizedStringParserTest.cc
  6290. * src/PStringNumLoop.h: Make _startValue and _endValue unsigned int.
  6291. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6292. Rewritten the functions for binding port.
  6293. * src/DHTConnectionImpl.{h, cc}
  6294. * src/PeerListenCommand.{h, cc}
  6295. * src/DHTSetup.cc
  6296. * src/BtSetup.cc
  6297. * test/DHTConnectionImplTest.cc
  6298. 2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6299. type cleanup for allmost all remaining files.
  6300. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6301. Type clarification
  6302. * src/PeerSessionResource.{h, cc}
  6303. * src/DefaultPieceStorage.{h, cc}
  6304. * src/Peer.{h, cc}
  6305. * test/PeerSessionResourceTest.cc
  6306. Use div function
  6307. * src/BtPieceMessage.cc (erasePieceOnDisk)
  6308. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6309. Type clarification
  6310. * src/DefaultPeerStorage.{h, cc}
  6311. * test/DefaultPeerStorageTest.cc
  6312. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6313. Type clarification: size_t for length or size, uint64_t for file
  6314. length, off_t for file offset.
  6315. * src/DefaultBtProgressInfoFile.cc
  6316. * src/DefaultBtContext.{h, cc}
  6317. * src/DefaultBtInteractive.cc
  6318. * src/DownloadCommand.{h, cc}
  6319. * src/IteratableChunkChecksumValidator.{h, cc}
  6320. * src/SegmentMan.{h, cc}
  6321. * src/SingleFileDownloadContext.{h, cc}
  6322. * src/IteratableChecksumValidator.{h, cc}
  6323. * src/BtContext.h
  6324. * src/IteratableValidator.h
  6325. * src/DownloadContext.h
  6326. * test/SingleFileDownloadContextTest.cc
  6327. * test/DefaultBtContextTest.cc
  6328. * test/MockBtContext.h
  6329. * test/Metalink2RequestGroupTest.cc
  6330. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6331. Type clarification: size_t for length or size, uint64_t for file
  6332. length, off_t for file offset.
  6333. * src/PiecedSegment.cc
  6334. * src/GrowSegment.h
  6335. * src/DefaultBtRequestFactory.h
  6336. * src/DefaultBtProgressInfoFile.cc
  6337. * src/UnknownLengthPieceStorage.h
  6338. * src/DefaultPieceStorage.cc
  6339. * src/UnknownLengthPieceStorage.cc
  6340. * src/DefaultBtInteractive.cc
  6341. * src/GrowSegment.cc
  6342. * src/BitfieldMan.h
  6343. * src/DownloadCommand.cc
  6344. * src/BtRequestFactory.h
  6345. * src/PiecedSegment.h
  6346. * src/DefaultPieceStorage.h
  6347. * src/Piece.cc
  6348. * src/DefaultBtRequestFactory.cc
  6349. * src/PieceStorage.h
  6350. * src/Segment.h
  6351. * src/Piece.h
  6352. * src/BitfieldMan.cc
  6353. * src/Util.cc
  6354. * test/DefaultBtProgressInfoFileTest.cc
  6355. * test/DefaultPieceStorageTest.cc
  6356. * test/MockPieceStorage.h
  6357. * test/BtRequestMessageTest.cc
  6358. * test/DefaultBtMessageDispatcherTest.cc
  6359. * test/BitfieldManTest.cc
  6360. * test/GrowSegmentTest.cc
  6361. * test/PieceTest.cc
  6362. * test/SegmentTest.cc
  6363. * test/SegmentManTest.cc
  6364. * test/DefaultBtRequestFactoryTest.cc
  6365. * test/MockBtRequestFactory.h
  6366. 2008-03-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6367. Fixed compilation error with --disable-nls
  6368. It seems that defining gettext(Msgid) to ((const char *) (Msgid))
  6369. in gettext.h causes the problem.
  6370. * src/common.h
  6371. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6372. Removed subPiece related functions.
  6373. * src/Piece.{h, cc} : Also rewritten getCompletedLength().
  6374. * src/DefaultPieceStorage.{h, cc}
  6375. * test/PieceTest.cc
  6376. * test/DefaultPieceStorageTest.cc
  6377. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6378. Use unsigned char for data store.
  6379. 2008-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6380. Bump up version number to 0.13.0+1
  6381. * configure.ac
  6382. * Release 0.13.0+1
  6383. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6384. Changed inactive connection timeout to 120.
  6385. To accept more mulually interested peers, disconnect peer when there
  6386. is no interest between us after certain time passed.
  6387. * src/DefaultBtInteractive.cc (checkActiveInteraction)
  6388. 2008-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6389. Fixed the bug that aria2 only uses first dns server in resolv.conf
  6390. when compiled with async DNS support.
  6391. * src/DownloadEngine.cc
  6392. * src/option_processing.cc: Lengthened DNS timeout to 30. I think old
  6393. value '10' will be a little bit short when some DNS servers are
  6394. offline and several DNS servers are tried. It should be configured
  6395. by command-line option.
  6396. 2008-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6397. Merged Ross's mingw patch.
  6398. * src/DHTRoutingTableDeserializer.cc
  6399. * src/DHTRoutingTableSerializer.cc
  6400. * src/Platform.{h, cc}
  6401. * src/timegm.h
  6402. * src/gettimeofday.h
  6403. * src/getaddrinfo.h
  6404. * src/SocketCore.h
  6405. * src/common.h
  6406. * src/inet_aton.h
  6407. * src/DownloadEngine.h
  6408. * src/gai_strerror.h
  6409. * src/a2netcompat.h
  6410. * configure.ac
  6411. * configure
  6412. * aclocal.m4
  6413. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6414. Included missing iostream.
  6415. * test/AllTest.cc
  6416. * test/BtDependencyTest.cc
  6417. * test/BtExtendedMessageTest.cc
  6418. * test/DHTConnectionImplTest.cc
  6419. * test/DHTMessageFactoryImplTest.cc
  6420. * test/DHTMessageTrackerEntryTest.cc
  6421. * test/DHTNodeTest.cc
  6422. * test/DHTRoutingTableSerializerTest.cc
  6423. * test/DefaultBtAnnounceTest.cc
  6424. * test/DefaultBtContextTest.cc
  6425. * test/DefaultBtMessageFactoryTest.cc
  6426. * test/DefaultExtensionMessageFactoryTest.cc
  6427. * test/HandshakeExtensionMessageTest.cc
  6428. * test/HttpResponseTest.cc
  6429. * test/MetalinkProcessorTest.cc
  6430. * test/MultiFileAllocationIteratorTest.cc
  6431. * test/SocketCoreTest.cc
  6432. * test/UTPexExtensionMessageTest.cc
  6433. 2008-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6434. Reorganized includes.
  6435. * src/NameResolver.cc
  6436. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6437. Fixed compilation error without ares/c-ares
  6438. * src/NameResolver.h:
  6439. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6440. Added a test for large file.
  6441. * test/MetalinkProcessorTest.cc (testLargeFileSize):
  6442. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6443. Fixed the bug that file size is ignored if size > INT32_MAX
  6444. * src/SizeMetalinkParserState.cc (endElement):
  6445. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6446. Bump up version number to 0.13.0
  6447. * configure.ac
  6448. * Release 0.13.0
  6449. 2008-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6450. Updated Makfefile.am to make 'make dist' work.
  6451. Now packaged filename is aria2c-VERSION.tar.bz2.
  6452. Added README, README.html, and aria2c.1.html to dist_doc_DATA.
  6453. Added LICENSE.OpenSSL to dist_noinst_DATA.
  6454. Large file support is now configured by configure script.
  6455. * configure.ac
  6456. Removed unsused source files
  6457. * src/
  6458. * test/
  6459. Removed PeerDecl.h and BtContextDecl.h. typedefs are removed to
  6460. Peer.h and BtContext.h respectively.
  6461. * src/Peer.h
  6462. * src/BtContext.h
  6463. Updated translations.
  6464. Added Polish, Thai, Indonesian, Norwegian Nynorsk, Hungarian
  6465. translations. Great thanks to all translators!;)
  6466. * po/*.{po, gmo}
  6467. 2008-02-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6468. Create MessageDigestHelper::staticSHA1DigestInit() which uses
  6469. statically declared sha1 MessageDigestContext.
  6470. * src/BtPieceMessage.cc: Use staticSHA1DigestInit() to avoid
  6471. initialization of short-lived MessageDigestContext.
  6472. * src/MessageDigestHelper.{h, cc}
  6473. * src/main.cc
  6474. Now DownloadCommand has a reference to MessageDigestContext to avoid
  6475. the initialization of MessageDigestContext every time in validating
  6476. chunk checksum.
  6477. * src/DownloadCommand.{h, cc}
  6478. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6479. Add a file descriptor which connected to fast peer(latency<1500) to
  6480. select(). This change reduced CPU load.
  6481. * src/PeerInteractionCommand.cc
  6482. * src/DefaultBtInteractive.{h, cc}
  6483. * src/BtInteractive.h
  6484. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6485. Fixed the previous insufficient fix for possible busy loop.
  6486. * src/MSEHandshake.cc (identifyHandshakeType)
  6487. Removed unused functions.
  6488. * src/MSEHandshake.{h, cc} (readDataAndDecrypt)
  6489. 2008-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6490. Fixed possible busy loop if first 20 bytes are not received for a few
  6491. minutes.
  6492. * src/MSEHandshake.{h, cc} (identifyHandshakeType)
  6493. * src/ReceiverMSEHandshakeCommand.cc
  6494. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6495. Fixed compilation error
  6496. * src/ExpatMetalinkProcessor.cc
  6497. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6498. Fixed compile error on Mac OS X, on 64Bit OS maybe.
  6499. * src/DHTBucket.cc
  6500. Removed unnecessary cast.
  6501. * src/HandshakeExtensionMessage.cc
  6502. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6503. Fixed the bug that option handler for PREF_METALINK_ENABLE_UNIQUE_PROTOCOL.
  6504. is missing.
  6505. * src/OptionHandlerFactory.cc
  6506. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6507. Fixed the bug that HAVE message is not sent for a piece they are
  6508. downloaded fom http/ftp server before any BitTorrent handshake is done
  6509. with peers.
  6510. * src/DefaultBtInteractive.cc
  6511. 2008-02-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6512. Removed RequestInfo.h and FileAllocator.h since they have been removed.
  6513. * src/Makefile.am
  6514. * src/Makefile.in
  6515. 2008-02-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6516. Updated README. Added html version of README and man page.
  6517. * README
  6518. * README.html
  6519. * readme2html: Shell script to generate README.html from README using
  6520. asciidoc.
  6521. * doc/aria2c.1.html
  6522. * doc/makeman: Added the line to generate aria2c.1.html
  6523. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6524. Fixed offset calculation.
  6525. * src/LibgcryptDHKeyExchange.h (computeSecret)
  6526. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6527. Rewritten itos and uitos using template. llitos and ullitos are
  6528. replaced with itos and uitos respectively.
  6529. * src/Util.{h, cc}
  6530. * test/UtilTest.cc
  6531. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6532. Fixed the bug that DH key exchange sometimes fails due to bad handling
  6533. of the number of bytes required for storing public key and shared
  6534. secret.
  6535. * src/LibgcryptDHKeyExchange.h
  6536. * src/LibsslDHKeyExchange.h: Also added function name to handleError.
  6537. * src/MSEHandshake.cc
  6538. * test/DHKeyExchangeTest.cc
  6539. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6540. Removed since they are not used.
  6541. * src/Xml2MetalinkProcessor.{h, cc}
  6542. * src/Socket.cc
  6543. * src/SegmentSplitter.{h, cc}
  6544. * test/Xml2MetalinkProcessorTest.cc
  6545. 2008-02-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6546. Fixed the bug that prevents aria2 from stopping other than by pressing
  6547. Ctrl-C in BitTorrent download. It is reproducible using --seed-time
  6548. option. aria2 doesn't stop even after --seed-time is satisfied and
  6549. continues to output blank lines in the console.
  6550. * src/ReceiverMSEHandshakeCommand.cc
  6551. * src/PeerReceiveHandshakeCommand.cc
  6552. * src/PeerListenCommand.cc
  6553. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6554. Bump up version number to 0.13.0rc
  6555. * configure.ac
  6556. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6557. Updated man page and some usage text.
  6558. * doc/aria2c.1.txt
  6559. * src/usage_text.h
  6560. * po/*.{po, gmo}
  6561. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6562. Updated translations. Added Finnish and Hebrew translations.
  6563. Great thanks to all translators!
  6564. * po/*.{po, gmo}
  6565. * po/LINGUAS
  6566. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6567. Log more detailed information about each message.
  6568. * src/DHTQueryMessage.{h, cc}
  6569. * src/DHTGetPeersMessage.{h, cc}
  6570. * src/DHTFindNodeReplyMessage.{h, cc}
  6571. * src/DHTGetPeersReplyMessage.{h, cc}
  6572. * src/DHTAnnouncePeerMessage.{h, cc}
  6573. * src/DHTResponseMessage.{h, cc}
  6574. * src/DHTFindNodeMessage.{h, cc}
  6575. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6576. Use constants defined in prefs.h
  6577. * src/option_processing.cc
  6578. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6579. * test/AllTest.cc: Added OpenSSL, GNUTLS initialization code.
  6580. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6581. Make room for future enchancements for IPv6 addresses.
  6582. Bump up version number of dht.dat file format to 2.
  6583. Not compatible with previous version.
  6584. * src/DHTRoutingTableSerializer.cc
  6585. * src/DHTRoutingTableDeserializer.cc
  6586. * test/DHTRoutingTableSerializerTest.cc
  6587. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6588. Added handling for the return values from
  6589. PeerMessageUtil::createcompact().
  6590. * src/DefaultBtContext.cc (computeFastSet):
  6591. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6592. Fixed abort when peer's ip address is IPv4-mapped address.
  6593. * src/DefaultBtContext.cc (computeFastSet)
  6594. Removed number-and-dots criteria, since Util::isNumberAndDotsNotation()
  6595. cannot handle IPv4-mapped addresses.
  6596. * src/DefaultBtInteractive.cc (addPeerExchangeMessage)
  6597. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6598. Proper return value handling for OpenSSL functions.
  6599. * src/LibsslDHKeyExchange.h
  6600. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6601. Random bytes generation using libgcrypt and OpenSSL.
  6602. * src/DHTUtil.{h, cc}
  6603. * test/DHTUtilTest.cc
  6604. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6605. Fixed segmentation fault when a DHT message which doesn't have 'y' key
  6606. received.
  6607. * src/DHTMessageReceiver.cc (receiveMessage)
  6608. 2008-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6609. Fixed the bug that a return code is always 0. BUG#1897704
  6610. If error occurred during the download or there exist unfinished
  6611. downloads, aria2 returns with code 1.
  6612. * src/RequestGroupMan.{h, cc}
  6613. * src/MultiUrlRequestInfo.{h, cc}
  6614. * src/main.cc
  6615. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6616. IPv6 support for SocketCore class.
  6617. TODO: In SocketCore::establishConnection(), this is insufficient to
  6618. determin the failure of connect() here because the socket is
  6619. non-blocking state. The next addresses should be tried after select().
  6620. TODO: NameResolver still uses c-ares(<= 1.4) ares_gethostbyname().
  6621. If c-ares 1.5 or newer is installed, ares_getaddrinfo() should be used
  6622. instead which address family independent.
  6623. TODO: DHTRoutingTable{Deserializer,Serializer} currently saves peer
  6624. information in a compact peer format which is for IPv4 only.
  6625. Some BitTorrent functions in PeerMessageUtil still depends on IPv4 but
  6626. this is a spec of BitTorrent protocol.
  6627. * src/SocketCore.{h, cc}
  6628. * src/PeerMessageUtil.cc
  6629. * test/SocketCoreTest.cc
  6630. * test/PeerMessageUtilTest.cc
  6631. * test/DHTConnectionImplTest.cc
  6632. Handle IPv4-mapped addresses.
  6633. * src/DHTNode.cc: Now identity is determined by node id.
  6634. * src/DHTMessageTrackerEntry.cc
  6635. Because now PeerMessageUtil::unpackcompact() could fail, the caller
  6636. should handle it.
  6637. * src/DHTRoutingTableDeserializer.cc
  6638. * src/DHTMessageFactoryImpl.cc
  6639. 2008-02-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6640. Change the unit of --stop option from a minute to a second.
  6641. * src/usage_text.h
  6642. * src/DownloadEngineFactory.cc
  6643. * src/OptionHandlerFactory.cc
  6644. * src/message.h
  6645. * src/TimedHaltCommand.cc
  6646. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6647. Make listening socket non-block mode.
  6648. * src/FtpConnection.cc
  6649. * src/FtpNegotiationCommand.{h, cc}
  6650. * src/PeerListenCommand.cc
  6651. Fixed the bug that cause slow ftp negotiation.
  6652. * src/FtpNegotiationCommand.{h, cc}
  6653. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6654. Added basic tag to --enable-dht, --dht-listen-port option.
  6655. * src/HelpItemFactory.cc (createHelpItems)
  6656. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6657. Updated text.
  6658. * src/usage_text.h
  6659. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6660. * src/MSEHandshake.cc (encryptAndSendData): Use std::min().
  6661. 2008-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6662. Determin _threadtholdSpeed in each constructor for
  6663. ActivePeerConnectionCommand and PeerReceiveHandshakeCommand.
  6664. * src/ActivePeerConnectionCommand.{h, cc}
  6665. * src/PeerReceiveHandshakeCommand.{h, cc}
  6666. * src/BtSetup.cc
  6667. * src/BtConstants.h
  6668. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6669. Added --bt-min-crypto-level and --bt-require-crypto options.
  6670. * src/OptionHandlerFactory.cc
  6671. * src/MSEHandshake.cc
  6672. * src/HelpItemFactory.cc
  6673. * src/option_processing.cc
  6674. * src/ReceiverMSEHandshakeCommand.cc
  6675. * src/prefs.h
  6676. * src/DefaultBtAnnounce.cc
  6677. * src/InitiatorMSEHandshakeCommand.cc
  6678. * src/usage_text.h
  6679. * test/MSEHandshakeTest.cc
  6680. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6681. Bump version number to 0.13.0b
  6682. * configure.ac
  6683. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6684. Updated doc.
  6685. * src/MessageDigestHelper.h:
  6686. 2008-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6687. Use raw message digest as a token instead of its hexadecimal
  6688. representation.
  6689. * src/DHTTokenTracker.cc (generateToken)
  6690. 2008-02-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6691. Added Message Stream Encryption(MSE) support.
  6692. Currently, aria2 accepts incoming connections with Obfuscation Header
  6693. and legacy BitTorrent Header and establishes connections with
  6694. Obfuscation Header first and if failed then retry with legacy
  6695. BitTorrent header. If plain text and ARC4 is provided, aria2 always
  6696. choose ARC4. The new option to change the default behavior is planned.
  6697. For tracker extension, "supportcrypto=1" is added statically.
  6698. * src/PeerInitiateConnectionCommand.{h, cc}
  6699. * src/PeerConnection.{h, cc}
  6700. * src/HandleRegistry.h
  6701. * src/SocketCore.h
  6702. * src/PeerReceiveHandshakeCommand.{h, cc}
  6703. * src/BtRegistry.{h, cc}
  6704. * src/PeerListenCommand.cc
  6705. * src/InitiatorMSEHandshakeCommand.{h, cc}
  6706. * src/ReceiverMSEHandshakeCommand.{h, cc}
  6707. * src/MSEHandshake.{h, cc}
  6708. * src/ARC4Encryptor.h
  6709. * src/ARC4Decryptor.h
  6710. * src/LibgcryptARC4Encryptor.h
  6711. * src/LibgcryptARC4Decryptor.h
  6712. * src/LibgcryptARC4Context.h
  6713. * src/LibsslARC4Encryptor.h
  6714. * src/LibsslARC4Decryptor.h
  6715. * src/LibsslARC4Context.h
  6716. * src/DHKeyExchange.h
  6717. * src/LibgcryptDHKeyExchange.h
  6718. * src/LibsslDHKeyExchange.h
  6719. * src/DefaultBtAnnounce.cc: Just added "supportcrypto=1" parameter.
  6720. * test/DefaultBtAnnounceTest.cc
  6721. * test/ARC4Test.cc
  6722. * test/DHKeyExchangeTest.cc
  6723. Removed prepareForRetry() because it is not used.
  6724. * src/PeerAbstractCommand.{h, cc}
  6725. * src/PeerInteractionCommand.{h, cc}
  6726. * src/PeerInitiateConnectionCommand.{h, cc}
  6727. 2008-02-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6728. Added the ability to load nodes from torrent file. These nodes are
  6729. added to the routing table when downloading that torrent.
  6730. * src/BtContext.h
  6731. * src/DefaultBtContext.{h, cc}
  6732. * src/DHTSetup.cc
  6733. * src/DHTEntryPointNameResolveCommand.{h, cc}: Now accepts list of
  6734. hostname and port pair, and resolves all of them.
  6735. * src/NameResolver.{h, cc}: Added reset().
  6736. * src/RequestGroup.cc
  6737. * test/DefaultBtContextTest.cc
  6738. * test/MockBtContext.h
  6739. Removed assert() from DefaultBtContext and throw exception instead.
  6740. * src/DefaultBtContext.cc
  6741. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6742. Fixed segmentation fault bug when exiting if dht is disabled.
  6743. * src/RequestGroup.cc
  6744. 2008-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6745. Fixed typo in log message and define the message in message.h
  6746. * src/TimedHaltCommand.cc
  6747. * src/message.h
  6748. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6749. Included RecoverableException.h to fix compilation error.
  6750. * test/DHTMessageFactoryImplTest.cc
  6751. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6752. Added test 'testDoReceivedAction' for DHTQueryMessage subclasses.
  6753. * test/DHTPingMessageTest.cc
  6754. * test/DHTGetPeersMessageTest.cc
  6755. * test/DHTFindNodeMessageTest.cc
  6756. * test/DHTAnnouncePeerMessageTest.cc
  6757. * test/MockDHTMessage.h
  6758. * test/MockDHTMessageFactory.h
  6759. * test/MockDHTMessageDispatcher.h: New class.
  6760. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6761. Added DHTMessageDispatcherImpl. Now DHTMessageDispatcher is pure
  6762. virtual.
  6763. * src/DHTMessageDispatcher.h
  6764. * src/DHTMessageDispatcherImpl.{h, cc}
  6765. * src/DHTSetup.cc
  6766. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6767. Adding handling of DHT error message. Just log error message and
  6768. throw exception.
  6769. * src/DHTMessageFactoryImpl.cc
  6770. * test/DHTMessageFactoryImplTest.cc
  6771. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6772. Added handling of dynamic cast failure.
  6773. * src/DHTNodeLookupTask.cc
  6774. * src/DHTPeerLookupTask.cc
  6775. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6776. Added the ability to stop aria2 itself when given time has passed
  6777. from start. Use --stop option to specify time in minutes.
  6778. When 0 is given, this feature is disabled.
  6779. * src/OptionHandlerFactory.cc
  6780. * src/TimeBasedCommand.h: Make _interval protected scope.
  6781. * src/HelpItemFactory.cc
  6782. * src/option_processing.cc
  6783. * src/prefs.h
  6784. * src/FillRequestGroupCommand.cc: Evaluate _e->isHaltRequested()
  6785. before calling RequestGroupMan::fillRequestGroupFromReserver().
  6786. Without this modification, the result list shows "ERR" when aria2 is
  6787. stopped by --stop option. It should be "INPR".
  6788. * src/DownloadEngine.{h, cc}
  6789. * src/DownloadEngineFactory.cc
  6790. * src/usage_text.h
  6791. * src/TimedHaltCommand.{h, cc}: New class.
  6792. 2008-02-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6793. Bootstrap through node added by port message.
  6794. Currently bootstrap is executed if the number of buckets in routing
  6795. table is 1.
  6796. * src/BtPortMessage.{h, cc}
  6797. * src/DefaultBtMessageFactory.{h, cc}
  6798. * src/PeerInteractionCommand.cc
  6799. * test/BtPortMessageTest.cc
  6800. * test/MockDHTTask.h
  6801. 2008-02-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6802. Extract the Peer class's member variables, which are only needed after
  6803. PeerInteractionCommand, into PeerSessionResource class.
  6804. This class is instantiated in PeerInteractionCommand class's ctor and
  6805. released in its dtor.
  6806. This will make Peer class lightweight and uses less memory for peers
  6807. which are not connected and wait in the queue.
  6808. * src/PeerChokeCommand.cc
  6809. * src/PeerSessionResource.{h, cc}
  6810. * src/PeerInteractionCommand.cc
  6811. * src/PeerAbstractCommand.cc: Note: 0 is given to onAbort() function.
  6812. * src/DefaultBtInteractive.cc
  6813. * src/BtPieceMessage.cc
  6814. * src/BtInterestedMessage.cc
  6815. * src/BtUnchokeMessage.cc
  6816. * src/DefaultPeerStorage.{h, cc}
  6817. * src/PeerInitiateConnectionCommand.cc
  6818. * src/ActivePeerConnectionCommand.cc
  6819. * src/BtNotInterestedMessage.cc
  6820. * src/DefaultBtMessageDispatcher.cc
  6821. * src/BtChokeMessage.cc
  6822. * src/BtRequestMessage.cc
  6823. * src/Peer.{h, cc}
  6824. * src/BtRegistry.h
  6825. * src/TrackerWatcherCommand.cc
  6826. * src/PeerReceiveHandshakeCommand.cc
  6827. * test/BtExtendedMessageTest.cc
  6828. * test/BtAllowedFastMessageTest.cc
  6829. * test/BtCancelMessageTest.cc
  6830. * test/DefaultPieceStorageTest.cc
  6831. * test/BtBitfieldMessageTest.cc
  6832. * test/BtHaveMessageTest.cc
  6833. * test/BtNotInterestedMessageTest.cc
  6834. * test/BtRequestMessageTest.cc
  6835. * test/PeerSessionResourceTest.cc
  6836. * test/DefaultBtMessageDispatcherTest.cc
  6837. * test/PeerTest.cc
  6838. * test/BtInterestedMessageTest.cc
  6839. * test/BtRejectMessageTest.cc
  6840. * test/BtChokeMessageTest.cc
  6841. * test/DefaultPeerStorageTest.cc
  6842. * test/BtHaveNoneMessageTest.cc
  6843. * test/BtHaveAllMessageTest.cc
  6844. * test/DefaultExtensionMessageFactoryTest.cc
  6845. * test/BtUnchokeMessageTest.cc
  6846. * test/DefaultBtMessageFactoryTest.cc
  6847. * test/HandshakeExtensionMessageTest.cc
  6848. * test/UTPexExtensionMessageTest.cc
  6849. * test/DefaultBtRequestFactoryTest.cc
  6850. * test/BtPieceMessageTest.cc
  6851. Removed typedef PeerStats.
  6852. * src/PeerStat.h
  6853. * src/SegmentMan.cc
  6854. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6855. Added std namespace to copy, remove_copy, back_inserter,
  6856. front_inserter.
  6857. * src/RequestGroupMan.cc
  6858. * src/DefaultPieceStorage.cc
  6859. * src/StreamFileAllocationEntry.cc
  6860. * src/BtFileAllocationEntry.cc
  6861. * src/RequestGroup.cc
  6862. * src/MetalinkEntry.cc
  6863. * src/DelegatingPeerListProcessor.cc
  6864. * src/DefaultBtRequestFactory.cc
  6865. * src/DefaultBtMessageDispatcher.cc
  6866. * src/version_usage.cc: Included <algorithm>
  6867. * src/main.cc
  6868. * src/MetalinkParserController.cc
  6869. * src/DefaultBtContext.cc
  6870. * src/DownloadEngineFactory.cc
  6871. * src/a2algo.h
  6872. Removed.
  6873. * test/StreamUriListParserTest.cc
  6874. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6875. Use PREF_MAX_DOWNLOAD_LIMIT as a threshold for
  6876. ActivePeerConnectionCommand when it is given and
  6877. PREF_MAX_DOWNLOAD_LIMIT < default threshold.
  6878. * src/ActivePeerConnectionCommand.{h, cc}
  6879. * src/BtSetup.cc
  6880. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6881. Only add socket to DownloadEngine's select routine when peer or
  6882. localhost is unchoked and interested. This lowers CPU usage a
  6883. little bit.
  6884. * src/PeerInteractionCommand.cc
  6885. * src/PeerAbstractCommand.{h, cc}
  6886. * src/BtInteractive.h
  6887. * src/DefaultBtInteractive.{h, cc}
  6888. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6889. Revert previous change because get_peers message is needed for
  6890. announce_peer anyway.
  6891. * src/DHTGetPeersCommand.cc
  6892. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6893. Request peers thought DHT only when download hasn't finished.
  6894. * src/DHTGetPeersCommand.cc
  6895. 2008-02-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6896. Force refresh bucket when startup if certain time has passed(currently 15 minutes).
  6897. * src/DHTBucketRefreshTask.{h, cc}
  6898. * src/DHTSetup.cc
  6899. 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6900. Removed "using namespace std;" from all sources. Appended std:: prefix to c++
  6901. standard classes.
  6902. Included string.h where mem* function are used.
  6903. Added namespace aria2.
  6904. 2008-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6905. Create directory before saving DHT routing table.
  6906. Now ios::failure is now handled properly.
  6907. * src/DHTAutoSaveCommand.cc
  6908. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6909. Removed unnecessary cerr.
  6910. * src/DownloadEngine.cc
  6911. 2008-02-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6912. Catch exception inside DHTMessageReceiver::receiveMessage().
  6913. Log unknown message.
  6914. * src/DHTMessageReceiver.{h, cc}
  6915. * src/DHTMessageFactory.h
  6916. * src/DHTMessageFactoryImpl.{h, cc}
  6917. * src/DHTMessageTracker.cc (handleTimeout): Catch and handle exception.
  6918. * src/DHTInteractionCommand.cc
  6919. * src/DHTUnknownMessage.{h, cc}
  6920. * test/DHTUnknownMessageTest.cc
  6921. * test/MockDHTMessageFactory.h
  6922. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6923. Commented out ip address comparison because a host can have multiple
  6924. ip addresses and it is hard to predict the hostname is resolved into
  6925. which one.
  6926. * test/SocketCoreTest.cc (testWriteAndReadDatagram)
  6927. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6928. * po/Makefile.in: Removed since this is generated by configure.
  6929. 2008-02-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6930. Fixed compiler warning about redefinition of SIZE_MAX.
  6931. Use common.h instead of config.h directly here.
  6932. * src/Platform.{h, cc}
  6933. The check of ENABLE_NLS is made in gettext.h, so it is not required
  6934. here.
  6935. * common.h
  6936. 2008-02-02 gettextize <bug-gnu-gettext@gnu.org>
  6937. Updated gettext related files.
  6938. * configure.ac (AC_CONFIG_FILES): Add intl/Makefile.
  6939. * configure.ac (AM_GNU_GETTEXT_VERSION): Bump to 0.17.
  6940. 2008-02-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6941. Added DHT functionality, compatible with mainline.
  6942. DHT is disabled by default. To enable it, give --enable-dht to aria2c.
  6943. You may need to specify entry point to DHT network using
  6944. --dht-entry-point. DHT uses UDP port to listen incoming message.
  6945. Use --dht-listen-port to specify port number. Make sure that your
  6946. firewall configuration can pass through UDP traffic to the port.
  6947. The routing table is saved in $HOME/.aria2/dht.dat.
  6948. * src/DHT*
  6949. * src/BNode.{h, cc}
  6950. * src/PeerInteractionCommand.cc: enable DHT functionality for a
  6951. particular torrent.
  6952. * src/Data.cc: Rewritten ctor.
  6953. * src/OptionHandlerFactory.cc: Added --enable-dht, --dht-listen-port,
  6954. --dht-entry-point.
  6955. * src/DefaultBtInteractive.cc: Send port message if dht is enabled.
  6956. * src/RequestGroup.cc: Initialize DHT functionality. When download
  6957. ends, remove BtContext from DHTPeerAnnounceStorage.
  6958. * src/BtPortMessage.{h, cc}: Rewritten.
  6959. * src/message.h
  6960. * src/OptionHandlerImpl.cc
  6961. * src/option_processing.cc: Added --enable-dht, --dht-listen-port,
  6962. --dht-entry-point.
  6963. * src/Dictionary.{h, cc} (remove): New function.
  6964. * src/prefs.h
  6965. * src/DefaultBtMessageFactory.h
  6966. * src/BtHandshakeMessage.cc
  6967. * src/ActivePeerConnectionCommand.cc
  6968. * src/SocketCore.{h, cc}: Added datagram socket support.
  6969. * src/DefaultBtMessageFactory.cc
  6970. * src/BtSetup.cc: Add BtContext to DHTPeerAnnounceStorage here.
  6971. Create DHT commands.
  6972. * src/BtMessageFactory.h
  6973. * src/PeerMessageUtil.{h, cc}
  6974. 2008-01-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6975. Fixed the bug that log file is not written when configuration file doesn't exist.
  6976. This is caused by using Logger class before LogFactory is not configured.
  6977. BUG #1875079
  6978. * src/option_processing.cc
  6979. Warning message "configuration doesn't exist" is only printed when --conf is
  6980. given.
  6981. * src/option_processing.cc
  6982. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6983. Use BencodeVisitor and MessageDigestHelper instead of ShaVisitor.
  6984. ShaVisitor is now deprecated and slated to be removed.
  6985. * src/DefaultBtContext.cc
  6986. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6987. Externalize message to message.h
  6988. * src/Platform.cc
  6989. * src/message.h
  6990. 2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6991. Set default domain and default path to cookie.
  6992. * src/HttpResponse.cc
  6993. * src/CookieBox.{h, cc}
  6994. * src/CookieParser.{h, cc}
  6995. * test/CookieParserTest.cc
  6996. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  6997. Added --no-conf and --conf-path command-line option.
  6998. --no-conf option disables loading aria2.conf file.
  6999. --conf-path option changes the configuration file path. The default
  7000. file path is $HOME/.aria2/aria2.conf
  7001. Added a warning message when the configuration file is not found.
  7002. * src/HelpItemFactory.cc
  7003. * src/option_processing.cc
  7004. * src/prefs.h
  7005. * src/usage_text.h
  7006. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7007. Added the message to inform users that other help categories are
  7008. available in -h option.
  7009. * src/version_usage.cc
  7010. * src/TagContainer.{h, cc}
  7011. * test/TagContainerTest.cc
  7012. * src/TaggedItem.{h, cc}
  7013. * test/TaggedItemTest.cc
  7014. * src/HelpItem.h
  7015. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7016. Added Piece::getFirstMissingBlockIndexWithoutLock() and it is called
  7017. from PiecedSegment's ctor.
  7018. Previously Piece::getAllMissingBlockIndexes() is called from
  7019. PiecedSegment() but it is rather expensive since only first element is
  7020. used.
  7021. * src/PiecedSegment.cc
  7022. * src/Piece.{h, cc}
  7023. 2008-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7024. Rewritten get*Missing*Index functions. Now no need to allocate memory
  7025. each time these functions are called.
  7026. * src/BitfieldMan.{h, cc}
  7027. * test/BitfieldManTest.cc
  7028. * src/array_fun.h
  7029. * test/array_funTest.cc
  7030. Now BitfieldMan::countBlock() returns BitfieldMan::blocks.
  7031. Added new BitfieldMan::countFilteredBlock() to get the number of blocks
  7032. filtered. Removed unnecessary cast to int32_t.
  7033. * src/BitfieldMan.{h, cc}
  7034. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7035. Fixed the bug that EX_TOO_LONG_PAYLOAD exception is thrown if just
  7036. payload length(4bytes) are received. This happens because lenbufLength
  7037. is not updated in this particular case and successive call of
  7038. receiveMessage() overwrites payload length with bytes recieved which
  7039. are payload body.
  7040. * src/PeerConnection.{h, cc}
  7041. * src/message.h
  7042. 2008-01-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7043. Fixed the bug that DefaultPeerStorage::returnPeer() may delete wrong
  7044. peer if there are peers that have same ipaddr and port.
  7045. I've experiened segmentation fault and "pure virtual function was
  7046. called" error.
  7047. * src/Peer.h
  7048. * test/PeerTest.cc
  7049. * src/DefaultPeerStorage.cc
  7050. * test/DefaultPeerStorageTest.cc
  7051. 2008-01-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7052. Removed a call to isPowerOf() because it is no longer necessary here
  7053. and a request block is not always power of 2.
  7054. BUG#1866924
  7055. * src/PeerMessageUtil.cc (checkLength)
  7056. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7057. Fixed the bug that always first found Segment is removed from
  7058. usedSegmentEntries. Removed unused functions.
  7059. * src/SegmentMan.{h, cc}
  7060. * test/SegmentManTest.cc
  7061. Fixed the bug that ServerHost is not removed.
  7062. * src/RequestGroup.cc
  7063. 2008-01-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7064. Fixed the bug that SegmentMan::completeSegment() is not called
  7065. even if Segment is complete when --lowest-speed-limit is enabled.
  7066. BUG#1864525
  7067. * src/DownloadCommand.{h, cc}
  7068. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7069. Fixed: hash algorithm 'sha1' is always used.
  7070. * src/DownloadCommand.cc (validatePieceHash)
  7071. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7072. Added --enable-peer-exchange command-line option.
  7073. * src/OptionHandlerFactory.cc
  7074. * src/HelpItemFactory.cc
  7075. * src/option_processing.cc
  7076. * src/usage_text.h
  7077. 2008-01-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7078. Move extension from BtRuntime to ExtensionMessageFactory, because
  7079. extension can be specified per peer, not per torrent.
  7080. * src/DefaultBtInteractive.cc
  7081. * src/BtRuntime.h
  7082. * src/ExtendedMessagingAware.h
  7083. * src/ExtensionMessageFactory.h
  7084. * src/DefaultExtensionMessageFactory.cc
  7085. * test/DefaultExtensionMessageFactoryTest.cc
  7086. 2008-01-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7087. Added categorized option help. Specify category using --help option.
  7088. Also added the ability to search options in forward match.
  7089. * src/HelpItem.{h, cc}
  7090. * test/HelpItemTest.cc
  7091. * src/HelpItemFactory.{h, cc}
  7092. * src/TagContainer.{h, cc}
  7093. * test/TagContainerTest.cc
  7094. * src/option_processing.cc
  7095. * src/prefs.h
  7096. * src/TaggedItem.{h, cc}
  7097. * test/TaggedItemTest.cc
  7098. * src/version_usage.cc
  7099. * src/help_tags.h
  7100. * src/usage_text.h
  7101. 2008-01-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7102. Fixed segmentation fault when bad torrent metainfo is parsed.
  7103. Added dynamic_cast properly to detect the misconfiguration of metainfo
  7104. and then throw exception or skip it.
  7105. * src/DefaultBtContext.{h, cc}
  7106. * test/DefaultBtContextTest.cc
  7107. * src/AnnounceList.cc
  7108. * src/CompactPeerListProcessor.cc
  7109. * src/message.h
  7110. * src/DefaultBtAnnounce.{h, cc}
  7111. * test/DefaultBtAnnounceTest.cc
  7112. * src/BencodeVisitor.cc
  7113. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7114. Added missing "B"(=Byte). So now the message looks like this:
  7115. Your share ratio was 1.0, uploaded/downloaded=12MiB/12MiB
  7116. * src/message.h (MSG_SHARE_RATIO_REPORT)
  7117. 2007-12-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7118. Show the seed ratio after torrent downloads.
  7119. For example, after torrent download completed and --seed-time and
  7120. --seed-ratio conditions are fulfilled, following message is printed
  7121. right after "Download complete: .....":
  7122. Your share ratio was 1.0, uploaded/downloaded=12M/12M
  7123. * src/RequestGroupMan.cc
  7124. * src/RequestGroup.{h, cc}
  7125. * src/message.h
  7126. 2007-12-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7127. Remove a defunct control file. A defunct control file means that while
  7128. it exists, but the corresponding download file is missing.
  7129. After its removal, a download restarts from the beginning.
  7130. * src/RequestGroup.cc
  7131. * src/message.h
  7132. 2007-12-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7133. Allocate bitfield in Peer when it is really used. More specifically,
  7134. bitfield in Peer is allocated after the connection is established and
  7135. deallocated when the connection is dropped.
  7136. Since 2 parameters(piece length and total length) was removed from the
  7137. constructor of Peer class, many test classes were modified accordingly.
  7138. See svn log for more detailed information.
  7139. * src/PeerInteractionCommand.cc
  7140. * src/CompactPeerListProcessor.cc
  7141. * src/Peer.cc
  7142. * src/DefaultPeerListProcessor.cc
  7143. * src/PeerListenCommand.cc
  7144. * src/PeerReceiveHandshakeCommand.cc
  7145. Fixed memory leak
  7146. * src/Piece.cc
  7147. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7148. Changed the default value of PREF_PEER_CONNECTION_TIMEOUT and
  7149. lowestSpeedLimit in ActivePeerConnectionCommand. TODO: Make them
  7150. command-line options.
  7151. * src/option_processing.cc
  7152. * src/ActivePeerConnectionCommand.cc
  7153. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7154. Send have message to peer if it already has the piece.
  7155. * src/BtHaveMessage.{h, cc}
  7156. 2007-12-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7157. Removed incomingPeer. Set 0 to peer's port if it is not a listening
  7158. port.
  7159. * src/DefaultPeerStorage.{h, cc}
  7160. * test/DefaultPeerStorageTest.cc
  7161. * src/HandshakeExtensionMessage.cc
  7162. * test/HandshakeExtensionMessageTest.cc
  7163. * src/Peer.{h, cc}: Added ipaddr and port to identity comparison.
  7164. * src/PeerStorage.h
  7165. * test/MockPeerStorage.h
  7166. * src/PeerListenCommand.cc
  7167. * src/PeerReceiveHandshakeCommand.cc
  7168. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7169. Added --metalink-enable-unique-protocol option.
  7170. * src/Metalink2RequestGroup.cc
  7171. * src/option_processing.cc
  7172. * src/prefs.h
  7173. * src/version_usage.cc
  7174. * doc/aria2c.1.txt
  7175. * doc/aria2c.1
  7176. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7177. Allow a peer in incomingPeer to be added peers.
  7178. * src/DefaultPeerStorage.cc
  7179. * test/DefaultPeerStorageTest.cc
  7180. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7181. Fixed the bug that causes aria2 not to finish download. BUG#1855875.
  7182. I could reproduce this bug in following procedure:
  7183. 1. Stop the download at the very beginning(1% or 100KB downloaded).
  7184. 2. Restart aria2.
  7185. 3. You see the download stopped around 99%.
  7186. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  7187. * src/StreamFileAllocationEntry.cc: Removed the timeout handling.
  7188. If timeout is reached, then _nextCommand is unused and it may contains
  7189. segments and they won't be canceled. Actually, timeout is not needed
  7190. here because if the server dropped connection, then retry is made.
  7191. 2007-12-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7192. Added uTorrent compatible Peer Exchange.
  7193. * src/BencodeVisitor.{h, cc}
  7194. * test/BencodeVisitorTest.cc
  7195. * src/BtConstants.h
  7196. * src/BtContext.h: Added 'private' flag.
  7197. * src/BtExtendedMessage.{h, cc}
  7198. * test/BtExtendedMessageTest.cc
  7199. * src/BtHandshakeMessage.{h, cc}: Set extended messaging bit in
  7200. reserved field.
  7201. * test/BtHandshakeMessageTest.cc
  7202. * src/BtMessageFactory.h
  7203. * src/BtRegistry.h
  7204. * src/BtRuntime.h: This class holds default extension message IDs for
  7205. aria2. By default, aria2 uses ID 8 for ut_pex.
  7206. * src/DefaultBtContext.cc
  7207. * src/DefaultBtInteractive.{h, cc}: This class holds _utPexEnabled.
  7208. When it is true, aria2 enables ut_pex. This value is set by
  7209. PeerInteractionCommand.
  7210. * src/DefaultBtMessageFactory.{h, cc}
  7211. * test/DefaultBtMessageFactoryTest.cc
  7212. * src/DefaultBtMessageReceiver.cc: Moved the code of fast extension
  7213. handling to DefaultBtInteractive class.
  7214. * src/DefaultExtensionMessageFactory.{h, cc}
  7215. * test/DefaultExtensionMessageFactoryTest.cc
  7216. * src/DefaultPeerStorage.cc: Returns false if a peer is already in
  7217. the container(peers and incomingPeers. The equality is determined by
  7218. Peer::id).
  7219. * test/DefaultPeerStorageTest.cc
  7220. * src/ExtensionMessage.h
  7221. * test/MockExtensionMessage.h
  7222. * src/ExtensionMessageFactory.h
  7223. * test/MockExtensionMessageFactory.h
  7224. * src/HandshakeExtensionMessage.{h, cc}
  7225. * test/HandshakeExtensionMessageTest.cc
  7226. * src/MetaEntry.h
  7227. * src/Peer.{h, cc}
  7228. * src/PeerInteractionCommand.cc
  7229. * src/PeerReceiveHandshakeCommand.cc: Evaluate the return value of
  7230. addIncomingPeer.
  7231. * src/PeerMessageUtil.{h, cc}
  7232. * src/PeerObject.h
  7233. * src/UTPexExtensionMessage.{h, cc}
  7234. * test/UTPexExtensionMessageTest.cc
  7235. * src/message.h
  7236. * src/prefs.h
  7237. Fixed the bug that returns incomplete data when it contains null
  7238. character. A convenient constructor was also added.
  7239. * src/Data.{h, cc}
  7240. Rewritten.
  7241. * src/CompactPeerListProcessor.cc
  7242. Fixed typos.
  7243. * src/message.h
  7244. * src/MetaFileUtil.cc
  7245. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7246. Added "Status Legend" label to the explanation text of 'stat' in
  7247. download result and moved it to the last. BUG#1848214
  7248. * src/RequestGroupMan.cc
  7249. 2007-12-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7250. Fixed the bug that -lexpat is always added to aria2c_LDADD.
  7251. * src/Makefie.am
  7252. * test/Makefile.am
  7253. 2007-12-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7254. Fixed the bug that prevents aria2 from loading cookie file when expire
  7255. value is greater than 2^31-1. BUG#1851066
  7256. * src/CookieBoxFactory.cc
  7257. * test/CookieBoxFactoryTest.cc
  7258. 2007-12-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7259. Fixed possible memory leak when an exception is thrown.
  7260. * src/XML2SAXMetalinkProcessor.cc
  7261. Added Expat support. If both libxml2 and Expat are installed, then
  7262. libxml2 is used by default.
  7263. MetalinkProcessorFactory chooses from XML2SAXMetalinkProcessor and
  7264. ExpatMetalinkProcessor according to the configuration.
  7265. * src/ExpatMetalinkProcessor.{h, cc}
  7266. * src/main.cc: Removed libxml2 specific header and init/free function.
  7267. * src/MetalinkProcessorFactory.{h, cc}
  7268. * src/MetalinkHelper.cc
  7269. * src/Metalinker.h: Removed unnecessary libxml2 header.
  7270. * src/MetalinkProcessor.h
  7271. * test/XML2SAXMetalinkProcessorTest.cc: Removed because
  7272. MetalinkProcessorTest is used instead.
  7273. * test/MetalinkProcessorTest.cc: Added. It is actually the same with
  7274. XML2SAXMetalinkProcessor, replaced XML2SAXMetalinkProcessor with
  7275. MetalinkProcessorFactory::newInstance().
  7276. * m4/libexpat.m4
  7277. * configure.ac: Added configuration options for libexpat.
  7278. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7279. Disabled -s option in metalink download.
  7280. * src/Metalink2RequestGroup.cc
  7281. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7282. If several protocols are available for a mirror in metalink file,
  7283. aria2 now use one of them. --metalink-preferred-protocol option was
  7284. added to specify the preference of protocol.
  7285. * src/AbstractCommand.cc
  7286. * src/OptionHandlerFactory.cc
  7287. * src/ServerHost.{h, cc}
  7288. * src/Metalink2RequestGroup.cc
  7289. * src/RequestGroup.{h, cc}
  7290. * test/RequestGroupTest.cc
  7291. * src/option_processing.cc
  7292. * src/prefs.h
  7293. * src/HttpResponseCommand.cc
  7294. * src/MetalinkResource.{h, cc}
  7295. * src/FtpNegotiationCommand.cc
  7296. * src/MetalinkEntry.{h, cc}
  7297. * src/MetalinkEntryTest.cc
  7298. 2007-12-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7299. Code cleanup and added debug log.
  7300. * src/PeerConnection.cc
  7301. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7302. Compiler error fix: applied the patch by Tiziano Mueller
  7303. * src/RequestGroup.cc
  7304. 2007-12-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7305. Fixed the bug: only first announce URL is tried in AnnounceTier,
  7306. in stopped and completed event.
  7307. * src/AnnounceList.{h, cc}
  7308. * test/AnnounceListTest.cc
  7309. * src/DefaultBtAnnounce.cc
  7310. * test/DefaultBtAnnounceTest.cc
  7311. Sorted URLs.
  7312. * test/Metalink2RequestGroupTest.cc
  7313. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7314. Removed unnecessary string copy. Updated doc and corrected indentation.
  7315. * src/Base64.cc
  7316. Fixed compilation warnings
  7317. * test/DataTest.cc
  7318. * test/HttpRequestTest.cc
  7319. * test/MetaFileUtilTest.cc
  7320. * test/RequestTest.cc
  7321. * Release 0.12.0
  7322. 2007-12-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7323. Updated translations
  7324. * po/{de,fr,ja,nl,ru}.po
  7325. Added Brazilian Portuguese, Catalan, Italian, Spanish, Swedish
  7326. translations. Many thanks to translators.
  7327. * po/{ca,es,it,pt_BR,sv}.po
  7328. * po/LINGUAS
  7329. 2007-12-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7330. Added a notice about URL
  7331. * src/version_usage.cc
  7332. 2007-12-07 Tatsuhiro Tsujikawa <tujikawa at rednoah com>
  7333. Fixed the bug#1845750; CTRL+C does not stop torrent.
  7334. aria2 repeatedly sends stopped request when tracker returns error code.
  7335. * src/AnnounceList.cc
  7336. * test/AnnounceListTest.cc
  7337. * src/AnnounceTier.h
  7338. Added a message when ctrl-c is hit.
  7339. Now second ctrl-c is also handled in signal handler.
  7340. * src/RequestGroupMan.{h, cc}
  7341. * src/RequestGroup.{h, cc}
  7342. * src/MultiUrlRequestInfo.cc
  7343. * src/DownloadEngine.cc
  7344. * src/TrackerWatcherCommand.cc
  7345. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7346. Code cleanup
  7347. * src/Base64.cc (encode)
  7348. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7349. Changed Direct/IO enable/disable procesure in file allocation routine.
  7350. * src/SingleFileAllocationIterator.cc
  7351. (SingleFileAllocationIterator):
  7352. Disable directIO if offset is not multiple of 512.
  7353. (~SingleFileAllocationIterator): Removed a call to disableDirectIO.
  7354. * src/MultiFileAllocationIterator.cc (allocateChunk):
  7355. Enable created SingleFileAllocationIterator's directIO.
  7356. * src/FileAllocationEntry.cc
  7357. (FileAllocationEntry): Enable directIO here.
  7358. (~FileAllocationEntry): Disable directIO here.
  7359. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7360. Fixed the bug: aria2 doesn't utilize fast set index offered by peer.
  7361. * src/Peer.{h, cc}
  7362. * src/DefaultPieceStorage.cc
  7363. * test/DefaultPieceStorageTest.cc
  7364. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7365. Rewritten direct I/O support routine
  7366. * src/SingleFileAllocationIterator.cc
  7367. * src/MultiDiskAdaptor.{h, cc}
  7368. * src/ByteArrayDiskWriter.h
  7369. * src/AbstractSingleDiskAdaptor.h
  7370. * src/AbstractDiskWriter.cc
  7371. * src/DefaultPieceStorage.cc
  7372. * src/DiskWriter.h
  7373. * src/BinaryStream.h
  7374. * src/IteratableChunkChecksumValidator.cc
  7375. * src/IteratableChecksumValidator.cc
  7376. * src/CheckIntegrityEntry.cc
  7377. * src/FileAllocationEntry.cc
  7378. 2007-12-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7379. Fixed typo
  7380. * src/version_usage.cc
  7381. Updated doc
  7382. * doc/aria2c.1.txt
  7383. * doc/aria2c.1
  7384. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7385. Fixed compile error without message digest support.
  7386. * src/FileMetalinkParserState.cc
  7387. * src/MetalinkParserController.{h, cc}
  7388. * test/XML2SAXMetalinkProcessorTest.cc
  7389. * test/MetalinkParserControllerTest.cc
  7390. 2007-12-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7391. Enable direct I/O support in checksum checking.
  7392. * src/IteratableChunkChecksumValidator.{h, cc}
  7393. * test/IteratableChunkChecksumValidatorTest.cc
  7394. * src/CheckIntegrityEntry.cc
  7395. * src/PieceHashCheckIntegrityEntry.cc
  7396. * src/IteratableChecksumValidator.{h, cc}
  7397. * src/BtCheckIntegrityEntry.cc: Added doc.
  7398. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7399. Added --allow-piece-length-change option.
  7400. * src/DefaultBtProgressInfoFile.cc
  7401. * test/DefaultBtProgressInfoFileTest.cc
  7402. * src/OptionHandlerFactory.cc
  7403. * src/option_processing.cc
  7404. * src/prefs.h
  7405. * src/version_usage.cc
  7406. * doc/aria2c.1.txt
  7407. * doc/aria2c.1
  7408. Fixed: duplicated result entry appears when exception is thrown in
  7409. RequestGroup::createInitiateConnectionCommand().
  7410. * src/RequestGroupMan.cc (fillRequestGroupFromReserver):
  7411. Add RequestGroup to _requestGroup after RequetGroup::
  7412. createInitiateConnectionCommand() succeeds.
  7413. Externalized message
  7414. * src/XML2SAXMetalinkProcessor.cc
  7415. * src/message.h
  7416. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7417. Forced download abort when received negative response from http/ftp
  7418. server.
  7419. * src/HttpResponseCommand.cc
  7420. * src/FtpNegotiationCommand.cc
  7421. * src/HttpResponse.cc
  7422. * src/FtpConnection.cc
  7423. 2007-12-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7424. Added XML2SAXMetalinkProcessor class, which is a lot faster than
  7425. the predecessor, Xml2MetalinkParser class.
  7426. I tested them against 94KB metalink file with 1234 chunk checksums.
  7427. The new one parsed it in 22msec, while it took 6000msec with old one.
  7428. * src/XML2SAXMetalinkProcessor.{h, cc}
  7429. * test/XML2SAXMetalinkProcessorTest.cc
  7430. * src/MetalinkParserController.{h, cc}
  7431. * test/MetalinkParserControllerTest.cc
  7432. * src/MetalinkParserState.h: Also added 16 subclasses.
  7433. * src/main.cc
  7434. * src/Metalink2RequestGroup.cc
  7435. * src/MetalinkHelper.cc
  7436. * src/MetalinkEntry.cc
  7437. * src/ChunkChecksum.h
  7438. Rewritten Base64 class for better performance.
  7439. * src/Base64.{h, cc}
  7440. * test/Base64Test.cc
  7441. * src/HttpRequest.cc
  7442. 2007-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7443. Fixed the bug#1841757: aria2 will connect to server to only get
  7444. file size.
  7445. * src/StreamFileAllocationEntry.cc
  7446. * src/option_processing.cc
  7447. * src/HttpResponseCommand.cc: Now reuse connection in segmented
  7448. downloads.
  7449. * src/FtpNegotiationCommand.cc
  7450. Suppressed wrong message when finding PreDownloadHandler
  7451. * src/RequestGroup.cc
  7452. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7453. Updated usage
  7454. * src/version_usage.cc
  7455. Updated man page
  7456. * doc/aria2c.1.txt
  7457. * doc/aria2c.1
  7458. Updated po files
  7459. * po/aria2c.pot
  7460. * po/*.po
  7461. * po/*.gmo
  7462. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7463. Eliminated g++-4.2 warning
  7464. * src/DownloadHandlerConstants.{h, cc}
  7465. * src/Util.cc
  7466. * test/MetaFileUtilTest.cc
  7467. * test/PStringBuildVisitorTest.cc
  7468. Fixed bug: --check-integrity doesn't work for multi file torrent.
  7469. * src/RequestGroup.cc
  7470. * src/BtCheckIntegrityEntry.cc
  7471. 2007-11-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7472. Fixed a2io.h
  7473. * src/a2io.h
  7474. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7475. Added direct I/O support. The current implementation uses O_DIRECT,
  7476. which is not posix standard and is tested on linux 2.6.21.
  7477. Currently only file allocation uses direct I/O.
  7478. * src/SingleFileAllocationIterator.{h, cc}
  7479. * test/SingleFileAllocationIteratorTest.cc
  7480. * src/MultiFileAllocationIterator.{h, cc}
  7481. * test/MultiFileAllocationIteratorTest.cc
  7482. * src/BinaryStream.h
  7483. * src/DiskWriter.h
  7484. * src/AbstractDiskWriter.{h, cc}
  7485. * src/ByteArrayDiskWriter.h
  7486. * src/DiskAdaptor.h
  7487. * src/AbstractSingleDiskAdaptor.{h, cc}
  7488. * src/MultiDiskAdaptor.{h, cc}
  7489. * src/FileAllocationEntry.cc
  7490. * src/Util.{h, cc}
  7491. * src/OptionHandlerFactory.cc
  7492. * src/prefs.h
  7493. * src/version_usage.cc
  7494. * src/option_processing.cc
  7495. Moved FileAllocationMan::markCurrentFileAllocationEntryDone() to
  7496. handleException.
  7497. * src/MultiFileAllocationIterator.cc
  7498. Added EINTR handling
  7499. * src/SocketCore.cc
  7500. 2007-11-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7501. Updated usage
  7502. * src/version_usage.cc
  7503. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7504. Applied Ross's patch for MinGW port.
  7505. * src/DownloadEngine.h
  7506. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7507. Set Content-Type to SingleFileDownloadContext when http response is
  7508. received.
  7509. * src/HttpResponseCommand.cc
  7510. * src/HttpResponse.{h, cc}
  7511. * test/HttpResponseTest.cc
  7512. 2007-11-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7513. Rewritten to add content-type support.
  7514. * src/DownloadHandler.{h, cc}
  7515. * src/BtPostDownloadHandler.{h, cc}
  7516. * test/BtPostDownloadHandlerTest.cc
  7517. * src/MetalinkPostDownloadHandler.{h, cc}
  7518. * test/MetalinkPostDownloadHandlerTest.cc
  7519. * src/PostDownloadHandler.{h, cc}
  7520. * src/DownloadHandlerConstants.{h, cc}
  7521. * src/RequestGroup.cc
  7522. * src/HttpResponseCommand.cc
  7523. * src/FtpNegotiationCommand.cc
  7524. * src/SingleFileDownloadContext.{h, cc}
  7525. * src/RequestGroup.h
  7526. * src/RequestGroupCriteria.h
  7527. * src/ContentTypeRequestGroupCriteria.h
  7528. Added 'mem' option value for --follow-metalink, --follow-torrent.
  7529. If it is give, metalink/torrent file is not written to the disk, but
  7530. just is kept in memory. Parsing is occurred on memory.
  7531. * src/MetalinkHelper.{h, cc}
  7532. * src/MetalinkProcessor.h
  7533. * src/Xml2MetalinkProcessor.{h, cc}
  7534. * test/Xml2MetalinkProcessorTest.cc
  7535. * src/DownloadHandlerFactory.{h, cc}
  7536. * test/DownloadHandlerFactoryTest.cc
  7537. * src/PreDownloadHandler.{h, cc}
  7538. * src/OptionHandlerFactory.cc
  7539. * src/DefaultBtContext.{h, cc}
  7540. * test/DefaultBtContextTest.cc
  7541. * src/version_usage.cc
  7542. * src/Metalink2RequestGroup.{h, cc}
  7543. * src/RequestGroup.{h, cc}
  7544. * src/a2functional.h
  7545. * test/a2functionalTest.cc
  7546. * src/MemoryBufferPreDownloadHandler.{h, cc}
  7547. * src/OptionHandlerImpl.h
  7548. * src/prefs.h
  7549. * src/Util.{h, cc}
  7550. * test/UtilTest.cc
  7551. Keep DownloadResult rather than RequestGroup after downloads to reduce
  7552. memory usage.
  7553. * src/RequestGroupMan.{h, cc}
  7554. * src/DownloadEngine.cc
  7555. * src/BtDependency.{h, cc}: Changed the type of dependee from
  7556. WeakHandle to SharedHandle because WeakHandle could be null.
  7557. * src/RequestGroup.{h, cc}
  7558. * src/DownloadEngineFactory.cc
  7559. * src/DownloadResult.h
  7560. Set totalLength after download finished
  7561. * src/UnknownLengthPieceStorage.{h, cc}
  7562. Keep torrent file specified in metalink in memory.
  7563. * src/Metalink2RequestGroup.cc
  7564. * src/BtDependency.cc
  7565. * src/TrueRequestGroupCriteria.h
  7566. Fixed the bug: seekg is used where seekp should be used.
  7567. * src/ByteArrayDiskWriter.cc
  7568. * test/ByteArraydiskWriterTest.cc
  7569. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7570. Fixed syntax error
  7571. * test/SequenceTest.cc
  7572. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7573. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7574. * src/RequestGroupMan.cc (isSameFileBeingDownloaded)
  7575. Return false if RequestGroup::isPreLocalFileCheckEnabled() == true
  7576. * src/RequestGroup.cc (downloadFinishedByFileLength)
  7577. 2007-11-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7578. Added the check to see whether ares_host_callback accepts timeouts
  7579. with c-ares; only c-ares 1.5.0 or newer accepts it.
  7580. * src/NameResolver.{h, cc}
  7581. * m4/libcares.m4
  7582. * configure.ac: Set C++ for language choice.
  7583. 2007-11-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7584. Fixed: compilation fails without c-ares/ares
  7585. * src/DownloadEngine.cc (addCommand): Moved outside #ifdef
  7586. Generate http/ftp commands only when download is incomplete.
  7587. * src/BtFileAllocationEntry.cc (prepareForNextAction)
  7588. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7589. Corrected typo. Examples are removed since they are available in man
  7590. page.
  7591. * src/version_usage.cc
  7592. Updated man page.
  7593. * doc/aria2c.1
  7594. * doc/aria2c.1.txt
  7595. * doc/makeman: Commented out sed command.
  7596. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7597. Throw DlAbortEx when a remote file is not found.
  7598. * src/HttpResponse.cc
  7599. * src/FtpNegotiationCommand.cc
  7600. * src/message.h
  7601. Overwrite an existing file if --allow-overwrite=true is given.
  7602. * src/RequestGroup.cc
  7603. Removed unused functions
  7604. * src/AbstractCommand.h
  7605. 2007-11-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7606. Removed 'extern' from 'extern typedef ...' in src/*.h
  7607. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7608. Updated usage
  7609. * src/version_usage.cc
  7610. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7611. Trim announce URL
  7612. * src/DefaultBtContext.cc
  7613. * test/ShaVisitorTest.cc
  7614. Trim argument s. Give trimed s to exception constructor.
  7615. * src/Util.cc (parseInt)(parseLLInt)
  7616. * test/UtilTest.cc
  7617. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7618. Set precision back to 1.
  7619. * src/ConsoleStatCalc.cc (calculateStat)
  7620. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7621. Replaced strtol with Util::parseInt
  7622. * src/ChunkedEncoding.cc
  7623. * src/HttpConnection.cc
  7624. * src/CookieBoxFactory.cc
  7625. * src/ParameterizedStringParser.cc
  7626. * src/Util.cc
  7627. * test/UtilTest.cc
  7628. * test/OptionHandlerTest.cc
  7629. * src/Request.cc
  7630. Throw exception when empty string is given. The message for exception
  7631. changed.
  7632. * src/Util.cc (parseInt)(parseLLInt)
  7633. * src/message.h
  7634. 2007-11-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7635. Set precision to 2 because share ratio is rounded into 1.0 if precision
  7636. set to 1.
  7637. * src/ConsoleStatCalc.cc (calculateStat)
  7638. 2007-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7639. Preallocate non-requested file which is adjacent forward to requested
  7640. file('requested' files means the files given in --select-file option)
  7641. if they share a same piece.
  7642. This fixes long pause in the file system which doesn't support sparse
  7643. files like FAT32 while downloading.
  7644. * src/MultiFileAllocationIterator.{h, cc}
  7645. * test/MultiFileAllocationIteratorTest.cc
  7646. * src/FileEntry.{h, cc}
  7647. Removed unused _option.
  7648. * src/MultiDiskAdaptor.h
  7649. * test/MultiDiskAdaptorTest.cc
  7650. * src/DefaultPieceStorage.cc
  7651. Set the default value of --seed-ratio to 1.0.
  7652. If 0.0 is given, then seeding continues regardless of share ratio.
  7653. * src/version_usage.cc
  7654. * src/option_processing.cc
  7655. * src/BtSetup.cc
  7656. * doc/aria2c.1.txt
  7657. * doc/aria2c.1
  7658. Fixed: Selective download is not working in BitTorrent
  7659. * src/RequestGroup.cc
  7660. Introduced Sequence class. Use this instead of Util::unfoldRange()
  7661. * src/PieceStorage.h
  7662. * test/MockPieceStorage.h
  7663. * src/UnknownLengthPieceStorage.h
  7664. * src/DefaultPieceStorage.{h, cc}
  7665. * src/Metalink2RequestGroup.cc
  7666. * src/RequestGroup.cc
  7667. * src/Sequence.h
  7668. * test/SequenceTest.cc
  7669. * src/IntSequence.h
  7670. * src/message.h
  7671. * src/Util.{h, cc}
  7672. * test/UtilTest.cc
  7673. Added new function 'parse' to catch exception thrown by subclass's
  7674. parseArg
  7675. * src/OptionHandler.h
  7676. * src/OptionParser.cc
  7677. * src/NameMatchOptionHandler.h
  7678. * src/OptionHandlerImpl.h
  7679. * test/OptionHandlerTest.cc
  7680. Added IntegerRangeOptionHandler. Used for --listen-port and
  7681. --select-file. Now --listen-port accepts range of port.
  7682. * src/OptionHandlerFactory.cc
  7683. * src/version_usage.cc
  7684. * src/OptionHandlerImpl.h
  7685. * src/option_processing.cc
  7686. * src/BtSetup.cc
  7687. * src/PeerListenCommand.{h, cc}
  7688. * doc/aria2c.1.txt
  7689. * doc/aria2c.1
  7690. Implemented operator< for Exception class to provide easy way to print
  7691. exception stack trace.
  7692. * src/Exception.{h, cc}
  7693. * src/main.cc
  7694. * src/option_processing.cc
  7695. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7696. * src/version_usage.cc
  7697. (showVersion): Reworked.
  7698. (showUsage): Added examples.
  7699. Removed Hint for total length and file name.
  7700. * src/Metalink2RequestGroup.cc
  7701. * src/RequestGroup.{h, cc}
  7702. * src/HttpResponseCommand.cc
  7703. * src/FtpNegotiationCommand.cc
  7704. Now --follow-torrent and --follow-metalink option work properly.
  7705. * src/RequestGroup.cc
  7706. Updated man page
  7707. * doc/aria2c.1.txt
  7708. * doc/aria2c.1
  7709. 2007-11-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7710. Removed.
  7711. * src/PiecedSegment.{h, cc} (operator==)(operator!=)
  7712. Use Segment::operator==()
  7713. * src/HttpConnection.cc
  7714. * src/Segment.h
  7715. Updated usage
  7716. * src/version_usage.cc
  7717. Added EINTR treatment.
  7718. * src/SocketCore.cc
  7719. * src/AbstractDiskWriter.cc
  7720. Rewritten.
  7721. * src/Util.cc (rangedFileCopy)
  7722. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7723. Fixed typo.
  7724. * src/version_usage.cc
  7725. 2007-11-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7726. Implemented. Now -c option works fine.
  7727. * src/DefaultPieceStorage.cc (markPiecesDone)
  7728. * test/DefaultPieceStorageTest.cc
  7729. Removed.
  7730. * src/SegmentMan.{h, cc}
  7731. (markAllPiecesDone)
  7732. (markPieceDone)
  7733. Synchronized po files with
  7734. https://translations.launchpad.net/aria2/trunk/+pots/aria2c
  7735. * src/fr.po
  7736. * src/ru.po
  7737. * src/de.po
  7738. * src/ja.po
  7739. 2007-11-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7740. Added ifdef and some modifications to compile without BitTorrent,
  7741. Metalink, MessageDigest
  7742. support.
  7743. * src/PieceHashCheckIntegrityEntry.cc
  7744. * src/MetalinkEntry.h
  7745. * src/version_usage.cc
  7746. * src/main.cc
  7747. * src/DownloadEngine.{h, cc}
  7748. * src/Metalink2RequestGroup.cc
  7749. * src/Peer.cc
  7750. * src/RequestGroup.cc
  7751. * src/MetalinkHelper.cc
  7752. * test/DefaultPieceStorageTest.cc
  7753. * test/MetalinkPostDownloadHandlerTest.cc
  7754. * test/Metalink2RequestGroupTest.cc
  7755. Hide TOTAL SPD when all downloads complete.
  7756. * src/ConsoleStatCalc.cc
  7757. Log target system information.
  7758. * src/main.cc
  7759. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7760. Now --metalink-location accepts a comma-deliminated list of locations.
  7761. * src/MetalinkEntry.{h, cc}
  7762. * test/MetalinkEntryTest.cc
  7763. * src/version_usage.cc
  7764. * src/Metalink2RequestGroup.cc
  7765. * src/Xml2MetalinkProcessor.cc
  7766. * test/Xml2MetalinkProcessorTest.cc
  7767. * doc/aria2c.1.txt
  7768. * doc/aria2c.1
  7769. * src/Util.cc (toUpper)(toLower): Rewritten.
  7770. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7771. Added the ability to detect duplicate download entry which is about to
  7772. download the same file other RequestGroup is downloading.
  7773. * src/RequestGroup.cc
  7774. * src/HttpResponseCommand.cc
  7775. * src/FtpNegotiationCommand.cc
  7776. 2007-11-13 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7777. Recalculates download progress when loading a control file,
  7778. if the piece length of DownloadContext is different from the one saved
  7779. in the control file. Currently in-flight pieces are ignored.
  7780. * src/DefaultBtProgressInfoFile.cc
  7781. * test/DefaultBtProgressInfoFileTest.cc
  7782. * src/Util.{h, cc}
  7783. * test/UtilTest.cc
  7784. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7785. Do not rotate tiers in announce-list.
  7786. * src/DefaultBtAnnounce.{h, cc}: Removed trackerNumTry.
  7787. AnnounceList::allTiersFailed() used instead to detect whether all
  7788. tiers are tried and failed.
  7789. * test/DefaultBtAnnounceTest.cc
  7790. * src/AnnounceList.{h, cc}: If all tiers are tried and failed then
  7791. allTiersFailed() returns true. To reset tier pointer, call resetTier();
  7792. * test/AnnounceListTest.cc
  7793. * src/TrackerWatcherCommand.cc (execute): Removed DlAbortEx catch
  7794. clause. Catch RecoverableException instead of DlRetryEx instead.
  7795. 2007-11-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7796. Implemented checksum validation feature(1 checksum for each file)
  7797. The validation takes place after the download.
  7798. * src/PieceHashCheckIntegrityEntry.{h, cc}: New class.
  7799. * src/IteratableChecksumValidator.{h, cc}: Rewritten.
  7800. * src/CheckIntegrityCommand.cc: Changed log message.
  7801. * src/Metalink2RequestGroup.cc: Set checksum to
  7802. SingleFileDownloadContext.
  7803. * src/StreamCheckIntegrityEntry.{h, cc}: Now derived from
  7804. PieceHashCheckIntegrity class.
  7805. * src/BtCheckIntegrityEntry.{h, cc}: Now derived from
  7806. PieceHashCheckIntegrity class.
  7807. * src/ChecksumCheckIntegrityEntry.{h, cc}: New class.
  7808. * src/IteratableValidator.h: New class.
  7809. * src/message.h
  7810. * src/CheckIntegrityEntry.{h, cc}
  7811. * src/IteratableChunkChecksumValidator.{h, cc}
  7812. * src/SingleFileDownloadContext.h
  7813. * src/DownloadCommand.cc
  7814. --allow-overwrite=true is no longer needed to check file integrity
  7815. before download in BitTorrent download.
  7816. * src/RequestGroup.cc (getInitialCommand)
  7817. Removed RequestGroup from queue when RequestGroup::getInitialCommand()
  7818. throws exception.
  7819. * src/RequestGroupMan.cc (getInitialCommands)
  7820. 2007-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7821. urlencode the given url inside Request::parseUrl(...)
  7822. * src/Request.{h, cc}
  7823. * src/Util.{h, cc}
  7824. * test/RequestTest.cc
  7825. Removed #!metalink3! notation support because it is deleted from
  7826. the metalink specification.
  7827. * src/Request.{h, cc}
  7828. * test/RequestTest.cc
  7829. 2007-11-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7830. Don't connect server before checking file integrity at startup, if
  7831. filesize and output file path are known.
  7832. * src/AbstractCommand.cc
  7833. * src/StreamFileAllocationEntry.cc
  7834. * src/Metalink2RequestGroup.cc
  7835. * src/RequestGroup.{h, cc}
  7836. * src/HttpResponseCommand.cc
  7837. * src/FtpNegotiationCommand.cc
  7838. Added DownloadFailureException. If it is thrown, RequestGroup should
  7839. halt.
  7840. * src/AbstractCommand.cc
  7841. * src/DownloadFailureException.h
  7842. * src/RequestGroup.cc
  7843. Catch RecoverableException, instead of DlAbortEx.
  7844. * src/RequestGroupMan.cc
  7845. * src/FillRequestGroupCommand.cc
  7846. * src/MetaFileUtil.cc
  7847. * src/IteratableChunkChecksumValidator.cc
  7848. Now first parameter of MSG_DOWNLOAD_ABORTED is gid(RequestGroup::
  7849. getGID())
  7850. * src/CheckIntegrityCommand.cc
  7851. * src/message.h
  7852. Print gid instead of idx.
  7853. * src/RequestGroupMan.cc
  7854. Removed exception throwers declaration.
  7855. * src/DirectDiskAdaptor.{h, cc}
  7856. * src/SocketCore.{h, cc}
  7857. * src/MultiDiskAdaptor.{h, cc}
  7858. * src/HttpConnection.{h, cc}
  7859. * src/HttpResponse.{h, cc}
  7860. * src/DiskAdaptor.{h, cc}
  7861. * src/CopyDiskAdaptor.{h, cc}
  7862. * src/MultiDiskAdaptor.{h, cc}
  7863. * src/HttpHeaderProcessor.{h, cc}
  7864. * src/AbstractSingleDiskAdaptor.{h, cc}
  7865. * src/Util.{h, cc}
  7866. * test/UtilTest.cc
  7867. * src/DefaultDiskWriter.{h, cc}
  7868. * src/FtpConnection.{h, cc}
  7869. * src/AbstractDiskWriter.{h, cc}
  7870. Removed duplicate code.
  7871. * src/StreamCheckIntegrityEntry.cc
  7872. Removed unnecessary include.
  7873. * src/DiskWriter.h
  7874. Included Exception.h
  7875. * src/option_processing.cc
  7876. Included 2 files and added doc
  7877. * src/TrackerWatcherCommand.cc
  7878. * src/SocketCore.cc (writeData): Fixed send error with GnuTLS.
  7879. 2007-11-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7880. Changed CheckIntegrityEntry interface so that it can define
  7881. the action when all the chunk checksums are valid.
  7882. * src/CheckIntegrityEntry.h
  7883. * src/StreamCheckIntegrityEntry.{h, cc}
  7884. * src/BtCheckIntegrityEntry.{h, cc}: Currently,when all the checksums
  7885. are valid, then aira2 goes to seeding mode. Sometimes it is better
  7886. to exit rather than doing seeding. So, it would be good to toggle this
  7887. behavior.
  7888. * src/CheckIntegrityCommand.cc
  7889. * src/AbstractCommand.cc
  7890. * src/RequestGroup.cc
  7891. 2007-11-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7892. Reflect the download length of in-flight pieces.
  7893. It makes the download length readout more precise.
  7894. * src/DefaultPieceStorage.{h, cc}
  7895. * test/DefaultPieceStorageTest.cc
  7896. * src/a2functional.h
  7897. * test/a2functionalTest.cc
  7898. Lower CPU load when --max-download-limit is used.
  7899. There is up and down in speed indicator when enabling
  7900. http-pipelining but a download goes well. I think the problem is that
  7901. because http-pipelining is enabled, DownloadCommand is created for
  7902. each segment and in its constructor, PeerStat::downloadStart() is
  7903. called. In PeerStat::downloadStart(), speed calculation object is
  7904. reseted, which makes download speed zero.
  7905. * src/DownloadCommand.cc
  7906. Rewritten using accumulate.
  7907. * src/RequestGroupMan.cc (calculateStat)
  7908. Code clearnup.
  7909. * src/FtpNegotiationCommand.cc
  7910. * src/HttpResponseCommand.cc
  7911. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7912. Fixed: Can not resume: aria2 reports download already finished.
  7913. * src/AbstractCommand.{h, cc}
  7914. * src/HttpResponseCommand.cc
  7915. * src/FtpNegotiateCommand.cc
  7916. 2007-11-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7917. Now a file is stored in the directory specified in .metalnk file
  7918. (file[@name]).
  7919. * src/Metalink2RequestGroup.cc
  7920. Create the directory structure when opening the file if it doesn't
  7921. exist.
  7922. * src/AbstractDiskWriter.cc
  7923. * src/Util.{h, cc}
  7924. * src/File.h
  7925. * test/UtilTest.cc
  7926. Removed file name comparison
  7927. * src/Metalink2RequestGroup.cc
  7928. * src/HttpResponseCommand.cc
  7929. Rewritten using Util::mkdirs()
  7930. * src/FileEntry.cc (setupDir)
  7931. * test/FileEntryTest.cc
  7932. Updated doc
  7933. * src/SingleFileDownloadContext.h
  7934. 2007-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7935. Now SleepCommand dispatches nextCommand when halt is requested.
  7936. It avoids a possible long wait after hitting CTRL-C.
  7937. * src/SleepCommand.{h, cc}
  7938. * src/RequestGroupAware.{h, cc}
  7939. 2007-11-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7940. Fixed: the listen port sent to the tracker is wrong. If aria2 fails
  7941. to open listen port, then remove the port number from the tracker
  7942. request.
  7943. * src/DefaultBtAnnounce.cc
  7944. * test/DefaultBtAnnounceTest.cc
  7945. * test/MockPieceStorage.h
  7946. Inject randomizer to DefaultBtAnnounce and DefaultBtContext to make
  7947. them more testable.
  7948. * src/DefaultBtAnnounce.{h, cc}
  7949. * src/DefaultBtContext.{h, cc}
  7950. * src/Util.{h, cc}
  7951. * test/DefaultBtAnnounceTest.cc
  7952. * test/DefaultBtContextTest.cc
  7953. * test/UtilTest.cc
  7954. Added 'B' to upload bytes readout.
  7955. * src/ConsoleStatCalc.cc
  7956. Now the listen port for BitTorrent download is opened when it is
  7957. needed.
  7958. * src/DownloadEngineFactory.cc
  7959. * src/BtSetup.{h, cc}
  7960. * src/PeerListenCommand.{h, cc}
  7961. Now an exception thrown while parsing tracker response is now logged.
  7962. If DlAbortEx is catched, then btAnnounce->resetAnnounce() immediately
  7963. called, which means no retry is made in this case, assuming a tracker
  7964. has a problem.
  7965. * src/TrackerWatcherCommand.cc
  7966. Fixed: downloading a file whose length is unkown fails.
  7967. * src/DownloadCommand.cc
  7968. Simplified prepareForNextSegment()
  7969. * src/DownloadCommand.cc
  7970. Updated
  7971. * po/POTFILES.in
  7972. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7973. Re-implemented a file listing for Metalink, which was dropped while
  7974. http/ftp/torrent integration was being implemented.
  7975. * src/MetalinkHelper.{h, cc}: New class.
  7976. * test/MetalinkHelperTest.cc
  7977. * src/main.cc
  7978. * src/Metalink2RequestGroup.cc
  7979. 2007-11-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7980. Added the ability to display the detailed torrent file information.
  7981. Now -S option gives not only a file listing, but also total download
  7982. length, info hash, announce URI, piece length, the number of pieces,
  7983. and mode(single or multi-torrent).
  7984. * src/DefaultBtContext.{h, cc} (operator<<): New function.
  7985. * src/Util.cc (toStream): Show file length in a abbreviated form(like
  7986. KiB)
  7987. * test/UtilTest.cc
  7988. * src/main.cc
  7989. 2007-10-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  7990. Added ftp://USER:PASSWD@Servername automatic parsing.
  7991. * src/Request.{h, cc}: Removed AuthResolvers. Added _username and
  7992. _password. Recognize username and password in URI.
  7993. * src/main.cc: Use AuthConfigFactory instead of RequestFactory.
  7994. * src/RequestGroup.cc: Use AuthConfigFactory instead of RequestFactory.
  7995. * src/RequestFactory.{h, cc}: Removed.
  7996. * src/AuthConfigFactory.{h, cc}: New class.
  7997. * src/FtpConnection.cc: Use AuthConfigFactory.
  7998. * src/HttpRequest.cc: Use AuthConfigFactory.
  7999. * test/HttpRequestTest.cc: Updated.
  8000. * test/RequestTest.cc: Updated.
  8001. * test/AuthConfigFactoryTest.cc: New class.
  8002. * test/RequestFactoryTest.cc: Removed.
  8003. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8004. Use RequestGroup::allDownloadFinished() to decide whether the control
  8005. file should be removed or saved.
  8006. * src/RequestGroup.{h, cc} (allDownloadFinished): New function.
  8007. * src/RequestGroupMan.cc (removeStoppedGroup) (save)
  8008. 2007-10-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8009. Use File::renameTo()
  8010. * src/DefaultBtProgressInfoFile.cc
  8011. Added --no-file-allocation-limit command-line option.
  8012. * src/version_usage.cc
  8013. * src/option_processing.cc
  8014. * src/OptionHandlerFactory.cc
  8015. * src/RequestGroup.{h, cc}
  8016. * src/BtCheckIntegrityEntry.cc
  8017. * src/StreamCheckIntegrityEntry.cc
  8018. * src/prefs.h
  8019. * doc/aria2c.1.txt
  8020. * doc/aria2c.1
  8021. Now prealloc is the default value for --file-allocation option.
  8022. * src/version_usage.cc
  8023. * src/option_processing.cc
  8024. * doc/aria2c.1.txt
  8025. * doc/aria2c.1
  8026. Don't URL-encode user-agent.
  8027. * src/HttpRequest.cc
  8028. Updated translations
  8029. * po/LINGUAS: Added nl for Dutch translation.
  8030. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt.
  8031. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl.
  8032. * po/POTFILES.in: Updated.
  8033. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8034. Added the ability to recognize url-list in a torrent file.
  8035. The retrieved URLs are attached to the corresponding FileEntry.
  8036. * src/DefaultBtContext.{h, cc}
  8037. * src/FileEntry.{h, cc}
  8038. * test/DefaultBtContextTest.cc
  8039. 2007-10-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8040. * src/ConsoleStatCalc.cc: Let the user know that aria2 is now seeding
  8041. after the download finishes.
  8042. 2007-10-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8043. * src/Piece.{h, cc}: Added SubPiece infrastructure to track down
  8044. the data smaller than block length.
  8045. A block length can be specified by constructor's argument.
  8046. * src/DefaultPieceStorage.{h, cc} (getMissingPiece):
  8047. Get a missing piece in the range of given FileEntry. This function is
  8048. not used in the program yet.
  8049. * src/Util.h: Added some macros.
  8050. 2007-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8051. Added HTTP/1.1 keep alive and pipelining support.
  8052. See --enable-http-keep-alive and --enable-http-pipelining option.
  8053. * src/AbstractCommand.{h, cc}: Now it has one-to-many relation to
  8054. Segment.
  8055. * src/HttpDownloadCommand.{h, cc}
  8056. * src/OptionHandlerFactory.cc
  8057. * src/HttpConnection.{h, cc}
  8058. * src/version_usage.cc
  8059. * src/HttpInitiateConnectionCommand.cc
  8060. * src/FtpInitiateConnectionCommand.cc
  8061. * src/Segment.h
  8062. * src/HttpRequestCommand.{h, cc}
  8063. * src/option_processing.cc
  8064. * src/prefs.h
  8065. * src/HttpResponseCommand.cc
  8066. * src/SegmentMan.{h, cc}
  8067. * src/FtpNegotiateCommand.cc
  8068. * src/HttpProxyResponseCommand.cc
  8069. * src/Request.cc
  8070. * src/HttpRequest.cc
  8071. * src/DownloadCommand.cc
  8072. * test/HttpRequestTest.cc
  8073. * test/RequestTest.cc
  8074. 2007-10-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8075. * src/ConsoleCalc.cc (calculateStat): Hide SPD after the download
  8076. finished.
  8077. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8078. * src/Metalink2RequestGroup.cc (generate): Throw exception instead of
  8079. catching it inside the method.
  8080. When no file entry is found in a metalink without querying user
  8081. preferences, throw the exception with the error message that suggests
  8082. metalink file is probably broken.
  8083. * src/RequestGroup.cc (postDownloadProcessing): Catch exception here.
  8084. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8085. Fixed the bug that prevents remote Metalink/Torrent file from begin
  8086. processed.
  8087. * src/RequestGroupMan.cc (removeStoppedGroup)
  8088. Added debug message.
  8089. * src/BtPostDownloadHandler.cc
  8090. * src/MetalinkPostDownloadHandler.cc
  8091. * src/PostDownloadHandler.{h, cc}
  8092. * src/RequestGroup.cc
  8093. 2007-10-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8094. * src/Request.cc (parseUrl): Removed unnecessary slashes around dir.
  8095. 2007-10-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8096. * src/MultiUrlRequestInfo.h: Updated the message shown when program
  8097. stops and there are any unfinished or in-progress downloads.
  8098. Added the legend of "stat".
  8099. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8100. Throw exception when chunck checksum verification fails.
  8101. * src/DownloadCommand.cc (validatePieceHash): New function.
  8102. * src/PiecedSegment.{h, cc} (clear): New function.
  8103. * src/GrowSegment.{h, cc} (clear): New function.
  8104. * src/Segment.h (clear): New function.
  8105. * src/SegmentMan.{h, cc} (validatePieceHash): Removed.
  8106. * test/SegmentTest.cc
  8107. * test/GrowSegmentTest.cc
  8108. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8109. Do not send referer when redirected.
  8110. * src/Request.cc (redirectUrl)
  8111. * test/RequestTest.cc
  8112. * test/HttpRequestTest.cc
  8113. 2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8114. Implemented BitTorrent/http/ftp integrated download.
  8115. I've rewritten lots of files and now some headers have forward
  8116. class declarations to reduce compile time.
  8117. The implementation is extremely alpha stage, I recommend to use this
  8118. for testing purpose only.
  8119. 2007-09-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8120. Fixed the compilation error on 64bit platform.
  8121. * test/HttpHeaderProcessorTest.cc
  8122. 2007-09-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8123. Merged Ross's patch that fixes compilation problem in MinGW
  8124. * test/DefaultBtProgressInfoFileTest.cc
  8125. 2007-09-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8126. Updated fr.po by sebone
  8127. * po/fr.po
  8128. Updated man page.
  8129. * doc/aria2c.1.txt
  8130. * Release 0.11.3
  8131. 2007-09-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8132. * src/MetalinkRequestInfo.cc (execute): Fixed BitTorrent download
  8133. failure in Metalink.
  8134. 2007-09-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8135. Automatically save *.aria2 control file of http/ftp download in every
  8136. 60 seconds.
  8137. * src/AutoSaveCommand.{h, cc}: New class.
  8138. * src/TimeBasedCommand.{h, cc}: New class.
  8139. * src/DownloadEngineFactory.cc (newConsoleEngine)
  8140. Disable parameterized URI support by default. Added -P option to
  8141. enable the feature.
  8142. * src/prefs.h: Added PREF_PARAMETERIZED_URI
  8143. * src/OptionHandlerFactory.cc
  8144. * src/main.cc: Also updated usages for -Z and --auto-file-renaming
  8145. Updated Japanese translation.
  8146. * po/ja.po
  8147. Updated man page.
  8148. * doc/aria2c.1.txt
  8149. * Release 0.11.3-rc
  8150. 2007-09-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8151. Now *.aria2 contorol file is first saved to *.aria2__temp and if
  8152. it is successful, then renamed to *.aria2.
  8153. This prevents *.aria2 file from being truncated or corrupted when
  8154. file system becomes out of space.
  8155. * src/DefaultBtProgressInfoFile.cc (save)
  8156. * src/SegmentMan.cc (save)
  8157. * test/DefaultBtProgressInfoFileTest.cc (testSave): Implemented.
  8158. 2007-09-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8159. Reduced the fragmentation of bitfield in http/ftp download.
  8160. * src/BitfieldMan.cc (getSparseMissingUnusedIndex)
  8161. * test/BitfieldManTest.cc
  8162. 2007-08-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8163. Added the ability to disable segmented download in .metalink.
  8164. aria2 can now recognize 'maxconnections' attribute in 'resources' and
  8165. 'url' tag.
  8166. * src/MetalinkEntry.{h, cc}
  8167. * src/RequestResource.{h, cc}
  8168. * src/MetalinkRequestInfo.cc
  8169. * src/Xml2MetalinkProcessor.cc
  8170. * test/Xml2MetalinkProcessorTest.cc
  8171. 2007-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8172. Added parameterized URI support.
  8173. * src/main.cc: -Z option added.
  8174. * src/OptionHandlerFactory.cc
  8175. * src/prefs.h: Added PREF_FORCE_SEQUENTIAL.
  8176. * src/PStringDatum.h: New class.
  8177. * src/PStringSegment.{h,cc}: New class.
  8178. * src/PStringNumLoop.h: New class.
  8179. * src/PStringSelect.h: New class.
  8180. * src/NumberDecorator.h: New class.
  8181. * src/FixedWidthNumberDecorator.h: New class.
  8182. * src/AlphaNumberDecorator.h: New class.
  8183. * src/PStringVisitor.h: New class.
  8184. * src/PStringBuildVisitor.{h,cc}: New class.
  8185. * src/ParameterizedStringParser.{h,cc}: New class.
  8186. * src/Util.{h,cc}
  8187. (isNumber): New function.
  8188. (isLowercase): New function.
  8189. (isUppercase): New function.
  8190. (alphaToNum): New function.
  8191. * test/ParameterizedStringParserTest.cc: New class.
  8192. * test/AlphaNumberDecoratorTest.cc: New class.
  8193. * test/PStringBuildVisitorTest.cc: New class.
  8194. * test/UtilTest.cc
  8195. (testIsNumber): New function.
  8196. (testIsLowercase): New function.
  8197. (testIsUppercase): New function.
  8198. (testAlphaToNum): New function.
  8199. Added '\n' after the error message
  8200. * src/RequestInfo.h (printDownloadAbortMessage)
  8201. Added auto file renaming feature in http(s)/ftp download.
  8202. * src/main.cc: Added --auto-file-renaming command-line option.
  8203. * src/OptionHandlerFactory.cc
  8204. * src/prefs.h: Added PREF_AUTO_FILE_RENAMING
  8205. * src/RequestGroup.{h, cc}
  8206. (shouldCancelDownloadForSafety): Rewritten
  8207. (tryAutoFileRenaming): New function.
  8208. * src/SegmentMan.{h, cc} (shouldCancelDownloadForSafety): Removed.
  8209. * src/HttpResponseCommand.cc
  8210. (executeInternal): Removed the call to RequestGroupMan::
  8211. isSameFileBeingDownloaded()
  8212. * src/FtpNegotiateCommand.cc
  8213. (recvSize): Removed the call to RequestGroupMan::
  8214. isSameFileBeingDownloaded()
  8215. * test/RequestGroupTest.cc: New class.
  8216. 2007-08-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8217. Merged Ross's patch: Removed setmode(). Use _CRT_fmode to enable binary
  8218. IO.
  8219. * src/DefaultBtProgressInfoFile.cc
  8220. * src/MetaFileUtil.cc
  8221. * src/SimpleLogger.cc
  8222. * src/SegmentMan.cc
  8223. * src/Util.cc
  8224. * src/Platform.cc
  8225. 2007-08-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8226. * src/Xml2MetalinkProcessor.cc (getPieceHash): Added missing .c_str().
  8227. 2007-08-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8228. Avoid sparse files if possible, because VFAT32 doesn't support it.
  8229. * src/DefaultDiskWriter.cc (initAndOpenFile)
  8230. Fixed the bug that prevents file allocation is not done when
  8231. dowloading multi-torrent file.
  8232. * src/AbstractDiskWriter.cc (openFile)
  8233. Increase the maximum number of -j option from 15 to 45.
  8234. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8235. Added fr.po, thanks to Charles Landemaine.
  8236. * po/fr.po
  8237. * po/LINGUAS
  8238. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8239. gcc 3.4.4 support:
  8240. * src/DefaultBtContext.cc: int32_t -> int
  8241. * src/main.cc: int -> int32_t, int32_t -> int
  8242. * src/messageDigest.h: uint32_t -> unsigned int
  8243. * src/NameResolver.h: int32_t -> int
  8244. * src/PeerConnection.cc: int -> int32_t
  8245. * src/SpeedCalc.cc: int32_t -> int
  8246. * src/TrackerUpdateCommand.h: int -> int32_t
  8247. * src/Util.cc: int32_t -> int
  8248. * src/Util.h: int32_t -> int
  8249. * src/Xml2MetalinkProcessor.cc: int -> uint32_t, int64_t -> uint64_t
  8250. * test/AnnounceListTest.cc: int -> int32_t
  8251. * test/ChunkedEncodingTest.cc: int -> int32_t
  8252. * test/DataTest.cc: int -> int32_t
  8253. * test/DefaultBtRequestFactoryTest.cc: int -> int32_t
  8254. * test/DefaultPeerListProcessorTest.cc: int -> int32_t
  8255. * test/DefaultPieceStorageTest.cc: int -> int32_t
  8256. * test/FeatureConfigTest.cc: int -> int32_t
  8257. * test/MetalinkEntryTest.cc: int -> int32_t
  8258. * test/MockBtRequestFactory.h: int -> int32_t
  8259. * test/MockPieceStorage.h: int -> int32_t
  8260. * test/OptionTest.cc: int -> int32_t
  8261. * test/RequestTest.cc: int -> int32_t
  8262. * test/SegmentManTest.cc: int -> int32_t
  8263. * test/Xml2MetalinkProcessorTest.cc: int -> int32_t
  8264. 2007-08-10 Ross Smith II <aria2spam at smithii dot com>
  8265. Move sleep functions to Util class:
  8266. * src/Util.cc
  8267. (sleep): New function.
  8268. (usleep): New function.
  8269. * src/DownloadCommand.cc: sleep -> Util::sleep
  8270. * test/TimeSeedCriteriaTest.cc: sleep -> Util::sleep
  8271. MinGW build enhancements. The following files are added:
  8272. * src/timegm.{c,h}
  8273. Changes to support the above new files:
  8274. * configure.ac
  8275. * src/Makefile.am
  8276. * src/a2time.h
  8277. * src/Util.cc:
  8278. * src/strptime.c: Added support for %Z option.
  8279. Fixed MinGW non-blocking bug.
  8280. * src/SocketCore.cc
  8281. * src/HttpRequestCommand.cc
  8282. Miscellenous build fixes/enhancements.
  8283. * configure.ac: Added summary report.
  8284. * src/Platform.h: Tweaked #include's.
  8285. * src/a2netcompat.h: Tweaked #include's.
  8286. * src/strptime.h: Tweaked #include's.
  8287. * src/gai_strerror.c: Tweaked #include's.
  8288. * src/gai_strerror.h: _D_GETADDRINFO_H -> _D_GAI_STRERROR_H
  8289. * src/getaddrinfo.h: Moved #ifndef __MINGW32__
  8290. * src/gettimeofday.h: Added HAVE_CONFIG_H
  8291. 2007-08-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8292. Increased the initial connection size in BitTorrent download to 40.
  8293. * src/BtRuntime.h
  8294. Added the usage message of --peer-id-prefix option.
  8295. * src/main.cc
  8296. * Release 0.11.2
  8297. 2007-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8298. MessageDigestHelper is introduced in order to simplify the use
  8299. of message digest. Removed repeated code.
  8300. The message digest algorithm is now specified by string, like "sha1",
  8301. "md5".
  8302. * src/messageDigest.{h, cc}
  8303. * src/MessageDigestHelper.{h, cc}: New class.
  8304. * src/DefaultPieceStorage.cc
  8305. * src/DefaultBtContext.{h, cc}
  8306. (computeFastSet): New function.
  8307. (setInfoHash): Added for unit testing.
  8308. (setNumPieces): Added for unit testing.
  8309. * src/DefaultBtInteractive.cc
  8310. * src/BtPieceMessage.cc
  8311. * src/Peer.cc
  8312. * src/Checksum.h
  8313. * src/message.h
  8314. * src/IteratableChecksumValidator.h
  8315. * src/ChunkChecksumValidator.{h, cc}: Use IteratableChecksumValidator
  8316. inside it.
  8317. * src/SegmentMan.{h, cc}
  8318. (checkIntegrity): Removed.
  8319. * src/IteratableChunkChecksumValidator.{h, cc}
  8320. * src/Util.h
  8321. (sha1Sum): Removed.
  8322. (simpleMessageDigest): Removed.
  8323. (fileChecksum): Removed.
  8324. (computeFastSet): Removed.
  8325. * src/ShaVisitor.cc
  8326. * src/ChunkChecksum.h
  8327. * src/DownloadCommand.cc
  8328. Removed messageDigest virtual functions.
  8329. * src/MultiDiskAdaptor.{h, cc}
  8330. * src/DiskAdaptor.h
  8331. * src/ByteArrayDiskWriter.h
  8332. * src/DiskWriter.h
  8333. * src/DiskAdaptorWriter.h
  8334. * src/AbstractSingleDiskAdaptor.{h, cc}
  8335. * src/AbstractDiskWriter.{h, cc}
  8336. Fixed comilation error when message digest is disabled.
  8337. * src/MetalinkEntry.{h, cc}
  8338. * src/MetalinkRequestInfo.cc
  8339. Removed srandom and random.
  8340. * src/SimpleRandomizer.h
  8341. Added size() virtual function to DiskAdaptor
  8342. * src/MultiDiskAdaptor.h
  8343. Fixed the bug that causes that files are not opened correctly in
  8344. multi-file torrent.
  8345. * src/TorrentRequestInfo.cc
  8346. * src/MultiDiskAdaptor.cc
  8347. Added SHA256 support
  8348. * src/messageDigest.cc
  8349. * src/Xml2MetalinkProcessor.cc
  8350. Show supported message digest algorithms
  8351. * src/main.cc
  8352. Updated contact info.
  8353. * src/main.cc
  8354. Applied Ross's patch
  8355. * src/a2netcompat.h
  8356. * src/main.cc
  8357. Fixed the bug that prevents a remote metalink from not being processed
  8358. even if '-o foo.metalink' is specified.
  8359. * src/MetalinkRequestInfo.cc
  8360. 2007-08-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8361. Merged Dan's patch:
  8362. * src/ByteArrayDiskWriter.cc: ios_base -> ios
  8363. Use va_copy to avoid core dump on amd64:
  8364. * src/SimpleLogger.cc
  8365. Updated contact info.
  8366. * src/main.cc
  8367. Added #ifdef ENABLE_MESSAGE_DIGEST to fix test errors when message
  8368. digest is not available.
  8369. * src/MetalinkEntry.h
  8370. 2007-08-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8371. Make a2netcompat.h include a2io.h to fix compilation error:
  8372. * src/a2netcompat.h
  8373. * src/SocketCore.cc: Removed include of a2io.h
  8374. * src/Util.cc: Removed include of a2io.h
  8375. Gather time related functions to a2time.h:
  8376. * src/a2time.h: New file.
  8377. * src/DefaultPeerStorage.cc
  8378. * src/SimpleLogger.cc
  8379. * src/Util.{h, cc}
  8380. * src/SimpleRandomizer.h
  8381. * src/TimeA2.{h,cc}
  8382. * src/DownloadCommand.cc
  8383. * src/main.cc
  8384. Removed #ifdef __MINGW32__ since gai_strerror is included in
  8385. a2netcompat.h:
  8386. * src/NameResolver.cc
  8387. Fixed compilation error without openssl:
  8388. * src/SocketCore.{h,cc}: Moved include of openssl/err.h to SocketCore.h
  8389. Added default block to suppress compiler warnings:
  8390. * src/MetalinkRequestInfo.cc (AccumulateNonP2PUrl::operator())
  8391. 2007-07-26 Ross Smith II <aria2spam at smithii dot com>
  8392. MinGW build enhancements. The following files are added:
  8393. * src/gai_strerror.{c,h}
  8394. * src/gettimeofday.{c,h}
  8395. Changes to support the above new files:
  8396. * configure.ac
  8397. * src/Makefile.am
  8398. * src/a2netcompat.h
  8399. * src/TimeA2.cc
  8400. * src/DefaultPeerStorage.cc
  8401. * src/NameResolver.cc: removed mingw_strerror() function.
  8402. * src/SocketCore.cc: removed mingw_strerror() function.
  8403. Miscellaneous MinGW build fixes.
  8404. * src/a2io.h: Use _lseeki64() instead of lseek()
  8405. * src/common.h
  8406. * src/DefaultFileAllocator.cc
  8407. * src/GlowFileAllocator.cc
  8408. * src/main.cc: Moved #include "prefs.h" to quiet compile error.
  8409. * src/NameResolver.cc
  8410. (callback): Changed int32_t to int.
  8411. (resolve): Changed int32_t to int.
  8412. * src/Platform.cc
  8413. * src/Platform.h
  8414. * test/MultiDiskWriterTest.cc
  8415. * test/PeerMessageUtilTest.cc
  8416. * src/localtime_r.c: Add DeleteCriticalSection() and at exit().
  8417. Other enhancements and fixes.
  8418. * src/HttpRequestCommand.cc
  8419. (executeInternal) Use non-blocking socket for HTTPS (MinGW only).
  8420. * src/SocketCore.cc:
  8421. (error): New function to abstract errno/WSAGetLastError().
  8422. (errorMsg): New function to abstract errno/WSAGetLastError().
  8423. (initiateSecureConnection): Added more detailed error reporting.
  8424. * src/SocketCore.h: Added private variable blocking, to allow
  8425. proper handling of OpenSSL psuedo-errors.
  8426. * src/message.h
  8427. (EX_SSL_INIT_FAILURE)
  8428. (EX_SSL_IO_ERROR)
  8429. (EX_SSL_PROTOCOL_ERROR)
  8430. (EX_SSL_UNKNOWN_ERROR)
  8431. (EX_SSL_CONNECT_ERROR)
  8432. (EX_SOCKET_BLOCKING)
  8433. (EX_SOCKET_NONBLOCKING)
  8434. (EX_SOCKET_UNKNOWN_ERROR)
  8435. * src/Util.cc
  8436. (setGlobalSignalHandler): Renamed signal to sig as signal is a
  8437. reserved name.
  8438. (httpGMT): Fixed typo.
  8439. 2007-07-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8440. Merged Ross's win32 patch(manually)
  8441. In the course of merging, following files are added.
  8442. * src/strptime.{h,c}
  8443. * src/libgen.{h,c}
  8444. * src/inet_aton.{h,c}
  8445. * src/Platform.{h,cc}
  8446. * src/localtime_r.{h,c}
  8447. * src/getaddrinfo.{h,c}
  8448. I've gethered network related things, and put them to following file:
  8449. * src/a2netcompat.h
  8450. Also io related things are put to following file:
  8451. * src/a2io.h
  8452. Changed %lld to %s because mingw32 doesn't recognize %lld.
  8453. * src/message.h
  8454. (MSG_ALLOCATION_COMPLETED)
  8455. (EX_TOO_LARGE_FILE)
  8456. (EX_SIZE_MISMATCH)
  8457. (EX_FILE_OFFSET_OUT_OF_RANGE)
  8458. (EX_INVALID_CHUNK_CHECKSUM)
  8459. (EX_INVALID_RANGE_HEADER)
  8460. * src/FileAllocationCommand.cc
  8461. * src/HttpResponse.cc
  8462. * src/RequestGroup.cc
  8463. * src/MultiDiskAdaptor.cc
  8464. * src/OptionHandlerImpl.h
  8465. * src/HttpResponseCommand.cc
  8466. * src/FtpNegotiateCommand.cc
  8467. * src/IteratableChecksumValidator.cc
  8468. * src/SegmentMan.cc
  8469. * src/ChunkChecksumValidator.cc
  8470. Added Randomizer::getRandomNumber(long int)
  8471. * src/Randomizer.h (getRandomNumber)
  8472. * src/SimpleRandomizer.h (getRandomNumber)
  8473. * src/BitfieldMan.cc (getMissingIndexRandomly): Use this new function.
  8474. * src/Util.cc (randomAlpha): Use this new function.
  8475. 2007-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8476. Converted int's to in32_t. long long int's are also converted to
  8477. int64_t
  8478. 2007-07-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8479. Fixed the bug that prevents cookies from being sent to the server
  8480. if the domain of cookie is FQDN and starts with ".".
  8481. * src/Cookie.cc (match)
  8482. To add the ability to change peer id.
  8483. * src/DefaultBtContext.h
  8484. (_peerIdPrefix): New variable
  8485. (setPeerIdPrefix): New function.
  8486. * src/torrentRequestInfo.cc
  8487. (execute): Set the option value of PREF_PEER_ID_PREFIX to
  8488. DefaultBtContext.
  8489. * src/main.cc (main): Added peer-id-prefix command-line option.
  8490. The usage message is not added yet.
  8491. * src/DefaultBtContext.cc
  8492. (generatePeerId): Use _peerIdPrefix.
  8493. * src/prefs.h (PREF_PEER_ID_PREFIX): New definition.
  8494. 2007-07-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8495. Fixed the bug that prevents filename in content-disposition from
  8496. being retrieved when filename is not quoted.
  8497. * src/Util.cc (getContentDispositionFilename)
  8498. Fixed the bug that causes infinate loop and memory leak when file open
  8499. operation failed.
  8500. * src/HttpResponseCommand.cc (handleDefaultEncoding)
  8501. 2007-07-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8502. Fixed the bug that causes segfault when all URIs specified are
  8503. unsupported.
  8504. * src/RequestGroupMan.cc (getInitialCommands)
  8505. Check if RequestGroup::createNextCommand() returns empty list of
  8506. commands.
  8507. * src/RequestGroup.cc (createNextCommand)
  8508. Change log level from info to error so that users can notice that
  8509. an error occurred.
  8510. Fixed the bug that causes segfault when a zero-sized file is
  8511. downloaded.
  8512. * src/BitfieldMan.cc (isAllBitSet)
  8513. Return true if bitfieldLength is 0.
  8514. 2007-07-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8515. * src/main.cc
  8516. (showUsage): Added 3 usage examples for metalink download.
  8517. Replace MetalinkChunkChecksum with ChunkChecksum.
  8518. * src/MetalinkChunkChecksum.h: Removed.
  8519. * src/MetalinkEntry.h: MetalinkChunkChecksum -> ChunkChecksum.
  8520. * src/Xml2MetalinkProcessor.h: MetalinkChunkChecksum -> ChunkChecksum.
  8521. * src/Xml2MetalinkProcessor.cc
  8522. (getPieceHash): Use ChunkChecksum instead of MetalinkChunkChecksum.
  8523. * src/MetalinkRequestInfo.cc (execute)
  8524. * Release 0.11.1
  8525. 2007-07-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8526. Reads URIs from stdin when "-i -" is specified.
  8527. * src/UriFileListParser.h, src/UriFileListParser.cc: Removed.
  8528. * src/UriListParser.h, src/UriListParser.cc: New class.
  8529. * src/StreamUriListParser.h: New class.
  8530. * src/FileUriListParser.h: New class.
  8531. * src/main.cc (main): Use StreamUriListParser and FileUriListParser
  8532. instead of UriFileListParser.
  8533. 2007-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8534. Made console readout more readable.
  8535. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8536. 2007-07-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8537. Fix the bug that causes -s option not to work.
  8538. * src/main.cc (main)
  8539. * src/a2algo.h: New file.
  8540. 2007-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8541. Create directory structure specified in metalink file.
  8542. * src/RequestGroup.h, src/RequestGroup.cc
  8543. (initAndOpenFile): Create a directory to store files if it does not
  8544. exist.
  8545. (getDir): New function.
  8546. Added ETA and download speed for an individual file to readout.
  8547. * src/ConsoleDownloadEngine.cc (sendStatistics)
  8548. * src/RequestGroup.h
  8549. (calculateDownloadSpeed): New function.
  8550. 2007-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8551. Made -S option work with metalink file and provided selective download
  8552. to metalink.
  8553. * src/MetalinkEntry.h, src/MetalinkEntry.cc
  8554. (filename): Removed.
  8555. (file): New variable.
  8556. (size): Removed.
  8557. (operator=): Updated.
  8558. (getPath): New function.
  8559. (getLength): New function.
  8560. (toFileEntry): New function.
  8561. * src/TorrentRequestInfo.h, src/TorrentRequestInfo.cc
  8562. (execute): Use toStream.
  8563. (showFileEntry): Removed.
  8564. * src/MetalinkRequestInfo.h
  8565. (targetFiles): New variable.
  8566. (setTargetFiles): New variable.
  8567. * src/MetalinkRequestInfo.cc
  8568. (execute): Added the ability to print file information included in
  8569. a metalink file.
  8570. Added selective download mode to metalink.
  8571. * src/main.cc
  8572. (showUsage): Updated to denote that -S and --select-file options are
  8573. applicable to metalink.
  8574. * src/FileEntry.h
  8575. (operator=): New function.
  8576. (getBasename): New function.
  8577. (getDirname): New function.
  8578. * src/Util.h, src/Util.cc
  8579. (toStream): New function.
  8580. * src/Xml2MetalinkProcessor.cc: Updated.
  8581. Made aria2 work with metalink with directory structure.
  8582. * src/File.h, src/File.cc
  8583. (getBasename): New function.
  8584. (getDirname): New function.
  8585. * src/RequestGroup.h, src/RequestGroup.cc
  8586. (_topDir): New variable.
  8587. (setTopDir): New function.
  8588. (initSegmentMan): A directory structure is added to _segmentMan->dir.
  8589. Rewrote HTTP header parsing with stringstream.
  8590. * src/HttpConnection.h, src/HttpConnection.cc
  8591. (HttpRequestEntry): New class.
  8592. (headerBuf): Removed.
  8593. (headerBufLength): Removed.
  8594. (outstandingHttpRequests): Now its element type is
  8595. HttpRequestEntryHandle.
  8596. (findEndOfHeader): Removed.
  8597. (receiveResponse): Rewritten.
  8598. * src/HttpHeaderProcessor.h, src/HttpHeaderProcessor.cc: New class.
  8599. Updated doc for -j option to notice that it should be used with -i
  8600. option.
  8601. * src/main.cc (showUsage)
  8602. Removed unused classes.
  8603. * src/RequestInfo.h
  8604. (FileInfo): Removed.
  8605. (checksum): Removed.
  8606. (fileInfo): Removed.
  8607. (setChecksum): Removed.
  8608. (getChecksum): Removed.
  8609. (getFileInfo): Removed.
  8610. Use ISO units.
  8611. * src/ConsoleDownloadEngine.cc
  8612. * src/TorrentConsoleDownloadEngine.cc
  8613. * src/Util.cc (abbrevSize)
  8614. 2007-06-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8615. Added the default listening ports to the help message.
  8616. * src/main.cc (showUsage)
  8617. 2007-06-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8618. Reduce the number of calls to gettimeofday to lower CPU load.
  8619. * src/TimeA2.h, src/TimeA2.cc (differenceInMillis): New function.
  8620. * src/SpeedCalc.h, src/SpeedCalc.cc (calculateSpeed): New function.
  8621. * src/Peer.h (calculateUploadSpeed): New function.
  8622. (calculateDownloadSpeed): New function.
  8623. * src/DefaultPeerStorage.cc
  8624. (CalculateStat): Added _now variable.
  8625. In operator(), call Peer::calculateDownloadSpeed(const struct timeval&)
  8626. and Peer::calculateUploadSpeed(const struct timeval&)
  8627. Drop connection if no request or piece message is exchanged in
  8628. a certain interval.
  8629. * src/DefaultBtInteractive.h
  8630. (btRuntime): New variable.
  8631. (inactiveCheckPoint): New variable.
  8632. (checkActiveInteraction): New function.
  8633. * src/DefaultBtInteractive.cc (receiveMessages): Reset timer when
  8634. request or piece message is received.
  8635. (checkActiveInteraction): New function.
  8636. (doInteractionProcessing): Call checkActiveInteraction.
  8637. Fixed the bug that causes remote Metalink and Torrent files are not
  8638. processed.
  8639. * src/MultiUrlRequestInfo.cc (createNextRequestInfo): Fixed the bug.
  8640. 2007-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8641. Changed format of log file.
  8642. * src/SimpleLogger.cc
  8643. * Release 0.11.0
  8644. 2007-06-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8645. * src/AbstractCommand.cc
  8646. (execute): Changed log level of MSG_RESTARTING_DOWNLOAD and
  8647. MSG_MAX_TRY from error to info.
  8648. Added MSG_DOWNLOAD_ABORTED after MSG_MAX_TRY.
  8649. * src/message.h
  8650. (MSG_TORRENT_DOWNLOAD_ABORTED): New definition.
  8651. (MSG_DOWNLOAD_ABORTED): Added %s.
  8652. (MSG_RESTARTING_DOWNLOAD): Added %s.
  8653. (MSG_DOWNLOAD_ALREADY_COMPLETED): Updated.
  8654. * src/PeerAbstractCommand.cc
  8655. (execute): MSG_DOWNLOAD_ABORTED -> MSG_TORRENT_DOWNLOAD_ABORTED
  8656. * src/Request.h
  8657. (cookieBox): Made ShardHandle.
  8658. * src/RequestGroup.h, src/RequestGroup.cc
  8659. (createNextCommandWithAdj): New function.
  8660. * src/FileAllocationCommand.cc
  8661. (executeInternal): Use createNextCommandWithAdj().
  8662. * src/CheckIntegrityCommand.cc
  8663. (executeInternal): Use createNextCommandWithAdj().
  8664. Added --load-cookies command-option.
  8665. * src/OptionHandlerFactory.cc
  8666. (createOptionHandlers): Added PREF_LOAD_COOKIES.
  8667. * src/CookieBox.h, src/CookieBox.cc: Rwritten using CookieParser.
  8668. Now aria2 can handle cookie's expiration date.
  8669. * src/Cookie.h (expires): Changed its type to time_t.
  8670. * src/main.cc: Added --load-cookies command-line option.
  8671. * src/prefs.h (PREF_LOAD_COOKIES): New definition.
  8672. * src/Util.h, src/Util.cc (httpGMT): New function.
  8673. * src/Request.cc (Request): Initialize cookieBox using
  8674. CookieBoxFactory.
  8675. * src/CookieBoxFactory.h, src/CookieBoxFactory.cc: New class.
  8676. * src/CookieParser.h, src/CookieParser.cc: New class.
  8677. * src/main.cc: Chagned the default value of --metalink-servers to 5.
  8678. * src/HttpResponseCommand.cc
  8679. (handleOtherEncoding): Call RequestGroup::shouldCancelDownloadForSafety
  8680. * src/MetalinkRequestInfo.cc: Now -s option is ignored in Metalink
  8681. download.
  8682. 2007-06-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8683. Added -j command-line option.
  8684. * src/OptionHandlerFactory.cc (createOptionHandlers)
  8685. * src/main.cc
  8686. * src/ByteArrayDiskWriter.h, src/ByteArrayDiskWriter.cc
  8687. Rewritten using stringstream.
  8688. * src/TrackerUpdateCommand.h, src/TrackerUpdateCommand.cc
  8689. Rewritten using stringstream.
  8690. 2007-06-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8691. Make download size shown in MB, KB.
  8692. * src/ConsoleDownloadEngine.h (sendStatistics)
  8693. * src/Util.h, srcUtil.cc (abbrevSize): New function.
  8694. 2007-06-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8695. Accept incoming connections if download rate is low.
  8696. * src/PeerListenCommand.h, src/PeerListenCommand.cc:
  8697. (_lowestSpeedLimit): New variable.
  8698. (setLowestSpeedLimit): New function.
  8699. (execute): Accept incoming connections if download rate is low.
  8700. MAX_PEERS is ignored in this case.
  8701. Disable PREF_OUT in multiple concurrent download:
  8702. * src/RequestGroup.h, src/RequestGroup.cc
  8703. (setUserDefinedFilename): New function.
  8704. * src/DownloadEngineFactory.cc
  8705. (newConsoleEngine): Do not set PREF_OUT to requestGroup in multiple
  8706. concurrent download.
  8707. * src/DefaultSegmentManFactory.cc
  8708. (createNewInstance): Comment out the line: segmentMan->ufilename = ...
  8709. 2007-06-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8710. RequestGroup::getNextCommand() was renamed to createNextCommand().
  8711. Added its overloaded method.
  8712. * src/RequestGroup.h
  8713. (_numConcurrentCommand): New variable.
  8714. (setNumConcurrentCommand): New function.
  8715. * src/RequestGroup.cc
  8716. Abort download if same file is being downloaded concurrently.
  8717. * src/RequestGroup.h, src/RequestGroupMan.cc
  8718. (isSameFileBeingDownloaded): New function.
  8719. * src/HttpResponseCommand.cc (executeInternal)
  8720. * src/FtpNegotiateCommand.cc (recvSize)
  8721. * src/message.h (EX_DUPLICATE_FILE_DOWNLOAD): New definition.
  8722. * main.cc: Added help message for -i option.
  8723. 2007-06-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8724. * src/FileAllocationCommand.cc: Derived from RealtimeCommand.
  8725. * src/CheckIntegrityCommand.cc: Derived from RealtimeCommand.
  8726. * src/MetalinkEntry.h
  8727. (checksum): Changed to ChecksumHandle
  8728. * src/MetalinkRequestInfo.cc
  8729. (checksum): Changed to ChecksumHandle
  8730. * src/File.cc
  8731. (mkdirs): OPEN_MODE -> DIR_OPEN_MODE
  8732. * src/common.h
  8733. (DIR_OPEN_MODE): New definition
  8734. * src/RequestGroup.cc
  8735. (prepareForNextAction): Added an argument.
  8736. * src/message.h
  8737. (MSG_GOOD_CHECKSUM): New definition
  8738. (MSG_BAD_CHECKSUM): New definition
  8739. * src/HttpResponseCommand.cc
  8740. (handleDefaultEncoding): Continue download sequence in new
  8741. non-segmented download.
  8742. * src/FileAllocationEntry.h
  8743. (_nextDownloadCommand): New variable.
  8744. * src/DownloadCommand.cc
  8745. (prepareForNextSegment): Create ChecksumCommand if checksum is
  8746. available.
  8747. * src/RealtimeCommand.h, src/RealtimeCommand.cc: New class.
  8748. * src/IteratableChecksumValidator.h,
  8749. src/IteratableChecksumValidator.cc: New class.
  8750. * src/ChecksumCommand.h, src/ChecksumCommand.cc: New class.
  8751. 2007-05-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8752. Change file mode to 666:
  8753. * src/common.h (OPEN_MODE): New definition.
  8754. * src/File.cc
  8755. * src/Util.cc
  8756. * src/Directry.cc
  8757. * src/AbstractDiskWriter.cc
  8758. Change the level of log message "download aborted" to debug:
  8759. * src/PeerAbstractCommand.cc (execute)
  8760. * src/RequestGroup.h (RequestGroup): Initialized _hintTotalLength to 0.
  8761. * src/TrackerWatcherCommand.cc
  8762. (createCommand): Sleep some seconds after request failed.
  8763. If tracker request fails more than value of PREF_TRACKER_MAX_TRIES,
  8764. then abort tracker request.
  8765. 2007-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8766. * Added the simultaneous download feature.
  8767. * src/main.cc: Print "Exception caught: " when exception is caught.
  8768. Use CUIDCounter instead of BtRuntime::getNewCuid():
  8769. * src/ActivePeerConnectionCommand.cc
  8770. * src/PeerInteractionCommand.cc
  8771. * src/BtRuntime.h
  8772. (cuidCounter): Removed.
  8773. (getNewCuid): Removed.
  8774. * src/DownloadEngineFactory.cc
  8775. * src/PeerListenCommand.cc
  8776. * src/TrackerUpdateCommand.cc
  8777. * src/PeerInitiateConnectionCommand.cc
  8778. 2007-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8779. * src/PeerAbstractCommand.cc
  8780. (onAbort): Call PeerStorage::returnPeer()
  8781. * src/DefaultPeerStorage.h, src/DefaultPeerStorage.cc
  8782. (incomingPeers): New variable.
  8783. (addIncomingPeer): New function.
  8784. (returnPeer): New function.
  8785. (onErasingPeer): New function.
  8786. (addPeer): push_back -> push_front
  8787. (getActivePeers): Rewritten.
  8788. (calculateStat): Rewritten.
  8789. * src/PeerStorage.h
  8790. (TransferStat::copy): New function.
  8791. (TransferStat::TransferStat): New function.
  8792. (TransferStat::operator=): New function.
  8793. (addIncomingPeer): New function.
  8794. (returnPeer): New function.
  8795. * src/PeerListenCommand.cc
  8796. (execute): Use PeerStorage::addIncomingPeer() instead of
  8797. Peer::addPeer().
  8798. 2007-04-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8799. Connect to a peer actively when download speed is lower than specified
  8800. speed in torrent download:
  8801. * src/ActivePeerConnectionCommand.h: New class.
  8802. 2007-03-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8803. * src/HttpRequest.cc (createRequest): url-encode user-agent
  8804. * src/main.cc: Fixed the bug that prevents download if .netrc
  8805. doesn't exist.
  8806. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8807. To cache resolved hostname:
  8808. * src/AbstractCommand.h, src/AbstractCommand.cc
  8809. (resolveHostname): Put outside #ifdef ENABLE_ASYNC_DNS clause.
  8810. Added dns cache.
  8811. * src/FtpInitiateConnectionCommand.cc
  8812. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS.
  8813. * src/NameResolver.h, src/NameResolver.cc: Added synchronized
  8814. NameResolver working without ares.
  8815. * src/TorrentRequestInfo.cc
  8816. (execute): Don't cache dns in torrent download.
  8817. * src/HttpInitiateConnectionCommand.cc
  8818. (executeInternal): Removed #ifdef ENABLE_ASYNC_DNS
  8819. * src/DNSCache.h: New class.
  8820. * src/UrlRequestInfo.cc
  8821. (execute): Use dns cache.
  8822. In http request, suppress port number in http request header if port
  8823. is 80 or 443:
  8824. * src/HttpRequest.cc (getHostText): Suppress port number in http
  8825. request header if port is 80 or 443.
  8826. (createProxyRequest): Allways send port number.
  8827. 2007-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8828. To add the command-line option which disables netrc support:
  8829. * src/OptionHandlerFactory.cc
  8830. (createOptionHandlers): Added PREF_NO_NETRC.
  8831. * src/main.cc: Added -n option.
  8832. * src/prefs.h (PREF_NO_NETRC): New definition.
  8833. * src/RequestFactory.cc: Do not use netrc in ftp if PREF_NO_NETRC is
  8834. V_TRUE.
  8835. Note that netrc is not used in http, http proxy even if PREF_NO_NETRC
  8836. is V_FALSE. This may get configurable in the future release.
  8837. To clear peer's error status by time basis:
  8838. * src/PeerAbstractCommand.cc
  8839. (onAbort): Call Peer::startBadCondition().
  8840. * src/Peer.h, src/Peer.cc
  8841. (error): Removed.
  8842. (_badConditionStartTime): New variable.
  8843. (_badConditionInterval): New variable. Initialized to 10 seconds.
  8844. (startBadCondition): New function.
  8845. (isGood): New function.
  8846. * src/DefaultPeerStorage.cc
  8847. (addPeer): Use Peer::isGood().
  8848. (FindFinePeer): Use Peer::isGood().
  8849. Always include port number in http request header:
  8850. * src/HttpRequest.cc (getHostText): Always include port number in
  8851. http request header.
  8852. 2007-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8853. To the ability to read options from a config file:
  8854. * src/main.cc: Command-line parameter validation is delegated to
  8855. OptionHandler class.
  8856. * src/OptionHandlerFactory.h, src/OptionHandlerFactory.cc: New class.
  8857. * src/Option.h, src/Option.cc (clear): New function.
  8858. * src/OptionParser.h, src/OptionParser.cc: New class.
  8859. * src/OptionHandler.h: New class.
  8860. * src/NameMatchOptionHandler.h: New class.
  8861. * src/OptionHandlerImpl.h: New classes.
  8862. * src/prefs.h: '_' -> '-'
  8863. (FTP_PASV_ENABLED): Renamed to FTP_PASV.
  8864. (FTP_PASV): New definition.
  8865. * src/Util.h, src/Util.cc (getRealSize): New function.
  8866. To disable netrc support if .netrc file does not have correct
  8867. permissions:
  8868. * src/File.h, src/File.cc (mode): New function.
  8869. To prevent confidential information to be logged:
  8870. * src/HttpConnection.h, src/HttpConnection.cc
  8871. (eraseConfidentialInfo): New function.
  8872. (sendRequest): Call eraseConfidentialInfo().
  8873. (sendProxyRequest): Call eraseConfidentialInfo().
  8874. * src/main.cc: Validate permissions of .netrc file.
  8875. To add --user-agent command-line option:
  8876. * src/main.cc: Added new command line option: --user-agent
  8877. * src/prefs.h (PREF_USER_AGENT): New definition.
  8878. * src/HttpRequestCommand.cc (executeInternal): Set user-agent option
  8879. parameter to HttpRequest object.
  8880. * src/AbstractProxyRequestCommand.cc
  8881. (executeInternal): Set user-agent option parameter to HttpRequest
  8882. object.
  8883. Marged the patches from Dan Fandrich.
  8884. 2007-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8885. Use filename and size from Metalink file instead of sending HEAD
  8886. request:
  8887. * src/UrlRequestInfo.h
  8888. (_filename): New variable.
  8889. (_totalLength): New variable.
  8890. (setTotalLength): New variable.
  8891. (setFilename): New variable.
  8892. * src/MetalinkRequestInfo.cc
  8893. (execute): Set filename and size to UrlRequestInfo
  8894. * src/UrlRequestInfo.cc
  8895. (execute): Use filename and size from Metalink instead of seding
  8896. HEAD request to servers.
  8897. 2007-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8898. To add the ability to resume downloading a partially downloaded file
  8899. which is downloaded from the beginning:
  8900. * src/FileAllocator.h: Made abstract class. New DefaultFileAllocator
  8901. takes this role.
  8902. * src/main.cc: Added -c option.
  8903. * src/BitfieldMan.h, src/BitfieldMan.cc (setBitRange): New function.
  8904. * src/DiskWriter.h (openExistingFile): Added totalLength argument.
  8905. * src/prefs.h (PREF_CONTINUE): New definition.
  8906. * src/SegmentMan.h, src/SegmentMan.cc (markPieceDone): New function.
  8907. * src/DefaultDiskWriter.cc
  8908. (createNewDiskWriter): Add GlowFileAllocator to the new object.
  8909. * src/AbstractDiskWriter.h
  8910. (glowFileAllocator): New variable.
  8911. * src/AbstractDiskWriter.cc
  8912. (openExistingFile): Now preallocate file space from the end of the
  8913. existing file if totalLength argument is specified and grater than 0.
  8914. * src/UrlRequestInfo.cc: If -c option is specified and the file
  8915. to download exists in local, continue the download of the file.
  8916. --allow-overwrite=true is assumed in this context.
  8917. * src/DefaultFileAllocator.h, src/DefaultFileAllocator.cc: New class.
  8918. * src/GlowFileAllocator.h, src/GlowFileAllocator.cc: New class.
  8919. Throw exception if --check-integrity=true is specified but chunk
  8920. checksums are not provided:
  8921. * src/UrlRequestInfo.cc
  8922. Do not print URLs to stdout:
  8923. * src/UrlRequestInfo.cc
  8924. 2007-03-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8925. * src/Request.h: Use AuthResolver to get authentication information.
  8926. * src/main.cc: Made RequestFactory a singleton object. Netrc is now
  8927. set to RequestFactory object.
  8928. * src/AuthConfigItem.h, src/AuthConfigItem.cc: Removed.
  8929. * src/AuthConfig.h, src/AuthConfig.cc: Rewritten.
  8930. * src/TrackerWatcherComand.cc: Use RequestFactorySingletonHolder to
  8931. create Request object.
  8932. 2007-03-19 Tatsuhiro Tsujikawa <tujikawa at valkyrie dot rednoah com>
  8933. To integrate Netrc into exsiting classes:
  8934. * src/Request.h
  8935. (_userDefinedAuthConfig): New variable.
  8936. (findNetrcAuthenticator): New function.
  8937. (segment): Removed.
  8938. (setUserDefinedAuthConfig): New function.
  8939. (resolveHttpAuthConfigItem): New function.
  8940. (resolveFtpAuthConfigItem): New function.
  8941. (resolveHttpProxyAuthConfigItem): New function.
  8942. * src/HttpRequest.h
  8943. (authConfig): Removed.
  8944. (proxyAuthConfig): Removed.
  8945. (setAuthConfig): Removed.
  8946. (setProxyAuthConfig): Removed.
  8947. * src/UrlRequest.h
  8948. (getHeadResult): Added a parameter: authConfigHandle
  8949. * src/common.h
  8950. (SingletonHolder.h): New include.
  8951. * src/main.cc
  8952. (Netrc.h): New include.
  8953. (main): Removed initial values of PREF_FTP_USER, PREF_FTP_PASSWD.
  8954. Added initial value of PREF_NETRC_PATH.
  8955. Added the initialization of netrc.
  8956. * src/AuthConfig.h: New class.
  8957. * src/prefs.h
  8958. (PREF_NETRC_PATH): New definition.
  8959. * src/HttpAuthConfig.h: Removed.
  8960. * src/Netrc.cc
  8961. (getRequiredNextToken): New function.
  8962. (skipMacdef): New function.
  8963. (parse): Rewritten.
  8964. * src/Netrc.h
  8965. (getRequiredNextToken): New function.
  8966. (skipMacdef): New function.
  8967. * src/Util.h, src/Util.cc
  8968. (getHomeDir): New function.
  8969. * src/TrackerWatcherComand.cc
  8970. (createRequestCommand): Use AuthConfig.
  8971. * src/FtpConnection.cc
  8972. (sendUser): Use Request::resolveFtpAuthConfigItem().
  8973. (sendPass): Use Request::resolveFtpAuthConfigItem().
  8974. * src/Request.cc
  8975. (findNetrcAuthenticator): New function.
  8976. (resolveHttpAuthConfigItem): New function.
  8977. (resolveFtpAuthConfigItem): New function.
  8978. (resolveHttpProxyAuthConfigItem): New function.
  8979. * src/UrlRequestInfo.cc: Use AuthConfig.
  8980. * src/HttpRequest.cc
  8981. (createRequest): Use authConfig.
  8982. (getProxyAuthString): Use authConfig.
  8983. (configure): Removed PREF_HTTP_USER, PREF_HTTP_PASSWD,
  8984. PREF_HTTP_PROXY_USER, PREF_HTTP_PROXY_PASSWD.
  8985. 2007-03-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  8986. To reduce overhead to find commands whose socket is either
  8987. readable or writable in the download engine loop:
  8988. * src/Command.h, src/Command.cc
  8989. (STATUS): New enum.
  8990. (status): New variable.
  8991. (statusMatch): New function.
  8992. (setStatusActive): New function.
  8993. (setStatusInactive): New function.
  8994. * src/DownloadEngine.h, src/DownloadEngine.cc
  8995. (executeCommand): New function.
  8996. (run): Simplified.
  8997. (waitData): Call Command::setStatusActive() when command's socket is
  8998. readable or writable.
  8999. 2007-03-15 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9000. To handle Segment as SegmentHandle:
  9001. * src/AbstractCommand.cc (execute): Rewritten.
  9002. * src/SegmentMan.h: Segment -> SegmentHandle
  9003. Introducded HttpResponse class, HttpRequest class to improve code
  9004. extensiveness and make it clear:
  9005. * src/HttpDownloadCommand.cc: transfer encoders are now managed by
  9006. HttpResponse class.
  9007. * src/HttpRequest.h, src/HttpRequest.cc: New class.
  9008. * src/HttpResponse.h, src/HttpResponse.cc: New class.
  9009. * src/HttpConnection.cc: Contruction of http request were moved to
  9010. HttpRequest class.
  9011. * src/HttpResponseCommand.h, src/HttpResponseCommand.cc: Refactored.
  9012. * src/HttpRequestCommand.cc (executeInternal): Rewritten.
  9013. * src/HttpAuthConfig.h: New class.
  9014. * src/Range.h: New class.
  9015. To make FtpTunnel{Request, Response}Command and
  9016. HttpProxy{Request, Response}Command derived from
  9017. AbstractProxy{Request, Response}Command:
  9018. * src/FtpTunnelResponseCommand.h, src/FtpTunnelResponseCommand.cc:
  9019. Derived from AbstractProxyRequestCommand class.
  9020. * src/FtpTunnelRequestCommand.h, src/FtpTunnelRequestCommand.cc:
  9021. Derived from AbstractProxyResponseCommand class.
  9022. * src/HttpProxyRequestCommand.h, src/HttpProxyRequestCommand.cc:
  9023. Derived from AbstractProxyRequestCommand class.
  9024. * src/HttpProxyResponseCommand.h, src/HttpProxyResponseCommand.cc:
  9025. Derived from AbstractProxyResponseCommand class.
  9026. * src/AbstractProxyRequestCommand.h, src/AbstractProxyRequestCommand.cc
  9027. : New class.
  9028. * src/AbstractProxyResponseCommand.h,
  9029. src/AbstractProxyResponseCommand.cc: New class.
  9030. To add netrc support:
  9031. * src/Netrc.h, src/Netrc.cc: New class.
  9032. * src/Util.h, src/Util.cc (split): New function.
  9033. * src/HttpHeader.cc (getRange): Fixed so that it inspects
  9034. "Content-Range" header instead of "Range" header.
  9035. * src/HttpHeader.h
  9036. (getStatus): Removed.
  9037. (setStatus): Removed.
  9038. * src/Segment.h
  9039. (getPositionToWrite): New function.
  9040. 2007-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9041. * src/HttpHeader.h
  9042. (Range.h): New include.
  9043. (status): New variable.
  9044. (HttpHeader): Initialized status with 0.
  9045. (getStatus): New function.
  9046. (setStatus): New function.
  9047. (getRange): New function.
  9048. (HttpHeaderHandle): New function.
  9049. * src/HttpHeader.cc
  9050. (getRange): New function.
  9051. * src/Request.h
  9052. (RequestWeakHandle): New definition.
  9053. * src/HttpConnection.h
  9054. (HttpConnectionHandle): New type definition.
  9055. * src/HttpConnection.cc
  9056. (receiveResponse): Set HTTP status to headers.
  9057. * src/main.cc
  9058. (showUsage): Fixed typo.
  9059. * src/Segment.h
  9060. (SegmentHandle): New type definition.
  9061. * src/BitfieldMan.h
  9062. (getMissingUnusedLength): New function.
  9063. * src/BitfieldMan.cc
  9064. (getMissingUnusedLength): New function.
  9065. 2007-02-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9066. To fix static initialization order problem:
  9067. * src/BitfieldManFactory.h
  9068. (defaultRandomizer): Removed.
  9069. (factory): New variable.
  9070. (getNewFactory): Removed.
  9071. (getFactoryInstance): New function.
  9072. (setDefaultRandomizer): Rewritten.
  9073. (getDefaultRandomizer): Rewritten.
  9074. * src/BitfieldManFactory.cc
  9075. (defaultRandomizer): Removed.
  9076. (factory): Initialized to 0.
  9077. (BitfieldManFactory): Initialized randomizer to 0.
  9078. * src/DefaultPieceStorage.cc
  9079. (DefaultPieceStorage): getNewFactory() -> getFactoryInstance()
  9080. * src/Peer.cc
  9081. (Peer): getNewFactory() -> getFactoryInstance()
  9082. * src/SegmentMan.cc
  9083. (initBitfield): getNewFactory() -> getFactoryInstance()
  9084. * src/Piece.cc
  9085. (Piece): getNewFactory() -> getFactoryInstance()
  9086. 2007-02-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9087. To fix the bug that causes crash on Max OS X:
  9088. * src/SimpleRandomizer.h
  9089. (getInstance): Create new instance if the static variable is null.
  9090. * src/SimpleRandomizer.cc
  9091. (randomizer): Initialized to 0.
  9092. * src/BitfieldManFactory.h
  9093. (getNewFactory): Removed the call to setRandomizer().
  9094. To fix the miscalculation of the range of checksum:
  9095. * src/BitfieldMan.h
  9096. (isBitSetOffsetRange): New function.
  9097. * src/BitfieldMan.cc
  9098. (isBitSetOffsetRange): New function.
  9099. * src/SegmentMan.cc
  9100. (tryChunkChecksumValidation): Use BitfieldMan::isBitSetOffsetRange().
  9101. Use bitfield->getBlockLength() instead of segment.segmentLength.
  9102. * Release 0.10.1
  9103. 2007-02-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9104. To lower CPU usage in BitTorrent download when --max-upload-limit
  9105. command-line option specified:
  9106. * src/DefaultBtMessageDispatcher.cc
  9107. (sendMessages): Calculate uploading speed only when current message
  9108. is uploading data and is not sent yet.
  9109. * src/DefaultPeerStorage.h
  9110. (MAX_PEER_LIST_SIZE): 100 -> 60, because 60 is well enough.
  9111. * src/HttpResponseCommand.cc
  9112. (handleDefaultEncoding): Added the cast to int32_t to itos.
  9113. This fixes compile error in Soralis 10.
  9114. 2007-01-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9115. To fix segfault in Metalink download:
  9116. * src/UrlRequestInfo.h
  9117. (filename): Removed.
  9118. (totalLength): Removed.
  9119. (setTotalLength): Removed.
  9120. (setFilename): Removed.
  9121. * src/MetalinkRequestInfo.cc
  9122. (execute): Do not set filename and totalLength to reqInfo.
  9123. Set chunk checksum to reqInfo if it is not null.
  9124. * src/HttpResponseCommand.cc
  9125. (executeInternal): Fixed filename in log.
  9126. (handleDefaultEncoding): Removed the call to initBitfield() and
  9127. markAllPiecesDone().
  9128. (handleOtherEncoding): Added HEAD method handling.
  9129. * src/FtpNegotiateCommand.cc
  9130. (executeInternal): Added SEQ_HEAD_OK handling.
  9131. (recvSize): In HEAD handling, set sequence to SEQ_HEAD_OK and
  9132. return false.
  9133. * src/FtpNegotiateCommand.h
  9134. (SEQ_HEAD_OK): New definition.
  9135. * src/SegmentMan.cc
  9136. (initBitfield): Delete bitfield.
  9137. (isChunkChecksumValidationReady): Fixed the condition.
  9138. * src/UrlRequestInfo.cc: Fixed so that Metalink and Torrent download
  9139. works fine.
  9140. 2007-01-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9141. * src/Xml2MetalinkProcessor.h
  9142. (xpathExists): New function.
  9143. * src/Xml2MetalinkProcessor.cc
  9144. (xpathExists): New function.
  9145. Not to send HEAD request if filename and size are available in Metalink
  9146. file:
  9147. * src/UrlRequestInfo.h
  9148. (filename): New variable.
  9149. (totalLength): New variable.
  9150. (setTotalLength): New function.
  9151. (setFilename): New function.
  9152. * src/MetalinkRequestInfo.cc
  9153. (execute): Set filename and size to UrlRequestInfo.
  9154. * src/MetalinkEntry.cc
  9155. (MetalinkEntry): Initialize size with 0.
  9156. * src/UrlRequestInfo.cc
  9157. (execute): Set filename and size to SegmentMan.
  9158. Not to download rest of the files after selected files are downloaded
  9159. in BitTorrent:
  9160. * src/PieceStorage.h
  9161. (allDownloadFinished): New function.
  9162. * src/DefaultBtAnnounce.cc
  9163. (isCompleteAnnounceReady): Use allDownloadFinished instead of
  9164. downloadFinished.
  9165. (getAnnounceUrl): Use allDownloadFinished instead of downloadFinished.
  9166. * src/DefaultPieceStorage.cc
  9167. (completePiece): Use allDownloadFinished instead of downloadFinished.
  9168. Commented out the call to finishSelectiveDownloadingMode().
  9169. (downloadFinished): Call isFilteredAllBitSet() instead of
  9170. isAllBitSet().
  9171. (allDownloadFinished): New function.
  9172. * src/DefaultBtInteractive.cc
  9173. (addBitfieldMessageToQueue): Call allDownloadFinished() instead of
  9174. downloadFinished().
  9175. (checkHave): Call allDownloadFinished() instead of downloadFinished().
  9176. * src/TorrentDownloadEngine.cc
  9177. (onEndOfRun): Call allDownloadFinished() instead of downloadFinished().
  9178. * src/BitfieldMan.h
  9179. (isFilteredAllBitSet): New function.
  9180. * src/ShareRatioSeedCriteria.h
  9181. (PieceStorage.h): New include.
  9182. (pieceStorage): New variable.
  9183. (evaluate):
  9184. btContext->getTotalLength() -> pieceStorage->getCompletedLength()
  9185. * src/BitfieldMan.cc
  9186. (isFilteredAllBitSet): New function.
  9187. (isAllBitSet): Filter is not took into account.
  9188. Rename --force-truncate as --allow-overwrite:
  9189. * src/TorrentRequestInfo.cc
  9190. (execute): PREF_FORCE_TRUNCATE -> PREF_ALLOW_OVERWRITE
  9191. * src/main.cc
  9192. (showUsage): --force-truncate -> --allow-overwrite
  9193. * src/message.h
  9194. (EX_FILE_ALREADY_EXISTS): --force-truncate -> --allow-overwrite
  9195. * src/prefs.h
  9196. (PREF_FORCE_TRUNCATE): Removed.
  9197. (PREF_ALLOW_OVERWRITE): New definition.
  9198. * src/SegmentMan.cc
  9199. (shouldCancelDownloadForSafety): --force-truncate -> --allow-overwrite
  9200. * src/MetalinkRequestInfo.cc
  9201. (execute): Queueing message are now logged in info level.
  9202. * src/common.h
  9203. (LONG_LONG_MAX): Removed.
  9204. (LONG_LONG_MIN): Removed.
  9205. * src/HttpResponseCommand.cc
  9206. (handleDefaultEncoding): LONG_LONG_MAX -> INT64_MAX
  9207. * src/FtpNegotiateCommand.cc
  9208. (recvSize): LONG_LONG_MAX -> INT64_MAX
  9209. * src/main.cc
  9210. (showUsage): Added --check-integriy and --realtime-chunk-checksum
  9211. command-line option.
  9212. (main): Added --check-integriy and --realtime-chunk-checksum
  9213. command-line option.
  9214. --force-truncate -> --allow-overwrite
  9215. Set initial value of --check-integrity option to false.
  9216. Don't show usage when error occurs while persing command-line options.
  9217. Removed deprecated --upload-limit option.
  9218. 2007-01-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9219. * src/message.h: Added EX_INVALID_PAYLOAD_SIZE and
  9220. EX_INVALID_BT_MESSAGE_ID. Following source files affected.
  9221. * src/BtAllowedFastMessage.cc:
  9222. * src/BtBitfieldMessage.cc
  9223. * src/BtCancelMessage.cc
  9224. * src/BtChokeMessage.cc
  9225. * src/BtHaveAllMessage.cc
  9226. * src/BtHaveMessage.cc
  9227. * src/BtHaveNoneMessage.cc
  9228. * src/BtInterestedMessage.cc
  9229. * src/BtNotInterestedMessage.cc
  9230. * src/BtPieceMessage.cc
  9231. * src/BtPortMessage.cc
  9232. * src/BtRejectMessage.cc
  9233. * src/BtRequestMessage.cc
  9234. * src/BtSuggestPieceMessage.cc
  9235. * src/BtUnchokeMessage.cc
  9236. * src/message.h: Added EX_INVALID_CHUNK_CHECKSUM. Following source
  9237. files are affected.
  9238. * src/ChunkChecksumValidator.cc
  9239. * src/SegmentMan.cc
  9240. 2007-01-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9241. To add chunk checksum validation:
  9242. * src/MetalinkEntry.h
  9243. (MetalinkChunkChecksum.h): New include.
  9244. (chunkChecksum): New variable.
  9245. * src/Request.h
  9246. (method): New variable.
  9247. (setMethod): New function.
  9248. (getMethod): New function.
  9249. (METHOD_GET): New static constant.
  9250. (METHOD_HEAD): New static constant.
  9251. * src/Xml2MetalinkProcessor.h
  9252. (getPieceHash): New function.
  9253. * src/PieceStorage.h
  9254. (markAllPiecesDone): New function.
  9255. (checkIntegrity): New function.
  9256. * src/FileAllocator.h
  9257. (NullFileAllocationMonitor.h): New include.
  9258. (FileAllocator): Initialize fileAllocationMonitor with new
  9259. NullFileAllocationMonitor().
  9260. * src/MultiDiskAdaptor.h
  9261. (messageDigest.h): Remove include.
  9262. (ctx): Removed.
  9263. (hashUpdate): Added ctx.
  9264. (MultiDiskAdaptor): Removed ctx.
  9265. (sha1Sum): Renamed as messageDigest.
  9266. (messageDigest): New function.
  9267. * src/UrlRequestInfo.h
  9268. (HeadResult): New class.
  9269. (digestAlgo): New variable.
  9270. (chunkChecksumLength): New variable.
  9271. (chunkChecksums): New variable.
  9272. (getHeadResult): New function.
  9273. (UrlRequestInfo): Added digestAlgo, chunkChecksumLength.
  9274. (setDigestAlgo): New function.
  9275. (setChunkChecksumLength): New function.
  9276. (setChunkChecksums): New function.
  9277. * src/DefaultPieceStorage.cc
  9278. (DiskAdaptorWriter.h): New include.
  9279. (ChunkChecksumValidator.h): New include.
  9280. (markAllPiecesDone): New function.
  9281. (checkIntegrity): New function.
  9282. * src/DefaultBtContext.h
  9283. (getPieceHashes): New function.
  9284. * src/TorrentRequestInfo.cc
  9285. (execute): Try to validate chunk checksum if file already exists and
  9286. .aria2 file doesn't there and user allows aria2 to overwrite it.
  9287. * src/messageDigest.h
  9288. (~MessageDigestContext): Added digestFree().
  9289. * src/MetalinkRequestInfo.cc
  9290. (execute): Set digestAlgo, chunkChecksum, chunkChecksums to reqInfo.
  9291. * src/DiskAdaptor.h
  9292. (messageDigest.h): New include.
  9293. (sha1Sum): Renamed as messageDigest.
  9294. (messageDigest): New function.
  9295. * src/DownloadCommand.h
  9296. (PeerStat.h): New include.
  9297. (maxDownloadSpeedLimit): New variable.
  9298. (startupIdleTime): New variable.
  9299. (lowestDownloadSpeedLimit): New variable.
  9300. (peerStat): New variable.
  9301. (setMaxDownloadSpeedLimit): New function.
  9302. (setStartupIdleTime): New function.
  9303. (setLowestDownloadSPeedLimit): New function.
  9304. * src/BtContext.h
  9305. (getPieceHashes): New function.
  9306. * src/main.cc
  9307. (main): Set PREF_REALTIME_CHUNK_CHECKSUM and PREF_CHECK_INTEGRITY
  9308. option to true for testing purpose.
  9309. * src/BtPieceMessage.cc
  9310. (checkPieceHash): Use messageDigest
  9311. * src/DownloadEngine.cc
  9312. (SetDescriptor): Removed.
  9313. (AccumulateActiveCommand): Removed.
  9314. (waitData): Rewritten.
  9315. (updateFdSet): Rewritten.
  9316. * src/MultiDiskAdaptor.cc
  9317. (hashUpdate): Added ctx.
  9318. (sha1Sum): Renamed as messageDigest.
  9319. (messageDigest): New function.
  9320. * src/BitfieldMan.h
  9321. (isBitRangeSet): New function.
  9322. (unsetBitRange): New function.
  9323. * src/ByteArrayDiskWriter.h
  9324. (sha1Sum): Renamed as messageDigest.
  9325. (messageDigest): New function.
  9326. * src/ConsoleDownloadEngine.cc
  9327. (calculateStatistics): If nspeed < 0 then set nspeed to 0.
  9328. * src/DiskWriter.h
  9329. (messageDigest.h): New include.
  9330. (sha1Sum): Renamed as messageDigest.
  9331. (messageDigest): New function.
  9332. * src/ChunkChecksumValidator.h: New class.
  9333. * src/DiskAdaptorWriter.h: New class.
  9334. * src/prefs.h
  9335. (PREF_REALTIME_CHUNK_CHECKSUM): New definition.
  9336. (PREF_CHECK_INTEGRITY): New definition.
  9337. * src/HttpResponseCommand.cc
  9338. (handleDefaultEncoding): Added method "HEAD" handling.
  9339. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9340. (handleOtherEncoding):
  9341. Added the call to e->segmentMan->shouldCancelDownloadForSafety().
  9342. (createHttpDownloadCommand): Set maxDownloadSpeedLimit,
  9343. startupIdleTime, lowestDownloadSpeedLimit to command.
  9344. * src/SegmentMan.h
  9345. (getSegmentEntryByIndex): New function.
  9346. (getSegmentEntryByCuid): New function.
  9347. (getSegmentEntryIteratorByCuid): New function.
  9348. (diskWriter): DiskWriter -> DiskWriterHandle
  9349. (pieceHashes): New variable.
  9350. (chunkHashLength): New variable.
  9351. (digestAlgo): New variable.
  9352. (FindPeerStat): Removed.
  9353. (getPeerStat): Rewritten.
  9354. (markAllPiecesDone): New function.
  9355. (checkIntegrity): New function.
  9356. (tryChunkChecksumValidation): New function.
  9357. (isChunkChecksumValidationReady): New function.
  9358. * src/BitfieldMan.cc
  9359. (BitfieldMan): Initialized bitfieldLength, blocks to 0.
  9360. (BitfieldMan): Initialized blockLength, totalLength, bitfieldLength,
  9361. blocks to 0.
  9362. (isBitRangeSet): New function.
  9363. (unsetBitRange): New function.
  9364. * src/FtpNegotiateCommand.cc
  9365. (executeInternal): Set maxDownloadSpeedLimit,
  9366. startupIdleTime, lowestDownloadSpeedLimit to command.
  9367. (recvSize): Added method "HEAD" handling.
  9368. Removed the call to e->segmentMan->shouldCancelDownloadForSafety().
  9369. * src/AbstractSingleDiskAdaptor.cc
  9370. (sha1Sum): Renamed as messageDigest.
  9371. (messageDigest): New function.
  9372. * src/AbstractSingleDiskAdaptor.h
  9373. (sha1Sum): Renamed as messageDigest.
  9374. (messageDigest): New function.
  9375. * src/Util.h
  9376. (indexRange): New function.
  9377. * src/MetalinkEntry.cc
  9378. (MetalinkEntry): Initialized chunkChecksum to 0.
  9379. * src/ShaVisitor.cc
  9380. (~ShaVisitor): Removed the call to ctx.digestFree().
  9381. * src/SegmentMan.cc
  9382. (ChunkChecksumValidator.h): New include.
  9383. (SegmentMan): Initialized chunkHashLength to 0. Initialized digestAlgo
  9384. to DIGEST_ALGO_SHA1.
  9385. (~SegmentMan): Removed diskWriter.
  9386. (FindSegmentEntryByIndex): Removed.
  9387. (FindSegmentEntryByCuid): Removed.
  9388. (checkoutSegment): Rewritten.
  9389. (findSlowerSegmentEntry): Rewritten.
  9390. (getSegment): Rewritten.
  9391. (updateSegment): Rewritten.
  9392. (completeSegment): Rewritten.
  9393. (markAllPiecesDone): New function.
  9394. (checkIntegrity): New function.
  9395. (isChunkChecksumValidationReady): New function.
  9396. (tryChunkChecksumValidation): New function.
  9397. * src/Xml2MetalinkProcessor.cc
  9398. (getEntry): Get size and set it to entry.
  9399. Get chunk checksum and set it to entry.
  9400. (getPieceHash): New function.
  9401. * src/Util.cc
  9402. (sha1Sum): Removed ctx.digestFree()
  9403. (fileChecksum): Removed ctx.digestFree()
  9404. (indexRange): New function.
  9405. * src/Request.cc
  9406. (METHOD_GET): New variable.
  9407. (METHOD_HEAD): New variable.
  9408. (Request): Added method.
  9409. * src/UrlRequestInfo.cc
  9410. (FatalException.h): New include.
  9411. (message.h): New include.
  9412. (operator<<): Added operator<< for class HeadResult.
  9413. (getHeadResult): New function.
  9414. (execute): Get filename and size in separate download engine.
  9415. * src/ChunkChecksumValidator.cc: New class.
  9416. * src/DownloadCommand.cc:
  9417. (DownloadCommand): Added peerStat.
  9418. (executeInternal): Use maxDownloadSpeedLimit member instead of getting
  9419. the value from Option.
  9420. The buffer size is now 16KB.
  9421. Use peerStat member instead of getting it from SegmentMan.
  9422. Use startupIdleTime member instead of gettingit from Option.
  9423. Added chunk checksum validation.
  9424. * src/AbstractDiskWriter.cc
  9425. (AbstractDiskWriter): Removed ctx.
  9426. (~AbstractDiskWriter): Removed ctx.digestFree()
  9427. (writeDataInternal): Returns the return value of write.
  9428. (readDataInternal): Returns the return value of read.
  9429. (sha1Sum): Renamed as messageDigest
  9430. (messageDigest): New function.
  9431. * src/AbstractDiwkWriter.h
  9432. (messageDigest.h): Removed include.
  9433. (ctx): Removed.
  9434. (sha1Sum): Renamed as messageDigest
  9435. (messageDigest): New function.
  9436. * src/DefaultPieceStorage.h
  9437. (markAllPiecesDone): New function.
  9438. (checkIntegrity): New function.
  9439. * src/NullFileAllocationMonitor.h: New class.
  9440. * src/MetalinkChunkChecksum.h: New class.
  9441. 2007-01-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9442. To decrease CPU usage in bittorrent download, calculation results in
  9443. BitfieldMan were cached and realtime fetching PeerObject was removed
  9444. with WeakHandle introduced. Option values are set to the objects
  9445. by setter before download begins.
  9446. * src/DefaultBtRequestFactory.cc: Use messageFactory member.
  9447. * src/DefaultBtRequestFactory.h
  9448. (dispatcher): BtMessageDispatcherHandle ->
  9449. BtMessageDispatcherWeakHandle.
  9450. (messageFactory): New variable.
  9451. (setBtMessageDispatcher): BtMessageDispatcherHandle ->
  9452. BtMessageDispatcherWeakHandle.
  9453. (setBtMessageFactory): New function.
  9454. * src/DefaultBtMessageDispatcher.cc:
  9455. (sendMessages): Use maxUploadSpeedLimit instead of fetching the value
  9456. from Option.
  9457. (checkRequestSlotAndDoNecessaryThing): Use requestTimeout instead of
  9458. feating the value from Option.
  9459. Use messageFactory member.
  9460. * src/PeerInteractionCommand.cc
  9461. (PeerInteractionCommand): Added maxDownloadSpeedLimit.
  9462. Add reverse dependencies to factory object.
  9463. Set maxUploadSpeedLimit and requestTimeout and messageFactory to
  9464. dispatcher.
  9465. Set messageFactory to receiver.
  9466. Set keepAliveInterval and maxDownloadSpeedLimit and messageFactory to
  9467. btInteractive.
  9468. Set receiver to peerObject.
  9469. Set maxDownloadSpeedLimit to this.
  9470. (executeInternal): Use maxDownloadSpeedLimit member.
  9471. * src/BtChokeMessage.cc
  9472. (doReceivedAction): Use dispatcher, requestFactory member.
  9473. (onSendComplete): Use dispatcher member.
  9474. * src/PeerInteractionCommand.h
  9475. (maxDownloadSpeedLimit): New variable.
  9476. * src/DefaultBtMessageReceiver.h
  9477. (peerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9478. (dispatcher):
  9479. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9480. (messageFactory): New variable.
  9481. (setPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9482. (getPeerConnection): PeerConnectionHandle -> PeerConnectionWeakHandle
  9483. (setDispatcher):
  9484. BtMessageDispatcherHandle -> BtMessageDispatcherWeakHandle
  9485. (setBtMessageFactory): New function.
  9486. * src/DefaultBtInteractive.cc
  9487. (initiateHandshake): Use messageFactory member.
  9488. (addBitfieldMessageToQueue): Use messageFactory member.
  9489. (addAllowedFastMessageToQueue): Use messageFactory member.
  9490. (decideChoking): Use messageFactory member.
  9491. (checkHave): Use messageFactory member.
  9492. (sendKeepAlive): Use keepAliveInterval, messageFactory member.
  9493. (receiveMessages): Use maxDownloadSpeedLimit member.
  9494. (decideInterest): Use messageFactory member.
  9495. * src/BtRequestMessage.cc
  9496. (doReceivedAction): Use messageFactory, dispatcher member.
  9497. (onQueued): Use dispatcher member.
  9498. * src/BtPieceMessage.cc
  9499. (doReceivedAction): Use dispatcher member.
  9500. (send): Use peerConnection member.
  9501. (onWrongPiece): Use requestFactory member.
  9502. (handleChokingEvent): Use messageFactory, dispatcher member.
  9503. (handleCancelSendingPieceEvent): Use messageFactory, dispatcher member.
  9504. * src/BtMessageDispatcher.h
  9505. (BtMessageDispatcherWeakHandle): New type definition.
  9506. * src/SimpleBtMessage.cc
  9507. (send): Use peerConnection member.
  9508. * src/BtRejectMessage.cc
  9509. (doReceivedAction): Use dispatcher member.
  9510. * src/DefaultBtMessageDispatcher.h
  9511. (Option.h): Removed include.
  9512. (messageFactory): New variable.
  9513. (option): Removed.
  9514. (maxUploadSpeedLimit): New variable.
  9515. (requestTimeout): New variable.
  9516. (DefaultBtMessageDispatcher): Removed option.
  9517. Added maxUploadSpeedLimit, requestTimeout.
  9518. (setOption): Removed.
  9519. (getOption): Removed.
  9520. (setMaxUploadSpeedLimit): New function.
  9521. (setRequestTimeout): New function.
  9522. (setBtMessageFactory): New function.
  9523. * src/DefaultBtInteractive.h
  9524. (btMessageReceiver):
  9525. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9526. (dispatcher):
  9527. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9528. (btRequestFactory):
  9529. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9530. (peerConnection):
  9531. PeerConnectionHandle -> PeerConnectionWeakHandle
  9532. (messageFactory): New variable.
  9533. (option): Removed.
  9534. (keepAliveInterval): New variable.
  9535. (maxDownloadSpeedLimit): New variable.
  9536. (DefaultBtInteractive): Added keepAliveInterval, maxDownloadSpeedLimit.
  9537. (setBtMessageReceiver):
  9538. BtMessageReceiverHandle -> BtMessageReceiverWeakHandle
  9539. (setDispatcher):
  9540. BtMessageDispatcherHandle -> BtMessageReceiverWeakHandle
  9541. (setBtRequestFactory):
  9542. BtRequestFactoryHandle -> BtRequestFactoryWeakHandle
  9543. (setPeerConnection):
  9544. PeerConnectionHandle -> PeerConnectionWeakHandle
  9545. (setOption): Removed.
  9546. (setKeepAliveInterval): New function.
  9547. (setMaxDownloadSpeedLimit): New function.
  9548. (setBtMessageFactory): New function.
  9549. * src/BitfieldMan.h
  9550. (cachedNumMissingBlock): New variable.
  9551. (cachedNumFilteredBlock): New variable.
  9552. (cachedCompletedLength): New variable.
  9553. (cachedFilteredComletedLength): New variable.
  9554. (cachedFilteredTotalLength): New variable.
  9555. (countMissingBlockNow): New function.
  9556. (countFilteredBlockNow): New function.
  9557. (getFilteredTotalLengthNow): New function.
  9558. (getCompletedLengthNow): New function.
  9559. (getFilteredCompletedLengthNow): New function.
  9560. (updateCache): New function.
  9561. * src/AbstractBtMessage.h
  9562. (BtMessageDispatcher.h): New include.
  9563. (PeerConnection.h): New include.
  9564. (BtRequestFactory.h): New include
  9565. (BtMessageFactory.h): New include.
  9566. (dispatcher): New variable.
  9567. (messageFactory): New variable.
  9568. (peerConnection: New variable.
  9569. (setBtMessageDispatcher): New function.
  9570. (setPeerConnection): New function.
  9571. (setBtMessageFactory): New function.
  9572. (setBtRequestFactory): New function.
  9573. * src/DefaultBtMessageFactory.cc
  9574. (setCommonProperty): Set dispatcher, requestFactory, this,
  9575. peerConnection to msg.
  9576. * src/BtRegistry.h
  9577. (BT_MESSAGE_RECEIVER): New macro.
  9578. * src/PeerConnection.h
  9579. (PeerConnectionWeakHandle): New type definition.
  9580. * src/BtMessageFactory.h
  9581. (BtMessageFactoryWeakHandle): New type definition.
  9582. * src/BitfieldMan.cc
  9583. (BitfieldMan): Added cachedNumMissingBlock, cachedNumFilteredBlock,
  9584. cachedCompletedLength, cachedFilteredComletedLength,
  9585. cachedFilteredTotalLength.
  9586. Call updateCache().
  9587. (countMissingBlock): Return cachedNumMissingBlock.
  9588. (countMissingBlockNow): New function.
  9589. (countBlock): Return cachedNumFilteredBlock if filterEnabled is true.
  9590. (countFilteredBlockNow): New function.
  9591. (setBit): Call updateCache().
  9592. (unsetBit): Call updateCache().
  9593. (setBitfield): Call updateCache().
  9594. (clearAllBit): Call updateCache().
  9595. (setAllBit): Use setBitInternal instead of setBit.
  9596. Call updateCache().
  9597. (addFilter): Call updateCache().
  9598. (enableFilter): Call updateCache().
  9599. (disableFilter): Call updateCache().
  9600. (clearFilter): Call updateCache().
  9601. (getFilteredTotalLength): Return cachedFilteredTotalLength.
  9602. (getFilteredTotalLengthNow): New function.
  9603. (getCompletedLength): Return cachedCompletedLength.
  9604. (getCompletedLengthNow): New function.
  9605. (getFilteredCompletedLength): Return cachedFilteredComletedLength.
  9606. (getFilteredCompletedLengthNow): New function.
  9607. (updateCache): New function.
  9608. * src/BtMessageReceiver.h
  9609. (BtMessageReceiverWeakHandle): New type definition.
  9610. * src/DefaultBtMessageReceiver.cc
  9611. (receiveHandshake): Use messageFactory member.
  9612. (sendHandshake): Use messageFactory member.
  9613. (receiveMessage): Use messageFactory member.
  9614. * src/DefaultBtMessageFactory.h
  9615. (dispatcher): New variable.
  9616. (requestFactory): New variable.
  9617. (peerConnection): New variablle.
  9618. (setBtMessageDispatcher): New function.
  9619. (setBtRequestFactory): New function.
  9620. (setPeerConnection): New function.
  9621. * src/SharedHandle.h
  9622. (RefCount): New class.
  9623. (WeakHandle): New class.
  9624. * src/PeerObject.h
  9625. (BtMessageReceiver.h): New include.
  9626. (PeerObject): Added btMessageReceiver.
  9627. (btMessageReceiver): New variable.
  9628. * src/Util.cc
  9629. (countBit): Simplified.
  9630. * src/BtCancelMessage.cc
  9631. (doReceivedAction): Use dispatcher member.
  9632. * src/BtRequestFactory.h
  9633. (BtRequestFactoryWeakHandle): New type definition.
  9634. * src/PeerStorage.h
  9635. (downloadSpeed): int -> uint32_t
  9636. (uploadSpeed): int -> uint32_t
  9637. (sessionDownloadLength): long long int -> uint64_t
  9638. (sessionUploadLength): long long int -> uint64_t
  9639. 2007-01-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9640. To add RecoverableException, FatalException:
  9641. * src/AbstractCommand.cc
  9642. (onAbort): Exception -> RecoverableException
  9643. * src/PeerAbstractCommand.h
  9644. (RecoverableException.h): New include.
  9645. (onAbort): Exception -> RecoverableException.
  9646. * src/PeerInteractionCommand.cc
  9647. (onAbort): Exception -> RecoverableException.
  9648. * src/PeerAbstractCommand.cc
  9649. (execute): Exception -> RecoverableException.
  9650. (onAbort): Exception -> RecoverableException.
  9651. * src/TorrentRequestInfo.cc
  9652. (execute): Exception -> RecoverableException.
  9653. * src/MetalinkRequestInfo.cc
  9654. (execute): Exception -> RecoverableException.
  9655. * src/MetaFileUtil.cc: RecoverableException.
  9656. * src/AbstractCommand.h
  9657. (onAbort): Exception -> RecoverableException.
  9658. * src/DlRetryEx.h: Exception -> RecoverableException.
  9659. * src/DlAbortEx.h: Exception -> RecoverableException.
  9660. * src/PeerListenCommand.cc: Exception -> RecoverableException.
  9661. * src/Util.cc: Exception -> RecoverableException.
  9662. * src/DefauldDiskWriter.cc: Exception -> RecoverableException.
  9663. * src/TrackerUpdateCommand.cc: Exception -> RecoverableException.
  9664. * src/UrlRequestInfo.cc: Exception -> RecoverableException.
  9665. To make ID static const int
  9666. * src/BtInterestedMessage.h
  9667. (ID_t): Removed.
  9668. (ID): New variable.
  9669. (getId): Made non-const.
  9670. * src/BtPieceMessage.h
  9671. (ID_t): Removed.
  9672. (ID): New variable.
  9673. (getId): Made non-const.
  9674. * src/BtChokeMessage.h
  9675. (ID_t): Removed.
  9676. (ID): New variable.
  9677. (getId): Made non-const.
  9678. * src/BtHaveAllMessage.h
  9679. (ID_t): Removed.
  9680. (ID): New variable.
  9681. (getId): Made non-const.
  9682. * src/BtKeepAliveMessage.h
  9683. (ID_t): Removed.
  9684. (ID): New variable.
  9685. (getId): Made non-const.
  9686. * src/BtHandshakeMessage.h
  9687. (ID): New variable.
  9688. (getId): Made non-const.
  9689. * src/BtSuggestPieceMessage.h
  9690. (ID_t): Removed.
  9691. (ID): New variable.
  9692. (getId): Made non-const.
  9693. * src/BtPortMessage.h
  9694. (ID_t): Removed.
  9695. (ID): New variable.
  9696. (getId): Made non-const.
  9697. * src/AbstractBtMessage.h
  9698. (id): Removed.
  9699. (AbstractBtMessage): Removed id.
  9700. (getId): Removed.
  9701. * src/BtHaveMessage.h
  9702. (ID_t): Removed.
  9703. (ID): New variable.
  9704. (getId): Made non-const.
  9705. * src/BtAllowedFastMessage.h
  9706. (ID_t): Removed.
  9707. (ID): New variable.
  9708. (getId): Made non-const.
  9709. * src/BtCancelMessage.h
  9710. (ID_t): Removed.
  9711. (ID): New variable.
  9712. (getId): Made non-const.
  9713. * src/BtNotInterestedMessage.h
  9714. (ID_t): Removed.
  9715. (ID): New variable.
  9716. (getId): Made non-const.
  9717. * src/BtChokeMessage.h
  9718. (ID_t): Removed.
  9719. (ID): New variable.
  9720. (getId): Made non-const.
  9721. * src/BtRejectMessage.h
  9722. (ID_t): Removed.
  9723. (ID): New variable.
  9724. (getId): Made non-const.
  9725. * src/BtBitfieldMessage.h
  9726. (ID_t): Removed.
  9727. (ID): New variable.
  9728. (getId): Made non-const.
  9729. * src/BtUnchokeMessage.h
  9730. (ID_t): Removed.
  9731. (ID): New variable.
  9732. (getId): Made non-const.
  9733. * src/BtRequestMessage.h
  9734. (ID_t): Removed.
  9735. (ID): New variable.
  9736. (getId): Made non-const.
  9737. * src/BtHaveMessage.h
  9738. (ID_t): Removed.
  9739. (ID): New variable.
  9740. (getId): Made non-const.
  9741. To add --force-truncate command-line option and a check whether
  9742. the file already exists:
  9743. * src/DirectDiskAdaptor.h
  9744. (getFilePath): Made virtual public.
  9745. * src/MultiDiskAdaptor.h
  9746. (File.h): New include.
  9747. (DiskWriterEntry::fileEntry): Made private.
  9748. (DiskWriterEntry::fileExists): New function.
  9749. (DiskWriterEntry::getFileEntry): New function.
  9750. (fileExists): New function.
  9751. (getFilePath): New function.
  9752. * src/TorrentRequestInfo.cc
  9753. (FatalException.h): New include.
  9754. (message.h): New include.
  9755. (RecoverableException.h): New include.
  9756. (execute): Added a check whether file is already exists or not.
  9757. * src/DiskAdaptor.h
  9758. (fileExists): New function.
  9759. (getFilePath): New function.
  9760. * src/main.cc
  9761. (showUsage): Added an explanation of --force-truncate command-line
  9762. option.
  9763. (main): Added --force-truncate command-line option.
  9764. * src/Exception.h
  9765. (setMsg): buf[256] -> buf[1024]
  9766. * src/CopyDiskWriter.h
  9767. (getFilePath): Made public virtual.
  9768. * src/MultiDiskAdaptor.cc: fileEntry -> getFileEntry()
  9769. (fileExists): New function.
  9770. * src/DownloadEngineFactory.cc
  9771. (newTorrentConsoleEngine): Don't open file here.
  9772. * src/message.h
  9773. (EX_FILE_ALREADY_EXISTS): New definition.
  9774. * src/prefs.h
  9775. (PREF_FOECE_TRUNCATE): New definition.
  9776. * src/HttpResponseCommand.cc
  9777. (handleDefaultEncoding): Added a check whether the file already exists.
  9778. * src/SegmentMan.h
  9779. (fileExists): New function.
  9780. (shouldCancelDownloadForSafety): New function.
  9781. * src/FtpNegotiateCommand.cc
  9782. (recvSize): Added a check whether the file already exists.
  9783. * src/AbstractSingleDiskAdaptor.cc
  9784. (File.h): New include.
  9785. (fileExists): New function.
  9786. * src/AbstractSingleDiskAdaptor.h
  9787. (getFilePath): Removed.
  9788. (fileExists): New function.
  9789. * src/SegmentMan.cc
  9790. (fileExists): New function.
  9791. (shouldCancelDownloadForSafety): New function.
  9792. To fix regression bug in torrent downloading:
  9793. * src/DefaultBtRequestFactory.cc
  9794. (doChokedAction): New function.
  9795. * src/DefaultBtRequestFactory.h
  9796. (doChokedAction): New function.
  9797. * src/DefaultBtMessageDispatcher.cc
  9798. (doChokedAction): Do not delete request if its target is in allowed
  9799. fast set.
  9800. * src/DefaultBtInteractive.cc
  9801. (doPostHandshakeProcessing): Added a call to sendPendingMessage().
  9802. (sendKeepAlive): Send keep alive message even if the outgoing message
  9803. queue is not empty.
  9804. (decideInterest): Simplified the code.
  9805. (fillPiece): Remove a call to dispatcher->doChokedAction() because
  9806. it is already called when BtChokeMessage is received from a peer.
  9807. * src/BtRequestFactory.h
  9808. (doChokedAction): New function.
  9809. To clean up code:
  9810. * src/PeerInteractionCommand.h
  9811. (executeInternal): Added virtual keyword explicitly.
  9812. (prepareForRetry): Added virtual keyword explicitly.
  9813. (prepareForNextPeer): Added virtual keyword explicitly.
  9814. (onAbort): Added virtual keyword explicitly.
  9815. * src/RequestSlot.cc
  9816. (isTimeout): Use Time::elapsed() instead of differenceInMillis().
  9817. * src/BtPieceMessage.cc
  9818. (doReceivedAction): Added a debug log of piece's bitfield.
  9819. * src/Piece.h
  9820. (getBitfieldLength): New function.
  9821. * src/ByteArrayDiskWriter.cc
  9822. (clear): Added buf = 0 to avoid double free corruption.
  9823. * src/FileAllocator.cc
  9824. (allocate): Fixed an assignment of fileAllocationMonitor->currentValue.
  9825. Added cp.reset().
  9826. * src/BitfieldMan.h
  9827. (operator=): Rewritten.
  9828. * src/BitfieldMan.cc
  9829. (BitfieldMan): Initialized bitfield, useBitfield.
  9830. * src/PeerConnection.cc
  9831. (receiveMessage): Added a call to socket->readable() after getting
  9832. message length to avoid possible EOF.
  9833. * src/Util.cc
  9834. (torrentUrlencode): Fixed an encodeing bug. BUG#1629912
  9835. 2007-01-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9836. To add an ability to pre-allocate file space:
  9837. * src/DirectDiskAdaptor.h: Rewritten.
  9838. * src/PieceStorage.h: DiskAdaptor -> DiskAdaptorHandle
  9839. * src/MultiDiskAdaptor.h: Rewritten.
  9840. * src/DefaultPieceStorage.cc
  9841. (MultiDiskWriter.h): Removed include.
  9842. (PreAllocationDiskWriter.h): Removed include.
  9843. (FileAllocationMonitor.h): New include.
  9844. (~DefaultPieceStorage): Removed deletion of diskAdaptor.
  9845. (initStorage): Rewritten.
  9846. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9847. * src/FileAllocator.h: New class.
  9848. * src/FileAllocator.cc: New class.
  9849. * src/FileAllocationMonitor.h: New class.
  9850. * src/FileAllocationMonitor.cc: New class.
  9851. * src/ConsoleFileAllocationMonitor.h: New class.
  9852. * src/ConsoleFileAllocationMonitor.cc: New class.
  9853. * src/AbstractSingleDiskAdaptor.h: New class.
  9854. * src/AbstractSingleDiskAdaptor.cc: New class.
  9855. * src/DiskAdaptor.h
  9856. (Directory.h): Removed include.
  9857. (DiskWriter.h): Removed include.
  9858. (FileEntry.h): Removed include.
  9859. (diskWriter): Removed.
  9860. (DiskAdaptor): Removed diskWriter.
  9861. (openFile): Made pure virtual.
  9862. (closeFile): Made pure virtual.
  9863. (openExistingFile): Made pure virtual.
  9864. (initAndOpenFile): Made pure virtual.
  9865. (writeData): Made pure virtual.
  9866. (readData): Made pure virtual.
  9867. (sha1Sum): Made pure virtual.
  9868. (getStoreDir): Returns const reference of storeDir.
  9869. (DiskAdaptorHandle): New type definition.
  9870. * src/main.cc
  9871. (ConsoleFileAllocationMonitor.h): New include.
  9872. (showUsage): Added default value description of -s option.
  9873. Added the description of --file-allocation option.
  9874. (main): Set default value of --file-allocation option to 'none'.
  9875. Added --file-allocation command-line option.
  9876. Setup FileAllocationMonitorFactory.
  9877. * src/FtpInitiateConnectionCommand.cc
  9878. (executeInternal): Removed diskWriter related processing, which was
  9879. moved to FtpNegotiationCommand.cc.
  9880. * src/DirectDiskAdaptor.cc
  9881. (getFilePath): Made non-const.
  9882. * src/CopyDiskAdaptor.h
  9883. (DiskAdaptor.h): Removed include.
  9884. (DiskWriter.h): Removed include.
  9885. (AbstractSingleDiskAdaptor.h): New include.
  9886. (getFilePath): Made non-const. Added virtual keyword.
  9887. (CopyDiskAdaptor): Removed diskWriter.
  9888. (getTempFile): Returns const reference.
  9889. (CopyDiskAdaptorHandle): New type definition.
  9890. * src/ByteArrayDiskWriter.cc
  9891. (clear): Simplified.
  9892. (initAndOpenFile): Rewritten.
  9893. (openFile): Call initAndOpenFile()
  9894. * src/MultiDiskAdaptor.cc: Rewritten.
  9895. * src/DownloadEngineFactory.cc
  9896. (FileAllocator.h): New include.
  9897. (FileAllocationMonitor.h): New include.
  9898. (newConsoleEngine): Call DefaultDiskWriter::createNewDiskWriter() to
  9899. create DefaultDiskWriter with file allocator.
  9900. * src/DiskWriter.h
  9901. (initAndOpenFile): Added totalLength argument.
  9902. (openFile): Added totalLength argument.
  9903. * src/prefs.h
  9904. (PREF_FILE_ALLOCATION): New definition.
  9905. (V_PREALLOC): New definition.
  9906. (V_NONE): New definition.
  9907. * src/HttpResponseCommand.cc
  9908. (handleDefaultEncoding): Call DefaultDiskWriter::initAndOpenFile with
  9909. size.
  9910. * src/FtpNegotiateCommand.cc
  9911. (Util.h): New include.
  9912. (recvSize): Open file here.
  9913. * src/Util.h
  9914. (ullitos): New function.
  9915. * src/CopyDiskWriter.h
  9916. (getFilePath): Made non-const.
  9917. * src/DefaultDiskWriter.h
  9918. (Option.h): New include.
  9919. (totalLength): Removed.
  9920. (DefaultDiskWriter): Removed totalLength.
  9921. (initAndOpenFile): Added totalLength argument.
  9922. (DefaultDiskWriterHandle): New type definition.
  9923. (createNewDiskWriter): New function.
  9924. * src/Util.cc
  9925. (ullitos): New function.
  9926. * src/DefaultDiskWriter.cc
  9927. (message.h): New include.
  9928. (FileAllocator.h): New include.
  9929. (prefs.h): New include.
  9930. (Util.h): New include.
  9931. (DefaultDiskWriter): Removed totalLength.
  9932. (initAndOpenFile): Added file allocation.
  9933. (createNewDiskWriter): New function. Just for temporary solution.
  9934. It will be rewritten later.
  9935. * src/DiskAdaptor.cc
  9936. (DiskAdaptor): Removed diskWriter.
  9937. * src/AbstractDiskWriter.cc
  9938. (LogFactory.h): New include.
  9939. (AbstractDiskWriter): Added fileAllocator, logger.
  9940. (openFile): Added totalLength argument.
  9941. * src/AbstractDiskWriter.h
  9942. (FileAllocator.h): New include.
  9943. (Logger.h): New include.
  9944. (fileAllocator): New variable.
  9945. (logger): New variable.
  9946. (openFile): Added totalLength argument. Added virtual keyword
  9947. explicitly.
  9948. (openExistingFile): Added totalLength argument. Added virtual keyword
  9949. explicitly.
  9950. (closeFile): Added virtual keyword explicitly.
  9951. (sha1Sum): Added virtual keyword explicitly.
  9952. (writeData): Added virtual keyword explicitly.
  9953. (readData): Added virtual keyword explicitly.
  9954. (setFileAllocator): New function.
  9955. * src/DefaultPieceStorage.h
  9956. (FileAllocator.h): New include.
  9957. (diskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9958. (getDiskAdaptor): DiskAdaptor -> DiskAdaptorHandle
  9959. * src/FileProgressMonitor.h: New class.
  9960. To compile aria2 on PC-BSD:
  9961. * src/DefaultBtContext.cc
  9962. (libgen.h): New include.
  9963. To fix memory leak:
  9964. * src/Exception.h
  9965. (~Exception): Delete cause. Fixed memory leak.
  9966. 2006-12-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  9967. Rewritten a portion of bittorrent implementation:
  9968. * src/BtMessageValidator.h: New class.
  9969. * src/BtBitfieldMessageValidator.h: New class.
  9970. * src/BtHandshakeMessageValidator.h: New class.
  9971. * src/BtRequestMessageValidator.h: New class.
  9972. * src/BtSuggestPieceMessageValidator.h: New class.
  9973. * src/BtAllowedFastMessageValidator.h: New class.
  9974. * src/BtRejectMessageValidator.h: New class.
  9975. * src/BtCancelMessageValidator.h: New class.
  9976. * src/BtPieceMessageValidator.h: New class.
  9977. * src/BtHaveMessageValidator.h: New class.
  9978. * src/BtEventListener.h: New class.
  9979. * src/AbstractBtEventListener.h: New class.
  9980. * src/BtEvent.h: New class.
  9981. * src/BtChokingEvent.h: New class.
  9982. * src/BtChokedEvent.h: New class.
  9983. * src/BtCancelSendingPieceEvent.h: New class.
  9984. * src/BtAbortOutstandingRequestEvent.h: New class.
  9985. * src/Randomizer.h: New class.
  9986. * src/SimpleRandomizer.h: New class.
  9987. * src/BtMessage.h: New class.
  9988. * src/AbstractBtMessage.h: New class.
  9989. * src/SimpleBtMessage.h: New class.
  9990. * src/BtHaveMessage.h: New class.
  9991. * src/BtInterestedMessage.h: New class.
  9992. * src/BtAllowedFastMessage.h: New class.
  9993. * src/BtUnchokeMessage.h: New class.
  9994. * src/BtCancelMessage.h: New class.
  9995. * src/BtNotInterestedMessage.h: New class.
  9996. * src/BtChokeMessage.h: New class.
  9997. * src/BtHaveNoneMessage.h: New class.
  9998. * src/BtHandshakeMessage.h: New class.
  9999. * src/BtSuggestPieceMessage.h: New class.
  10000. * src/BtHaveMessage.h: New class.
  10001. * src/BtPieceMessage.h: New class.
  10002. * src/BtHaveAllMessage.h: New class.
  10003. * src/BtKeepAliveMessage.h: New class.
  10004. * src/BtPortMessage.h: New class.
  10005. * src/BtRejectMessage.h: New class.
  10006. * src/BtBitfieldMessage.h: New class.
  10007. * src/BtRequestMessage.h: New class.
  10008. * src/DefaultBtRequestFactory.h: New class.
  10009. * src/DefaultBtMessageReceiver.h: New class.
  10010. * src/BtInteractive.h: New class.
  10011. * src/BtMessageDispatcher.h: New class.
  10012. * src/DefaultBtMessageDispatcher.h: New class.
  10013. * src/DefaultBtInteractive.h: New class.
  10014. * src/BitfieldManFactory.h: New class.
  10015. * src/HandleRegistry.h: New class.
  10016. * src/BtMessageFactory.h: New class.
  10017. * src/BtMessageReceiver.h: New class.
  10018. * src/DefaultBtMessageFactory.h: New class.
  10019. * src/PeerObject.h: New class.
  10020. * src/BtRequestFactory.h: New class.
  10021. * src/SuggestPieceMessage.h: Removed.
  10022. * src/PortMessage.h: Removed.
  10023. * src/SuggestPieceMessage.h: Removed.
  10024. * src/KeepAliveMessage.h: Removed.
  10025. * src/HandshakeMessage.h: Removed.
  10026. * src/PeerInteraction.h: Removed.
  10027. * src/UnchokeMessage.h: Removed.
  10028. * src/PieceMessage.h: Removed.
  10029. * src/RequestMessage.h: Removed.
  10030. * src/InterestedMessage.h: Removed.
  10031. * src/HaveMessage.h: Removed.
  10032. * src/CancelMessage.h: Removed.
  10033. * src/RejectMessage.h: Removed.
  10034. * src/AllowedFastMessage.h: Removed.
  10035. * src/HaveNoneMessage.h: Removed.
  10036. * src/SimplePeerMessage.h: Removed.
  10037. * src/HaveAllMessage.h: Removed.
  10038. * src/BitfieldMessage.h: Removed.
  10039. * src/PeerMessageFactory.h: Removed.
  10040. * src/NotInterestedMessage.h: Removed.
  10041. * src/ChokeMessage.h: Removed.
  10042. * src/PeerMessage.h: Removed.
  10043. 2006-12-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10044. To know root cause of exception:
  10045. * src/Exception.h
  10046. (cause): New variable.
  10047. (Exception): Added a parameter.
  10048. (getMsg): Return const reference to msg.
  10049. (getCause): New function.
  10050. * src/DlRetryEx.h
  10051. (DlRetryEx): Added a parameter 'cause'.
  10052. Added an overloaded constructor.
  10053. (DlAbortEx): Added a parameter 'cause'.
  10054. Added an overloaded constructor.
  10055. * src/SimpleLogger.cc
  10056. (writeLog): Log nested exception messages recursively.
  10057. 2006-11-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10058. * src/DefaultBtProgressInfoFile.cc
  10059. (load): Fixed memory leak when the infohash doesn't match.
  10060. 2006-11-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10061. * src/DefaultPeerStorage.cc
  10062. (calculateStat): Simplified the code by combining 2 loops into 1.
  10063. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10064. Introduce new preference PREF_BT_TIMEOUT. This is the timeout value
  10065. for BitTorrent download:
  10066. * src/PeerAbstractCommand.cc
  10067. (PeerAbstractCommand): PREF_TIMEOUT -> PREF_BT_TIMEOUT
  10068. * src/main.cc:
  10069. (timeoutSpecified): Removed.
  10070. (main): Set the initial value of PREF_BT_TIMEOUT to 180.
  10071. Removed timeoutSpecified. TODO: Add --bt-timeout command line option.
  10072. * src/TorrentRequestInfo.cc
  10073. (timeoutSpecified): Removed.
  10074. (torrentHandler): Removed timeoutSpecified and the adjustment of
  10075. timeout value.
  10076. * src/prefs.h
  10077. (PREF_BT_TIMEOUT): New definition.
  10078. Delete unused variables:
  10079. * src/TorrentRequestInfo.cc
  10080. (requestInfo): Removed.
  10081. Move setSignalHander to Util::setGlobalSignalHandler:
  10082. * src/TorrentRequestInfo.cc:
  10083. setSignalHander -> Util::setGlobalSignalHandler
  10084. * src/main.cc
  10085. (setSignalHander): Removed.
  10086. (main): setSignalHander -> Util::setGlobalSignalHandler
  10087. * src/Util.h
  10088. (setGlobalSignalHandler): New function.
  10089. * src/Util.cc
  10090. (setGlobalSignalHandler): New function.
  10091. * src/UrlRequestInfo.cc:
  10092. setSignalHander -> Util::setGlobalSignalHandler
  10093. Reset peer status in order to exit gracefully:
  10094. * src/PeerAbstractCommand.cc
  10095. (execute): Call peer->resetStatus() when btRuntime->isHalt() is true.
  10096. To fix the bug that causes the number of bytes uploaded is not saved
  10097. to .aria2 file:
  10098. * src/DefaultPeerStorage.h
  10099. (removedPeerSessionDownloadLength): New variable.
  10100. (removedPeerSessionUploadLength): New variable.
  10101. * src/DefaultPeerStorage.cc
  10102. (DefaultPieceStorage): Added removedPeerSessionDownloadLength(0),
  10103. removedPeerSessionUploadLength(0).
  10104. (calculateStat): Calculate the number of bytes downloaded(uploaded)
  10105. through all peers, and then add removedPeerSessionDownloadLength(
  10106. removedPeerSessionUploadLength) to it.
  10107. (deleteUnusedPeer): Add the number of bytes downloaded(uploaded) from
  10108. (to) the peer to removedPeerSessionDownloadLength
  10109. (removedPeerSessionUploadLength).
  10110. 2006-11-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10111. To add Metalink location option:
  10112. * src/MetalinkRequestInfo.cc
  10113. (execute): Call MetalinkEntry::setLocationPreference()
  10114. * src/main.cc
  10115. (showUsage): Added the help message for --metalink-location option.
  10116. (main): Added --metalink-location option.
  10117. * src/prefs.h
  10118. (PREF_METALINK_LOCATION): New definition.
  10119. * src/MetalinkEntry.cc
  10120. (AddLocationPreference): New function object.
  10121. (setLocationPreference): New function.
  10122. * src/Xml2MetalinkProcessor.cc
  10123. (getResource): Set location attribute to MetalinkResource
  10124. To show URLs to download
  10125. * src/UrlRequestInfo.h
  10126. (printUrls): New function.
  10127. To add multiple <file> Metalink support:
  10128. * src/MetalinkEntry.h
  10129. (MetalinkResources): Removed.
  10130. (setLocationPreference): New function.
  10131. (MetalinkEntryHandle): New type definition.
  10132. (MetalinkEntries): New type definition.
  10133. * src/Xml2MetalinkProcessor.h
  10134. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10135. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10136. (parseFile): Metalinker* -> MetalinkerHandle
  10137. * src/UrlRequestInfo.h
  10138. (execute): RequestInfo* -> RequestInfos
  10139. * src/MetalinkRequestInfo.cc
  10140. (AccumulateNonP2PUrl): MetalinkResource* -> MetalinkResourceHandle
  10141. (FindBitTorrentUrl): MetalinkResource* -> MetalinkResourceHandle
  10142. (execute): RequestInfo* -> RequestInfos
  10143. Added multiple <file> support. Print filename when it is queued.
  10144. * src/MetalinkRequestInfo.h
  10145. (execute): RequestInfo* -> RequestInfos
  10146. (getDownloadEngine): Removed.
  10147. * src/RequestInfo.h
  10148. (RequestInfoHandle): New type definition.
  10149. (RequestInfos): New type definition.
  10150. (execute): RequestInfo* -> RequestInfos
  10151. (getDownloadEngine): Removed.
  10152. * src/MetalinkResource.h
  10153. (MetalinkResourceHandle): New type definition.
  10154. (MetalinkResources): New type definition.
  10155. * src/MetalinkEntry.cc
  10156. (~MetalinkEntry): Removed the deletion of the elements of resources,
  10157. because the element is now of type MetalinkResourceHandle.
  10158. (PrefOrder): MetalinkResource* -> MetalinkResourceHandle
  10159. (Supported): MetalinkResource* -> MetalinkResourceHandle
  10160. (dropUnsupportedResource): Removed the deletion of the elements of
  10161. resources because the element is now of type MetalinkResourceHandle.
  10162. * src/Xml2MetalinkProcessor.cc
  10163. (parseFile): Metalinker* -> MetalinkerHandle
  10164. MetalinkEntry* -> MetalinkEntryHandle
  10165. Removed try-catch block.
  10166. (getEntry): MetalinkEntry* -> MetalinkEntryHandle
  10167. MetalinkResource* -> MetalinkResourceHandle
  10168. Removed try-catch block.
  10169. (getResource): MetalinkResource* -> MetalinkResourceHandle
  10170. Free result by using xmlXPathFreeObject()
  10171. * src/Metalinker.cc
  10172. (~Metalinker): Removed the deletion of entries.
  10173. MetalinkEntry* -> MetalinkEntryHandle
  10174. (queryEntry): Add multiple <file> Metalink support.
  10175. * src/Metalinker.h
  10176. (MetalinkEntries): Removed.
  10177. (queryEntry): MetalinkEntry* -> MetalinkEntries
  10178. * src/MetalinkProcessor.h
  10179. (parseFile): Metalinker* -> MetalinkerHandle
  10180. Bug fixes:
  10181. * src/PeerChokeCommand.cc
  10182. (execute): cat01->cat02
  10183. * src/DefaultPieceStorage.cc
  10184. (DefaultPieceStorage): Added diskAdaptor(0)
  10185. * src/TrackerWatcherComand.cc:
  10186. (execute): Use btAnnounce->noMoreAnnounce()
  10187. to determin whether the function returns true or not.
  10188. * src/TrackerUpdateCommand.cc:
  10189. (execute): Use btAnnounce->noMoreAnnounce()
  10190. to determin whether the function returns true or not.
  10191. * src/FtpConnection.cc
  10192. (bulkReceiveResponse): Throw DlRetryEx if EOF got.
  10193. This is the fix of the busy loop bug.
  10194. * src/DownloadCommand.cc
  10195. (DownloadCommand): Reuse PeerStat. segmentMan->getPeerStat() returns
  10196. cached PeerStat.
  10197. The value of "name" entry in torrent file is now set by
  10198. *DiskAdaptor::setTopDir(...) methods.
  10199. * src/MultiDiskAdaptor.h
  10200. (topDir): New variable.
  10201. (setTopDir): New function.
  10202. (getTopDir): New function.
  10203. * src/MultiDiskAdaptor.cc
  10204. (getFilePath): Concat storDir, "/" and topDir.
  10205. (mkdir): Use getFilePath() to get the directory path for output.
  10206. * src/DefaultPieceStorage.cc
  10207. (initStorage): Set the value of "name" entry to MultiDiskAdaptor,
  10208. CopyDiskAdaptor.
  10209. * src/CopyDiskAdaptor.h
  10210. (topDir): New variable.
  10211. (setTopDir): New function.
  10212. (getTopDir): New function.
  10213. * src/CopyDiskAdaptor.cc
  10214. (fixFilename): Updated.
  10215. Misc
  10216. * src/UrlRequestInfo.h
  10217. (e): Removed.
  10218. (UrlRequestInfo): Removed e.
  10219. (getDownloadEngine): Removed.
  10220. * src/UrlRequestInfo.cc
  10221. (handler): Rewritten.
  10222. (printUrls): New function.
  10223. (execute): Call printUrls().
  10224. * src/HandshakeMessage.cc
  10225. (check): peerinteraction->getBtContext() -> btContext
  10226. * src/PeerInteraction.h
  10227. (getBtContext): Removed.
  10228. * src/TorrentRequestInfo.h
  10229. (execute): RequestInfo* -> RequestInfos
  10230. (getDownloadEngine): Removed.
  10231. * src/TorrentRequestInfo.cc
  10232. (haltRequested): Removed.
  10233. (btHaltRequested): New variable.
  10234. (torrentHandler): haltRequested -> btHaltRequested
  10235. (execute): RequestInfo* -> RequestInfos
  10236. * src/TorrentConsoleDownloadEngine.cc
  10237. (afterEachIteration): haltRequested -> btHaltRequested.
  10238. * src/ConsoleDownloadEngine.h
  10239. (initStatistics): Added virtual.
  10240. (calculateStatistics): Added virtual.
  10241. (onEndOfRun): Added virtual.
  10242. (afterEachIteration): Added virtual.
  10243. * src/ConsoleDownloadEngine.cc
  10244. (haltRequested): New variable.
  10245. (afterEachIteration): New function.
  10246. * src/main.cc
  10247. (requestInfo): Removed.
  10248. * src/SegmentMan.cc
  10249. (findSlowerSegmentEntry): Refactored.
  10250. * Release 0.9.0
  10251. 2006-11-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10252. To divide TorrentMan into 6 classes: BtContext, BtRuntime,
  10253. PeerStorage, PieceStorage, BtAnnounce and BtProgressInfoFile
  10254. * src/TorrentMan.h: Removed.
  10255. * src/TorrentMan.cc: Removed.
  10256. * src/TrackerWatcherComand.h: Made subclass of BtContextAwareCommand.
  10257. * src/SeedCheckCommand.cc: Use pieceStorage, btRuntime
  10258. * src/PeerAbstractCommand.h: Made subclass of BtContextAwareCommand.
  10259. * src/PeerAbstractCommand.cc: Use btRuntime.
  10260. * src/BtContextAwareCommand.h: New class.
  10261. * src/FileEntry.h: Added accessor methods for following variables.
  10262. (path): Made private.
  10263. (length): Made private.
  10264. (offset): Made private.
  10265. (extracted): Made private.
  10266. (requested): Made private.
  10267. (FileEntries): New definition.
  10268. (FileEntryHandle): New definition.
  10269. * src/FileEntry.cc: New file.
  10270. * src/HaveEraseCommand.h: Made subclass of BtContextAwareCommand.
  10271. * src/HaveEraseCommand.cc: Use btRuntime, pieceStorage.
  10272. * src/PeerChokeCommand.h: Made subclass of BtContextAwareCommand.
  10273. * src/PeerChokeCommand.cc: Use btRuntime, peerStorage, pieceStorage.
  10274. * src/PieceStorage.h: New file.
  10275. * src/PeerInteractionCommand.h: Use btContext.
  10276. * src/PeerInteractionCommand.cc: Use pieceStorage, peerStorage,
  10277. btRuntime.
  10278. * src/DefaultBtProgressInfoFile.h: New file.
  10279. * src/DefaultBtProgressInfoFile.cc: New file.
  10280. * src/File.cc
  10281. (Util.h): New include.
  10282. (mkdirs): New function.
  10283. * src/MultiDiskAdaptor.h
  10284. (mkdir): New function.
  10285. * src/PeerListProcessor.h
  10286. (Peers): Removed.
  10287. * src/PeerInteraction.h
  10288. (torrentMan): Removed.
  10289. (btContext): New variable.
  10290. (peerStorage): New variable.
  10291. (pieceStorage): New variable.
  10292. (btAnnounce): New variable.
  10293. (getTorrentMan): Removed.
  10294. (getBtContext): New function.
  10295. * src/PeerInteraction.cc: Use btContext, peerStorage, pieceStorage,
  10296. btAnnounce.
  10297. * src/HandshakeMessage.h
  10298. (TorrentMan.h): Removed.
  10299. * src/HandshakeMessage.cc: Use btContext.
  10300. * src/DefaultBtAnnounce.cc: New file.
  10301. * src/MultiDiskWriter.cc: Use the accessor methods of FileEntry.
  10302. * src/DefaultPieceStorage.cc: New file.
  10303. * src/DefaultBtContext.h: New file.
  10304. * src/TorrentRequestInfo.cc: Use btContext, pieceStorage.
  10305. Use the accessor methods of FileEntry.
  10306. * src/CookieBox.cc: Updated to use Util::slice().
  10307. * src/PieceMessage.cc: Use btContext, pieceStorage.
  10308. * src/common.h (SharedHandle.h): New include.
  10309. * src/PeerMessage.cc (PeerMessage): Added btContext, peerStorage,
  10310. pieceStorage.
  10311. * src/TorrentAutoSaveCommand.h: Made subclass of BtContextAwareCommand.
  10312. * src/DiskAdaptor.h
  10313. (topDir): Removed.
  10314. (getFileEntryFromPath): Changed the return type to FileEntryHandle.
  10315. (setTopDir): Removed.
  10316. (getTopDir): Removed.
  10317. * src/BtContext.h: New file.
  10318. * src/DefaultPeerStorage.h: New file.
  10319. * src/PieceMessage.h (TorrentMan.h): Removed.
  10320. * src/RequestMessage.h (TorrentMan.h): Removed.
  10321. * src/TorrentDownloadEngine.h
  10322. (uploadLength): New variable.
  10323. (btContext): New variable.
  10324. (btRuntime): New variable.
  10325. (pieceStorage): New variable.
  10326. (peerStorage): New variable.
  10327. (btAnnounce): New variable.
  10328. (btProgressInfoFile): New variable.
  10329. (torrentMan): Removed.
  10330. (setBtContext): New function.
  10331. * src/TorrentDownloadEngine.cc: Use BtContext, BtRuntime, pieceStorage,
  10332. peerStorage, btAnnounce, btProgressInfoFile.
  10333. * src/Piece.h
  10334. (toString): New function.
  10335. (Pieces): New type definition.
  10336. * src/Peer.h
  10337. (active): New variable.
  10338. (Peer): Added active.
  10339. (activate): Set active to true.
  10340. (deactivate): Set active to false.
  10341. (isActive): New function.
  10342. (Peers): New type definition.
  10343. * src/DirectDiskAdaptor.cc
  10344. (getFilePath): Use the accessor methods of FileEntry.
  10345. * src/TorrentConsoleDownloadEngine.h
  10346. (afterEachIteration): New function.
  10347. * src/TorrentConsoleDownloadEngine.cc
  10348. (haltRequested): New variable.
  10349. (sendStatistics): Use pieceStorage, btRuntime.
  10350. (afterEachIteration): New function.
  10351. * src/AnnounceList: AnnounceTier->AnnounceTierHandle.
  10352. * src/Directry.h
  10353. (Directory): New function.
  10354. (DirectoryHandle): New type definition.
  10355. * src/BtProgressInfoFile.h: New file.
  10356. * src/RequestMessage.cc: Use pieceStorage.
  10357. * src/BtRuntime.h: New file.
  10358. * src/DefaultBtContext.cc: New file.
  10359. * src/BitfieldMan.h
  10360. (getCompletedLength): New function(private).
  10361. (getCompletedLength): New function.
  10362. (getFilteredCompletedLength): New function.
  10363. * src/BitfieldMan.h
  10364. (getCompletedLength): New function(private).
  10365. (getCompletedLength): New function.
  10366. (getFilteredCompletedLength): New function.
  10367. * src/MultiDiskAdaptor.cc
  10368. (mkdir): New function.
  10369. (openFile): Call mkdir().
  10370. (initAndOpenFile): Call mkdir().
  10371. * src/CancelMessage.h
  10372. (TorrentMan.h): Removed.
  10373. * src/RejectMessage.h
  10374. (TorrentMan.h): Removed.
  10375. * src/DownloadEngineFactory.cc
  10376. (DefaultPieceStorage.h): New include.
  10377. (DefaultPeerStorage.h): New include.
  10378. (DefaultBtAnnounce.h): New include.
  10379. (DefaultBtProgressInfoFile.h): New include.
  10380. (newTorrentConsoleEngine): Rewritten.
  10381. * src/ShareRatioSeedCriteria.h
  10382. (torrentMan): Removed.
  10383. (btContext): New variable.
  10384. (peerStorage): New variable.
  10385. (btRuntime): New variable.
  10386. (evaluate): Use btContext, btRuntime, peerStorage.
  10387. * src/AnnounceTier.h: New file.
  10388. * src/BtAnnounce.h: New file.
  10389. * src/BtRegistry.h: New file.
  10390. * src/PeerInitiateConnectionCommand.h: Added btContext.
  10391. * src/PeerConnection.h (TorrentMan.h): Removed.
  10392. * src/PeerMessageFactory.cc: Use btContext, pieceStorage.
  10393. * src/Util.h
  10394. (slice): Added an argument.
  10395. * src/Util.cc
  10396. (slice): Added an argument to control whether trim is made or not.
  10397. * src/PeerStorage.h: New file.
  10398. * src/BtRegistry.cc: New file.
  10399. * src/TrackerUpdateCommand.h: Made subclass of BtContextAwareCommand.
  10400. * src/CopyDiskAdaptor.cc: Use the accessor methods of FileEntry.
  10401. * src/MultiDiskWriter.h: FileEntry -> FileEntryHandle
  10402. * src/PeerListenCommand.cc: Use btRuntime, peerStorage, btContext.
  10403. * src/TorrentRequestInfo.h
  10404. (e): Removed.
  10405. (showFileEntry): Added an argument.
  10406. (getDownloadEngine): Return 0.
  10407. * src/DefaultBtAnnounce.h: New file.
  10408. * src/TorrentAutoSaveCommand.cc: Use btRuntime, btProgressInfoFile.
  10409. * src/TrackerWatcherComand.cc: Use btRuntime, btAnnounce,
  10410. * src/PeerMessageFactory.h
  10411. (btContext): New variable.
  10412. (pieceStorage): New variable.
  10413. * src/TrackerUpdateCommand.cc: Use btRuntime, peerStorage, btContext,
  10414. btAnnounce.
  10415. * src/DiskAdaptor.cc
  10416. (DiskAdaptor): Removed topDir.
  10417. (~DiskAdaptor): Removed topDir.
  10418. * src/PeerListenCommand.h: Made subclass of BtContextAwareCommand.
  10419. * src/SeedCheckCommand.h: Made subclass of BtContextAwareCommand.
  10420. * src/File.h (mkdirs): New function.
  10421. * src/DefaultPeerStorage): New file.
  10422. * src/DownloadEngineFactory.h
  10423. (newTorrentConsoleEngine): Use btContext.
  10424. * src/BtContextAwareCommand.cc: New file.
  10425. * src/PeerInitiateConnectionCommand.cc: Use btRuntime, peerStorage.
  10426. * src/PeerMessage.h
  10427. (btContext): New variable.
  10428. (peerStorage): New variable.
  10429. (pieceStorage): New variable.
  10430. (setBtContext): New function.
  10431. * src/Directry.cc
  10432. (Directory): New function.
  10433. (createDir): Do nothing if name.size() == 0.
  10434. * src/AnnounceList.h
  10435. (AnnounceTier): Removed.
  10436. (AnnounceTiers): Removed.
  10437. * src/DefaultPieceStorage.h: New file.
  10438. * src/Piece.cc (toString): New function.
  10439. To fix typo:
  10440. * src/main.cc (showVersion): Fixed typo.
  10441. To fix compile warning:
  10442. * src/DelegatingPeerListProcessor.cc
  10443. (canHandle): Added "return false".
  10444. 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10445. To simplify TrackerWatherCommand, TrackerUpdateCommand and
  10446. make the process of announce request testable.
  10447. * src/TrackerWatcherCommand.h
  10448. (TimeA2.h): Removed.
  10449. (interval): Removed.
  10450. (checkPoint): Removed.
  10451. (createRequestCommand): Added an argument 'url'.
  10452. (TrackerWatherCommand): Removed interval.
  10453. (createCommand): New function.
  10454. * src/DownloadEngineFactory.cc
  10455. (newTorrentConsoleEngine): Updated according to the changes in
  10456. TrackerWatherCommand.
  10457. * src/TorrentMan.cc
  10458. (DelegatingPeerListProcessor.h): New includes.
  10459. (TorrentMan): Added the initialization of announceInterval.
  10460. (isStoppedAnnounceReady): New function.
  10461. (isCompletedAnnounceReady): New function.
  10462. (isDefaultAnnounceReady): New function.
  10463. (isAnnounceReady): New function.
  10464. (getAnnounceUrl): New function.
  10465. (announceStart): New function.
  10466. (announceFailure): New function.
  10467. (announceSuccess): New function.
  10468. (isAllAnnounceFailed): New function.
  10469. (resetAnnounce): New function.
  10470. (processAnnounceResponse): New function.
  10471. (needMorePeerConnection): New function.
  10472. (noMoreAnnounce): New function.
  10473. * src/TrackerUpdateCommand.h
  10474. (getTrackerResponse): int->size_t
  10475. * src/TorrentMan.h
  10476. (isStoppedAnnounceReady): New function.
  10477. (isCompletedAnnounceReady): New function.
  10478. (isDefaultAnnounceReady): New function.
  10479. (announceInterval): New variable.
  10480. (isAnnounceReady): New function.
  10481. (getAnnounceUrl): New function.
  10482. (announceStart): New function.
  10483. (announceFailure): New function.
  10484. (announceSuccess): New function.
  10485. (isAllAnnounceFailed): New function.
  10486. (resetAnnounce): New function.
  10487. (processAnnounceResponse): New function.
  10488. (needMorePeerConnection): New function.
  10489. (noMoreAnnounce): New function.
  10490. * src/TrackerWatcherCommand.cc
  10491. (TrackerWatherCommand): Removed interval and checkPoint.
  10492. (execute): Rewritten.
  10493. (createCommand): New function.
  10494. (createRequestCommand): Rewritten.
  10495. * src/TrackerUpdateCommand.cc
  10496. (MetaFileUtil.h): Removed.
  10497. (DelegatingPeerListProcessor.h): Removed.
  10498. (getTrackerResponse): int->size_t. Use torrentMan's new functions.
  10499. 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10500. Request -> RequestHandle:
  10501. * src/HttpResponseCommand.h: Request->RequestHandle
  10502. * src/AbstractCommand.cc: Request->RequestHandle
  10503. * src/HttpDownloadCommand.cc: Request->RequestHandle
  10504. * src/HttpRequestCommand.cc: Request->RequestHandle
  10505. * src/FtpInitiateConnectionCommand.h: Request->RequestHandle
  10506. * src/AbstractCommand.h: Request->RequestHandle
  10507. * src/HttpProxyRequestCommand.h: Request->RequestHandle
  10508. * src/HttpResponseCommand.cc: Request->RequestHandle
  10509. * src/HttpInitiateConnectionCommand.h: Request->RequestHandle
  10510. * src/FtpNegotiateCommand.cc: Request->RequestHandle
  10511. * src/FtpTunnelResponseCommand.h: Request->RequestHandle
  10512. * src/HttpConnection.h: Request->RequestHandle
  10513. * src/HttpProxyResponseCommand.cc: Request->RequestHandle
  10514. * src/InitiateConnectionCommandFactory.h: Request->RequestHandle
  10515. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10516. * src/DownloadCommand.h: Request->RequestHandle
  10517. * src/FtpDowndloadCommand.cc: Request->RequestHandle
  10518. * src/HttpInitiateConnectionCommand.cc: Request->RequestHandle
  10519. * src/HttpRequestCommand.h: Request->RequestHandle
  10520. * src/FtpNegotiateCommand.h: Request->RequestHandle
  10521. * src/FtpTunnelResponseCommand.cc: Request->RequestHandle
  10522. * src/FtpInitiateConnectionCommand.cc: Request->RequestHandle
  10523. * src/HttpDownloadCommand.h: Request->RequestHandle
  10524. * src/FtpConnection.cc: Request->RequestHandle
  10525. * src/InitiateConnectionCommandFactory.cc: Request->RequestHandle
  10526. * src/UrlRequestInfo.cc: Request->RequestHandle
  10527. * src/HttpProxyResponseCommand.h: Request->RequestHandle
  10528. * src/HttpConnection.h: Request->RequestHandle
  10529. * src/DownloadCommand.cc: Request->RequestHandle
  10530. * src/FtpConnection.h: Request->RequestHandle
  10531. * src/FtpDowndloadCommand.h: Request->RequestHandle
  10532. * src/HttpProxyRequestCommand.cc: Request->RequestHandle
  10533. * src/FtpTunnelRequestCommand.h: Request->RequestHandle
  10534. * src/Request.h
  10535. (SharedHandle.h): New include.
  10536. (RequestHandle): New type definition.
  10537. (Requests): Redefined.
  10538. To add MULTITRACKER support:
  10539. * src/TrackerWatcherCommand.h
  10540. (createRequestCommand): New function.
  10541. * src/DownloadEngineFactory.cc
  10542. (newTorrentConsoleEngine): Removed req.
  10543. * src/prefs.h
  10544. (PREF_TRACKER_MAX_TRIES): New definition.
  10545. * src/TorrentMan.cc
  10546. (TorrentMan): Removed req. Added trackerNumTry.
  10547. (~TorrentMan): Removed req.
  10548. (setupInternal1): Added announceList.
  10549. * src/TorrentRequestInfo.cc
  10550. (execute): Set PREF_MAX_TIRES to 1. The max number of tries for
  10551. announces is now specified by PREF_TRACKER_MAX_TRIES.
  10552. * src/main.cc
  10553. (main): Added PREF_TRACKER_MAX_TRIES.
  10554. * src/TorrentMan.h
  10555. (Request.h): Removed.
  10556. (AnnounceList.h): New include.
  10557. (trackerNumTry): New variable.
  10558. (req): Removed.
  10559. (announceList): New variable.
  10560. * src/TrackerWatcherCommand.cc
  10561. (execute): Rewritten.
  10562. (createRequestCommand): New function.
  10563. * src/TrackerUpdateCommand.cc
  10564. (execute): Updated with the use of AnnounceList.
  10565. * src/AnnounceList.cc: New class.
  10566. * src/AnnounceList.h: New class.
  10567. To fix typo:
  10568. * src/prefs.h
  10569. (PREF_MAX_TRIES): max_try->max_tries
  10570. To not to decode "+" as space in URL decode:
  10571. * src/Util.cc
  10572. (urldecode): Removed "+"->space decoding rule. Test case was updated.
  10573. 2006-10-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10574. To add timeout to async name resolution:
  10575. * src/AbstractCommand.h
  10576. (nameResolveFinished): New function. This is not elegant way. It needs
  10577. to be more refined.
  10578. (nameResolverCheck): New variable.
  10579. * src/AbstractCommand.cc
  10580. (AbstractCommand): Added nameResolverCheck.
  10581. (execute): Added the check whether the name resolution has finished.
  10582. (setNameResolverCheck): Set nameResolverCheck to true.
  10583. (disableNameResolverCheck): Set nameResolverCheck to false.
  10584. (nameResolverFinished): New function.
  10585. * src/FtpInitiateConnectionCommand.h
  10586. (nameResolverFinished): New function.
  10587. * src/FtpInitiateConnectionCommand.cc
  10588. (FtpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10589. * src/HttpInitiateConnectionCommand.h
  10590. (nameResolverFinished): New function.
  10591. * src/HttpInitiateConnectionCommand.cc
  10592. (HttpInitiateConnectionCommand): Set timeout to PREF_DNS_TIMEOUT.
  10593. * src/prefs.h
  10594. (PREF_DNS_TIMEOUT): New definition.
  10595. * src/main.cc
  10596. (main): Added PREF_DNS_TIMEOUT.
  10597. To add the support for a non-compact response from a tracker:
  10598. * src/PeerListProcessor.h: New class.
  10599. * src/DefaultPeerListProcessor.h: New class.
  10600. * src/DefaultPeerListProcessor.cc: New class.
  10601. * src/CompactPeerListProcessor.h: New class.
  10602. * src/CompactPeerListProcessor.cc: New class.
  10603. * src/DelegatingPeerListProcessor.h: New class.
  10604. * src/DelegatingPeerListProcessor.cc: New class.
  10605. * src/TorrentMan.cc
  10606. (addPeer): New function(overload).
  10607. (addPeer): Delete unused peers only when new peer is added.
  10608. * src/TorrentMan.h
  10609. (PeerListProcessor.h): Included.
  10610. (Peers): Removed.
  10611. (addPeer): New function(overload).
  10612. * src/TrackerUpdateCommand.cc
  10613. (netinet/in.h): Removed.
  10614. (DelegatingPeerListProcessor.h): Included.
  10615. (execute): Updated to use DelegatingPeerListProcessor.
  10616. To fix the memory leak in TorrentMan::peers:
  10617. * src/PeerAbstractCommand.cc
  10618. (onAbort): Added peer->resetStatus().
  10619. * src/Peer.h
  10620. (resetStatus): Made public.
  10621. To improve the precision of the speed calculation:
  10622. * src/SpeedCalc.h
  10623. (nextInterval): New variable.
  10624. * src/SpeedCalc.cc
  10625. (reset): Added nextInterval.
  10626. (isIntervalOver): Use nextInterval instead of CHANGE_INTERVAL_SEC.
  10627. (changeSw): Set nextInterval to 15 seconds relative to the current
  10628. instant time.
  10629. * src/main.cc
  10630. (showVersion): Updated.
  10631. (showUsage): Updated.
  10632. * Release 0.8.1
  10633. 2006-09-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10634. * src/main.cc
  10635. (showUsage): Commented out --min-segment-size option.
  10636. (main): Commented out --min-segment-size option.
  10637. * Release 0.8.0
  10638. 2006-09-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10639. * src/*.{h,cc}:
  10640. Added an exception to the license which allows linking with OpenSSL.
  10641. 2006-09-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10642. * src/AbstractCommand.cc
  10643. (execute): Check whether the download has finished before checking
  10644. socket status.
  10645. Return true if peerStat->getStatus() == REQUEST_IDLE.
  10646. Do not exit even if no segment is available.
  10647. * src/prefs.h
  10648. (PREF_STARTUP_IDLE_TIME): New definition.
  10649. * src/PeerInteractionCommand.cc
  10650. (executeInternal): Removed max speed limit. Because it performs bad.
  10651. (receiveMessages): Added max speed limit. This was better than above,
  10652. but still a little bit to be desired. Sometimes the download speed
  10653. became much faster than I specified.
  10654. * src/SpeedCalc.h
  10655. (start): New variable.
  10656. (accumulatedLength): New variable.
  10657. (getAvgSpeed): New function.
  10658. * src/SpeedCalc.cc
  10659. (reset): Added start, accumulatedLength.
  10660. (update): Added calculation of an average speed.
  10661. (getAvgSpeed): New function.
  10662. * src/DownloadCommand.h
  10663. (sw): Removed.
  10664. * src/main.cc
  10665. (main): Added PREF_STARTUP_IDLE_TIME.
  10666. * src/PeerStat.h
  10667. (STATUS): Added REQUEST_IDLE.
  10668. (getMaxSpeed): Renamed as getMaxDownloadSpeed().
  10669. (getAvgDownloadSpeed): New function
  10670. (requestIdle): New function.
  10671. * src/SegmentMan.h
  10672. (SegmentEntryHandle): New type definition.
  10673. (SegmentEntries): Now holds SegmentEntryHandle.
  10674. (findSlowerSegmentEntry): New funtion.
  10675. * src/SegmentMan.cc
  10676. (save): Updated according to the changes in SegmentEntries.
  10677. (read): Updated according to the changes in SegmentEntries.
  10678. (FindSegmentEntryByIndex): Updated according to the changes in
  10679. SegmentEntries.
  10680. (FindSegmentEntryByCuid): Updated according to the changes in
  10681. SegmentEntries.
  10682. (checkoutSegment): Updated according to the changes in SegmentEntries.
  10683. (onNullBitfield): Updated according to the changes in SegmentEntries.
  10684. Renamed uitr as itr.
  10685. (findSlowerSegmentEntry): New function.
  10686. (getSegment): Updated according to the changes in SegmentEntries.
  10687. Added the feature that cancels the segment with slow server and fast
  10688. one takes it over.
  10689. (cancelSegment): Updated according to the changes in SegmentEntries.
  10690. (getDownloadLength): Updated according to the changes in
  10691. SegmentEntries.
  10692. (init): Assigned 0 to bitfield after deleting it.
  10693. * src/DownloadCommand.cc
  10694. (STARTUP_IDLE_TIME): Removed.
  10695. (executeInternal): Use PREF_STARTUP_IDLE_TIME.
  10696. * src/PeerChokeCommand.cc
  10697. (optUnchokingPeer): Updated according to the changes in Peer.
  10698. (ResetDelta): Removed.
  10699. (UploadFaster): Updated according to the changes in Peer.
  10700. (DownloadFaster): Updated according to the changes in Peer.
  10701. (execute): I clarify the meaning of "upload" and "download" here.
  10702. "upload" means the transfer from localhost to remote host.
  10703. "download" means the transfer from remote host to localhost.
  10704. Based on this rule, I swapped orderByUploadRate and
  10705. orderByDownloadRate.
  10706. * src/PeerInteractionCommand.cc
  10707. (PeerInteraction): Removed peerInteraction->setUploadLImit().
  10708. (executeInternal): Removed the argument of
  10709. peerInteraction->sendMessages().
  10710. (receiveMessages): Rewritten download speed limit.
  10711. (sendKeepAlive): Removed peerInteraction->sendMessages().
  10712. * src/HttpResponseCommand.cc
  10713. (handleDefaultEncoding): If file size is unknown in torrent request,
  10714. do not call segmentMan->initBitfield() here.
  10715. Disabled persistent connection feature in torrent request.
  10716. * src/UrlRequestInfo.h
  10717. (UrlRequestInfo): Removed const qualifier from option.
  10718. * src/TorrentMan.h
  10719. (TransferStat): New class.
  10720. (deltaDownloadLength): Removed.
  10721. (deltaUploadLength): Removed.
  10722. (addDeltaDownloadLength): Removed.
  10723. (getDeltaDownloadLength): Removed.
  10724. (resetDeltaDownloadLength): Removed.
  10725. (addDeltaUploadLength): Removed.
  10726. (getDeltaUploadLength): Removed.
  10727. (resetDeltaUploadLength): Removed.
  10728. (addActivePeer): Added peer->activate().
  10729. (deleteActivePeer): Added peer->deactivate().
  10730. (calculateStat): New function.
  10731. * src/TorrentMan.cc
  10732. (TorrentMan): Removed deltaDownloadLength and deltaUploadLength.
  10733. (calculateStat): New function.
  10734. * src/PeerInteraction.h
  10735. (uploadLimit): Removed.
  10736. (option): New variable.
  10737. (setUploadLimit): Removed.
  10738. (getUploadSpeed): Removed.
  10739. (sendMessages): Removed the argument "currentUploadSpeed".
  10740. * src/PeerInteraction.cc
  10741. (prefs.h): Included.
  10742. (PeerInteraction): Removed uploadLimit. Added option.
  10743. (sendMessages): Rewritten upload speed limit.
  10744. (sendHandshake): Removed the argument from sendMessages().
  10745. (sendBitfield): Removed the argument from sendMessages().
  10746. * src/PeerAbstractCommand.cc
  10747. (execute): Commented out the portion of upload limit.
  10748. (onAbort): Removed peer->resetStatus().
  10749. * src/TorrentRequestInfo.cc
  10750. (timeoutSpecified): Declared extern.
  10751. (execute): Set timeout to 180 if timeout is not specified by.
  10752. command-line.
  10753. * src/PieceMessage.cc
  10754. (receivedAction): Added peer->updateDownloadLength().
  10755. Removed peer->addPeerUpload().
  10756. Removed torrentMan->addDeltaDownloadLength().
  10757. (send): Added peer->updateUploadLength().
  10758. Removed peer->addPeerDownload().
  10759. Removed torrentMan->addDeltaUploadLength().
  10760. * src/main.cc
  10761. (timeoutSpecified): New variable.
  10762. (main): Set timeoutSpecified to false.
  10763. If the command-line option "--upload-limit" is specified, then
  10764. timeoutSpecified is set to true. This option will remain in the next
  10765. release, but be deprecated in the future release.
  10766. * src/TorrentRequestInfo.h
  10767. (TorrentRequestInfo): Removed const qualifier from op.
  10768. * src/PeerStat.h
  10769. (uploadSpeed): New variable.
  10770. (PeerStat): Added default value to cuid.
  10771. (calculateUploadSpeed): New function.
  10772. (updateUploadLength): New function.
  10773. (getMaxUploadSpeed): New function.
  10774. (getAvgUploadSpeed): New function.
  10775. (reset): Added uploadSpeed. Set status to IDLE.
  10776. * src/TorrentDownloadEngine.h
  10777. (cp): Declared as Time.
  10778. (sessionDownloadLengthArray): Removed.
  10779. (sessionUploadLengthArray): Removed.
  10780. (currentCp): Removed.
  10781. (lastCalcStat): New variable
  10782. (lastElapsed): Removed.
  10783. (sessionDownloadLength): Removed.
  10784. (calculateStat): New function.
  10785. * src/TorrentDownloadEngine.cc
  10786. (initStatistics): Removed lastElapsed, cp[],
  10787. sessionDownloadLengthArray[], sessionUploadLengthArray[],
  10788. currentCp, sessionDownloadLength.
  10789. Added cp.reset() and lastCalcStat.reset().
  10790. (calculateSpeed): Changed the name of the argument.
  10791. (calculateStatistics): Rewritten.
  10792. (calculateStat): New function.
  10793. * src/Peer.h
  10794. (PeerStat.h): Included.
  10795. (peerUpload): Removed.
  10796. (peerDownload): Removed.
  10797. (peerStat): New variable.
  10798. (sessionUploadLength): New variable.
  10799. (sessionDownloadLength): New variable.
  10800. (deltaUpload): Removed.
  10801. (deltaDownload): Removed.
  10802. (resetStatus): Made private.
  10803. (Peer): Added sessionUploadLength, sessionDownloadLength.
  10804. Removed peerUpload, peerDownload.
  10805. (updateUploadLength): New function.
  10806. (addDeltaUpload): Removed.
  10807. (updateDownloadLength): New function.
  10808. (resetDeltaUpload): Removed.
  10809. (getDeltaUpload): Removed.
  10810. (addDeltaDownload): Removed.
  10811. (calculateUploadSpeed): New function.
  10812. (resetDeltaDownload): Removed.
  10813. (getDeltaDownload): Removed.
  10814. (calculateDownloadSpeed): New function.
  10815. (getSessionUploadLength): New function.
  10816. (getSessionDownloadLength): New function.
  10817. (activate): New function.
  10818. (deactivate): New function.
  10819. (addPeerUpload): Removed.
  10820. (setPeerUpload): Removed.
  10821. (getPeerUpload): Removed.
  10822. (addPeerDownload): Removed.
  10823. (setPeerDownload): Removed.
  10824. (getPeerDownload): Removed.
  10825. * src/Peer.cc
  10826. (resetStatus): Removed resetDeltaUpload() and resetDeltaDownload().
  10827. * src/MetalinkRequestInfo.h
  10828. (MetalinkRequestInfo): Removed const qualifier from op.
  10829. * src/RequestInfo.h
  10830. (op): Removed const qualifier.
  10831. (RequestInfo): Removed const qualifier from op.
  10832. * src/prefs.h
  10833. (PREF_MAX_SPEED_LIMIT): Renamed as PREF_MAX_DOWNLOAD_LIMIT.
  10834. (PREF_UPLOAD_LIMIT): Renamed as PREF_MAX_UPLOAD_LIMIT.
  10835. * src/PeerInteractionCommand.cc
  10836. (PeerInteractionCommand): Use PREF_MAX_UPLOAD_LIMIT.
  10837. (receiveMessages): Use PREF_MAX_DOWNLOAD_LIMIT.
  10838. * src/PeerInteraction.cc
  10839. (sendMessages): Use PREF_MAX_UPLOAD_LIMIT.
  10840. * src/main.cc
  10841. (showUsage): Updated the description of "--lowest-speed-limit" option.
  10842. Added the description of "--max-download-limit" option.
  10843. Removed the description of "--upload-limit" option.
  10844. Added the description of "--max-upload-limit" option.
  10845. (main): Use PREF_MAX_UPLOAD_LIMIT, PREF_MAX_DOWNLOAD_LIMIT.
  10846. Added "--max-download-limit" option and "--max-upload-limit" option.
  10847. Added the warning message if "--upload-limit" option is used.
  10848. * src/DownloadCommand.cc
  10849. (executeInternal): Use PREF_MAX_DOWNLOAD_LIMIT.
  10850. 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  10851. To rewrite segment download mechanism for HTTP/FTP download.
  10852. Use BitfieldMan to manage segment download.
  10853. * src/HttpResponseCommand.h
  10854. (executeInternal): Pass the reference of segment.
  10855. * src/AbstractCommand.cc
  10856. (prepareForRetry): Call segmentMan->cancelSegment here.
  10857. (onAbort): Call segmentMan->cancelSegment here.
  10858. * src/HttpDownloadCommand.cc
  10859. (prepareForNextSegment): New function.
  10860. * src/DownloadEngineFactory.cc
  10861. (newConsoleEngine): Removed splitter.
  10862. (newTorrentConsoleEngine): Removed splitter.
  10863. * src/Request.h
  10864. (segment): Renamed from seg.
  10865. * src/FtpInitiateConnectionCommand.h
  10866. (executeInternal): Pass the reference of segment.
  10867. * src/AbstractCommand.h
  10868. (executeInternal): Pass the reference of segment.
  10869. * src/pref.h
  10870. (PREF_SEGMENT_SIZE): New definition.
  10871. * src/HttpProxyRequestCommand.h
  10872. (executeInternal): Pass the reference of segment.
  10873. * src/HttpResponseCommand.cc
  10874. (checkResponse): Allowed status 206 when a request range starts 0.
  10875. (handleDefaultEncoding): Rewritten the code related to Segment.
  10876. (handleOtherEncoding): Rewritten the code related to Segment.
  10877. * src/SegmentMan.h
  10878. (SegmentEntry): New class.
  10879. (SegmentEntries): New type definition.
  10880. (bitfield): New variable.
  10881. (usedSegmentEntries): New variable.
  10882. (onNullBitfield): New function.
  10883. (checkoutSegment): New function.
  10884. (segments): Removed.
  10885. (splitter): Removed.
  10886. (unregisterId): Removed.
  10887. (getSegment): New function(overload)
  10888. (getDownloadedSize): Removed.
  10889. (cancelSegment): New function.
  10890. (completeSegment): New function.
  10891. (initBitfield): New function.
  10892. (hasSegment): New function.
  10893. (getDownloadLength): New function.
  10894. * src/BitfieldMan.h
  10895. (getStartIndex): New function.
  10896. (getEndIndex): New function.
  10897. (getMissingUnusedIndex): New function(overload).
  10898. (getSparseMissingUnusedIndex): New function.
  10899. * src/BitfieldMan.cc
  10900. (getMissingIndexRandomly): Handle the last byte of bitfield properly.
  10901. (getMissingUnusedIndex): New function(overload).
  10902. (Range): New class.
  10903. (getStartIndex): New function.
  10904. (getEndIndex): New function.
  10905. (getSparseMissingUnusedIndex): New function.
  10906. (isBitSetInternal): Return false if the given index is less than 0.
  10907. * src/HttpInitiateConnectionCommand.h
  10908. (executeInternal): Pass the reference of segment.
  10909. * src/FtpNegotiateCommand.h
  10910. (executeInternal): Pass the reference of segment.
  10911. * src/FtpNegotiateCommand.cc
  10912. (recvSize): Initialize bitfield here.
  10913. * src/FtpTunnelResponseCommand.h
  10914. (executeInternal): Pass the reference of segment.
  10915. * src/HttpConnection.cc
  10916. (createRequest): Rewritten range header processing.
  10917. * src/DownloadCommand.h
  10918. (executeInternal): Pass the reference of segment.
  10919. (prepareForRetry): Removed.
  10920. (prepareForNextSegment): Added an argument segment. Made it a virtual
  10921. function.
  10922. * src/main.cc
  10923. (main): Set the initial value of PREF_SEGMENT_SIZE to 1MB.
  10924. * src/SegmentMan.cc
  10925. (SegmentMan): Added bitfield. Removed splitter.
  10926. (~SegmentMan): Added bitfield. Removed splitter.
  10927. (unregisterId): Removed.
  10928. (getSegment): Rewritten.
  10929. (updateSegment): Rewritten.
  10930. (save): Rewritten.
  10931. (read): Rewritten.
  10932. (finished): Rewritten.
  10933. (getDownloadedSize): Removed.
  10934. (initBitfield): New function.
  10935. (FindSegmentEntryByIndex): New function object.
  10936. (FindSegmentEntryByCuid): New function object.
  10937. (checkoutSegment): New function.
  10938. (onNullBitfield): New function.
  10939. (getSegment): New function(overload).
  10940. (CancelSegment): New function object.
  10941. (cancelSegment): New function.
  10942. (completeSegment): New function.
  10943. (hasSegment): New function.
  10944. (getDownloadLength): New function.
  10945. * src/FtpInitiateConnectionCommand.cc
  10946. (executeInternal): Load .aria2 file after hostname resolution finishes.
  10947. * src/Segment.h: Rewritten.
  10948. * src/Segment.cc (operator<<): New function.
  10949. * src/HttpDownloadCommand.h
  10950. (prepareForNextSegment): New function.
  10951. * src/Request.cc
  10952. (resetUrl): Made segment null.
  10953. * src/DownloadEngine.cc
  10954. (~DownloadEngine): Call cleanQueue before deleting segmentMan.
  10955. * src/HttpProxyRequestCommand.h
  10956. (executeInternal): Pass the reference of segment.
  10957. * src/DownloadCommand.cc
  10958. (executeInternal): Rewritten the code related to Segment.
  10959. (prepareForRetry): Removed.
  10960. (prepareForNextSegment): Rewritten.
  10961. * src/FtpTunnelResponseCommand.h
  10962. (executeInternal): Pass the reference of segment.
  10963. To add HTTP 1.1 persistent connection support(experimental)
  10964. * src/HttpRequestCommand.cc
  10965. (executeInternal): Disable keep alive if it is disabled by
  10966. configuration.
  10967. * src/Request.h
  10968. (keepAlive): New variable.
  10969. (isKeepAlive): New function.
  10970. (setKeepAlive): New function.
  10971. * src/pref.h
  10972. (PREF_HTTP_KEEP_ALIVE): New definition.
  10973. * src/HttpResponseCommand.cc
  10974. (executeInternal): Check the remote server supports keep alive.
  10975. * src/HttpConnection.cc
  10976. (createRequest): Send "Connection: close" only if keep alive is
  10977. disabled.
  10978. * src/main.cc
  10979. (main):
  10980. Set the initial value(false) of PREF_KEEP_ALIVE to false.
  10981. To add max download speed limit:
  10982. * src/pref.h
  10983. (PREF_MAX_SPEED_LIMIT): New definition.
  10984. * src/PeerInteractionCommand.cc
  10985. (executeInternal): Added max download speed limit. Not tested yet.
  10986. * src/SegmentMan.h
  10987. (PeerStats): New type definition.
  10988. (peerStats): New variable.
  10989. (registerPeerStat): New function.
  10990. (FindPeerStat): New function object.
  10991. (getPeerStat): New function.
  10992. (calculateDownloadSpeed): New function.
  10993. * src/SpeedCalc.h: New class.
  10994. * src/SpeedCalc.cc: New class.
  10995. * src/main.cc
  10996. (main):
  10997. Set the initial value of PREF_MAX_SPEED_LIMIT to 0(which means the
  10998. download speed is not restricted).
  10999. * src/PeerStat.h: New class.
  11000. * src/SegmentMan.cc
  11001. (registerPeerStat): New function.
  11002. (calculateDownloadSpeed): New function.
  11003. * src/DownloadCommand.cc
  11004. (STARTUP_IDLE_TIME): New definition.
  11005. (DownloadCommand): Register peerStat to segmentMan. Call peerStat->
  11006. downloadStart.
  11007. (~DownloadCommand): Call peerStat->downloadStop.
  11008. (executeInternal): Added download speed limitter. Rewritten lowest
  11009. speed limitter.
  11010. * src/HttpConnection.cc
  11011. (receiveResponse): Fixed: eohIndex[headerBuf] -> headerBuf[eohIndex].
  11012. * src/AbstractCommand.cc
  11013. (resolveHostname): Throw DlAbortEx if a name resolution failes.
  11014. Added hostname to the error message.
  11015. * src/ConsoleDownloadEngine.cc
  11016. (calculateStatistics): Initialize psize with dlSize.
  11017. * src/PieceMessage.cc
  11018. (receivedAction): Do not call peerInteraction->abortPiece here.
  11019. (onGotWrongPiece): Call peerInteraction->abortPiece here.
  11020. * src/BitfieldMan.h
  11021. (clearAllUseBit): New function.
  11022. (setAllUseBit): New function.
  11023. * src/BitfieldMan.cc
  11024. (clearAllBit): Do not clear useBitfield here.
  11025. (clearAllUseBit): New function.
  11026. (setAllUseBit): New function.
  11027. * src/Piece.cc
  11028. (clearAllBlock): Call bitfield->clearAllUseBit().
  11029. 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11030. To make filename URL-decoded:
  11031. * src/HttpResponseCommand.h: Updated doc.
  11032. * src/HttpResponseCommand.cc
  11033. (determinFilename): Made filename URL-decoded.
  11034. * src/FtpInitiateConnectionCommand.cc
  11035. (executeInternal): Made filename URL-decoded.
  11036. * src/Util.h (urldecode): New function.
  11037. * src/Util.cc (urldecode): New function.
  11038. To fix a bug that caused assertion failure in ares_strerror:
  11039. * src/NameResolver.cc (callback): Fixed the bug.
  11040. * Release 0.7.3
  11041. 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11042. To add --seed-time and --seed-ratio command-line option:
  11043. * src/Option.h (getAsDouble): New function.
  11044. * src/Option.cc (getAsDouble): New function.
  11045. * src/SeedCheckCommand.h: New class.
  11046. * src/SeedCheckCommand.cc: New class.
  11047. * src/DownloadEngineFactory.cc
  11048. (SeedCheckCommand.h): Included.
  11049. (UnionSeedCriteria.h): Included.
  11050. (TimeSeedCriteria.h): Included.
  11051. (ShareRatioSeedCriteria.h): Included.
  11052. (newTorrentConsoleEngine): Added the processing of seed option.
  11053. * src/SeedCriteria.h: New class.
  11054. * src/ShareRatioSeedCriteria.h: New class.
  11055. * src/TimeSeedCriteria.h: New class.
  11056. * src/UnionSeedCriteria.h: New class.
  11057. * src/prefs.h
  11058. (PREF_SEED_TIME): New definition.
  11059. (PREF_SEED_RATIO): New definition.
  11060. * src/main.cc
  11061. (showUsage): Added --seed-time and --seed-ratio option.
  11062. (main): Added --seed-time and --seed-ratio option.
  11063. Made default log file name "/dev/null".
  11064. * src/SharedHandle.h
  11065. (SharedHandle): Copy constructor. Made it assignable from the
  11066. SharedHandle of the subclasses.
  11067. (operator=): Made it assignable from the SharedHandle of the
  11068. subclasses.
  11069. (getRefCount): New function.
  11070. To add notice log level and the switch to write log to stdout. This
  11071. switch is configurable per log level.
  11072. * src/Logger.h
  11073. (notice): New function.
  11074. (LEVEL): Added NOTICE. Assigned an explicit value to each log level
  11075. constant.
  11076. * src/LogFactory.cc
  11077. (getInstance): The use of NullLogger was removed. A log message with
  11078. notice log level was made written to stdout along with log file.
  11079. * src/NullLogger.h
  11080. (notice): New function.
  11081. * src/SimpleLogger.h
  11082. (writeHeader): Added the 'file' argument.
  11083. (writeLog): Added the 'file' argument.
  11084. (writeFile): New function.
  11085. (stdoutField): New variable.
  11086. (SimpleLogger): Removed the default constructor.
  11087. (SimpleLogger): Made the default value of logfile 0.
  11088. (debug): Added 'virtual' keyword.
  11089. (info): Added 'virtual' keyword.
  11090. (warn): Added 'virtual' keyword.
  11091. (error): Added 'virtual' keyword.
  11092. (notice): New function.
  11093. (setStdout): New function.
  11094. * src/SimpleLogger.cc
  11095. (WRITE_LOG): Replaced writeLog with writeFile.
  11096. (WRITE_LOG_EX): Replaced writeLog with writeFile.
  11097. (SimpleLogger): Removed the default constructor.
  11098. (setStdout): New function.
  11099. (writeLog): Added the handling of NOTICE log level.
  11100. (writeFile): New function.
  11101. (notice): New function.
  11102. * src/TorrentMan.h: Updated doc.
  11103. * src/BitfieldMan.h: Updated doc.
  11104. * src/TrackerWatcherCommand.cc
  11105. (execute): Return true if error occurred in the request to the tracker
  11106. and halt is requested.
  11107. * src/TrackerUpdateCommand.cc
  11108. (execute): Return true if error occurred in the request to the tracker
  11109. and halt is requested.
  11110. To call onDownloadComplete from TorrentMan::completePiece(), not from
  11111. DownloadEngine:
  11112. * src/TorrentConsoleDownloadEngine.h
  11113. (onSelectiveDownloadingCompletes): Removed.
  11114. * src/TorrentConsoleDownloadEngine.cc
  11115. (onSelectiveDownloadingCompletes): Removed.
  11116. * src/TorrentDownloadEngine.h
  11117. (onEndOfRun): Added 'virtual' keyword.
  11118. (afterEachIteration): Removed.
  11119. (onSelectiveDownloadingCompletes): Removed.
  11120. * src/TorrentDownloadEngine.cc
  11121. (onEndOfRun): Removed filenameFixed.
  11122. (afterEachIteration): Removed.
  11123. * src/TorrentMan.cc
  11124. (completePiece): Call onDownloadComplete here.
  11125. (onDownloadComplete): Added 2 log messages.
  11126. 2006-08-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11127. To fix compilation problem on gcc4.1.1(patch#1542283 by tizianomueller)
  11128. * src/NameResolver.h: Added the prototype declaration of callback().
  11129. To support c-ares library:
  11130. * src/AbstractCommand.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11131. * src/FeatureConfig.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11132. * src/FtpInitiateConnectionCommand.h:
  11133. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11134. * src/AbstractCommand.h: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11135. * src/HttpInitiateConnectionCommand.h:
  11136. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11137. * src/NameResolver.cc: Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS.
  11138. Added thes upport of c-ares's ares_strerror(the idea came from patch
  11139. #1542285 by tizianomueller)
  11140. * src/HttpInitiateConnectionCommand.cc:
  11141. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11142. * src/FtpInitiateConnectionCommand.cc:
  11143. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11144. * src/DownloadEngine.h:
  11145. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11146. * src/DownloadEngine.cc:
  11147. Replaced HAVE_LIBARES with ENABLE_ASYNC_DNS
  11148. To fix the bug that causes compilation failure with metalink-support
  11149. disabled(bug#1543587):
  11150. * src/main.cc: Fixed with the patch by tizianomueller.
  11151. * Release 0.7.2
  11152. 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11153. * src/main.cc
  11154. (main): Added a message to inform users that aria2 is starting to
  11155. verify checksum.
  11156. * src/RequestInfo.cc
  11157. (printDownloadAbortMessage): Added a message to inform users that
  11158. transfer can be resumed.
  11159. * src/FeatureConfig.cc
  11160. (FEATURE_ASYNC_DNS): New definition.
  11161. (FeatureConfig): Added aysnc DNS entry.
  11162. To replace CommandUuid with Command* in SocketEntry and
  11163. NameResolverEntry:
  11164. * src/DownloadEngine.h
  11165. (CommandUuids): Removed.
  11166. (SocketEntry::commandUuid): Removed.
  11167. (SocketEntry::command): New variable.
  11168. (SocketEntry::SocketEntry): Updated.
  11169. (SocketEntry::operator==): Updated.
  11170. (NameResolverEntry::commandUuid): Removed.
  11171. (NameResolverEntry::command): New variable.
  11172. (NameResolverEntry::NameResolverEntry): Updated.
  11173. (NameResolverEntry::operator==): Updated.
  11174. (waitData): Changed the argument type.
  11175. (addSocketForReadCheck): Changed the argument type.
  11176. (deleteSocketForReadCheck): Changed the argument type.
  11177. (addSocketForWriteCheck): Changed the argument type.
  11178. (deleteSocketForWriteCheck): Changed the argument type.
  11179. (addNameResolverCheck): Changed the argument type.
  11180. (deleteNameResolverCheck): Changed the argument type.
  11181. * src/DownloadEngine.cc
  11182. (FindCommand): Removed.
  11183. (run): Removed activeUuid. Added activeCommands instead.
  11184. (AccumulateActiveUuid): Renamed as AccumulateActiveCommand.
  11185. (AccumulateActiveCommand): New function object.
  11186. (waitData): Use AccumulateActiveCommand.
  11187. (addSocketForReadCheck): Use Command instead of CommandUuid.
  11188. (deleteSocketForReadCheck): Use Command instead of CommandUuid.
  11189. (addSocketForWriteCheck): Use Command instead of CommandUuid.
  11190. (deleteSocketForWriteCheck): Use Command instead of CommandUuid.
  11191. (addNameResolverCheck): Use Command instead of CommandUuid.
  11192. (deleteNameResolverCheck): Use Command instead of CommandUuid.
  11193. * src/AbstractCommand.cc
  11194. (disableReadCheckSocket): Updated according to the changes in
  11195. DownloadEngine.
  11196. (setReadCheckSocket): Updated according to the changes in
  11197. DownloadEngine.
  11198. (disableWriteCheckSocket): Updated according to the changes in
  11199. DownloadEngine.
  11200. (setWriteCheckSocket): Updated according to the changes in
  11201. DownloadEngine.
  11202. (setNameResolverCheck): Updated according to the changes in
  11203. DownloadEngine.
  11204. (disableNameResolverCheck): Updated according to the changes in
  11205. DownloadEngine.
  11206. * src/AbstractCommand.cc
  11207. (disableReadCheckSocket): Updated according to the changes in
  11208. DownloadEngine.
  11209. (setReadCheckSocket): Updated according to the changes in
  11210. DownloadEngine.
  11211. (disableWriteCheckSocket): Updated according to the changes in
  11212. DownloadEngine.
  11213. (setWriteCheckSocket): Updated according to the changes in
  11214. DownloadEngine.
  11215. * release 0.7.1
  11216. 2006-08-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11217. To handle the case where some BitTorrent tracker requires all letters
  11218. except for [A-Za-z0-9] is URL encoded.
  11219. * src/Util.h
  11220. (torrentUrlencode): New function.
  11221. * src/Util.cc
  11222. (ctype.h): Included.
  11223. (torrentUrlencode): New function.
  11224. * src/TrackerWatcherCommand.cc
  11225. (execute): Use Util::torrentUrlencode() instead of Util::urlencode().
  11226. 2006-08-11 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11227. To add asynchronous DNS support(libares):
  11228. * src/AbstractCommand.h
  11229. (setNameResolverCheck): New function.
  11230. (disableNameResolverCheck): New function
  11231. (resolveHostname): New function.
  11232. * src/AbstractCommand.cc
  11233. (setNameResolverCheck): New function.
  11234. (disableNameResolverCheck): New function
  11235. (resolveHostname): New function.
  11236. * src/FtpInitiateConnectionCommand.h
  11237. (nameResolver): New function.
  11238. * src/FtpInitiateConnectionCommand.cc
  11239. (Util.h): Included.
  11240. (FtpInitiateConnectionCommand): Call disableReadCheckSocket,
  11241. disableWriteCheckSocket.
  11242. (~FtpInitiateConnectionCommand): Call disableNameResolverCheck.
  11243. (executeInternal): Added async DNS support.
  11244. * src/HttpInitiateConnectionCommand.h
  11245. (nameResolver): New function.
  11246. * src/HttpInitiateConnectionCommand.cc
  11247. (DlRetryEx.h): Included.
  11248. (HttpInitiateConnectionCommand): Call disableReadCheckSocket,
  11249. disableWriteCheckSocket.
  11250. (~HttpInitiateConnectionCommand): Call disableNameResolverCheck.
  11251. (executeInternal): Added async DNS support.
  11252. * src/NameResolver.h: New class. Note: #include <ares.h> is surrounded
  11253. by extern "C" declaration.
  11254. * src/NameResolver.cc: New class.
  11255. * src/Util.h:
  11256. (isNumberAndDotsNotation): New function
  11257. * src/Util.cc
  11258. (isNumberAndDotsNotation): New function.
  11259. * src/DownloadEngine.h
  11260. (NameResolver.h): Included.
  11261. (NameResolverEntry): New class.
  11262. (NameResolverEntries): New type definition.
  11263. (addNameResolverCheck): New function.
  11264. (deleteNameResolverCheck): New function.
  11265. * src/DownloadEngine.cc
  11266. (run): Initialize cp with 0.
  11267. (SetDescriptor::operator()): Added for NameResolverEntry.
  11268. (AccumulateActiveUuid::operator()): Added for NameResolverEntry.
  11269. (waitData): Check nameResolver entries.
  11270. (updateFdSet): Update fds in nameResolver entries.
  11271. (addNameResolverCheck): New function.
  11272. (deleteNameResolverCheck): new function.
  11273. * src/PeerInteractionCommand.cc
  11274. (executeInternal): Fixed wrong socket handling.
  11275. * src/main.cc
  11276. (main): Fixed the initial value of PREF_LOWEST_SPEED_LIMIT option to 0.
  11277. * src/Util.cc
  11278. (fileChecksum): Removed the call to ctx.digestReset().
  11279. 2006-08-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11280. * po/ru.po: Azamat sent me Russian translation.
  11281. * src/FtpNegotiateCommand.cc
  11282. (recvGreeting): Call disableWriteCheckSocket just after
  11283. socket->setBlockingMode(). This avoids unnecessary CPU-hog loop.
  11284. (recvRetr): Recognized status code 125 as a acceptable response code.
  11285. Rename Time.h to TimeA2.h to avoid compilation ploblem on
  11286. case-insesitive filesystem(BUG#1531057).
  11287. * src/Time.h: Renamed as TimeA2.h.
  11288. * src/Time.cc: Renamed as TimeA2.cc.
  11289. * src/TimeA2.h: New class.
  11290. * src/TimeA2.cc: New class.
  11291. * src/PeerChokeCommand.h: Replaced Time.h with TimeA2.h.
  11292. * src/TrackerWatcherCommand.h: Replaced Time.h with TimeA2.h.
  11293. * src/PeerAbstractCommand.h: Replaced Time.h with TimeA2.h.
  11294. * src/AbstractCommand.h: Replaced Time.h with TimeA2.h.
  11295. * src/PeerInteractionCommand.h: Replaced Time.h with TimeA2.h.
  11296. * src/ConsoleDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11297. * src/TorrentAutoSaveCommand.h: Replaced Time.h with TimeA2.h.
  11298. * src/DownloadCommand.h: Replaced Time.h with TimeA2.h.
  11299. * src/TorrentMan.h: Replaced Time.h with TimeA2.h.
  11300. * src/TorrentDownloadEngine.h: Replaced Time.h with TimeA2.h.
  11301. * src/RequestSlot.h: Replaced Time.h with TimeA2.h.
  11302. * src/SleepCommand.h: Replaced Time.h with TimeA2.h.
  11303. * src/DownloadEngine.cc: Replaced Time.h with TimeA2.h.
  11304. * release 0.7.0
  11305. 2006-08-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11306. * src/PeerChokeCommand.h
  11307. (PeerChokeCommand): Rearranged the arguments.
  11308. * src/PeerChokeCommand.cc
  11309. (PeerChokeCommand): Rearranged the arguments.
  11310. * src/MetalinkEntry.h
  11311. (Checksum.h): Included.
  11312. (md5): Removed.
  11313. (sha1): Removed.
  11314. (checksum): New variable.
  11315. (operator=): Updated.
  11316. (check): Removed.
  11317. * src/prefs.h
  11318. (PREF_LOWEST_SPEED_LIMIT): New definition.
  11319. (PREF_FOLLOW_TORRENT): New definition.
  11320. (PREF_SELECT_FILE): New definition.
  11321. (PREF_FOLLOW_METALINK): New definition.
  11322. * src/MetalinkResource.h
  11323. (TYPE_HTTPS): Added to enum TYPE.
  11324. * src/TorrentMan.cc
  11325. (~TorrentMan): Rewritten.
  11326. * src/MultiDiskWriter.cc
  11327. (MultiDiskAdaptor): Updated according to the changes in
  11328. MessageDigestContext.
  11329. (~MultiDiskAdaptor): Updated according to the changes in
  11330. MessageDigestContext.
  11331. (hashUpdate): Updated according to the changes in MessageDigestContext.
  11332. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11333. * src/Util.h
  11334. (fileChecksum): Updated according to the changes in
  11335. MessageDigestContext.
  11336. * src/Util.cc
  11337. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11338. (fileChecksum): Updated according to the changes in
  11339. MessageDigestContext.
  11340. * src/messageDigest.h: Rewritten.
  11341. * src/MetalinkEntry.cc
  11342. (check): Removed.
  11343. (Supported): Updated.
  11344. (dropUnsupportedResource): Fixed a memory leak.
  11345. * src/ShaVisitor.cc
  11346. (ShaVisitor): Updated according to the changes in MessageDigestContext.
  11347. (~ShaVisitor): Updated according to the changes in
  11348. MessageDigestContext.
  11349. (visit): Updated according to the changes in MessageDigestContext.
  11350. * src/main.cc
  11351. (main): Rewritten the portion of download loop. --lowest-speed-limit
  11352. command-line option added.
  11353. * src/DownloadEngine.h
  11354. (SocketEntry): New class.
  11355. (SocketEntries): New definition.
  11356. (PairFind): Removed.
  11357. (SockCmdMap): Removed.
  11358. * src/DownloadEngine.cc
  11359. (DownloadEngine): Rewritten.
  11360. (~DownloadEngine): Rewritten.
  11361. (run): Renamed activeCommandUuids as activeUuids.
  11362. (SetDescriptor): Rewritten.
  11363. (AccumulateActiveCommandUuid): Removed.
  11364. (AccumulateActiveUuid): New function object.
  11365. (waitData): Rewritten.
  11366. (updateFdSet): Rewritten.
  11367. (addSocket): Rewritten.
  11368. (deleteSocket): Rewritten.
  11369. (addSocketForReadCheck): Rewritten.
  11370. (deleteSocketForReadCheck): Rewritten.
  11371. (addSocketForWriteCheck): Rewritten.
  11372. (deleteSocketForWriteCheck): Rewritten.
  11373. * src/Xml2MetalinkProcessor.cc
  11374. (getEntry): Rewritten the portion of MetalinkEntry creation.
  11375. * src/DownloadCommand.cc
  11376. (executeInternal): Added the check routine for lowest speed limit.
  11377. * src/AbstractDiskWriter.cc
  11378. (AbstractDiskWriter): Updated according to the changes in
  11379. MessageDigestContext.
  11380. (~AbstractDiskWriter): Updated according to the changes in
  11381. MessageDigestContext.
  11382. (sha1Sum): Updated according to the changes in MessageDigestContext.
  11383. * src/RequestInfo.h: New class.
  11384. * src/UrlRequestInfo.h: New class.
  11385. * src/UrlRequestInfo.cc: New class.
  11386. * src/TorrentRequestInfo.h: New class.
  11387. * src/TorrentRequestInfo.cc: New class.
  11388. * src/MetalinkRequestInfo.h: New class.
  11389. * src/MetalinkRequestInfo.cc: New class.
  11390. * src/Checksum.h: New class.
  11391. * src/DownloadEngineFactory.h: New class.
  11392. * src/DownloadEngineFactory.cc: New class.
  11393. 2006-08-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11394. * src/Option.h
  11395. (getAsBool): New function.
  11396. * src/Option.cc
  11397. (prefs.h): Included.
  11398. (defined): 0-length value is now recognized as undefined.
  11399. (getAsInt): Rewritten.
  11400. (getAsLLInt): Rewritten.
  11401. (getAsBool): New function.
  11402. * src/FeatureConfig.h: Rewritten.
  11403. * src/FeatureConfig.cc: Rewritten.
  11404. * src/prefs.h
  11405. (PREF_STDOUT_LOG): New definition.
  11406. (PREF_LOG): New definition.
  11407. (PREF_DIR): New definition.
  11408. (PREF_OUT): New definition.
  11409. (PREF_SPLIT): New definition.
  11410. (PREF_DAEMON): New definition.
  11411. (PREF_REFERER): New definition.
  11412. (PREF_TORRENT_FILE): New definition.
  11413. (PREF_LISTEN_PORT): New definition.
  11414. (PREF_METALINK_FILE): New definition.
  11415. (PREF_METALINK_VERSION): New definition.
  11416. (PREF_METALINK_LANGUAGE): New definition.
  11417. (PREF_METALINK_OS): New definition.
  11418. (PREF_METALINK_SERVERS): New definition.
  11419. * src/main.cc
  11420. (main): Following command-line parameters are now put into Option
  11421. class: stdoutLog, logfile, dir, ufilename, split, daemonMode,
  11422. referer, torrentFile, metalinkFile, listenPort, metalinkVersion,
  11423. metalinkLanguage, metalinkOs, metalinkServers
  11424. To fix the bug that aria2 can not handle http response header properly.
  11425. * src/HttpHeader.cc
  11426. (put): Made name lowercased.
  11427. (defined): Made name lowercased.
  11428. (getFirst): Made name lowercased.
  11429. (get): Made name lowercased.
  11430. (getFirstAsInt): Rewritten.
  11431. (getFirstAsLLInt): Rewritten.
  11432. 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11433. * src/TorrentMan.h:
  11434. (advertisePiece): Updated doc.
  11435. (getAdvertisedPieceIndexes): Updated doc.
  11436. (removeAdvertisedPiece); New function.
  11437. * src/TorrentMan.cc
  11438. (FindElapsedHave): New function object.
  11439. (removeAdvertisedPiece): New function.
  11440. * src/HaveEraseCommand.h: New class.
  11441. * src/HaveEraseCommand.cc: New class.
  11442. * src/FeatureConfig.h: New class.
  11443. * src/FeatureConfig.cc: New class.
  11444. * src/Request.h
  11445. (defaultPorts): Removed.
  11446. * src/Request.cc
  11447. (FeatureConfig.h): Included.
  11448. (Request): Removed the statements related to defaultPorts.
  11449. (parseUrl): Removed metalinkEnabled. Use FeatureConfig instead.
  11450. A default port number is now retrieved from FeatureConfig.
  11451. * src/main.cc
  11452. (HaveEraseCommand.h): Included.
  11453. (showVersion): Added the output of feature list.
  11454. (main): Added HaveEraseCommand to command queue in BitTorrent
  11455. downloading.
  11456. * src/PeerInteractionCommand.h
  11457. (chokeCheckPoint): Commented out.
  11458. (periodicExecPoint): New variable.
  11459. * src/PeerInteractionCommand.cc
  11460. (executeInternal): Following methods are now called in at least every
  11461. 0.5 seconds to reduce CPU usage:
  11462. detectMessageFlooding(), peerInteraction->checkRequestSlot(),
  11463. checkHave(), sendKeepAlive().
  11464. (checkLongTimePeerChoking): Commented out.
  11465. * src/BitfieldMan.h
  11466. (getNthBitIndex): Changed the method signature.
  11467. (getMissingIndexRandomly): Changed the method signature.
  11468. * src/BitfieldMan.cc
  11469. (getNthBitIndex): Rewritten
  11470. (getMissingIndexRandomly): Rewritten.
  11471. (hasMissingPiece): Rewritten.
  11472. (getMissingIndex): Refactored.
  11473. (getMissingUnusedIndex); Refactored.
  11474. (getMissingIndex): Refactored.
  11475. 2006-07-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11476. * src/PeerMessage.h
  11477. (Piece.h): Included.
  11478. (SharedHandle.h): Included.
  11479. (invalidate): New variable.
  11480. (uploading): New variable.
  11481. (isInvalidate): New function.
  11482. (isUploading): New function.
  11483. (onPush): New function.
  11484. (onChoked): New function.
  11485. (onCanceled): New function.
  11486. (onAbortPiece): New function.
  11487. (PeerMessageHandle): New type definition.
  11488. * src/PeerMessage.cc
  11489. (PeerMessage): Added the initialization for invalidate and uploading.
  11490. * src/CancelMessage.h
  11491. (CancelMessage): Rewritten.
  11492. * src/RejectMessage.h
  11493. (RejectMessage): Rewritten.
  11494. * src/Metalinker.h
  11495. (operator=): Defined.
  11496. * src/MetaEntry.h
  11497. (operator=): Defined.
  11498. * src/MetalinkResource.h
  11499. (operator=): Defined.
  11500. * src/AllowedFastMessage.h
  11501. (AllowedFastMessage): Rewritten.
  11502. * src/HandshakeMessage.h
  11503. (HandshakeMessage): New function(overload).
  11504. * src/HandshakeMessage.cc
  11505. (HandshakeMessage): Rewritten.
  11506. (init): New function.
  11507. * src/HaveMessage.h
  11508. (HaveMessage): Rewritten.
  11509. * src/Time.h
  11510. (operator=): Defined the function body here.
  11511. * src/Time.cc
  11512. (operator=): Removed.
  11513. * src/SocketCore.h
  11514. (operator==): Defined here.
  11515. (operator!=): Defined here.
  11516. (operator<): Defined here.
  11517. * src/SocketCore.cc
  11518. (operator==): Removed.
  11519. (operator<): Removed.
  11520. * src/BitfieldMan.h
  11521. (operator=): Defined the function body here.
  11522. * src/BitfieldMan.cc
  11523. (operator=): Removed.
  11524. * src/TorrentMan.h
  11525. (deleteErrorPeer): Removed.
  11526. (deleteUnusedPeer); New function.
  11527. * src/TorrentMan.cc
  11528. (addPeer): Call deleteUnusedPeer.
  11529. (deleteErrorPeer): Removed.
  11530. (deleteUnusedPeer): New function.
  11531. * src/PeerAbstractCommand.h
  11532. (setNoCheck): New function.
  11533. (noCheck): New variable.
  11534. * src/PeerAbstractCommand.cc
  11535. (PeerAbstractCommand): Added the initialization of noCheck.
  11536. (execute): Added a check for noCheck.
  11537. (setNoCheck): New function.
  11538. * src/Util.h
  11539. (stdio.h): Included.
  11540. * src/Util.cc
  11541. (unistd.h): Included.
  11542. * src/DefaultDiskWriter.cc
  11543. (unistd.h): Included.
  11544. * src/Peer.h
  11545. (operator==): Defined the function body here.
  11546. (operator!=): Defined the function body here.
  11547. * src/Peer.cc
  11548. (operator==): Removed.
  11549. (operator!=): Removed.
  11550. * src/Piece.h
  11551. (Piece): Defined the function body here(copy constructor).
  11552. (operator=): Defined the function body here.
  11553. (operator==): Defined the function body here.
  11554. * src/Piece.cc
  11555. (Piece): Removed(copy constructor).
  11556. (operator=): Removed.
  11557. (operator==): Removed.
  11558. * src/PeerMessageUtil.h
  11559. (ChokeMessage.h): Removed.
  11560. (UnchokeMessage.h): Removed.
  11561. (InterestedMessage.h): Removed.
  11562. (NotInterestedMessage.h): Removed.
  11563. (HaveMessage.h): Removed.
  11564. (BitfieldMessage.h): Removed.
  11565. (RequestMessage.h): Removed.
  11566. (CancelMessage.h): Removed.
  11567. (PieceMessage.h): Removed.
  11568. (HandshakeMessage.h): Removed.
  11569. (KeepAliveMessage.h): Removed.
  11570. (PortMessage.h): Removed.
  11571. (HaveAllMessage.h): Removed.
  11572. (HaveNoneMessage.h): Removed.
  11573. (PeerConnection.h): Removed.
  11574. (HandshakeMessage.h): Included.
  11575. * src/BitfieldMessage.h
  11576. (init): New function.
  11577. (BitfieldMessage): Rewritten.
  11578. (BitfieldMessage): New function(overload).
  11579. * src/RequestSlot.h
  11580. (operator=): Defined the function body here.
  11581. (operator==): Defined the function body here.
  11582. * src/RequestSlot.cc
  11583. (operator=): Removed.
  11584. (operator==): Removed.
  11585. To remove the dependency on the PeerMessage subclass from
  11586. PeerInteraction:
  11587. * src/PeerMessageFactory.h: New class.
  11588. * src/PeerMessageFactory.cc: New class.
  11589. * src/SimplePeerMessage.cc
  11590. (send): If invalidate is true then do nothing.
  11591. * src/PeerInteractionCommand.cc
  11592. (HandshakeMessage.h): Included.
  11593. (KeepAliveMessage.h): Included.
  11594. (ChokeMessage.h): Included.
  11595. (UnchokeMessage.h): Included.
  11596. (HaveMessage.h): Included.
  11597. (executeInternal): Call setNoCheck().
  11598. Removed setWriteCheckSocket(socket).
  11599. * src/PeerInteraction.h
  11600. (ChokeMessage.h): Removed.
  11601. (UnchokeMessage.h): Removed.
  11602. (InterestedMessage.h): Removed.
  11603. (NotInterestedMessage.h): Removed.
  11604. (HaveMessage.h): Removed.
  11605. (BitfieldMessage.h): Removed.
  11606. (RequestMessage.h): Removed.
  11607. (CancelMessage.h): Removed.
  11608. (PieceMessage.h): Removed.
  11609. (HandshakeMessage.h): Removed.
  11610. (KeepAliveMessage.h): Removed.
  11611. (PortMessage.h): Removed.
  11612. (HaveAllMessage.h): Removed.
  11613. (HaveNoneMessage.h): Removed.
  11614. (RejectMessage.h): Removed.
  11615. (AllowedFastMessage.h): Removed.
  11616. (SuggestPieceMessage.h): Removed.
  11617. (PeerMessageFactory.h): Included.
  11618. (PeerMessageHandle): Removed typedef of PeerMessageHandle.
  11619. (HandshakeMessageHandle): Removed typedef of HandshakeMessageHandle.
  11620. (PeerMessageFactory): New variable.
  11621. (createPeerMessage): Removed.
  11622. (createHandshakeMessage): Removed.
  11623. (setPeerMessageCommonProperty): Removed.
  11624. (addRequestSlot): New function.
  11625. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11626. (getPeerMessageFactory): New function.
  11627. (createRequestMessage): Removed.
  11628. (createCancelMessage): Removed.
  11629. (createPieceMessage): Removed.
  11630. (createHaveMessage): Removed.
  11631. (createChokeMessage): Removed.
  11632. (createUnchokeMessage): Removed.
  11633. (createInterestedMessage): Removed.
  11634. (createNotInterestedMessage): Removed.
  11635. (createBitfieldMessage): Removed.
  11636. (createKeepAliveMessage): Removed.
  11637. (createHaveAllMessage): Removed.
  11638. (createHaveNoneMessage): Removed.
  11639. (createRejectMessage): Removed.
  11640. (createAllowedFastMessage): Removed.
  11641. * src/PeerInteraction.cc
  11642. (PeerInteraction): Allocate PeerMessageFactory here.
  11643. (~PeerInteraction): Deallocate PeerMessageFactory here.
  11644. (sendMessages): Use msg->isUploading() instead of msg->getId() ==
  11645. PieceMessage::ID.
  11646. (addMessage): Simplified by using PeerMessage::onPush().
  11647. (addRequestSlot): New function.
  11648. (rejectAllPieceMessageInQueue): Simplified by using
  11649. PeerMessage::onChoked().
  11650. (rejectPieceMessageInQueue): Simplified by using
  11651. PeerMessage::onCanceled().
  11652. (abortPiece): Simplified by using PeerMessage::abortPiece().
  11653. (receiveHandshake): Changed the return value type to PeerMessageHandle.
  11654. (createHandshakeMessage): Removed.
  11655. (createPeerMessage): Removed.
  11656. (sendHandshake): Call PeerMessageFactory::createHandshakeMessage().
  11657. (setPeerMessageCommonProperty): Removed.
  11658. (createRequestMessage): Removed.
  11659. (createCancelMessage): Removed.
  11660. (createPieceMessage): Removed.
  11661. (createHaveMessage): Removed.
  11662. (createChokeMessage): Removed.
  11663. (createUnchokeMessage): Removed.
  11664. (createInterestedMessage): Removed.
  11665. (createNotInterestedMessage): Removed.
  11666. (createBitfieldMessage): Removed.
  11667. (createKeepAliveMessage): Removed.
  11668. (createHaveAllMessage): Removed.
  11669. (createHaveNoneMessage): Removed.
  11670. (createRejectMessage): Removed.
  11671. (createAllowedFastMessage): Removed.
  11672. * src/PieceMessage.h
  11673. (createRejectMessage): New function.
  11674. (PieceMessage): Rewritten.
  11675. (onChoked): New function.
  11676. (onCanceled): New function.
  11677. * src/PieceMessage.cc
  11678. (send): If invalidate is true then do nothing, just return.
  11679. (createRejectMessage): New function.
  11680. (onChoked): New function.
  11681. (onCanceled): New function.
  11682. * src/RequestMessage.h
  11683. (RequestMessage): Rewritten.
  11684. (onPush): New function.
  11685. (onAbortPiece): New function.
  11686. * src/RequestMessage.cc
  11687. (onPush): New function.
  11688. (onAbortPiece): New function.
  11689. Update fd_set when a socket is added or deleted in order to improve
  11690. performance:
  11691. * src/DownloadEngine.h
  11692. (rfdset): New variable.
  11693. (wfdset): New variable.
  11694. (updateFdSet): New function.
  11695. * src/DownloadEngine.cc
  11696. (SetDescriptor::operator()): Use SockCmdMap::value_type.
  11697. (AccumulateActiveCommandUuid::operator()): Use SockCmdMap::value_type.
  11698. (waitData): Copy rfdset and wfdset.
  11699. (updateFdSet): New function.
  11700. (addSocket): Call updateFdSet.
  11701. (deleteSocket): Call updateFdSet.
  11702. 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11703. To add the support for Metalink3.0 backward compatible links:
  11704. * src/Request.h
  11705. (SAFE_CHARS): Added '#'.
  11706. (METALINK_MARK): New definition.
  11707. * src/Request.cc
  11708. (parseUrl): Added the support for Metalink3.0 backward compatible
  11709. links.
  11710. etc
  11711. * src/PeerInteraction.cc
  11712. (MsgPushBack): Removed.
  11713. (sendMessages): Use STL copy and back_inserter.
  11714. (rejectAllPieceMessageInQueue): Use STL copy and back_inserter.
  11715. (rejectPieceMessageInQueue): Use STL copy and back_inserter.
  11716. * src/TorrentMan.h
  11717. (MAX_PEER_LIST_SIZE): Changed to 100 from 250.
  11718. 2006-07-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  11719. * src/SharedHandle.h: New class.
  11720. To wrap Socket, Command, PeerMessage and Peer with SharedHandle:
  11721. * src/HttpResponseCommand.h
  11722. (HttpResponseCommand): Wrapped Socket.
  11723. * src/SocketCore.h
  11724. (operator==): New function.
  11725. (operator!=): New function.
  11726. (operator<): New function.
  11727. (getSockfd): New function.
  11728. (isOpen): New function.
  11729. (writeData): New function.
  11730. * src/SocketCore.cc
  11731. (operator==): New function.
  11732. (operator!=): New function.
  11733. (operator<): New function.
  11734. * src/AbstractCommand.h
  11735. (socket): Changed its type to SocketHandle.
  11736. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11737. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11738. (disableReadCheckSocket): New function.
  11739. (disableWriteCheckSocket): New function.
  11740. (readCheckTarget): Changed its type to SocketHandle.
  11741. (writeCheckTarget): Changed its type to SocketHandle.
  11742. (AbstractCommand): Replaced Socket with SocketHandle.
  11743. * src/AbstractCommand.cc
  11744. (AbstractCommand): Replaced Socket with SocketHandle.
  11745. (~AbstractCommand): Removed the deallocation for Socket object.
  11746. (disableReadCheckSocket): New function.
  11747. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11748. (disableWriteCheckSocket): New function.
  11749. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11750. * src/HttpDownloadCommand.cc
  11751. (DownloadCommand): Replaced Socket with SocketHandle.
  11752. * src/PeerAbstractCommand.h
  11753. (socket): Changed its type to SocketHandle.
  11754. (peer): Changed its type to PeerHandle.
  11755. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11756. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11757. (disableReadCheckSocket): New function.
  11758. (disableWriteCheckSocket): New function.
  11759. (readCheckTarget): Changed its type to SocketHandle.
  11760. (writeCheckTarget): Changed its type to SocketHandle.
  11761. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11762. Replaced Peer with PeerHandle.
  11763. * src/HttpRequestCommand.cc
  11764. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11765. Use disableReadCheckSocket.
  11766. * src/PeerInitiateConnectionCommand.h
  11767. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11768. * src/PeerChokeCommand.cc
  11769. (UploadFaster::operator()): Replaced Peer with PeerHandle.
  11770. (DownloadFaster::operator()): Replaced Peer with PeerHandle.
  11771. (execute): Use PeerHandle.
  11772. * src/PeerConnection.h
  11773. (HandshakeMessage.h): Removed include of HandshakeMessage.h.
  11774. (socket): Changed its type to SocketHandle.
  11775. (PeerConnection): Replaced Socket with SocketHandle.
  11776. * src/PeerConnection.cc
  11777. (PeerConnection): Replaced Socket with SocketHandle.
  11778. * src/PeerInteractionCommand.h
  11779. (PeerInteractionCommand): Replaced socket with SocketHandle.
  11780. Replaced Peer with PeerHandle.
  11781. * src/PeerInteractionCommand.cc
  11782. (PeerInteractionCommand): Replaced Socket with SocketHandle.
  11783. Replaced Peer with PeerHandle.
  11784. (executeInternal): Use disableWriteCheckSocket.
  11785. Use HandshakeMessageHandle.
  11786. (receiveMessages): Use PeerMessageHandle.
  11787. (prepareForNextPeer): Use PeerHandle.
  11788. * src/HttpProxyRequestCommand.h
  11789. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11790. * src/HttpResponseCommand.cc
  11791. (HttpResponseCommand): Replaced Socket with SocketHandle.
  11792. * src/TorrentMan.cc
  11793. (nullPeer): Added external reference.
  11794. (~TorrentMan): Removed the deallocation of the elements of peers.
  11795. (addPeer): Rewritten.
  11796. (isPeerAvailable): Use nullPeer.
  11797. (deleteOldpeers): Replaced with deleteErrorPeer.
  11798. (deleteErrorPeer): New function.
  11799. (getPeer): Use PeerHandle and nullPeer.
  11800. (hasMissingPiece): Replaced Peer with PeerHandle.
  11801. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11802. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11803. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11804. (getMissingPiece): Replaced Peer with PeerHandle.
  11805. * src/FtpNegotiateCommand.cc
  11806. (FtpNegotiationCommand): Replaced Peer with PeerHandle.
  11807. (~FtpNegotiationCommand): Removed the deallocation of Sockets.
  11808. (recvGreeting): Use disableWriteCheckSocket.
  11809. (recvPasv): Removed the allocation of Socket.
  11810. Use disableReadCheckSocket.
  11811. (sendRestPasv): Use disableWriteCheckSocket.
  11812. (recvRetr): Changed assertion.
  11813. * src/PeerInteraction.h
  11814. (SharedHandle.h): Included SharedHandle.h.
  11815. (PeerMessageHandle): New type definition.
  11816. (HandshakeMessageHandle): New type definition.
  11817. (MessageQueue): Changed. Now its element is of type PeerMessageHandle.
  11818. (peer): Changed its type to PeerHandle.
  11819. (createHandshakeMessage): Replaced HandshakeMessage with
  11820. HandshakeMessageHandle.
  11821. (createPeerMessage): Replaced PeerMessageHandle with PeerMessage.
  11822. (PeerInteraction): Replaced Peer with PeerHandle.
  11823. Replaced Socket with SocketHandle.
  11824. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11825. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11826. (receiveHandshake): Replaced HandshakeMessage with
  11827. HandshakeMessageHandle.
  11828. * src/PeerInteraction.cc
  11829. (PeerInteraction): Replaced Peer with PeerHandle.
  11830. Replaced Socket with SocketHandle.
  11831. (~PeerInteraction): Removed the deallocation of the elements of
  11832. messageQueue.
  11833. (MsgPushBack::operator()): Replaced PeerMessage with PeerMessageHandle.
  11834. (isSendingMessageInProgress): Replaced PeerMessage with
  11835. PeerMessageHandle.
  11836. (sendMessages): Use PeerMessageHandle. Removed try-catch block.
  11837. (addMessage): Replaced PeerMessage with PeerMessageHandle.
  11838. (rejectAllPieceMessageInQueue): Use PeerMessageHandle.
  11839. (rejectPieceMessageInQueue): Use PeerMessageHandle.
  11840. (abortPiece): Use PeerMessageHandle.
  11841. (receiveHandshake): Replaced HandshakeMessage with
  11842. HandshakeMessageHandle. Removed try-catch block.
  11843. (createHandshakeMessage): Replaced HandshakeMessage with
  11844. HandshakeMessageHandle.
  11845. (receiveMessage): Replaced PeerMessage with PeerMessageHandle.
  11846. Removed try-catch block.
  11847. (createPeerMessage): Replaced PeerMessage with PeerMessageHandle.
  11848. * src/HttpProxyResponseCommand.cc
  11849. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11850. * src/FtpTunnelResponseCommand.h
  11851. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11852. * src/HttpConnection.cc
  11853. (HttpConnection): Replaced Socket with SocketHandle.
  11854. * src/PeerAbstractCommand.cc
  11855. (PeerAbstractCommand): Replaced Socket with SocketHandle.
  11856. (~PeerAbstractCommand): Removed the deallocation of socket.
  11857. Use disableReadCheckSocket, disableWriteCheckSocket.
  11858. (disableReadCheckSocket): New function.
  11859. (setReadCheckSocket): Replaced Socket with SocketHandle.
  11860. (disableWriteCheckSocket): New function.
  11861. (setWriteCheckSocket): Replaced Socket with SocketHandle.
  11862. * src/InitiateConnectionCommandFactory.h: Corrected indentation.
  11863. * src/FtpTunnelRequestCommand.cc
  11864. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11865. (~FtpTunnelRequestCommand): Corrected indentation.
  11866. * src/DownloadCommand.h
  11867. (DownloadCommand): Replaced Socket with SocketHandle.
  11868. * src/PeerListenCommand.cc
  11869. (PeerListenCommand): Removed the initialization of socket.
  11870. (~PeerListenCommand): Removed the deallocation of socket.
  11871. (bindPort): Use SocketHandle.
  11872. (execute): Use SocketHandle and PeerHandle.
  11873. * src/FtpDowndloadCommand.cc
  11874. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11875. (~FtpDownloadCommand): Removed the deallocation of ctrlSocket.
  11876. * src/main.cc
  11877. (main): Corrected indentation.
  11878. * src/HttpInitiateConnectionCommand.cc
  11879. (HttpInitiateConnectionCommand): Replaced Socket with SocketHandle.
  11880. (executeInternal): Removed the allocation of socket.
  11881. * src/HttpRequestCommand.h
  11882. (HttpRequestCommand): Replaced Socket with SocketHandle.
  11883. * src/FtpNegotiationCommand.h
  11884. (dataSocket): Changed its type to SocketHandle.
  11885. (serverSocket): Changed its type to SocketHandle.
  11886. (FtpNegotiationCommand): Replaced Socket with SocketHandle.
  11887. * src/TorrentMan.h
  11888. (MAX_PEER_UPDATE): Removed.
  11889. (MAX_PEERS): New definition.
  11890. (Peers): The element is now of type PeerHandle.
  11891. (addPeer): Replaced Peer with PeerHandle. Removed 'duplicate' argument.
  11892. (getPeer): Replaced Peer with PeerHandle.
  11893. (deleteOldErrorPeers): Removed.
  11894. (deleteErrorPeer): New function.
  11895. (hasMissingPiece): Replaced Peer with PeerHandle.
  11896. (getMissingPieceIndex): Replaced Peer with PeerHandle.
  11897. (getMissingPiece): Replaced Peer with PeerHandle.
  11898. (getMissingFastPieceIndex): Replaced Peer with PeerHandle.
  11899. (getMissingFastPiece): Replaced Peer with PeerHandle.
  11900. (addActivePeer): Replaced Peer with PeerHandle.
  11901. (deleteActivePeer): Replaced Peer with PeerHandle.
  11902. Added a check for the return value of find.
  11903. * src/FtpTunnelResponseCommand.cc
  11904. (FtpTunnelResponseCommand): Replaced Socket with SocketHandle.
  11905. * src/FtpInitiateConnectionCommand.cc
  11906. (executeInternal): Removed the allocation of socket.
  11907. * src/DownloadEngine.h
  11908. (Sockets): An element is now of type SocketHandle.
  11909. (SockCmdMap): A key is of type SocketHandle, a value is of type int.
  11910. (CommandUuids): New type definition.
  11911. (rsockets): Changed its type to SockCmdMap.
  11912. (wsockets): Changed its type to SockCmdMap.
  11913. (addSocket): Rewritten.
  11914. (deleteSocket): Rewritten.
  11915. (addSocketForReadCheck): Rewritten.
  11916. (deleteSocketForReadCheck): Rewritten.
  11917. (addSocketForWriteCheck): Rewritten.
  11918. (deleteSocketForWriteCheck): Rewritten.
  11919. (PairFind): New template class.
  11920. * src/HttpDownloadCommand.h
  11921. (HttpDownloadCommand): Replaced Socket with SocketHandle.
  11922. * src/FtpConnection.cc
  11923. (FtpConnection): Replaced Socket with SocketHandle.
  11924. (sendPort): Removed the allocation of serverSocket. Removed try-catch
  11925. block.
  11926. * src/InitiateConnectionCommandFactory.cc
  11927. (DlAbortEx.h): Included DlAbortEx.h.
  11928. (createInitiateConnectionCommand): Throw exception if the protocol of
  11929. requested URI is not supported.
  11930. * src/Peer.cc
  11931. (nullPeer): Changed its type to PeerHandle.
  11932. (operator==): New function.
  11933. (operator!=): New function.
  11934. * src/Peer.h
  11935. (SharedHandle.h): Included SharedHandle.h.
  11936. (operator==): New function.
  11937. (operator!=): New function.
  11938. (Peer): Added the default constructor.
  11939. Use resetStatus() to initialize member variables.
  11940. (nullPeer): Removed.
  11941. * src/TrackerUpdateCommand.cc
  11942. (execute): Brushed up using SharedHandle. Replaced MAX_PEER_UPDATE
  11943. with MIN_PEERS.
  11944. * src/PeerListenCommand.h
  11945. (socket): Changed its type to SocketHandle.
  11946. * src/Command.h
  11947. (CommandUuid): New type definition.
  11948. (uuid): New variable.
  11949. (uuidGen): New variable.
  11950. (Command): Added the initialization of uuid.
  11951. (getUuid): New function.
  11952. * src/Socket.h
  11953. (Socket): Removed.
  11954. (SocketHandle): New type definition.
  11955. * src/DownloadEngine.h
  11956. (FindCommand): New function object.
  11957. (run): The portion of socket check was rewritten.
  11958. (SetDescriptor): New function object.
  11959. (AccumulateActiveCommandUuid): New function object.
  11960. (waitData): Rewritten.
  11961. (addSocket): Rewritten.
  11962. (deleteSocket): Rewritten.
  11963. (addSocketForReadCheck): Rewritten.
  11964. (addSocketForWriteCheck): Rewritten.
  11965. (deleteSocketForReadCheck): Rewritten.
  11966. (deleteSocketForWriteCheck): Rewritten.
  11967. * src/HttpProxyResponseCommand.h
  11968. (HttpProxyResponseCommand): Replaced Socket with SocketHandle.
  11969. * src/HttpConnection.h
  11970. (socket): Changed its type to SocketHandle.
  11971. (HttpConnection): Replaced Socket with SocketHandle.
  11972. * src/PeerInitiateConnectionCommand.cc
  11973. (PeerInitiateConnectionCommand): Replaced Peer with PeerHandle.
  11974. (executeInternal): Removed the allocation of socket.
  11975. (prepareForNextPeer): Use PeerHandle.
  11976. * src/PeerMessage.h
  11977. (peer): Changed its type to PeerHandle.
  11978. (getPeer): Replaced Peer with PeerHandle.
  11979. (setPeer): Replaced Peer with PeerHandle.
  11980. * src/DownloadCommand.cc
  11981. (DownloadCommand): Replaced Socket with SocketHandle.
  11982. * src/FtpConnection.h
  11983. (socket): Changed its type to SocketHandle.
  11984. (FtpConnection): Replaced Socket with SocketHandle.
  11985. (sendPort); Replaced Socket with SocketHandle.
  11986. * src/FtpDowndloadCommand.h
  11987. (ctrlSocket): Changed its type to SocketHandle.
  11988. (FtpDownloadCommand): Replaced Socket with SocketHandle.
  11989. * src/HttpProxyRequestCommand.cc
  11990. (HttpProxyRequestCommand): Replaced Socket with SocketHandle.
  11991. * src/FtpTunnelRequestCommand.h
  11992. (FtpTunnelRequestCommand): Replaced Socket with SocketHandle.
  11993. etc
  11994. * src/PeerChokeCommand.h
  11995. (setAllPeerChoked): Removed.
  11996. (setAllPeerResetDelta): Removed.
  11997. * src/PeerChokeCommand.cc
  11998. (setAllPeerChoked): Removed.
  11999. (ChokePeer): New function object.
  12000. (setAllPeerResetDelta): Removed.
  12001. (ResetDelta): New function object.
  12002. (orderByDownloadRate): Fixed a bug: use DowloadFaster, not UploadFaster
  12003. (execute): Show download speed when the local node is a seeder.
  12004. setAllPeerChoked and setAllPeerResetDelta were rewritten
  12005. using STL.
  12006. * src/TrackerWatcherCommand.h
  12007. (MIN_PEERS): Removed.
  12008. * src/TorrentMan.cc
  12009. (getPeer): Replaced MAX_PEER_UPDATE with MIN_PEERS.
  12010. 2006-07-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12011. To fix the bug that .aria2 file is not saved if downloading is stopped
  12012. by the errors:it results that aria2 can not resume downloading:
  12013. * src/main.cc
  12014. (normalDownload): Added the call to save().
  12015. (main): Added the deletion of the elements in 'reserved'.
  12016. To fix log:
  12017. * src/PeerInteraction.cc
  12018. (receiveHandshake): Fixed log.
  12019. 2006-07-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12020. To improve download performance in BitTorrent:
  12021. * src/TorrentMan.cc
  12022. (getPeer): Check the number of connections. Return nullPeer if
  12023. it is greater than MAX_PEER_UPDATE.
  12024. This code was originally here, but was removed in 0.5.1.
  12025. 2006-07-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12026. To improve the conditional compilation:
  12027. * src/MultiDiskWriter.h:
  12028. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12029. * src/MultiDiskWriter.cc:
  12030. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12031. * src/Util.h:
  12032. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12033. Added ENABLE_BITTORRENT around computeFastSet().
  12034. * src/Util.cc:
  12035. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12036. Added ENABLE_BITTORRENT around computeFastSet().
  12037. * src/messageDigest.h:
  12038. Replaced ENABLE_BITTORRENT with ENABLE_SSL.
  12039. * src/ShaVisitor.h:
  12040. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12041. * src/ShaVisitor.cc:
  12042. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12043. * src/main.cc:
  12044. Added ENABLE_BITTORRENT around includes and blocks related to
  12045. BitTorrent.
  12046. Added ENABLE_MESSAGE_DIGEST to skip checksum checking when the message
  12047. digest support is not available.
  12048. * src/AbstractDiskWriter.h:
  12049. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12050. * src/AbstractDiskWriter.cc:
  12051. Replaced ENABLE_SHA1DIGEST with ENABLE_MESSAGE_DIGEST.
  12052. * src/MetalinkEntry.cc
  12053. (check): Added ENABLE_MESSAGE_DIGEST. Return true if the message digest
  12054. support is not available.
  12055. To add command-line options for Metalink:
  12056. * src/main.cc:
  12057. Added metalink-version, metalink-language, metalink-os,
  12058. follow-metalink.
  12059. To use EXIT_SUCCESS and EXIT_FAILURE with exit():
  12060. * src/main.cc: Use these definition.
  12061. * Release 0.6.0
  12062. 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12063. To add Metalink support(http/ftp only):
  12064. * src/AbstractCommand.h
  12065. (tryReserved): New function.
  12066. * src/AbstractCommand.cc
  12067. (execute): Call tryReserved().
  12068. (tryReserved): New function.
  12069. * src/Request.h
  12070. (Requests): New type definition.
  12071. * src/SegmentMan.h
  12072. (reserved): New variable.
  12073. * src/Util.h
  12074. (fileChecksum): New function.
  12075. (toUpper): New function.
  12076. (toLower): New function.
  12077. * src/Util.cc
  12078. (messageDigest.h): Included.
  12079. (trim): Trim \r\n\t.
  12080. (fileChecksum): New function.
  12081. (toUpper): New function.
  12082. (toLower): New function.
  12083. * src/main.cc
  12084. (normalDownload): New function.
  12085. (main): Added 2 command-line options: metalink-file,
  12086. metalink-connection. Their usage has not been written yet.
  12087. * src/MetalinkProcessor.h: New class.
  12088. * src/Xml2MetalinkProcessor.h: New class.
  12089. * src/Xml2MetalinkProcessor.cc: New class.
  12090. * src/MetalinkEntry.h: New class.
  12091. * src/MetalinkEntry.cc: New class.
  12092. * src/MetalinkResource.h: New class.
  12093. * src/MetalinkResource.cc: New class.
  12094. To add md5 message digest checking:
  12095. * src/messageDigest.h: Rewritten.
  12096. * src/MultiDiskWriter.cc: Updated according to the changes in
  12097. messageDigest.h.
  12098. * src/ShaVisitor.cc: Updated according to the changes in
  12099. messageDigest.h.
  12100. * src/Util.cc: Updated according to the changes in messageDigest.h.
  12101. * src/AbstractDiskWriter.cc: Updated according to the changes in
  12102. messageDigest.h.
  12103. To fix a bug that causes segfault when the payload length in peer
  12104. message is less than 0:
  12105. * src/PeerConnection.cc:
  12106. (receiveMessage): Fixed the bug.
  12107. * src/PeerMessageUtil.cc
  12108. (checkLength): Throw an exception if length is less than or equals to
  12109. 0.
  12110. To add new interfaces to Base64 encoding/decoding:
  12111. * src/Base64.h
  12112. (part_encode): Changed the method signature.
  12113. (encode): New function(overload).
  12114. (decode): New function(overload).
  12115. * src/Base64.cc
  12116. (part_encode): Rewritten.
  12117. (encode): Rewritten.
  12118. (encode): New function(overload).
  12119. To prevent a peer to download same piece if there is an error in
  12120. checksum:
  12121. * src/PieceMessage.cc
  12122. (receivedAction): Call peerInteraction->abortPiece().
  12123. 2006-06-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12124. To fix the bug that causes same have message is sent many times to
  12125. a single peer.
  12126. * src/Time.cc
  12127. (isNewer): Use Util::difftv().
  12128. * src/Util.cc
  12129. (difftv): Added a cast to (long long int).
  12130. * src/TorrentMan.cc
  12131. (advertisePiece): Use push_front.
  12132. (getAdvertisedPieceIndexes): A performance improvement was made.
  12133. To fix the bug that sends tracker requests without a sleep interval
  12134. when the number of connections is less than 15.
  12135. * src/TrackerWatcherCommand.cc
  12136. (execute): Now the number of connections is not a factor to decide
  12137. whether or not a tracker request should be sent or not.
  12138. * src/Time.h
  12139. (setTimeInSec): New function.
  12140. * src/Time.cc
  12141. (setTimeInSec): New function.
  12142. etc.
  12143. * src/ChokeMessage.cc
  12144. (receivedAction): Removed peer->snubbing = false
  12145. * src/PeerConnection.h
  12146. (receiveHandshake): Updated doc.
  12147. * src/TorrentMan.h
  12148. (getAdvertisedPieceIndexes): Updated the method signature.
  12149. * src/TorrentMan.cc
  12150. (getAdvertisedPieceIndexes): Updated the method signature.
  12151. * src/Time.h
  12152. (getTimeInMicros): Added a cast to (long long int).
  12153. (getTimeInMillis): Added a cast to (long long int).
  12154. * Release 0.5.2
  12155. 2006-06-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12156. To make a listening socket non-block:
  12157. * src/SocketCore.h
  12158. (setNonBlockingMode): New function.
  12159. * src/SocketCore.cc
  12160. (setNonBlockingMode): New function.
  12161. (beginListen): Added a call to setNonBlockingMode().
  12162. (acceptConnection): Call setNonBlockingMode().
  12163. (setBlockingMode): Updated.
  12164. To handle tracker's NAT-checking:
  12165. * src/PeerConnection.cc
  12166. (receiveHandshake): 'msg' param is filled with received data and
  12167. its length is assigned to 'length' param, even if all handshake
  12168. message is not yet received.
  12169. * src/PeerInteractionCommand.cc
  12170. (executeInternal): Use peerInteraction->receiveHandshake(true) when
  12171. a new peer connects to localhost.
  12172. A call to peerInteraction->sendHandshake() was removed because
  12173. it is called from peerInteraction->receiveHandshake(true).
  12174. * src/PeerInteraction.h
  12175. (quickReplied): New variable.
  12176. (receiveHandshake): Added an argument.
  12177. * src/PeerInteraction.cc
  12178. (PeerInteraction): Added the initialization of quickReplied.
  12179. (receiveHandshake): Send handshake message as soon as the info hash
  12180. in a handshake message from a peer is correct.
  12181. To change the random part of peer id and key parameter:
  12182. * src/TorrentMan.h
  12183. (key): New variable.
  12184. * src/TorrentMan.cc
  12185. (setupInternal1): Use Util::randomAlpha() to generate random part
  12186. of peer id, which is now "-aria2-"+13 alphabet characters([A-Za-z]).
  12187. key is also generated by Util::randomAlpha() and it is now 8 character
  12188. long.
  12189. * src/Util.h
  12190. (randomAlpha): New function.
  12191. * src/Util.cc
  12192. (randomAlpha): New function.
  12193. * src/TrackerWatcherCommand.cc
  12194. (execute): In a tracker request: Use torrentMan->key as key parameter.
  12195. Added no_peer_id=1.
  12196. Set snubbing flag to false when a choke message is received from a
  12197. snubbed peer.
  12198. * src/ChokeMessage.cc
  12199. (receivedAction): Set snubbing flag to false.
  12200. 2006-06-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12201. * src/TorrentMan.cc (setupInternal1): Fixed peerId generation bug.
  12202. * src/SimpleLogger.h (writeHeader): New function.
  12203. * src/SimpleLogger.cc (writeHeader): New function.
  12204. (writeLog): Fixed the bug that causes segfaults if exception message
  12205. contains an unescaped "%" character.
  12206. * src/TrackerWatcherCommand.cc (execute): Added a short sleep
  12207. when a tracker request fails.
  12208. * src/Request.cc (parseUrl): Query string is now handled properly.
  12209. * Release 0.5.1
  12210. 2006-06-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12211. To add Time class which represents a specific instant in time and
  12212. its precision is microseconds. Time checking procedures were rewritten
  12213. using this object.
  12214. * src/Time.h: New class.
  12215. * src/Time.cc: New class.
  12216. * src/AbstractCommand.h
  12217. (updateCheckPoint): Removed.
  12218. (isTimeoutDetected): Removed.
  12219. (checkPoint): Changed the type to Time.
  12220. (timeout): New variable.
  12221. (setTimeout): New function.
  12222. * src/AbstractCommand.cc
  12223. (AbstractCommand): Removed the initialization of checkPoint.
  12224. Added the initialization of timeout.
  12225. (updateCheckPoint): Removed.
  12226. (isTimeoutDetected): Removed.
  12227. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12228. * src/PeerChokeCommand.h
  12229. (checkPoint): Changed the type to Time.
  12230. * src/PeerChokeCommand.cc
  12231. (PeerChokeCommand): Removed the initialization of checkPoint.
  12232. (execute): Rewritten using Time object.
  12233. * src/TrackerWatcherCommand.h
  12234. (checkPoint): Changed the type to Time.
  12235. * src/TrackerWatcherCommand.cc
  12236. (TrackerWatcherCommand): Removed the initialization of checkPoint.
  12237. (execute): Rewritten.
  12238. * src/ConsoleDownloadEngine.h
  12239. (cp): Changed the type to Time.
  12240. (startup): Changed the type to Time.
  12241. * src/ConsoleDownloadEngine.cc
  12242. (initStatistics): Use cp.reset(), startup.reset().
  12243. (calculateStatistics): Rewritten using Time object.
  12244. * src/PeerAbstractCommand.h
  12245. (updateCheckPoint): Removed.
  12246. (isTimeoutDetected): Removed.
  12247. (checkPoint): Changed the type to Time.
  12248. * src/PeerAbstractCommand.cc
  12249. (PeerAbstractCommand): Removed the initialization of checkPoint.
  12250. (updateCheckPoint): Removed.
  12251. (isTimeoutDetected): Removed.
  12252. (execute): Use checkPoint.reset() and checkPoint.elapsed().
  12253. * src/PeerInteractionCommand.cc
  12254. (PeerInteractionCommand): Removed the initializations of struct
  12255. timeval variables.
  12256. * src/PeerInteractionCommand.h
  12257. (keepAliveCheckPoint): Changed the type to Time.
  12258. (chokeCheckPoint): Changed the type to Time.
  12259. (freqCheckPoint): Changed the type to Time.
  12260. (haveCheckTime): Changed the type to Time.
  12261. * src/PeerInteractionCommand.cc
  12262. (executeInternal): Rewritten using Time object.
  12263. (detectMessageFlooding): Rewritten using Time object.
  12264. (checkLongTimePeerChoking): Rewritten using Time object.
  12265. (sendKeepAlive): Rewritten using Time object.
  12266. (checkHave): Rewritten using Time object.
  12267. * src/SleepCommand.h
  12268. (checkPoint): Changed the type to Time.
  12269. * src/SleepCommand.cc
  12270. (SleepCommand): Removed the initialization of checkPoint.
  12271. (execute): Rewritten using Time object.
  12272. * src/TorrentAutoSaveCommand.h
  12273. (checkPoint): Changed the type to Time.
  12274. * src/TorrentAutoSaveCommand.cc
  12275. (TorrentAutoSaveCommand): Removed the initialization of checkPoint.
  12276. (execute): Rewritten.
  12277. * src/DownloadCommand.h
  12278. (sw): Changed the type to Time.
  12279. * src/DownloadCommand.cc
  12280. (DownloadCommand): Removed the initialization of sw.
  12281. (executeInternal): Rewritten.
  12282. * src/RequestSlot.h
  12283. (dispatchedTime): Changed the type to Time.
  12284. * src/RequestSlot.cc
  12285. (RequestSlot): Removed the call to setDispatchedTime().
  12286. (setDispatchedTime): Rewirtten.
  12287. (isTimeout): Rewritten.
  12288. (getLatencyInMillis): Rewritten.
  12289. * src/TorrentDownloadEngine.h
  12290. (cp): Changed the type to Time[2].
  12291. (startup): Changed the type to Time.
  12292. * src/TorrentDownloadEngine.cc
  12293. (initStatistics): Rewritten.
  12294. (calculateStatistics): Rewritten.
  12295. * src/DownloadEngine.cc
  12296. (run): Rewritten.
  12297. To detect all attempts to connect to the tracker are failed:
  12298. * src/AbstractCommand.cc
  12299. (execute): Increment e->segmentMan->errors if a command aborted.
  12300. * src/SegmentMan.h
  12301. (errors): New variable.
  12302. * src/SegmentMan.cc
  12303. (SegmentMan): Added the initialization of errors.
  12304. (init): Added the initialization of errors.
  12305. * src/TrackerWatcherCommand.cc
  12306. (execute): If e->segmentMan->errors > 0 then assume that the tracker
  12307. request was failed.
  12308. To handle snubbed peers:
  12309. * src/PeerChokeCommand.cc
  12310. (optUnchokingPeer): Snubbed peers don't get unchoked.
  12311. (execute): Snubbed peers don't get unchoked.
  12312. * src/PeerInteraction.h
  12313. (REQUEST_TIME_OUT): Changed the value from 120 to 60.
  12314. * src/PeerInteraction.cc
  12315. (checkRequestSlot): A peer get marked as "snubbed" if it doesn't send
  12316. back the requested 16k block in 60 seconds.
  12317. * src/PieceMessage.cc
  12318. (receivedAction): A peer's snubbed state is cleard if it sends
  12319. the requested 16k block in 60 seconds.
  12320. * src/Peer.h
  12321. (snubbing): New variable.
  12322. * src/Peer.cc
  12323. (resetStatus): Added snubbed = false.
  12324. To fix the bug that causes have message is not sent:
  12325. * src/PeerInteractionCommand.cc
  12326. (~PeerInteractionCommand): Removed e->torrentMan->unadvertisePiece().
  12327. (FLOODING_CHECK_INTERVAL): New definition(temporal).
  12328. (detectMessageFlooding): Use FLOODING_CHECK_INTERVAL.
  12329. * src/TorrentMan.h
  12330. (HaveEntry): New class.
  12331. (advertisePiece): Rewritten.
  12332. (getAdvertisedPieceIndexes): Rewritten.
  12333. (Haves): Changed the type.
  12334. (getAdvertisedPieceIndexes): Added an argument.
  12335. Others:
  12336. * src/TorrentMan.h
  12337. (DEFAULT_ANNOUNCE_INTERVAL): Changed the value to 1800.
  12338. (DEFAULT_ANNOUNCE_MIN_INTERVAL): Changed the value to 1800.
  12339. * src/TorrentMan.cc
  12340. (getPeer): Don't check the number of connections here.
  12341. (setupInternal1): Changed peerId.
  12342. * src/PeerInteractionCommand.h
  12343. (KEEP_ALIVE_INTERVAL): New definition.
  12344. (sendKeepAlive): Use KEEP_ALIVE_INTERVAL.
  12345. * src/main.cc
  12346. (main): SA_ONESHOT was replaced with SA_RESETHAND.
  12347. * src/DownloadEngine.h: Removed unnecessary header includes.
  12348. 2006-05-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12349. To fix the bug that causes segfaults if a tracker returns a zero-length
  12350. list as "peers":
  12351. * src/TrackerUpdateCommand.cc
  12352. (execute): Added a check to see wether the type of peers is Data*.
  12353. 2006-05-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12354. * Release 0.5.0
  12355. To fix compile issue with gcc3:
  12356. * src/CancelMessage.h
  12357. (ID): Renamed as ID_t
  12358. (ID_t): New enum.
  12359. * src/RejectMessage.h
  12360. (ID): Renamed as ID_t
  12361. (ID_t): New enum.
  12362. * src/SuggestPieceMessage.h
  12363. (ID): Renamed as ID_t
  12364. (ID_t): New enum.
  12365. * src/AllowedFastMessage.h
  12366. (ID): Renamed as ID_t
  12367. (ID_t): New enum.
  12368. * src/PortMessage.h
  12369. (ID): Renamed as ID_t
  12370. (ID_t): New enum.
  12371. * src/HaveNoneMessage.h
  12372. (ID): Renamed as ID_t
  12373. (ID_t): New enum.
  12374. * src/KeepAliveMessage.h
  12375. (ID): Renamed as ID_t
  12376. (ID_t): New enum.
  12377. * src/HaveAllMessage.h
  12378. (ID): Renamed as ID_t
  12379. (ID_t): New enum.
  12380. * src/UnchokeMessage.h
  12381. (ID): Renamed as ID_t
  12382. (ID_t): New enum.
  12383. * src/BitfieldMessage.h
  12384. (ID): Renamed as ID_t
  12385. (ID_t): New enum.
  12386. * src/PieceMessage.h
  12387. (ID): Renamed as ID_t
  12388. (ID_t): New enum.
  12389. * src/RequestMessage.h
  12390. (ID): Renamed as ID_t
  12391. (ID_t): New enum.
  12392. * src/NotInterestedMessage.h
  12393. (ID): Renamed as ID_t
  12394. (ID_t): New enum.
  12395. * src/ChokeMessage.h
  12396. (ID): Renamed as ID_t
  12397. (ID_t): New enum.
  12398. * src/InterestedMessage.h
  12399. (ID): Renamed as ID_t
  12400. (ID_t): New enum.
  12401. * src/HaveMessage.h
  12402. (ID): Renamed as ID_t
  12403. (ID_t): New enum.
  12404. 2006-05-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12405. * src/PeerAbstractCommand.h
  12406. (beforeSocketCheck): Removed.
  12407. * src/PeerAbstractCommand.cc
  12408. Modified in order to call executeInternal() even if socket check
  12409. and upload limit check fail.
  12410. * src/PeerInteractionCommand.h
  12411. (keepAlive): Removed.
  12412. (sendKeepAlive): New function.
  12413. (checkHave): New function.
  12414. (beforeSocketCheck): Removed.
  12415. * src/PeerInteractionCommand.cc
  12416. (executeInternal): Use peerInteraction->checkRequestSlot(). Added
  12417. calls to checkHave() and sendKeepAlive().
  12418. (keepAlive): Renamed to sendKeepAlive().
  12419. (sendKeepAlive): New function.
  12420. (beforeSocketCheck): Removed.
  12421. (checkHave): New function.
  12422. * src/BitfieldMan.cc
  12423. (getMissingIndex): Don't call getMissingIndexRandomly() if max is 0.
  12424. (getMissingUnusedIndex): Don't call getMissingIndexRandomly() if max is
  12425. 0.
  12426. (getMissingIndex): Dont't call getMissingIndexRandomly() if max is 0.
  12427. * src/TorrentMan.h
  12428. (UsedPieces): Removed.
  12429. (Pieces): New type definition.
  12430. * src/Piece.h: Updated doc.
  12431. * src/Peer.h
  12432. (totalLength): Removed.
  12433. * src/Peer.cc
  12434. (updateLatency): Fixed the latency calculation.
  12435. * src/TorrentMan.cc
  12436. (addPeer): Call deleteOldErrorPeers() only if peers.size() is higher
  12437. than or equal to MAX_PEER_LIST_SIZE.
  12438. If duplicate is false and peer.size() >= MAX_PEER_LIST_SIZE,
  12439. then return false.
  12440. (deleteOldErrorPeers): Rewritten.
  12441. (deleteUsedPiece): Fixed the miss use of STL remove.
  12442. * src/PeerInteraction.h
  12443. (Pieces): Removed.
  12444. (deleteTimeoutRequestSlot): Removed.
  12445. (deleteCompletedRequestSlot): Removed.
  12446. (checkRequestSlot): New function.
  12447. * src/PeerInteraction.cc
  12448. (deleteTimeoutRequestSlot): Merged to checkRequestSlot().
  12449. (deleteCompletedRequestSlot): Merged to checkRequestSlot().
  12450. (checkRequestSlot): New function.
  12451. * src/DownloadEngine.cc
  12452. (run): Clear activeSockets before calling waitData().
  12453. (waitData): Removed a call to activeSockets.clear().
  12454. 2006-05-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12455. To attempt to handle EINTR:
  12456. * src/SocketCore.cc
  12457. (isReadable): Added EINTR handling.
  12458. (isWritable): Added EINTR handling.
  12459. To improve the performance:
  12460. * src/AbstractCommand.cc
  12461. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12462. * src/PeerInteractionCommand.h
  12463. (receiveMessage): Renamed as receiveMessages().
  12464. (receiveMessages): New function.
  12465. * src/PeerInteractionCommand.cc
  12466. (executeInternal): receiveMessage loop is moved to new receiveMessages
  12467. () function. detectMessageFlooding() is moved here.
  12468. (detectMessageFlooding): Use Util::difftvsec() instead of Util::difftv
  12469. (). The flooding detection for have message is comment out.
  12470. (checkLongTimePeerChoking): Use Util::difftvsec() instead of
  12471. Util::difftv().
  12472. (receiveMessage): Renamed as receiveMessages().
  12473. (receiveMessages): New function.
  12474. (keepAlive): Use Util::difftvsec() instead of Util::difftv().
  12475. (beforeSocketCheck): Commented out checkLongTimePeerChoking().
  12476. * src/SleepCommand.cc
  12477. (execute): Use Util::difftvsec() instead of Util::difftv().
  12478. * src/BitfieldMan.h
  12479. (getNthBitIndex): New function.
  12480. (hasMissingPiece): New function.
  12481. (getAllMissingIndexes): New function.
  12482. * src/BitfieldMan.cc
  12483. (countSetBit): Rewritten.
  12484. (getNthBitIndex): New function.
  12485. (getMissingIndexRandomly): Rewritten.
  12486. (hasMissingPiece): New function.
  12487. (getAllMissingIndexes): New function.
  12488. * src/TorrentMan.cc
  12489. (hasMissingPiece): New function.
  12490. (deleteUsedPiece): Rewritten using STL.
  12491. * src/PeerInteraction.cc
  12492. (getNewPieceAndSendInterest): Use TorrentMan::hasMissingPiece(), which
  12493. is a little bit faster then TorrentMan::getMissingPieceIndex().
  12494. (addRequests): Updated the number of pending requests.
  12495. * src/PeerAbstractCommand.cc
  12496. (isTimeoutDetected): Use Util::difftvsec() instead of Util::difftv().
  12497. (execute): Returns true if TorrentMan::isHalt() is true.
  12498. Corrected the condition of upload limit checking.
  12499. * src/Util.h
  12500. (countBit): New function.
  12501. * src/Util.cc
  12502. (nbits): New variable.
  12503. (countBit): New function.
  12504. * src/DownloadEngine.h
  12505. (SockCmdMap): New type definition.
  12506. (waitData): Added an argument.
  12507. (addSocket): Added an argument.
  12508. (addSocketForReadCheck): Added an argument.
  12509. (addSocketForWriteCheck): Added an argument.
  12510. * src/DownloadEngine.cc
  12511. (run): Executes only commands whose sockets are ready to read or write.
  12512. All commands are executed in every 1 second.
  12513. (waitData): Calls select() again if it returned
  12514. EINTR.
  12515. (addSocket): Saves socket and command object pair to the map.
  12516. (deleteSocket): Deletes socket and command object pair from the map.
  12517. (addSocketForReadCheck): Added an argument.
  12518. (addSocketForWriteCheck): Added an argument.
  12519. * src/DownloadCommand.cc
  12520. (executeInternal): Use Util::difftvsec() instead of Util::difftv().
  12521. To send "event=stopped" to the tracker when the application finishes:
  12522. * src/PeerChokeCommand.h
  12523. (checkPoint): New variable.
  12524. * src/PeerChokeCommand.cc
  12525. (PeerChokeCommand): Added the initialization of checkPoint.
  12526. (execute): The interval check is now done by checkPoint, not
  12527. SleepCommand. Return true if TorrentMan::isHalt() is true.
  12528. * src/TorrentMan.h
  12529. (halt): New function.
  12530. (hasMissingPiece): New function.
  12531. (isHalt): New function.
  12532. (setHalt): New function.
  12533. * src/TorrentMan.cc
  12534. (TorrentMan): Added the initialization of halt.
  12535. * src/TorrentAutoSaveCommand.h
  12536. (checkPoint): New variable.
  12537. * src/PeerListenCommand.cc
  12538. (execute): Returns true if TorrentMan::isHalt() is true.
  12539. * src/main.cc
  12540. (setSignalHander): Added flags argument.
  12541. (torrentHandler): Just calls TorrentMan::setHalt(true) and returns.
  12542. (main): Set SA_ONESHOT flag of the signal hander of SIGINT and SIGTERM.
  12543. Removed printDownloadAbortMessage() after torrent downloading loop.
  12544. * src/TorrentAutoSaveCommand.cc
  12545. (TorrentAutoSaveCommand): Added the initialization of checkPoint.
  12546. (execute): Returns true if TorrentMan::isHalt() is true.
  12547. The interval check is now done by checkPoint, not SleepCommand.
  12548. * src/TrackerWatcherCommand.cc
  12549. (execute): If TorrentMan::isHalt(), then create a tracker request with
  12550. event=stopped.
  12551. * src/TrackerUpdateCommand.cc
  12552. (prepareForRetry): Do not use SleepCommand here.
  12553. (execute): Returns true if TorrentMan::isHalt() is true.
  12554. Others:
  12555. * src/TorrentMan.cc
  12556. (getMissingPieceIndex): Updated log message.
  12557. * src/PeerInteraction.cc
  12558. (createPeerMessag): Updated log message.
  12559. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12560. To add the ability to download several pieces in mix in a command and
  12561. increase the number of request slots according to request-cancel
  12562. latency:
  12563. * src/PeerInteractionCommand.cc
  12564. (executeInternal): The number of messages to be received at a time
  12565. is increased from 10 to 50.
  12566. * src/LogFactory
  12567. (getInstance): Added NullLogger.
  12568. * src/NullLogger.h: New class.
  12569. * src/BitfieldMan.h
  12570. (getMissingIndex): New function.
  12571. * src/BitfieldMan.cc
  12572. (getMissingIndex): New function.
  12573. * src/TorrentMan.h
  12574. (checkOutPiece): New function.
  12575. (getMissingPieceIndex): New function.
  12576. (getMissingFastPieceIndex): New function.
  12577. (getMissingFastPiece): New function.
  12578. * src/TorrentMan.cc
  12579. (updatePiece): Rewritten using STL.
  12580. (syncPiece): Rewritten using STL.
  12581. (getMissingPiece): Rewritten using getMissingPieceIndex() and
  12582. checkOutPiece().
  12583. (getMissingPieceIndex): New function.
  12584. (getMissingFastPieceIndex): New function.
  12585. (getMissingFastPiece): New function.
  12586. (checkOutPiece): New function.
  12587. * src/PeerInteraction.h
  12588. (Pieces): New type definition.
  12589. (piece): Removed.
  12590. (pieces): New variable.
  12591. (getNewPieceAndSendInterest): Added the "piece" argument.
  12592. (abortPiece): Added the "piece" argument.
  12593. (abortAllPieces): New function.
  12594. (isInRequestSlot): New function.
  12595. (hasDownloadPiece): Added the "index" argument.
  12596. (setDownloadPiece): Removed.
  12597. (getDownloadPiece): Added the "index" argument.
  12598. (updatePiece): New function.
  12599. (createRequestMessage): Added the "index" argument.
  12600. * src/PeerInteraction.cc
  12601. (onChoked): Rewritten.
  12602. (abortPiece): Rewirtten.
  12603. (abortAllPieces): New function.
  12604. (deleteTimeoutRequestSlot): Rewritten.
  12605. Clarified code a little bit.
  12606. (deleteCompletedRequestSlot): Rewritten.
  12607. (isInRequestSlot): New function.
  12608. (syncPiece): Rewritten.
  12609. (updatePiece): New function.
  12610. (getNewPieceAndSendInterest): Rewritten.
  12611. (addRequests): Rewritten.
  12612. (getDownloadPiece): Rewritten.
  12613. (hasDownloadPiece): Rewritten.
  12614. (createRequestMessage): Added the "index" argument.
  12615. * src/common.h
  12616. (BITFIELD_LEN_FROM_PIECES): Enclosed the variable in parentheses.
  12617. (DIV_FLOOR): New definition.
  12618. * src/PieceMessage.cc
  12619. (receivedAction): Update request-piece latency here.
  12620. * src/RequestSlot.h
  12621. (getLatencyInMillis): New function.
  12622. * src/RequestSlot.cc
  12623. (isTimeout): Rewritten using getLatencyInMillis.
  12624. (getLatencyInMillis): New function.
  12625. * src/Piece.h
  12626. (operator==): New function.
  12627. (getMissingBlockIndex): New function.
  12628. * src/Piece.cc
  12629. (operator==): New function.
  12630. (getMissingBlockIndex): New function.
  12631. * src/Peer.h
  12632. (DEFAULT_LATENCY): New definition.
  12633. (latency): New variable.
  12634. (updateLatency): New function.
  12635. (getLatency): New function.
  12636. * src/Peer.cc
  12637. (resetStatus): Reset latecy.
  12638. (updateLatency): New function.
  12639. 2006-05-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12640. * src/SocketCore.cc
  12641. (isReadable): Added secure to the condition.
  12642. * src/HttpConnection.cc
  12643. (receiveResponse): Fixed a bug that causes no response header
  12644. exception.
  12645. * src/Peer.h
  12646. (getFastSet): Fixed the return value type.
  12647. 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  12648. To remove a wait from download loop:
  12649. * src/DownloadEngine.cc
  12650. (run): Comment out shortSleep.
  12651. To rewrite the message handling:
  12652. * src/SimplePeerMessage.h: New class.
  12653. * src/SimplePeerMessage.cc: New class.
  12654. * src/CancelMessage.h: Derived from SimplePeerMessage.
  12655. (msg): New variable.
  12656. (create): New function.
  12657. (send): Removed.
  12658. (getMessage): New function.
  12659. (getMessageLength): New function.
  12660. * src/CancelMessage.cc
  12661. (create): New function.
  12662. (receivedAction): Replaced deleteRequestMessageInQueue with
  12663. rejectPieceMessageInQueue.
  12664. (send): Removed.
  12665. (getMessage): New function.
  12666. (getMessageLength): New function.
  12667. * src/BitfieldMessage.h: Derived from SimplePeerMessage.
  12668. (msg): New variable.
  12669. (msgLength): New variable.
  12670. (~BitfieldMessage): Deleted msg.
  12671. (send): Removed.
  12672. (getMessage): New function.
  12673. (getMessageLength): New function.
  12674. * src/BitfieldMessage.cc
  12675. (create): New function.
  12676. (send): Removed.
  12677. (getMessage): New function.
  12678. (getMessageLength): New function.
  12679. * src/ChokeMessage.h: Derived from SimplePeerMessage.
  12680. (msg): New variable.
  12681. (sendPredicate): New function.
  12682. (onSendComplete): New function.
  12683. (send): Removed.
  12684. (getMessage): New function.
  12685. (getMessageLength): New function.
  12686. (create): New function.
  12687. * src/ChokeMessage.cc
  12688. (create): New function.
  12689. (send): Removed.
  12690. (sendPredicate): New function.
  12691. (getMessage): New function.
  12692. (getMessageLength): New function.
  12693. (onSendComplete): New function.
  12694. * src/KeepAliveMessage.h: Derived from SimplePeerMessage.
  12695. (msg): New variable.
  12696. (send): Removed.
  12697. (getMessage): New function.
  12698. (getMessageLength): New function.
  12699. * src/KeepAliveMessage.cc
  12700. (send): Removed.
  12701. (getMessage): New function.
  12702. (getMessageLength): New function.
  12703. * src/PortMessage.h
  12704. (create): New function.
  12705. (receivedAction): Updated log message.
  12706. * src/PortMessage.cc: New file.
  12707. * src/UnchokeMessage.h: Derived from SimplePeerMessage.
  12708. (msg): New variable.
  12709. (sendPredicate): New function.
  12710. (onSendComplete): New function.
  12711. (create): New function.
  12712. (send): Removed.
  12713. (getMessage): New function.
  12714. (getMessageLength): New function.
  12715. * src/UnchokeMessage.cc
  12716. (create): New function.
  12717. (send): Removed.
  12718. (sendPredicate): New function.
  12719. (getMessage): New function.
  12720. (getMessageLength): New function.
  12721. (onSendComplete): New function.
  12722. * src/PieceMessage.h
  12723. (leftPieceDataLength): Removed.
  12724. (leftDataLength): New variable.
  12725. (headerSend): New variable.
  12726. (pendingCount): New variable.
  12727. (msgHeader): New variable.
  12728. (sendPieceData): New function.
  12729. (incrementPendingCount): New function.
  12730. (isPendingCountMax): New function.
  12731. (create): New function.
  12732. (getMessageHeader): New function.
  12733. (getMessageHeaderLength): New function.
  12734. * src/PieceMessage.cc
  12735. (create): New function.
  12736. (getMessageHeader): New function.
  12737. (getMessageHeaderLength): New function.
  12738. (send): Rewritten.
  12739. (sendPieceData): New function.
  12740. * src/HaveMessage.h: Derived from SimplePeerMessage.
  12741. (msg): New variable.
  12742. (create): New function.
  12743. (getMessage): New function.
  12744. (getMessageLength): New function.
  12745. * src/HaveMessage.cc
  12746. (create): New function.
  12747. (send): Removed.
  12748. (sendPieceData): New function.
  12749. (getMessage): New function.
  12750. (getMessageLength): New function.
  12751. * src/RequestMessage.h: Derived from SimplePeerMessage.
  12752. (msg): New variable.
  12753. (create): New function.
  12754. (send): Removed.
  12755. (getMessage): New function.
  12756. (getMessageLength): New function.
  12757. * src/RequestMessage.cc
  12758. (create): New function.
  12759. (receivedAction): Added the handling of fast extension.
  12760. Deleted torrentMan->addUploadLength, torrentMan->addDeltaUploadLength.
  12761. (send): Removed.
  12762. (getMessage): New function.
  12763. (getMessageLength): New function.
  12764. * src/InterestedMessage.h: Derived from SimplePeerMessage.
  12765. (msg): New variable.
  12766. (sendPredicate): New function.
  12767. (onSendComplete): New function.
  12768. (create): New function.
  12769. (getMessage): New function.
  12770. (getMessageLength): New function.
  12771. * src/InterestedMessage.cc
  12772. (create): New function.
  12773. (send): Removed.
  12774. (sendPieceData): New function.
  12775. (getMessage): New function.
  12776. (getMessageLength): New function.
  12777. (onSendComplete): New function.
  12778. * src/NotInterestedMessage.h: Derived from SimplePeerMessage.
  12779. (msg): New variable.
  12780. (sendPieceData): New function.
  12781. (onSendComplete): New function.
  12782. (create): New function.
  12783. (send): Removed.
  12784. (getMessage): New function.
  12785. (getMessageLength): New function.
  12786. * src/NotInterestedMessage.cc
  12787. (create): New function.
  12788. (send): Removed.
  12789. (sendPredicate): New function.
  12790. (getMessage): New function.
  12791. (getMessageLength): New function.
  12792. (onSendComplete): New function.
  12793. * src/AllowedFastMessage.h: New class.
  12794. * src/AllowedFastMessage.cc: New class.
  12795. * src/RejectMessage.h: New class.
  12796. * src/RejectMessage.cc: New class.
  12797. * src/SuggestPieceMessage.h: New class.
  12798. * src/SuggestPieceMessage.cc: New class.
  12799. * src/HaveAllMessage.h: New class.
  12800. * src/HaveAllMessage.cc: New class.
  12801. * src/HaveNoneMessage.h: New class.
  12802. * src/HaveNoneMessage.cc: New class.
  12803. * src/HandshakeMessage.h: Derived from SimplePeerMessage.
  12804. (msg): New variable.
  12805. (reserved): New variable.
  12806. (create): New function.
  12807. (getId): New function.
  12808. (receivedAction): New function.
  12809. (getMessage): New function.
  12810. (getMessageLength): New function.
  12811. (isFastExtensionSupported): New function.
  12812. * src/HandshakeMessage.cc
  12813. (HandshakeMessage): Moved here from HandshakeMessage.h.
  12814. (create): New function.
  12815. (getMessage): New function.
  12816. (getMessageLength): New function.
  12817. (toString): Added the output of reserved field.
  12818. (check): Added const qualifier.
  12819. (isFastExtensionSupported): New function.
  12820. * src/PeerMessageUtil.h
  12821. (createChokeMessage): Removed.
  12822. (createUnchokeMessage): Removed.
  12823. (createInterestedMessage): Removed.
  12824. (createNotInterestedMessage): Removed.
  12825. (createHaveMessage): Removed.
  12826. (createBitfieldMessage): Removed.
  12827. (createRequestMessage): Removed.
  12828. (createCancelMessage): Removed.
  12829. (createPieceMessage): Removed.
  12830. (createPortMessage): Removed.
  12831. (createChokeMessage): Removed.
  12832. (createUnchokeMessage): Removed.
  12833. (createInterestedMessage): Removed.
  12834. (createNotInterestedMessage): Removed.
  12835. (createHaveMessage): Removed.
  12836. (createBitfieldMessage): Removed.
  12837. (createRequestMessage): Removed.
  12838. (createCancelMessage): Removed.
  12839. (createPieceMessage): Removed.
  12840. (createKeepAliveMessage): Removed.
  12841. (createHandshakeMessage): Removed.
  12842. (setIntParam): New function.
  12843. (createPeerMessageString): New function.
  12844. * src/PeerMessageUtil.cc
  12845. (createChokeMessage): Removed.
  12846. (createUnchokeMessage): Removed.
  12847. (createInterestedMessage): Removed.
  12848. (createNotInterestedMessage): Removed.
  12849. (createHaveMessage): Removed.
  12850. (createBitfieldMessage): Removed.
  12851. (createRequestMessage): Removed.
  12852. (createCancelMessage): Removed.
  12853. (createPieceMessage): Removed.
  12854. (createPortMessage): Removed.
  12855. (createRequestMessage): Removed.
  12856. (createCancelMessage): Removed.
  12857. (createPieceMessage): Removed.
  12858. (createHaveMessage): Removed.
  12859. (createChokeMessage): Removed.
  12860. (createUnchokeMessage): Removed.
  12861. (createInterestedMessage): Removed.
  12862. (createNotInterestedMessage): Removed.
  12863. (createBitfieldMessage): Removed.
  12864. (createKeepAliveMessage): Removed.
  12865. (createHandshakeMessage): Removed.
  12866. (setIntParam): New function.
  12867. (createPeerMessageString): New function.
  12868. * src/PeerConnection.h
  12869. (peer): Removed.
  12870. (torrentMan): Removed.
  12871. (createNLengthMessage): Removed.
  12872. (setIntParam): Removed.
  12873. (writeOutgoingMessageLog): Removed all overloaded functions.
  12874. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12875. (sendMessage): New function.
  12876. (sendHandshake): Removed.
  12877. (sendKeepAlive): Removed.
  12878. (sendChoke): Removed.
  12879. (sendUnchoke): Removed.
  12880. (sendInterested): Removed.
  12881. (sendNotInterested): Removed.
  12882. (sendHave): Removed.
  12883. (sendBitfield): Removed.
  12884. (sendRequest): Removed.
  12885. (sendPiece): Removed.
  12886. (sendPieceHeader): Removed.
  12887. (sendPieceData): Removed.
  12888. (sendCancel): Removed.
  12889. (getPeer): Removed.
  12890. * src/PeerConnection.cc
  12891. (PeerConnection): Deleted peer and torrentMan from its arguments.
  12892. (sendHandshake): Removed.
  12893. (sendKeepAlive): Removed.
  12894. (createNLengthMessage): Removed.
  12895. (setIntParam): Removed.
  12896. (writeOutgoingMessageLog): Removed all overloaded functions.
  12897. (sendChoke): Removed.
  12898. (sendUnchoke): Removed.
  12899. (sendInterested): Removed.
  12900. (sendNotInterested): Removed.
  12901. (sendHave): Removed.
  12902. (sendBitfield): Removed.
  12903. (sendRequest): Removed.
  12904. (sendPiece): Removed.
  12905. (sendPieceHeader): Removed.
  12906. (sendPieceData): Removed.
  12907. (sendMessage): New function.
  12908. (sendCancel): Removed.
  12909. * src/PeerInteractionCommand.cc
  12910. (PeerInteractionCommand): Call setUploadLimit.
  12911. (executeInternal): Call setUploadLimit.
  12912. Added the handling of "inProgress" state of handshake message.
  12913. Call sendBitfield() or sendAllowdFast() instead of deprecated
  12914. sendNow().
  12915. (keepAlive): Call addMessage and sendMessage instead of deprecated
  12916. sendNow().
  12917. (beforeSocketCheck): Call addMessage instead of deprecated trySendNow()
  12918. * src/TorrentMan.h
  12919. (PEER_ID_LENGTH): New definition.
  12920. (hasAllPieces): New function.
  12921. * src/TorrentMan.cc
  12922. (getMissingPiece): Added the handling of fast extension.
  12923. (cancelPiece): Call updatePiece().
  12924. (hasAllPieces): New function.
  12925. * src/PeerInteraction.h
  12926. (fastSet): New variable.
  12927. (getNewPieceAndSendInterest): Changed the return type to void.
  12928. (send): Renamed as sendMessages.
  12929. (deleteAllRequestSlot): Removed.
  12930. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12931. (cancelAllRequest): Removed all overloaded functions.
  12932. (deleteAllRequestSlot): Removed.
  12933. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12934. (rejectPieceMessageInQueue): New function.
  12935. (rejectAllPieceMessageInQueue): New function.
  12936. (onChoked): New function.
  12937. (isSendingMessageInProgress): New function.
  12938. (getCorrespondingRequestSlot): Changed its arguments.
  12939. (isInFastSet): New function.
  12940. (addFastSetIndex): New function.
  12941. (addRequests): New function.
  12942. (sendNow): Removed.
  12943. (trySendNow): Removed.
  12944. (sendBitfield): New function.
  12945. (sendAllowdFast): New function.
  12946. (createHaveAllMessage): New function.
  12947. (createHaveNoneMessage): New function.
  12948. (createRejectMessage): New function.
  12949. (createAllowedFastMessage): New function.
  12950. * src/PeerInteraction.cc
  12951. (send): Renamed as sendMessages.
  12952. (sendMessages): New function.
  12953. (MsgPushBack): New class.
  12954. (isSendingMessageInProgress): New function.
  12955. (deletePieceMessageInQueue): Renamed as rejectAllPieceMessageInQueue.
  12956. (rejectAllPieceMessageInQueue): New function.
  12957. Added the handling of fast extension.
  12958. (deleteRequestMessageInQueue): Renamed as rejectPieceMessageInQueue.
  12959. (rejectPieceMessageInQueue): New function.
  12960. Added the handling of fast extension.
  12961. (deleteRequestSlot): Replaced for loop with std::find.
  12962. (onChoked): New function.
  12963. (deleteAllRequestSlot): Removed.
  12964. (abortPiece): Rewirtten.
  12965. (deleteTimeoutRequestSlot): Updated log messages.
  12966. (getCorrespondingRequestSlot): Changed its arguments.
  12967. (cancelAllRequest): Removed all overloaded functions.
  12968. (receiveHandshake): Added the check to see whether an incoming peer
  12969. supports fast extension.
  12970. (createHandshakeMessage): Use HandshakeMessage::create instead of
  12971. PeerMessageUtil.
  12972. (createPeerMessage): Use create() of each message class instead of
  12973. PeerMessageUtil.
  12974. HaveAllMessage, HaveNoneMessage, RejectMessage, SuggestPieceMessage,
  12975. AllowedFastMessage were added.
  12976. (getNewPieceAndSendInterest): Changed its return value type to void.
  12977. Added the handling of fast extension.
  12978. (addRequests): New function.
  12979. (sendNow): Removed.
  12980. (sendHandshake): Rewritten.
  12981. (trySendNow): Removed.
  12982. (sendBitfield): New function.
  12983. (sendAllowdFast): New function.
  12984. (isInFastSet): New function.
  12985. (addFastSetIndex): New function.
  12986. (createRequestMessage): Use RequestMessage::create instead of
  12987. PeerMessageUtil.
  12988. (createCancelMessage): Use CancelMessage::create instead of
  12989. PeerMessageUtil.
  12990. (createPieceMessage): Use PieceMessage::create instead of
  12991. PeerMessageUtil.
  12992. (createHaveMessage): Use HaveMessage::create instead of
  12993. PeerMessageUtil.
  12994. (createChokeMessage): Use ChokeMessage::create instead of
  12995. PeerMessageUtil.
  12996. (createUnchokeMessage): Use UnchokeMessage::create instead of
  12997. PeerMessageUtil.
  12998. (createInterestedMessage): Use InterestedMessage::create instead of
  12999. PeerMessageUtil.
  13000. (createNotInterestedMessage): Use NotInterestedMessage::create instead
  13001. of PeerMessageUtil.
  13002. (createBitfieldMessage): Use BitfieldMessage::create instead of
  13003. PeerMessageUtil.
  13004. (createKeepAliveMessage): Use KeepAliveMessage::create instead of
  13005. PeerMessageUtil.
  13006. (createHaveAllMessage): New function.
  13007. (createHaveNoneMessage): New function.
  13008. (createRejectMessage): New function.
  13009. (createAllowedFastMessage: New function.
  13010. * src/Util.h
  13011. (sha1Sum): New function.
  13012. (computeFastSet): New function.
  13013. * src/Util.cc
  13014. (sha1Sum): New function.
  13015. (computeFastSet): New function.
  13016. * src/Peer.h
  13017. (fastExtensionEnabled): New variable.
  13018. (fastSet): New variable.
  13019. (setAllBitfield): New function.
  13020. (setFastExtensionEnabled): New function.
  13021. (isFastExtensionEnabled): New function.
  13022. (addFastSetIndex): New function.
  13023. (getFastSet): New function.
  13024. (isInFastSet): New function.
  13025. (countFastSet): New function.
  13026. * src/Peer.cc
  13027. (isInFastSet): New function.
  13028. (addFastSetIndex): New function.
  13029. (setAllBitfield): New function.
  13030. * src/AbstractCommand.cc (execute): Changed the procedure of checking
  13031. sockets.
  13032. * src/PeerAbstractCommand.cc
  13033. (PeerAbstractCommand): Added the initialization for uploadLimitCheck
  13034. and uploadLimit.
  13035. (execute): Changed the procedure of checking sockets. The upload speed
  13036. checking were added.
  13037. (setUploadLimit): New function.
  13038. (setUploadLimitCheck): New function.
  13039. * src/PeerAbstractCommand.h
  13040. (setUploadLimit): New function.
  13041. (setUploadLimitCheck): New function.
  13042. (uploadLimit): New variable.
  13043. (uploadLimitCheck): New variable.
  13044. To contact a tracker regularly:
  13045. * src/TrackerWatcherCommand.h (interval): New variable.
  13046. (checkPoint): New variable.
  13047. (TrackerWatcherCommand): Added interval argument.
  13048. * src/TrackerWatcherCommand.cc
  13049. (TrackerWatcherCommand): Initialized checkPoint.
  13050. (execute): Now a tracker is contacted in every specified period.
  13051. If peer list is not needed, send request with numwant=0.
  13052. * src/TrackerUpdateCommand.cc
  13053. (execute): Updated log messages.
  13054. * src/DownloadEngine.cc
  13055. (~DownloadEngine): Removed two asserts.
  13056. (waitData): Uncommented wfds. May be a bug fix.
  13057. 2006-05-10 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13058. * src/PeerInteractionCommand.h
  13059. (checkInactiveConnection): Removed.
  13060. * src/PeerInteractionCommand.cc
  13061. (executeInternal): Removed following function calls:
  13062. detectMessageFlooding(), checkLongTimePeerChoking and
  13063. checkInactiveConnection().
  13064. (checkInactiveConnection): Removed.
  13065. (detectMessageFlooding): Removed function call to
  13066. checkInactiveConnection().
  13067. * src/PeerMessageUtil.h
  13068. (createChokeMessage): New function. Overload.
  13069. (createUnchokeMessage): New function. Overload.
  13070. (createInterestedMessage): New function. Overload.
  13071. (createNotInterestedMessage): New function. Overload.
  13072. (createHaveMessage): New function. Overload.
  13073. (createBitfieldMessage): New function. Overload.
  13074. (createRequestMessage): New function. Overload.
  13075. (createCancelMessage): New function. Overload.
  13076. (createPieceMessage): New function. Overload.
  13077. (createKeepAliveMessage): New function. Overload.
  13078. * src/PeerMessageUtil.cc
  13079. (createChokeMessage): New function. Overload.
  13080. (createUnchokeMessage): New function. Overload.
  13081. (createInterestedMessage): New function. Overload.
  13082. (createNotInterestedMessage): New function. Overload.
  13083. (createHaveMessage): New function. Overload.
  13084. (createBitfieldMessage): New function. Overload.
  13085. (createRequestMessage): New function. Overload.
  13086. (createCancelMessage): New function. Overload.
  13087. (createPieceMessage): New function. Overload.
  13088. (createKeepAliveMessage): New function. Overload.
  13089. * src/SendMessageQueue.cc
  13090. (createRequestMessage): Use PeerMessageUtil.
  13091. (createCancelMessage): Use PeerMessageUtil.
  13092. (createPieceMessage): Use PeerMessageUtil.
  13093. (createHaveMessage): Use PeerMessageUtil.
  13094. (createChokeMessage): Use PeerMessageUtil.
  13095. (createUnchokeMessage): Use PeerMessageUtil.
  13096. (createInterestedMessage): Use PeerMessageUtil.
  13097. (createNotInterestedMessage): Use PeerMessageUtil.
  13098. (createBitfieldMessage): Use PeerMessageUtil.
  13099. (createKeepAliveMessage): Use PeerMessageUtil.
  13100. * src/SendMessageQueue.h: Renamed to PeerInteraction.h
  13101. * src/SendMessageQueue.cc: Renamed to PeerInteraction.cc
  13102. * src/PeerInteraction.h: New class.
  13103. * src/PeerInteraction.cc: New class.
  13104. 2006-05-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13105. Each peer message has its own class.
  13106. * src/PendingMessages.h: Removed.
  13107. * src/PendingMessages.cc: Removed. The sending process was moved to
  13108. each message class.
  13109. * src/RequestSlotMan.h: Removed.
  13110. * src/RequestSlotMan.cc: Removed. All functionarities were moved to
  13111. SendMessageQueue.
  13112. * src/RequestMessage.h: New class.
  13113. * src/RequestMessage.cc: New class.
  13114. * src/CancelMessage.h: New class.
  13115. * src/CancelMessage.cc: New class.
  13116. * src/BitfieldMessage.h: New class.
  13117. * src/BitfieldMessage.cc: New class.
  13118. * src/ChokeMessage.h: New class.
  13119. * src/ChokeMessage.cc: New class.
  13120. * src/KeepAliveMessage.h: New class.
  13121. * src/KeepAliveMessage.cc: New class.
  13122. * src/PortMessage.h: New class.
  13123. * src/UnchokeMessage.h: New class.
  13124. * src/UnchokeMessage.cc: New class.
  13125. * src/PieceMessage.h: New class.
  13126. * src/PieceMessage.cc: New class.
  13127. * src/HaveMessage.h: New class.
  13128. * src/HaveMessage.cc: New class.
  13129. * src/BitfieldMessage.h: New class.
  13130. * src/BitfieldMessage.cc: New class.
  13131. * src/NotInterestedMessage.h: New class.
  13132. * src/NotInterestedMessage.cc: New class.
  13133. * src/InterestedMessage.h: New class.
  13134. * src/InterestedMessage.cc: New class.
  13135. * src/HandshakeMessage.h (sendMessageQueue): New variable.
  13136. (getSendMessageQueue): New function.
  13137. (setSendMessageQueue): New function.
  13138. * src/HandshakeMessage.cc: New class.
  13139. * src/PeerConnection.h (receiveMessage): Changed return value and
  13140. arguments.
  13141. (receiveHandshake): Changed return value and arguments.
  13142. * src/PeerConnection.cc (receiveMessage): Do not create message class
  13143. here.
  13144. (receiveHandshake): Do not create handshake class here.
  13145. * src/PeerInteractionCommand.h (peerConnection): Removed.
  13146. (piece): Removed.
  13147. (syncPiece): Removed.
  13148. (sendInterest): Removed.
  13149. (sendMessages): Removed.
  13150. (createRequestPendingMessage): Removed.
  13151. (checkPieceHash): Removed.
  13152. (erasePieceOnDisk): Removed.
  13153. (getNewPieceAndSendInterest): Removed.
  13154. (onGotNewPice): Removed.
  13155. (onGotWrongPiece): Removed.
  13156. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13157. Removed peerConnection, piece.
  13158. (~PeerInteractionCommand): Removed peerConnection.
  13159. (executeInternal): Use sendMessageQueue instead of peerConnection.
  13160. (syncPiece): Moved to SendMessageQueue.
  13161. (decideChoking): Removed PendingMessage.
  13162. (receiveMessage): Use sendMessageQueue instead of peerConnection.
  13163. The action after receiving peer message was moved to each message
  13164. class.
  13165. (onGotNewPice): Moved to SendMessageQueue.
  13166. (onGotWrongPiece): Moved to SendMessageQueue.
  13167. (getNewPieceAndSendInterest): Moved to SendMessageQueue.
  13168. (sendInterest): Moved to SendMessageQueue.
  13169. (createRequestPendingMessage): Removed.
  13170. (sendMessages): Moved to SendMessageQueue.
  13171. (onAbort): Use SendMessageQueue::abortPiece()
  13172. (keepAlive): Use sendMessageQueue instead of peerConnection.
  13173. (beforeSocketCheck): Use sendMessageQueue instead of peerConnection.
  13174. (checkPieceHash): Moved to SendMessageQueue.
  13175. (erasePieceOnDisk): Moved to SendMessageQueue.
  13176. * src/PeerMessageUtil.h
  13177. (createBitfieldMessage): Removed.
  13178. (createHaveMessage): Changed return value and arguments.
  13179. (createBitfieldMessage): Changed return value and arguments.
  13180. (createRequestCancelMessage): Removed.
  13181. (createPieceMessage): Changed return value and arguments.
  13182. (getShortIntParam): New function.
  13183. (checkIndex): Changed arguments.
  13184. (checkBegin): Changed arguments.
  13185. (checkLength): Changed arguments.
  13186. (checkPieceOffset): Removed.
  13187. (checkRange): New function.
  13188. (checkBitfield): Changed arguments.
  13189. (createPeerMessage): Removed.
  13190. (checkIntegrity): Removed.
  13191. (createHandshakeMessage): Changed arguments.
  13192. (createChokeMessage): New function.
  13193. (createUnchokeMessage): New function.
  13194. (createInterestedMessage): New function.
  13195. (createNotInterestedMessage): New function.
  13196. (createRequestMessage): New function.
  13197. (createCancelMessage): New function.
  13198. (createPortMessage): New function.
  13199. * src/PeerMessageUtil.cc
  13200. (createBitfieldMessage): Removed.
  13201. (createHaveMessage): Changed return value and arguments.
  13202. (createBitfieldMessage): Changed return value and arguments.
  13203. (createRequestCancelMessage): Removed.
  13204. (createPieceMessage): Changed return value and arguments.
  13205. (getShortIntParam): New function.
  13206. (checkIndex): Changed arguments.
  13207. (checkBegin): Changed arguments.
  13208. (checkLength): Changed arguments.
  13209. (checkPieceOffset): Removed.
  13210. (checkRange): New function.
  13211. (checkBitfield): Changed arguments.
  13212. (createPeerMessage): Removed.
  13213. (checkIntegrity): Removed.
  13214. (createHandshakeMessage): Changed arguments.
  13215. (createChokeMessage): New function.
  13216. (createUnchokeMessage): New function.
  13217. (createInterestedMessage): New function.
  13218. (createNotInterestedMessage): New function.
  13219. (createRequestMessage): New function.
  13220. (createCancelMessage): New function.
  13221. (createPortMessage): New function.
  13222. * src/PeerMessage.h
  13223. (id): Removed.
  13224. (index): Removed.
  13225. (begin): Removed.
  13226. (length): Removed.
  13227. (bitfield): Removed.
  13228. (bitfieldLength): Removed.
  13229. (block): Removed.
  13230. (blockLength): Removed.
  13231. (inProgress): New variable.
  13232. (cuid): New variable.
  13233. (peer): New variable.
  13234. (sendMessageQueue): New variable.
  13235. (logger): New variable.
  13236. (setBitfield): Removed.
  13237. (getBitfield): Removed.
  13238. (setBlock): Removed.
  13239. (getBlock): Removed.
  13240. (getBitfieldLength): Removed.
  13241. (getBlockLength): Removed.
  13242. (isInProgress): New function.
  13243. (toString): Made pure virtual.
  13244. (check): New function.
  13245. (send): New function.
  13246. (receivedAction): New function.
  13247. (getId): Made pure virtual.
  13248. (setId): Removed.
  13249. (getIndex): Removed.
  13250. (setIndex): Removed.
  13251. (getBegin): Removed.
  13252. (setBegin): Removed.
  13253. (getLength): Removed.
  13254. (setLength): Removed.
  13255. (getCuid): New function.
  13256. (setCuid): New function.
  13257. (getPeer): New function.
  13258. (setPeer): New function.
  13259. (getSendMessageQueue): New function.
  13260. (setSendMessageQueue): New function.
  13261. (ID): Removed.
  13262. * src/PeerMessage.cc
  13263. (setBitfield): Removed.
  13264. (setBlock): Removed.
  13265. (toString): Removed.
  13266. * src/TorrentMan.h
  13267. (getPieceLength): New function.
  13268. (getPieceLength): New function.
  13269. * src/SendMessageQueue.h
  13270. (REQUEST_TIME_OUT): New definition.
  13271. (RequestSlots): New definition.
  13272. (MessageQueue): New definition.
  13273. (requestSlotMan): Removed.
  13274. (pendingMessages): Removed.
  13275. (requestSlots): New variable.
  13276. (messageQueue): New variable.
  13277. (torrentMan): New variable.
  13278. (peerConnection): New variable.
  13279. (peer): New variable.
  13280. (piece): New variable.
  13281. (getNewPieceAndSendInterest): New function.
  13282. (createPeerMessage): New function.
  13283. (createHandshakeMessage): New function.
  13284. (send): Made private.
  13285. (setPeerMessageCommonProperty): New function.
  13286. (deleteAllRequestSlot): New function.
  13287. (deleteRequestMessageInQueue): New function.
  13288. (cancelAllRequest): Made private.
  13289. (cancelAllRequest): Made private.
  13290. (countRequestSlot): Made private.
  13291. (addPendingMessage): Removed.
  13292. (deletePendingPieceMessage): Removed.
  13293. (deletePendingRequestMessage): Removed.
  13294. (addMessage): New function.
  13295. (deletePieceMessageInQueue): New function.
  13296. (deleteTimeoutRequestSlot): Changed argument.
  13297. (deleteCompletedRequestSlot): Changed argument.
  13298. (getCorrespoindingRequestSlot): Renamed to getCorrespondingRequestSlot.
  13299. (getCorrespondingRequestSlot): New function.
  13300. (countPendingMessage): Removed.
  13301. (countMessageInQueue): New function.
  13302. (getTorrentMan): New function.
  13303. (getPeerConnection): New function.
  13304. (hasDownloadPiece): New function.
  13305. (getDownloadPiece): New function.
  13306. (setDownloadPiece): New function.
  13307. (syncPiece): New function.
  13308. (sendMessages): New function.
  13309. (sendNow): New function.
  13310. (trySendNow): New function.
  13311. (abortPiece): New function.
  13312. (sendHandshake): New function.
  13313. (receiveMessage): New function.
  13314. (receiveHandshake): New function.
  13315. (createRequestMessage): New function.
  13316. (createCancelMessage): New function.
  13317. (createPieceMessage): New function.
  13318. (createHaveMessage): New function.
  13319. (createChokeMessage): New function.
  13320. (createUnchokeMessage): New function.
  13321. (createInterestedMessage): New function.
  13322. (createNotInterestedMessage): New function.
  13323. (createBitfieldMessage): New function.
  13324. (createKeepAliveMessage): New function.
  13325. * src/SendMessageQueue.cc
  13326. (SendMessageQueue): Removed requestSlotMan.
  13327. Instantiated peerConnection here.
  13328. (~SendMessageQueue): Removed requestSlotMan.
  13329. Added deletion of peerConnection and the contents of messageQueue.
  13330. (send): Updated according to the change of messageQueue.
  13331. (addPendingMessage): Renamed to addMessage.
  13332. (addMessage): New function.
  13333. (deletePendingPieceMessage): Renamed to deletePieceMessageInQueue.
  13334. (deletePieceMessageInQueue): New function.
  13335. (deletePendingRequestMessage): Renamed to deleteRequestMessageInQueue.
  13336. (deleteRequestMessageInQueue): New function.
  13337. (deleteRequestSlot): RequestSlotMan::deleteRequestSlot(...) was moved
  13338. here.
  13339. (deleteTimeoutRequestSlot): RequestSlotMan::deleteTimeoutRequestSlot
  13340. (...) was moved here.
  13341. (deleteAllRequestSlot): RequestSlotMan::deleteAllRequestSlot(...) was
  13342. moved here.
  13343. (deleteCompletedRequestSlot):
  13344. RequestSlotMan::deleteCompletedRequestSlot(...) was moved here.
  13345. (getCorrespondingRequestSlot):
  13346. RequestSlotMan::getCorrespoindingRequestSlot(...) was moved here.
  13347. And renamed to getCorrespondingRequestSlot, correcting a typo.
  13348. (countPendingMessage): Renamed to countMessageInQueue.
  13349. (countMessageInQueue): New function.
  13350. (countRequestSlot): RequestSlotMan::countRequestSlot() was moved here.
  13351. (receiveHandshake): New function.
  13352. (createHandshakeMessage): New function.
  13353. (receiveMessage): New function.
  13354. (createPeerMessage): New function.
  13355. (syncPiece): New function.
  13356. (getNewPieceAndSendInterest): New function.
  13357. (sendMessages): New function.
  13358. (sendNow): New function.
  13359. (trySendNow): New function.
  13360. (sendHandshake): New function.
  13361. (abortPiece): New function.
  13362. (getDownloadPiece): New function.
  13363. (getPeerMessageCommonProperty): New function.
  13364. (createRequestMessage): New function.
  13365. (createCancelMessage): New function.
  13366. (createPieceMessage): New function.
  13367. (createHaveMessage): New function.
  13368. (createChokeMessage): New function.
  13369. (createUnchokeMessage): New function.
  13370. (createInterestedMessage): New function.
  13371. (createNotInterestedMessage): New function.
  13372. (createBitfieldMessage): New function.
  13373. (createKeepAliveMessage): New function.
  13374. To add simple Content-Disposition support:
  13375. * src/HttpResponseCommand.h (determinFilename): New function.
  13376. * src/HttpResponseCommand.cc (executeInternal):
  13377. Use determinFilename(headers) instead of req->getFile() when comparing
  13378. filename.
  13379. (determinFilename): New function.
  13380. (handleDefaultEncoding): Use determinFilename(headers) instead of
  13381. req->getFile().
  13382. (handleOtherEncoding): Use determinFilename(headers) instead of
  13383. req->getFile().
  13384. * src/Util.h (getContentDispositionFilename): New function.
  13385. * src/Util.cc (getContentDispositionFilename): New function.
  13386. * src/LogFactory.h (release): New function.
  13387. * src/LogFactory.cc (release): New function.
  13388. To fix a bug that causes out-of-bound exception when HTTP status
  13389. line is wrong:
  13390. * src/HttpConnection.cc (receiveResponse): Added a check for header
  13391. size.
  13392. * src/common.h (Deleter): New class.
  13393. * src/SegmentMan.cc
  13394. (~SegmentMan): Added deletion of splitter and diskWriter.
  13395. * src/DownloadEngine.h
  13396. (Commands): Use deque.
  13397. (clearQueue): New function.
  13398. * src/DownloadEngine.cc
  13399. (~DownloadEngine): Added deletion of segmentMan.
  13400. (cleanQueue): New function.
  13401. * src/TorrentDownloadEngine.h
  13402. (TorrentDownloadEngine): The implementation was moved to
  13403. TorrentDownloadEngine.cc.
  13404. (~TorrentDownloadEngine): The implementation was moved to
  13405. TorrentDownloadEngine.cc.
  13406. * src/TorrentDownloadEngine.cc
  13407. (~TorrentDownloadEngine): Added deletion of torrentMan.
  13408. * src/main.cc
  13409. (clearRequest): Removed.
  13410. (handler): Added deletion of e.
  13411. (torrentHandler): Added deletion of te.
  13412. (main): Do not share splitter.
  13413. Use Deleter instead of clearRequest.
  13414. Deletion of classes were updated.
  13415. 2006-05-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13416. * src/main.cc (main): Fixed typo.
  13417. * src/message.h: Fixed typo.
  13418. * po/de.po: Added German translation, thanks to Hermann J. Beckers.
  13419. 2006-04-29 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13420. To add --select-file command-line option:
  13421. * src/Util.cc
  13422. (unfoldRange): New function.
  13423. (getNum): New function.
  13424. (unfoldSubRange): New function
  13425. * src/main.cc
  13426. (showUsage): Added help message.
  13427. (main): Added --select-file command-line option. Updated the layout of
  13428. file listing.
  13429. * src/common.h
  13430. (Integers): New definition.
  13431. * src/SocketCore.cc
  13432. (writeData): Removed timeout argument.
  13433. (readData): Removed timeout argument.
  13434. (peekData): Removed timeout argument.
  13435. * src/Socket.cc
  13436. (writeData): Removed timeout argument.
  13437. (readData): Removed timeout argument.
  13438. (peekData): Removed timeout argument.
  13439. * Release 0.4.1
  13440. 2006-04-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13441. To deploy upload rate based choking algorithm:
  13442. * src/PeerInteractionCommand.cc
  13443. (PeerInteractionCommand): Add peer to TorrentMan::activePeers to track
  13444. peer currently used.
  13445. (decideChoking): Deleted the choke/unchoke decision algorithm when
  13446. download completes. Simplified.
  13447. (receiveMessage): Updated.
  13448. * src/TorrentMan.h
  13449. (activePeers): New variable.
  13450. (addActivePeer): New function.
  13451. (getActivePeers): New function.
  13452. (deleteActivePeer): New function.
  13453. * src/TorrentMan.cc
  13454. (addPeer): deleteOldErrorPeers is moved to the begining of the function
  13455. * src/PeerAbstractCommand.cc
  13456. (onAbort): Use peer->resetStatus().
  13457. * src/main.cc
  13458. (PeerChokeCommand.h): Included.
  13459. (main): Added the instance of ChokingCommand to the command queue.
  13460. * src/Peer.h
  13461. (amChoking): Renamed from amChocking
  13462. (chokingRequired): New variable.
  13463. (optUnchoking): New variable.
  13464. (deltaUpload): New variable.
  13465. (deltaDownload): New variable.
  13466. (addDeltaUpload): New function.
  13467. (resetDeltaUpload): New function.
  13468. (addDeltaDownload): New function.
  13469. (resetDeltaDownload): New function.
  13470. (addPeerUpload): Added a call to addDeltaUpload.
  13471. (addPeerDownload): Added a call to addDeltaDownload.
  13472. * src/Peer.cc
  13473. (shouldBeChoking): Renamed from shouldChoke.
  13474. (resetStatus): New function.
  13475. * src/PeerChokeCommand.h: New class.
  13476. * src/PeerChokeCommand.cc: New class.
  13477. To add lazy upload speed limiter:
  13478. * src/TorrentConsoleDownloadEngine.h: Moved the variables for
  13479. statistics calculation to TorrentDownloadEngine.
  13480. * src/TorrentConsoleDownloadEngine.cc
  13481. (sendStatistics): Renamed from printStatistics.
  13482. (initStatistics): Removed. Moved to TorrentDownloadEngine.
  13483. (calculateSpeed): Removed. Moved to TorrentDownloadEngine.
  13484. (calculateStatistics): Removed. Moved to TorrentDownloadEngine.
  13485. * src/TorrentDownloadEngine.h: Added the variables for statistics
  13486. calculation.
  13487. (sendStatistics): New function as pure virtual function.
  13488. (getUploadSpeed): New function.
  13489. * src/TorrentDownloadEngine.cc
  13490. (initStatistics): New function.
  13491. (calculateSpeed): New function.
  13492. (calculateStatistics): New function.
  13493. * src/SendMessageQueue.h
  13494. (uploadLength): New variable.
  13495. (send): Added an argument.
  13496. (setUploadLimit): New function.
  13497. (getUploadLimit): New function.
  13498. * src/SendMessageQueue.cc
  13499. (send): Added upload speed limiter.
  13500. * src/prefs.h
  13501. (PREF_UPLOAD_LIMIT): New definition.
  13502. * src/PeerInteractionCommand.cc
  13503. (PeerInteractionCommand): Set upload speed limit to sendMessageQueue.
  13504. * src/main.cc
  13505. (main): Added --upload-limit option
  13506. For bug fixes:
  13507. * src/main.cc
  13508. (showUsage): Corrected --listen-port help
  13509. Other changes:
  13510. * src/TorrentMan.cc
  13511. (getPeer): Return nullPeer if connection is grather than
  13512. MAX_PEER_UPDATE(15) in order to leave space for incoming peers.
  13513. 2006-04-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13514. To add some useful information to the exception message:
  13515. * src/SocketCore.cc : Updated messages.
  13516. * src/SegmentMan.cc :
  13517. * src/TorrentMan.cc : Updated messages.
  13518. * src/MultiDiskWriter.cc : Updated messages.
  13519. * src/Util.cc : Updated messages.
  13520. * src/AbstractDiskWriter.cc : Updated messages.
  13521. * src/PreAllocationDiskWriter.cc : Updated messages.
  13522. * src/message.cc : Added new messages. Updated some messages.
  13523. * src/TrackerWatcherCommand.h (MIN_PEERS): New definition.
  13524. * src/TrackerWatcherCommand.cc (execute): Use MIN_PEERS.
  13525. Updated threshold from 30 to 15.
  13526. * src/AbstractDiskWriter.h (filename): New variable.
  13527. * src/AbstractDiskWriter.cc (openExistingFile): Assigned filename.
  13528. (createFile): Assigned filename.
  13529. * src/main.cc: Updated the help message for http-auth-scheme.
  13530. * Release 0.4.0
  13531. 2006-04-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13532. To add TrackerUpdateCommand with which replaces
  13533. CompactTrackerResponseProcessor:
  13534. * src/TrackerWatcherCommand.h (req): Removed.
  13535. * src/TrackerWatcherCommand.cc (execute): Send a request to tracker
  13536. if the number of peer connections are less than 30.
  13537. * src/ByteArrayDiskWriter.h (readData): Implemented.
  13538. * src/SegmentMan.h (diskWriter): New function.
  13539. * src/SegmentMan.cc (init): Added a call to diskWriter->closeFile()
  13540. * src/main.cc : Removed #include "CompactTrackerResponseProcessor.h"
  13541. (main): Use TrackerUpdateCommand.
  13542. * src/TorrentMan.h (CompactTrackerResponseProcessor): Removed.
  13543. (req): New variable.
  13544. (setTrackerResponseProcessor): Removed.
  13545. (getTrackerResponseProcessor): Removed.
  13546. (processTrackerResponse): Removed.
  13547. * src/DownloadEngine.h (diskWriter): Removed.
  13548. * src/TorrentDownloadEngine.cc (afterEachIteration): Removed a call
  13549. to torrentMan->processTrackerResponse().
  13550. To add Util::expandBuffer:
  13551. * src/ByteArrayDiskWriter.h (expandBuffer): Removed.
  13552. * src/ByteArrayDiskWriter.cc (writeData): Use Util::expandBuffer().
  13553. * src/Util.h (expandBuffer): New function.
  13554. To fix the bug that causes segmentation fault when "-l ." is specified
  13555. in command-line option:
  13556. * src/SimpleLogger.h (SimpleLogger): Removed "filename" argument.
  13557. (openFile): New function.
  13558. (closeFile): New function.
  13559. * src/SimpleLogger.cc (SimpleLogger): Removed fopen.
  13560. (~SimpleLogger): Call closeFile();
  13561. * src/LogFactory.cc (getInstance): Added a call to slogger->openFile().
  13562. * src/main.cc (main): Added a check to see logger is configured
  13563. properly.
  13564. To enable HTTP authentication without specifying "--http-auth-scheme"
  13565. * src/prefs.h (PREF_HTTP_AUTH_ENABLED): New definition.
  13566. * src/HttpConnection.cc (createRequest): Send Authorization header
  13567. if PREF_HTTP_AUTH_ENABLED == V_TRUE.
  13568. * src/main.cc (main): Preset PREF_HTTP_AUTH_SCHEME to V_TRUE
  13569. If "--http-user" is specified, set PREF_HTTP_AUTH_ENABLED to V_TRUE
  13570. * src/Peer.cc (shouldChoke): Updated algorithm.
  13571. * src/message.h (EX_AUTH_FAILED): New definition.
  13572. (EX_FILE_OPEN): New definition.
  13573. * src/HttpResponseCommand.cc (checkResponse): Throw DlAbortEx
  13574. if status == 401.
  13575. (handleDefaultEncoding): Added a call to diskWriter->initAndOpenFile()
  13576. if req->isTorrent == true.
  13577. * src/main.cc (handler): Removed the check to see e->diskWriter != NULL
  13578. (torrentHandler): Removed the check to see diskAdaptor != NULL.
  13579. * src/AbstractDiskWriter.cc (openExistingFile): Updated messsage.
  13580. (createFile): Updated message.
  13581. 2006-04-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13582. To add a readout of estimated remaining time to normal HTTP/FTP
  13583. downloads:
  13584. * src/ConsoleDownloadEngine.h (startup): New variable.
  13585. (startupLength): New variable.
  13586. (isStartupLengthSet): New variable.
  13587. (avgSpeed): New variable.
  13588. (eta): New variable.
  13589. * src/ConsoleDownloadEngine.cc (sendStatistics): Added a readout of
  13590. estimated remaining time.
  13591. (initStatistics): Initialized newly added variables.
  13592. (calculateStatistics): Calculate average speed and estimated remaining
  13593. time.
  13594. To decouple TorrentDownloadEngine from HttpResponseCommand:
  13595. * src/TrackerDownloadCommand.h: Removed.
  13596. * src/TrackerDownloadCommand.cc: Removed.
  13597. * src/TrackerInitCommand.h: Removed.
  13598. * src/TrackerInitCommand.cc: Removed.
  13599. * src/TrackerUpdateCommand.h: Removed.
  13600. * src/TrackerUpdateCommand.cc: Removed.
  13601. * src/TrackerWatcherCommand.cc (execute): The construction of request
  13602. url written in TrackerInitCommand was moved here. Do not create
  13603. tracker request command if torrentMan->trackers != 0.
  13604. * src/CompactTrackerResponseProcessor.h: New class.
  13605. * src/CompactTrackerResponseProcessor.cc: New class.
  13606. * src/message.h (MSG_TRACKER_WARNING_MESSAGE): Updated.
  13607. * src/HttpResponseCommand.cc (createHttpDownloadCommand):
  13608. Decoupled TorrentDownloadEngine from this.
  13609. * src/SegmentMan.h (init): New function.
  13610. * src/SegmentMan.cc (init): New function.
  13611. * src/TorrentMan.h (responseProcessor): New variable.
  13612. (trackers): New variable.
  13613. (setTrackerResponseProcessor): New function.
  13614. (getTrackerResponseProcessor): New function.
  13615. (processTrackerResponse): New function.
  13616. * src/TorrentMan.cc (Constructor): Initialized new variable trackers.
  13617. (processTrackerResponse): New function.
  13618. * src/main.cc (main): Use ByteArrayDiskWriter and
  13619. CompactTrackerResponseProcessor.
  13620. * src/TorrentDownloadEngine.cc (afterEachIteration): Call torrentMan->
  13621. processTrackerResponse().
  13622. * src/TorrentConsoleDownloadEngine.cc (printStatistics): Updated a
  13623. readout.
  13624. * src/TorrentDownloadEngine.cc (afterEachIteration): Added log message
  13625. which indicates download has completed.
  13626. * src/AbstractDiskWriter.cc (Destructor): fd >= 0, not fd >0
  13627. (closeFile): fd >= 0, not fd > 0
  13628. * src/main.cc (main): Added short cut for show-files.
  13629. Added short cut for torrent-file.
  13630. Added new command-line option listen-port.
  13631. Updated i18n messages.
  13632. 2006-04-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13633. To add LogFactory which creates singleton logger:
  13634. * src/LogFactory.h: New class.
  13635. * src/LogFactory.cc: New class.
  13636. * src/Command.h (logger): New variable.
  13637. (Constructor): Use LogFactory.
  13638. * src/AbstractCommand.cc: Use Command::logger
  13639. * src/PeerConnection.cc (Constructor): Deleted the argument logger.
  13640. Use LogFactory.
  13641. * src/SegmentSplitter.h : Made logger protected.
  13642. * src/SegmentSplitter.cc (Constructor): Use LogFactory.
  13643. * src/SegmentMan.cc (Constructor): Use LogFactory.
  13644. * src/DownloadEngine.h : Made logger protected.
  13645. * src/DownloadEngine.cc (Constructor): Use LogFactory.
  13646. * src/PeerInteractionCommand.cc : Use Command::logger.
  13647. * src/HttpResponseCommand.cc : Use Command::logger.
  13648. * src/SegmentMan.h : Made logger private.
  13649. * src/TorrentMan.h : Made logger private.
  13650. * src/TorrentMan.cc : Use LogFactory.
  13651. * src/FtpNegotiateCommand.cc : Use Command::logger.
  13652. * src/HttpConnection.h (Constructor): Deleted the argument logger.
  13653. * src/HttpConnection.cc (Constructor): Deleted the argument logger.
  13654. Use LogFactory.
  13655. * src/FtpConnection.h (Constructor): Deleted the argument logger.
  13656. * src/FtpConnection.cc (Constructor): Deleted the argument logger.
  13657. Use LogFactory.
  13658. * src/DownloadCommand.cc : Use Command::logger.
  13659. * src/PeerAbstractCommand.cc : Use Command::logger.
  13660. * src/PeerListenCommand.cc : Use Command::logger.
  13661. * src/PeerInitiateConnectionCommand.cc : Use Command::logger.
  13662. * src/HttpInitiateConnectionCommand.cc : Use Command::logger.
  13663. * src/FtpInitiateConnectionCommand.cc : Use Command::logger.
  13664. * src/TrackerWatcherCommand.cc : Use Command::logger.
  13665. * src/TrackerUpdateCommand.cc : Use Command::logger.
  13666. * src/TrackerDownloadCommand.cc : Use Command::logger.
  13667. * src/RequestSlotMan.cc (Constructor): Deleted the argument logger.
  13668. Use LogFactory.
  13669. * src/SendMessageQueue.h (Constructor): Deleted the argument logger.
  13670. * src/SendMessageQueue.cc (Constructor): Deleted the argument logger.
  13671. Use LogFactory.
  13672. * src/main.cc (main): Use LogFactory.
  13673. * src/DiskAdaptor.h (logger): New variable.
  13674. * src/DiskAdaptor.cc (Constructor): Use LogFactory.
  13675. * src/CopyDiskAdaptor.cc (fixFilename): Added a log message.
  13676. 2006-04-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13677. * src/TrackerInitCommand.cc (TrackerInitCommand): Added a "key"
  13678. parameter to a tracker request.
  13679. * src/TorrentMan.cc (readFileEntryFromMetaInfoFile): Bug fix.
  13680. * src/TrackerWatcherCommand.cc (execute): Call req->resetTryCount().
  13681. * src/main.cc (setSignalHander): New function.
  13682. (main): Added a handler for SIGTERM.
  13683. (handler): Updated message.
  13684. (torrentHandler): Updated message.
  13685. 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13686. * src/TorrentConsoleDownloadEngine.cc
  13687. (onPartialDownloadingCompletes): Renamed as
  13688. onSelectiveDownloadingCompletes.
  13689. (onSelectiveDownloadingCompletes): Updated message.
  13690. To add DiskAdaptor which abstract DiskWriter family:
  13691. * src/PeerConnection.cc: Use diskAdaptor instead of diskWriter.
  13692. * src/PeerInteractionCommand.cc: Use diskAdaptor instead of diskWriter.
  13693. * src/BitfieldMan.cc (isAllBitSet): bug fix.
  13694. * src/TorrentMan.cc : Included CopyDiskAdaptor.h, DirectDiskAdaptor.h,
  13695. MultiDiskAdaptor.h.
  13696. (readFileEntry): Changed its arguments.
  13697. (setup): setupDiskWriter is merged into this function.
  13698. (setupDiskWriter): Removed.
  13699. (setFileFilter): New function.
  13700. (readFileEntryFromMetaInfoFile): Updated according to the changes
  13701. made in readFileEntry.
  13702. (getFilePath): Removed.
  13703. (getTempFilePath): Removed.
  13704. (getSegmentFilePath): Updated due to the removal of getFilePath.
  13705. (fixFilename): Removed.
  13706. (copySingleFile): Removed.
  13707. (splitMultiFile): Removed.
  13708. (deleteTempFile): Removed.
  13709. (setFileEntriesToDownload): Removed.
  13710. (isPartialDownloadingMode): Renamed as isSelectiveDownloadingMode.
  13711. (isSelectiveDownloadingMode): New function.
  13712. (setAllMultiFileRequestedState): Removed.
  13713. (finishPartialDownloadingMode): Renamed as
  13714. finishSelectiveDownloadingMode.
  13715. (finishSelectiveDownloadingMode): New function.
  13716. (getPartialTotalLength): Renamed as getSelectedTotalLength.
  13717. (getSelectedTotalLength): New function.
  13718. (onDownloadComplete): Use diskAdaptor.
  13719. * src/MultiDiskWriter.cc (Constructor): Added the argument pieceLength
  13720. (Range): Removed.
  13721. (setMultiFileEntries): Renamed as setFileEntries.
  13722. (setFileEntries): New function.
  13723. * src/MultiDiskWriter.h [DiskWriterEntry](enabled): Removed.
  13724. (pieceLength): New variable.
  13725. * src/main.cc (printDownloadCompeleteMessage): New function.
  13726. (torrentHandler): Use diskAdaptor instead of diskWriter.
  13727. (main): Renamed torrent-show-files to show-files.
  13728. Rewritten file contents listing.
  13729. * src/TorrentMan.h (FileEntry): Removed.
  13730. (multiFileTopDir): Removed.
  13731. (multiFileEntries): Removed.
  13732. (diskWriter): Removed.
  13733. (diskAdaptor): New variable.
  13734. * src/DefaultDiskWriter.h (totalLength): New variable.
  13735. * src/DefaultDiskWriter.cc (initAndOpenFile): Added ftruncate.
  13736. * src/TorrentDownloadEngine.cc (onEndOfRun): Use diskAdaptor instead of
  13737. diskWriter.
  13738. * src/TorrentConsoleDownloadEngine.h
  13739. (partialDownloadLengthDiff): Renamed as selectedDownloadLengthDiff.
  13740. (partialTotalLength): Renamed as selectedTotalLength.
  13741. * src/AbstractDiskWriter.cc (openFile): If file exists, call
  13742. openExistingFile, otherwise call initAndOpenFile.
  13743. (closeFile): fd > 0, not fd != 0.
  13744. * src/DirectDiskAdaptor.h: New class.
  13745. * src/DirectDiskAdaptor.cc: New class.
  13746. * src/MultiDiskAdaptor.h: New class.
  13747. * src/MultiDiskAdaptor.cc: New class.
  13748. * src/CopyDiskAdaptor.h: New class.
  13749. * src/CopyDiskAdaptor.cc: New class.
  13750. * src/DiskAdaptor.h: New class.
  13751. * src/DiskAdaptor.cc: New class.
  13752. * src/prefs.h (PREF_TORRENT_SHOW_FILES): Renamed as PREF_SHOW_FILES
  13753. (PREF_SHOW_FILES): New definition.
  13754. 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13755. To add the ability to download multi torrent into respective files
  13756. directly:
  13757. * src/DiskWriter.h (openFile): New function.
  13758. (seek): Removed.
  13759. * src/MultiDiskWriter.h: New class.
  13760. * src/MultiDiskWriter.cc: New class.
  13761. * src/AbstractDiskWriter.h (seek): Changed its scope from public to
  13762. protected.
  13763. (openFile): New function.
  13764. * src/AbstractDiskWriter.cc (openFile): New function.
  13765. * src/prefs.h (V_FALSE): New definition.
  13766. (PREF_DIRECT_FILE_MAPPING): New definition.
  13767. * src/TorrentMan.h (setupDiskWriter): New function.
  13768. (setAllMultiFileRequestedState): New function.
  13769. (onDownloadComplete): New function.
  13770. * src/TorrentMan.cc : Included MultiDiskWriter.h
  13771. (setupDiskWriter): New function.
  13772. (getFilePath): Updated.
  13773. (getTempFilePath): Updated.
  13774. (getSegmentFilePath): Updated.
  13775. (fixFilename): Updated.
  13776. (deleteTempFile): Updated.
  13777. (setAllMultiFileRequestedState): New function.
  13778. (setFileEntriesToDownload): Use setAllMultiFileRequestedState().
  13779. (finishPartialDownloadingMode): Reset requested flags.
  13780. (onDownloadComplete): New function.
  13781. * src/main.cc: Added --direct-file-mapping option.
  13782. Use TorrentMan::setupDiskWriter().
  13783. * src/TorrentDownloadEngine.cc (afterEachIteration): Use TorrentMan::
  13784. onDownloadComplete().
  13785. To fix ETA bug:
  13786. * src/Util.h (difftvsec): New function.
  13787. * src/Util.cc (difftvsec): New function.
  13788. * src/TorrentConsoleDownloadEngine.cc (calculateSpeed): Use int for the
  13789. type of "elapsed" instead of long long int.
  13790. (calculateStatistics): Use Util::difftvsec instead of Util::difftv.
  13791. The updates of statistics takes place every 1 seconds.
  13792. * src/TorrentConsoleDownloadEngine.h (lastElapsed): Changed its type.
  13793. (calculateSpeed): Changed its argument signature.
  13794. * src/PeerMessage.cc (toString): Fixed message.
  13795. 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13796. To print ETA:
  13797. * src/TorrentDownloadEngine.cc (afterEachIteration): Added download
  13798. completion handling when dealing with
  13799. TorrentMan::isPartialDownloadingMode() == true.
  13800. * src/TorrentDownloadEngine.h (onPartialDownloadingCompletes):
  13801. New function.
  13802. * src/TorrentConsoleDownloadEngine.h (startup): New variable.
  13803. (sessionDownloadLength): New variable.
  13804. (avgSpeed): New variable.
  13805. (eta): New variable.
  13806. * src/TorrentConsoleDownloadEngine.cc (initStatistics): Initialized
  13807. new variables: eta, avgSpeed, startup.
  13808. (calculateSpeed): Calculate average speed and ETA.
  13809. (printStatistics): Added ETA.
  13810. * src/Util.h (secfmt): New function.
  13811. * src/Util.cc (secfmt): New function.
  13812. 2006-04-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13813. To detect "keep alive" flooding:
  13814. * src/PeerInteractionCommand.h (keepAliveCount): New variable
  13815. * src/PeerInteractionCommand.cc (Constructor): Initialized new
  13816. variable: keepAliveCount.
  13817. (detectMessageFlooding): Added "keep alive" flooding detection.
  13818. (receiveMessage): Increase keepAliveCount when "keep alive" message
  13819. received.
  13820. To add the ability to download only specified files in multi-file
  13821. torrent:
  13822. * src/BitfieldMan.h (filterBitfield): New variable.
  13823. (filterEnabled): New variable.
  13824. (setFilterBit): New function.
  13825. (enableFilter): New function.
  13826. (disableFilter): New function.
  13827. (isFilterEnabled): New function.
  13828. (getFilteredTotalLength): New function.
  13829. (getCompletedLength): New function.
  13830. * src/BitfieldMan.cc (Constructor): Initialized new variable:
  13831. filterBitfield, filterEnabled.
  13832. (CopyConstructor): Added filterBitfield and filterEnabled.
  13833. (operator==): Added filterBitfield and filterEnabled.
  13834. (Destructor): Added filterBitfield.
  13835. (getMissingIndex): Use filterBitfield.
  13836. (getMissingUnusedIndex): Use filterBitfield.
  13837. (getFirstMissingUnusedIndex): Use filterBitfield.
  13838. (getFirstMissingUnusedIndex): Use filterBitfield.
  13839. (getAllMissingIndexes): Use filterBitfield.
  13840. (countMissingBlock): Use filterBitfield.
  13841. (countBlock): Use filterBitfield.
  13842. (setBitInternal): Added new argument on.
  13843. (setUseBit): Use setBitInternal.
  13844. (unsetUseBit): Use setBitInternal.
  13845. (setBit): Use setBitInternal.
  13846. (unsetBit): Use setBitInternal.
  13847. (isAllBitSet): Use filterBitfield.
  13848. (setFilterBit): New function.
  13849. (addFilter): New function.
  13850. (enableFilter): New function.
  13851. (disableFilter): New function.
  13852. (clearFilter): New function.
  13853. (isFilterEnabled): New function.
  13854. (getFilteredTotalLength): New function.
  13855. (getCompletedLength): New function.
  13856. * src/TorrentMan.h [FileEntry](Constructor): Updated signature.
  13857. Initalized newly added variables.
  13858. [FileEntry](offset): New variable.
  13859. [FileEntry](extracted): New variable.
  13860. [FileEntry](requested): New variable.
  13861. (readFileEntry): New function.
  13862. (option): New variable.
  13863. (splitMultiFile): Removed const qualifier.
  13864. (fixFilename): Removed const qualifier.
  13865. (readFileEntryFromMetaInfoFile): New function.
  13866. (finishPartialDownloadingMode): New function.
  13867. (isPartialDownloadingMode): New function.
  13868. (setFileEntriesToDownload): New function.
  13869. (getCompletedLength): New function.
  13870. (getPartialTotalLength): New function.
  13871. * src/TorrentMan.cc (readFileEntry): New function.
  13872. (setup): Use readFileEntry. If no-preallocation option is specified,
  13873. use DefaultDiskWriter.
  13874. (readFileEntryFromMetaInfoFile): New function.
  13875. (fixFilename): Removed const qualifier.
  13876. (splitMultiFile): Removed const qualifier.
  13877. (setFileEntriesToDownload): New function.
  13878. (isPartialDownloadingMode): New function.
  13879. (finishPartialDownloadingMode): New function.
  13880. (getCompletedLength): New function.
  13881. (getPartialTotalLength): New function.
  13882. * src/TorrentConsoleDownloadEngine.h (partialDownloadLengthDiff):
  13883. New variable.
  13884. (partialTotalLength): New variable.
  13885. (downloadLength): New variable.
  13886. (totalLength): New variable.
  13887. * src/TorrentConsoleDownloadEngine.cc (onPartialDownloadingCompletes):
  13888. Added log.
  13889. (initStatistics): Initialized new variables: partialDownloadLengthDiff,
  13890. partialTotalLength, downloadLength, totalLength.
  13891. (calculate): Calculate downloadLength and totalLength.
  13892. * src/prefs.h :New definition PREF_NO_PREALLOCATION
  13893. * src/main.cc (addCommand): Changed argument signature.
  13894. (main): Added new variable: args. Added new option "torrent-show-files"
  13895. "no-preallocation". Usage is not updated yet.
  13896. 2006-04-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13897. * src/PeerMessage.cc (setBitfield): Fixed invalid memory de-allocation.
  13898. 2006-04-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13899. Attempt to add the ability to listing file entries in a .torrent file.
  13900. This feature is not yet complete.
  13901. * src/prefs.h (PREF_TORRENT_SHOW_FILES): New definition
  13902. * src/TorrentMan.cc (getMultiFileEntries): New function.
  13903. (getName): New function.
  13904. * src/TorrentMan.h (getMultiFileEntries): New function.
  13905. (getName): New function.
  13906. * src/main.cc (main): Use above 2 funtion.
  13907. * Release 0.3.2
  13908. 2006-03-31 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13909. * src/PeerInteractionCommand.cc (checkInactiveConnection): New function
  13910. (detectMessageFlooding): Updated threshold value.
  13911. (checkLongTimePeerChoking): Updated timeout value.
  13912. (getNewPieceAndSendInterest): Added debug log.
  13913. * src/PeerInteractionCommand.h (checkInactiveConnection): New function
  13914. * src/TorrentMan.cc (deleteOldErrorPeers): Updated.
  13915. (getPeer): Updated.
  13916. * src/TorrentMan.h: Added MAX_PEER_ERROR.
  13917. * src/PeerAbstractCommand.cc (onAbort): Increment error counter.
  13918. * src/PeerListenCommand.cc (execute): Close connection if incoming peer
  13919. is localhost.
  13920. * src/main.cc (main): Updated PREF_PEER_CONNECTION_TIMEOUT to 60.
  13921. * src/PendingMessage.cc (processMessage): Not to send piece message
  13922. if peer is not interested in the pieces localhost has.
  13923. * src/Peer.cc (shouldChoke): Updated.
  13924. * src/SendMessageQueue.cc (cancelAllRequest): Fixed.
  13925. * src/Util.cc (isPowerOf): New function.
  13926. * src/Util.h (isPowerOf): New function.
  13927. * src/PeerMessageUtil.cc (checkLength): Added a check for length
  13928. whether or not it is power of 2.
  13929. 2006-03-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13930. Added new class SendMessageQueue that includes PendingMessages and
  13931. RequestSlotMan.
  13932. * src/SendMessageQueue.h: New class.
  13933. * src/SendMessageQueue.cc: New class.
  13934. * src/PendingMessage.h: Added new member variable blockIndex and its
  13935. accessors.
  13936. (createRequestMessage): Updated.
  13937. * src/PendingMessage.cc (createRequestMessage): Updated.
  13938. * src/PeerInteractionCommand.cc (executeInternal): Updated with
  13939. SendMessageQueue.
  13940. (checkLongTimePeerChoking): Updated with SendMessageQueue.
  13941. (receiveMessage): Updated with SendMessageQueue.
  13942. (deletePendingPieceMessage): Removed.
  13943. (getNewPieceAndSendInterest): Updated with SendMessageQueue.
  13944. (sendInterest): Updated with SendMessageQueue.
  13945. (createRequestPendingMessage): Updated with SendMessageQueue.
  13946. (sendMessages): Updated with SendMessageQueue.
  13947. (onAbort): Updated with SendMessageQueue.
  13948. (keepAlive): Updated with SendMessageQueue.
  13949. (beforeSocketCheck): Updated SendMessageQueue.
  13950. * src/PeerInteractionCommand (sendMessages): Shuffle
  13951. missingBLockIndexes before using it.
  13952. Added its own timeout for peer connection.
  13953. * src/PeerAbstractCommand.h: Added member variable timeout and its
  13954. setter.
  13955. * src/prefs.h: Added PREF_PEER_CONNECTION_TIMEOUT.
  13956. * src/PeerInteractionCommand.cc (PeerInteractionCommand):
  13957. Added setTimeout() call.
  13958. (executeInternal): Added setTimeout() call.
  13959. * src/PeerAbstractCommand.cc (PeerAbstractCommand):
  13960. Added timeout.
  13961. (isTimeoutDetected): Updated.
  13962. * src/main.cc (main): Added PREF_PEER_CONNECTION_TIMEOUT entry to
  13963. option.
  13964. Added *simple* message flooding checker.
  13965. * src/PeerInteractionCommand.cc (executeInternal):
  13966. Added detectMessageFlooding() call.
  13967. (detectMessageFlooding): New function.
  13968. (receiveMessage): Count up CHOKE, UNCHOKE, HAVE message.
  13969. (beforeSocketCheck): Added detectMessageFlooding() call.
  13970. * src/PeerInteractionCommand.h: Added sendMessageQueue,
  13971. chokeUnchokeCount, haveCount, detectMessageFlooding().
  13972. Removed deletePendingPieceMessage(), getRequestSlot(),
  13973. deleteRequestSlot(), deleteAllRequestSlot().
  13974. * src/PeerInteractionCommand.cc (beforeSocketCheck):
  13975. Added checkLongTimePeerChoking() call.
  13976. * src/RequestSlotMan.h: Renamed deleteTimeoutRequestSlot().
  13977. * src/TorrentMan.cc (addPeer): Delete at most MAX_PEER_LIST_SIZE peers
  13978. if duplicate == false.
  13979. The parameter "uploaded" and "downloaded" in the tracker request are
  13980. the size since the client sent the "started" event to the tracker.
  13981. * src/TorrentMan.cc (setup): Assigned saved downloaded Size and
  13982. uploaded size to preDownloadedSize, preUploadedSize respectively.
  13983. * src/TorrentMan.h: Added preDownloadedSize, preUploadedSize,
  13984. getSessionDownloadedSize(), getSessionUploadedSize().
  13985. * src/TrackerInitCommand.cc (execute): Use getSessionDownloadedSize(),
  13986. getSessionUploadedSize() instead of getDownloadedSize(),
  13987. getUploadedSize().
  13988. * src/PendingMessage.cc (processMessage): Do not send request message
  13989. if the peer is choking the client.
  13990. * src/TrackerUpdateCommand.cc (execute): Check wtheher minInterval is
  13991. less than interval.
  13992. 2006-03-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  13993. * configure.in: Added gnutls support. Added several CPP macros.
  13994. * m4/openssl.m4: Added.
  13995. * src/SocketCore.{h,cc}: Drop const quarifier from writeData(),
  13996. readData(), peekData(). Added gnutls support.
  13997. * src/HttpDownloadCommand.cc: Removed SleepCommand.h
  13998. * src/TrackerWatcherCommand.{h,cc}: Added. This command creates
  13999. TrackerInitCommand periodicaly(TorrentMan::minInterval).
  14000. * src/TorrentMan.cc: Remove downloadedSize == 0 check from save().
  14001. Instead, added a check for whether setup method has executed
  14002. successfully.
  14003. * src/TorrentMan.h: Added member vaiable setupComplete. Updated
  14004. DEFAULT_ANNOUNCE_INTERVAL and DEFAULT_ANNOUNCE_MIN_INTERVAL to 300.
  14005. * src/Makefile.am: Updated.
  14006. * src/messageDigest.h: Added. This is a macro calculating SHA1 digest
  14007. using whether OpenSSL or gcrypt, depending on the result of configure
  14008. script.
  14009. * src/ShaVisitor.{h,cc}: Removed direct dependency on OpenSSL by using
  14010. messageDigest.h.
  14011. * src/TorrentAutoSaveCommand.h: Removed unused variable cuid.
  14012. * src/PeerListenCommand.cc: Added log about port binded successfully.
  14013. Fixed memory leak.
  14014. * src/main.cc: Added gnutls support. Replaced LIB_SSL with
  14015. ENABLE_BITTORRENT where they are not related to OpenSSL but BitTorrent.
  14016. Removed instantiation of TrackerInitCommand. Instead,
  14017. TrackerWatcherCommand is instantiated and pushed to the command queue.
  14018. * src/InitiateConnectionCommandFactory.cc: Replaced HAVE_LIBSSL with
  14019. ENABLE_SSL.
  14020. * src/Request.cc: Replaced HAVE_LIBSSL with ENABLE_SSL.
  14021. * src/RequestSlotMan.cc (deleteCompletedRequestSlot):
  14022. If a piece is already acquired by another command, delete the request
  14023. slots for the piece.
  14024. * src/TrackerUpdateCommand.cc (execute):
  14025. Changed log level of MSG_TRACKER_WARNING_MESSAGE from info to warn.
  14026. Added a check whether peer list is null.
  14027. Fixed the bug that causes sending completed event to the tracker
  14028. several times.
  14029. * src/TrackerInitCommand.cc (execute):
  14030. Fixed the bug that causes sending completed event to the tracker
  14031. several times.
  14032. * src/AbstractDiskWriter.{h,cc}: Removed direct dependency on OpenSSL
  14033. by using messageDigest.h.
  14034. 2006-03-26 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14035. * PeerConnection.cc: Replaced log message "keep-alive" with
  14036. "keep alive".
  14037. * PeerInteractionCommand.{h,cc}: Close connection if peer is choking
  14038. localhost long time.
  14039. * TorrentMan.cc: When adding new peer with duplicate = true, if the
  14040. number of peer list is equal to or grater than MAX_PEER_LIST, delete
  14041. at most 100 failure entry from the list. If with duplicate = false,
  14042. MAX_PEER_LIST is not checked.
  14043. * PeerListenCommand.cc: Fixed the argument order of log message.
  14044. 2006-03-25 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14045. * Logger.h: Moved enum LEVEL from SimpleLogger.h to here.
  14046. Added warn().
  14047. * SimpleLogger.h: Moved enum LEVEL to Logger.h.
  14048. Implemented warn().
  14049. Defined 2 macros(WRITE_LOG, WRITE_LOG_EX) to avoid duplicated code.
  14050. 2006-03-24 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14051. * Request.h: Added AFTER_COMPLETED event.
  14052. * TorrentDownloadEngine.cc: Prints "Download complete" message
  14053. instead of downloaded size and progress(%) after download completes.
  14054. * PeerInteractionCommand.cc: After download completes, sends unchoke
  14055. message to the peer if it is interested in what localhost has
  14056. downloaded.
  14057. * TorrentMan.cc: In single-file mode, copy temporary file to the final
  14058. destination instead of just renaming it.
  14059. * TorrentMan.cc: Added deleteTempFile().
  14060. * PeerAbstractCommand.cc: do not stop execution after download
  14061. completes. This makes localhost a seeder.
  14062. * Util.{h,cc}: Added fileCopy().
  14063. * PeerListenCommand.cc: do not stop execution after download completes.
  14064. This makes localhost a seeder.
  14065. * main.cc: Do not call TorrentMan::fixFilename() in torrentHandler.
  14066. Added TorrentMan::deleteTempFile() to torrentHandler.
  14067. Initialized the variable dir as ".".
  14068. * TorrentMan.h: Changed DEFAULT_ANNOUNCE_INTERVAL to 120 seconds.
  14069. Deleted renameSingleFile().
  14070. Added copySingleFile(), deleteTempFile().
  14071. * DownloadEngine.h: Added virtual function afterEachIteration().
  14072. * TorrentDownloadEngine.cc: Move a call to TorrentMan::fixFilename()
  14073. in onEndOfRun() to afterEachIteration().
  14074. In onEndOfRun(), changed if condition to check whether filenameFixed is
  14075. true.
  14076. * Util.cc: Implemented fileCopy() using rangedFileCopy().
  14077. In rangedFileCopy(), added try-catch block to properly close file
  14078. descriptors.
  14079. * TorrentDownloadEngine.cc: Added a member variable filenameFixed.
  14080. Added afterEachIteration(), isFilenameFixed().
  14081. * Peer.cc: Changed choking strategy.
  14082. * PreAllocationDiskWriter.cc: Drop O_DIRECT flag.
  14083. * TrackerInitCommand.cc: Send completed event only once.
  14084. * DownloadEngine.cc: Added a call to afterEachIteration().
  14085. * TrackerUpdateCommand.cc: Do not stop execution after download
  14086. completes.
  14087. * TorrentMan.h: Defined MAX_PEER_UPDATE as 15. aria2 attempts to
  14088. connect the peers at most MAX_PEER_UPDATE when a peer list is
  14089. received from a tracker.
  14090. * TrackerUpdateCommand.cc: Implemented above mentioned behavior.
  14091. Decreased the number of failure peers to delete to 0(just comment out
  14092. the line).
  14093. * Release 0.3.1
  14094. 2006-03-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14095. * PeerInteractionCommand.cc: added a call to
  14096. TorrentMan::unadvertisePiece in Destructor.
  14097. * PeerInteractionCommand.cc: make have message sent immediately
  14098. if the size of pending message queue is zero.
  14099. * TorrentMan.cc: set the maximum size of peer list to 250.
  14100. * TorrentMan.h: changed the container type of Peers and UsedPieces
  14101. to deque.
  14102. * Util.cc: fixed rangedFileCopy.
  14103. * AbstractDiskWriter.{h,cc}: moved digest context initialization
  14104. to Constructor. Also, moved digest cleanup to Destructor.
  14105. * MetaFileUtil.cc: fixed memory leak
  14106. * replaced std::vector with std::deque.
  14107. * AbstractCommand.cc: casted timeout value to long long int.
  14108. * ChunkedEncoding.cc: fixed memory leak.
  14109. * PeerInteractionCommand.cc: casted timeout value to long long int.
  14110. * SleepCommand.cc: casted timeout value to long long int.
  14111. * Data.cc: fixed memory leak.
  14112. * Data.cc: fixed toLLInt().
  14113. * BitfieldMan.cc: fixed memory leak.
  14114. * TorrentMan.cc: initialized storeDir to ".".
  14115. * TorrentMan.cc: fixed memory leak.
  14116. * TorrentMan.cc: corrected file paths of splitted files.
  14117. * PeerAbstractCommand.cc: casted timeout to long long int.
  14118. * main.cc: added delete(req) and delete(te->diskWriter).
  14119. * RequestSlot.cc: casted timeout value to long long int.
  14120. * Request.cc: fixed memory leak.
  14121. * PendingMessage.cc: make HAVE messages sent only when peer does not
  14122. have the piece.
  14123. * Peer.{h,cc}: added hasPiece(int index).
  14124. * main.cc: corrected addCommand.
  14125. 2006-03-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14126. * BitTorrent protocol support added.
  14127. * Release 0.3.0
  14128. 2006-03-17 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14129. * SocketCore.cc: remove the assignment of addrinfo.ai_addr.
  14130. 2006-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14131. * ChunkedEncoding.{h,cc}: fixed the bug that if chunk data is binary,
  14132. decoding did not work properly.
  14133. 2006-03-07 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14134. * DownloadEngine.h: included sys/time.h
  14135. * DownloadEngine.cc: remove sys/time.h
  14136. * Makefile.am (SUBDIRS): Add intl.
  14137. * configure.in (AC_CONFIG_FILES): Add intl/Makefile.
  14138. 2006-03-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14139. * main.cc: correct help message for --http-auth-scheme.
  14140. * main.cc: changed e-mail address for bug reports.
  14141. * ja.po: added japanese translation.
  14142. 2006-03-04 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14143. * SimpleLogger.cc: flush log file instead of stdout.
  14144. 2006-03-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14145. * main.cc: Fixed command-line option: max-tries
  14146. * HttpResponseCommand.cc: Make the request re-sent only if req->seg.sp
  14147. does not equal to seg.sp.
  14148. * DownloadCommand.cc: If EOF is got from the server and the total size
  14149. of file is not zero, then throw DlRetryEx.
  14150. * main.cc: Set the minium value of min-segment-size to 1024.
  14151. * HttpResponseCommand.cc: Fixed the bug that http segmented downloading
  14152. fails because of a regression since 0.2.0 release.
  14153. 2006-03-02 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14154. * HttpConnection.cc:
  14155. * common.h: defined the user agent name as macro
  14156. * DownloadEngine.{h, cc}:
  14157. * ConsoleDownloadEngine.{h, cc}: Console output message(size, speed)
  14158. is now generated by ConsoleDownloadEngine not by DownloadEngine.
  14159. * main.cc: Download complete/abort message is now generated by main.
  14160. * Makefile.am (SUBDIRS): Add m4.
  14161. (ACLOCAL_AMFLAGS): New variable.
  14162. (EXTRA_DIST): New variable.
  14163. * configure.in (AC_CONFIG_FILES): Add po/Makefile.in,
  14164. * gettext: added gettext functionality
  14165. 2006-03-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14166. * AbstractCommand.cc:
  14167. * DownloadCommand.{h, cc}: Aborted downloading commands now properly
  14168. unregister its cuid from SegmentMan.
  14169. * DownloadEngine.cc: .aria2 file was written when a downloading
  14170. failed with errors.
  14171. * HttpConnection.cc: Added "Proxy-Connection" header to proxy request.
  14172. Added "User-Agent" header to CONNECT proxy request.
  14173. Fixed "Proxy-Authorization" header. Now proxy authorization works
  14174. properly.
  14175. * Logger.h:
  14176. * SimpleLogger.{h,cc}: Changed the type of msg to const char*.
  14177. * ChunkedEncoding.cc: Added #include directive for strings.h
  14178. * Release 0.2.1
  14179. 2006-02-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14180. * Util.{h,cc}: added startsWith().
  14181. * CookieBox.cc: rewrited criteriaFind() using Util::startsWith() and
  14182. Util::endsWith().
  14183. * SocketCore.cc: struct addrinfo is now zero-initialized.
  14184. * common.h: added #include directive of limit.h.
  14185. * DownloadEngine.cc: added #include directive of sys/time.h and
  14186. algorithm.
  14187. * Exception.h: added #include directive of stdio.h.
  14188. * AbstractCommand.h: added #include directive of sys/time.h.
  14189. * DownloadCommand.h: added #include directive of sys/time.h.
  14190. * *.h: added #include directive of common.h to all base classes.
  14191. subclasses' one was removed.
  14192. * common.h: defined LONG_LONG_MAX and LONG_LONG_MIN if a compiler
  14193. does not define these macros.
  14194. 2006-02-23 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14195. * Release 0.2.0
  14196. * main.cc:
  14197. * HttpInitiateConnectionCommand.{h,cc}:
  14198. * prefs.h:
  14199. * HttpConnection.{h,cc}: added --http-proxy-method option.
  14200. We can now use GET command in http proxy.
  14201. 2006-02-22 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14202. * SplitSlowestSegmentSplitter.{h,cc}: This class provies algorithm
  14203. that splits slowest segment of SegmentMan::commands vector.
  14204. This is the default split algorithm of aria2.
  14205. * SplitFirstSegmentSplitter.{h,cc}: This class provides algorithm
  14206. that splits first segment of SegmentMan::commands vector.
  14207. * SegmentSplitter.{h,cc}: Added. This class provides split algorithm.
  14208. * DownloadCommand.{h,cc}: Added downloading speed calculation.
  14209. * Segment.h:
  14210. * SegmentMan.cc: Added speed field to Segment.h
  14211. * main.cc: -s option now affects all URLs in command-line arguemtns.
  14212. * HttpResponseCommand.cc: Fixed bug that segment file is not loaded.
  14213. * message.h: Change file size related %d to %lld.
  14214. 2006-02-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14215. * FtpInitiateConnectionCommand.{h,cc}:
  14216. * FtpNegotiationCommand.{h,cc}:
  14217. * FtpDownloadCommand.{h,cc}:
  14218. * FtpConnection.{h,cc}: Added FTP support
  14219. * SimpleLogger.cc: Log message now includes time information.
  14220. * main.cc: The value of --http-auth-scheme option is chagned from
  14221. 'BASIC' to 'basic'
  14222. * main.cc: Added --timeout command-line option.
  14223. * main.cc: Added --min-segment-size command-line option.
  14224. * main.cc: Added --max-retries command-line option.
  14225. * prefs.h: option string constants are now defined in prefs.h
  14226. 2006-02-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14227. * AbstractCommand.cc: Fixed timeout bug in AbstractCommand
  14228. * SegmentMan.cc: Added totalSize entry to .aria2 file. No compatibility
  14229. with version 0.1.0's one.
  14230. 2006-02-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
  14231. * configure.in: Added --enable-ssl option to configure script.
  14232. * HttpConnection.cc: Make Request-URI an absolute path. Some servers
  14233. cannot permit absoluteURI as Request-URI.
  14234. * HttpConnection.cc: Added Referer support.
  14235. * main.cc: Added referer command-line option.
  14236. * main.cc: Added rety-wait command-line option.
  14237. * Exception.h: Fixed formating bug in Exception::setMsg()
  14238. * SocketCore.{h,cc}:
  14239. * Socket.{h, cc}:
  14240. * Request.cc:
  14241. * InitiateConnectionCommandFactory.cc:
  14242. * HttpRequestCommand.cc: Added HTTPS support.
  14243. * SocketCore.{h,cc}: Added SocketCore. Socket becomes a handle class
  14244. for SocketCore.
  14245. * ChunkedEncoding.cc: Fixed bug in ChunkedEncoding: expanding buffer
  14246. size is wrong
  14247. * DownloadCommand.cc: Fixed bug in DownloadCommand: In Chunked
  14248. Encoding, it wrongly adds to Segment.ds buff length from the socket.
  14249. 2006-02-17 Tatsuhiro Tsujikawa <tsujikawa at rednoah dot com>
  14250. * Release 0.1.0